Files
tvbox-1/js/index.js
T
2026-04-16 07:45:20 +08:00

573 lines
1.8 MiB
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
globalThis.websiteBundle = function() {
return `
(function() {
const exports = {};
const module = { exports };
${"var Ca=Object.create;var ut=Object.defineProperty,Oa=Object.defineProperties,Ta=Object.getOwnPropertyDescriptor,Sa=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,Da=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable;var Zr=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))fr.call(t,r)&&Zr(e,r,t[r]);if(kt)for(var r of kt(t))Qr.call(t,r)&&Zr(e,r,t[r]);return e},v=(e,t)=>Oa(e,Sa(t));var cr=(e,t)=>{var r={};for(var o in e)fr.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&kt)for(var o of kt(e))t.indexOf(o)<0&&Qr.call(e,o)&&(r[o]=e[o]);return r};var Se=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ka=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})},Jr=(e,t,r,o)=>{if(t&&typeof t==\"object\"||typeof t==\"function\")for(let n of Fa(t))!fr.call(e,n)&&n!==r&&ut(e,n,{get:()=>t[n],enumerable:!(o=Ta(t,n))||o.enumerable});return e};var _=(e,t,r)=>(r=e!=null?Ca(Da(e)):{},Jr(t||!e||!e.__esModule?ut(r,\"default\",{value:e,enumerable:!0}):r,e)),Ia=e=>Jr(ut({},\"__esModule\",{value:!0}),e);var Y=Se((Yi,eo)=>{eo.exports=window.React});var pr=Se((Ki,to)=>{to.exports=window.ReactDOM});var oo=Se(mr=>{\"use strict\";var ro=pr();mr.createRoot=ro.createRoot,mr.hydrateRoot=ro.hydrateRoot;var Xi});var ao=Se((Qi,no)=>{no.exports=window.antd});var io=Se((Ji,lo)=>{lo.exports=window.axios});var uo=Se((es,so)=>{so.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],o=0;o<e.rangeCount;o++)r.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case\"INPUT\":case\"TEXTAREA\":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===\"Caret\"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(n){e.addRange(n)}),t&&t.focus()}}});var po=Se((ts,co)=>{\"use strict\";var Ea=uo(),fo={\"text/plain\":\"Text\",\"text/html\":\"Url\",default:\"Text\"},Aa=\"Copy to clipboard: #{key}, Enter\";function Pa(e){var t=(/mac os x/i.test(navigator.userAgent)?\"\\u2318\":\"Ctrl\")+\"+C\";return e.replace(/#{\\s*key\\s*}/g,t)}function Ma(e,t){var r,o,n,a,u,s,i=!1;t||(t={}),r=t.debug||!1;try{n=Ea(),a=document.createRange(),u=document.getSelection(),s=document.createElement(\"span\"),s.textContent=e,s.ariaHidden=\"true\",s.style.all=\"unset\",s.style.position=\"fixed\",s.style.top=0,s.style.clip=\"rect(0, 0, 0, 0)\",s.style.whiteSpace=\"pre\",s.style.webkitUserSelect=\"text\",s.style.MozUserSelect=\"text\",s.style.msUserSelect=\"text\",s.style.userSelect=\"text\",s.addEventListener(\"copy\",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>\"u\"){r&&console.warn(\"unable to use e.clipboardData\"),r&&console.warn(\"trying IE specific stuff\"),window.clipboardData.clearData();var p=fo[t.format]||fo.default;window.clipboardData.setData(p,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),a.selectNodeContents(s),u.addRange(a);var f=document.execCommand(\"copy\");if(!f)throw new Error(\"copy command was unsuccessful\");i=!0}catch(c){r&&console.error(\"unable to copy using execCommand: \",c),r&&console.warn(\"trying IE specific stuff\");try{window.clipboardData.setData(t.format||\"text\",e),t.onCopy&&t.onCopy(window.clipboardData),i=!0}catch(p){r&&console.error(\"unable to copy using clipboardData: \",p),r&&console.error(\"falling back to prompt\"),o=Pa(\"message\"in t?t.message:Aa),window.prompt(o,e)}}finally{u&&(typeof u.removeRange==\"function\"?u.removeRange(a):u.removeAllRanges()),s&&document.body.removeChild(s),n()}return i}co.exports=Ma});var Co=Se((Fs,Pt)=>{(function(){\"use strict\";var e={}.hasOwnProperty;function t(){for(var n=\"\",a=0;a<arguments.length;a++){var u=arguments[a];u&&(n=o(n,r(u)))}return n}function r(n){if(typeof n==\"string\"||typeof n==\"number\")return n;if(typeof n!=\"object\")return\"\";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes(\"[native code]\"))return n.toString();var a=\"\";for(var u in n)e.call(n,u)&&n[u]&&(a=o(a,u));return a}function o(n,a){return a?n?n+\" \"+a:n+a:n}typeof Pt<\"u\"&&Pt.exports?(t.default=t,Pt.exports=t):typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd?define(\"classnames\",[],function(){return t}):window.classNames=t})()});var Vi={};ka(Vi,{renderClient:()=>$i});module.exports=Ia(Vi);var l=_(Y(),1),da=_(oo(),1),d=_(ao(),1),ir=_(io(),1),fa=_(po(),1);var mo=_(Y()),La=(0,mo.createContext)({}),It=La;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},re.apply(null,arguments)}function xo(e){if(Array.isArray(e))return e}function go(e,t){var r=e==null?null:typeof Symbol<\"u\"&&e[Symbol.iterator]||e[\"@@iterator\"];if(r!=null){var o,n,a,u,s=[],i=!0,f=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=a.call(r)).done)&&(s.push(o.value),s.length!==t);i=!0);}catch(c){f=!0,n=c}finally{try{if(!i&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw n}}return s}}function xr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function ho(e,t){if(e){if(typeof e==\"string\")return xr(e,t);var r={}.toString.call(e).slice(8,-1);return r===\"Object\"&&e.constructor&&(r=e.constructor.name),r===\"Map\"||r===\"Set\"?Array.from(e):r===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xr(e,t):void 0}}function bo(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function Et(e,t){return xo(e)||go(e,t)||ho(e,t)||bo()}function ce(e){\"@babel/helpers - typeof\";return ce=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(t){return typeof t}:function(t){return t&&typeof Symbol==\"function\"&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},ce(e)}function vo(e,t){if(ce(e)!=\"object\"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||\"default\");if(ce(o)!=\"object\")return o;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(t===\"string\"?String:Number)(e)}function yo(e){var t=vo(e,\"string\");return ce(t)==\"symbol\"?t:t+\"\"}function W(e,t,r){return(t=yo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wo(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function At(e,t){if(e==null)return{};var r,o,n=wo(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Le=_(Y()),hn=_(Co());var H=Math.round;function gr(e,t){let r=e.replace(/^[^(]*\\((.*)/,\"$1\").replace(/\\).*/,\"\").match(/\\d*\\.?\\d+%?/g)||[],o=r.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)o[n]=t(o[n]||0,r[n]||\"\",n);return r[3]?o[3]=r[3].includes(\"%\")?o[3]/100:o[3]:o[3]=1,o}var Oo=(e,t,r)=>r===0?e:e/100;function dt(e,t){let r=t||255;return e>r?r:e<0?0:e}var Pe=class e{constructor(t){W(this,\"isValid\",!0),W(this,\"r\",0),W(this,\"g\",0),W(this,\"b\",0),W(this,\"a\",1),W(this,\"_h\",void 0),W(this,\"_s\",void 0),W(this,\"_l\",void 0),W(this,\"_v\",void 0),W(this,\"_max\",void 0),W(this,\"_min\",void 0),W(this,\"_brightness\",void 0);function r(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t==\"string\"){let n=function(a){return o.startsWith(a)},o=t.trim();/^#?[A-F\\d]{3,8}$/i.test(o)?this.fromHexString(o):n(\"rgb\")?this.fromRgbString(o):n(\"hsl\")?this.fromHslString(o):(n(\"hsv\")||n(\"hsb\"))&&this.fromHsvString(o)}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r(\"rgb\"))this.r=dt(t.r),this.g=dt(t.g),this.b=dt(t.b),this.a=typeof t.a==\"number\"?dt(t.a,1):1;else if(r(\"hsl\"))this.fromHsl(t);else if(r(\"hsv\"))this.fromHsv(t);else throw new Error(\"@ant-design/fast-color: unsupported input \"+JSON.stringify(t))}setR(t){return this._sc(\"r\",t)}setG(t){return this._sc(\"g\",t)}setB(t){return this._sc(\"b\",t)}setA(t){return this._sc(\"a\",t,1)}setHue(t){let r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){let u=a/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)}let r=t(this.r),o=t(this.g),n=t(this.b);return .2126*r+.7152*o+.0722*n}getHue(){if(typeof this._h>\"u\"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>\"u\"){let t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>\"u\"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>\"u\"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>\"u\"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()-t/100;return n<0&&(n=0),this._c({h:r,s:o,l:n,a:this.a})}lighten(t=10){let r=this.getHue(),o=this.getSaturation(),n=this.getLightness()+t/100;return n>1&&(n=1),this._c({h:r,s:o,l:n,a:this.a})}mix(t,r=50){let o=this._c(t),n=r/100,a=s=>(o[s]-this[s])*n+this[s],u={r:H(a(\"r\")),g:H(a(\"g\")),b:H(a(\"b\")),a:H(a(\"a\")*100)/100};return this._c(u)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){let r=this._c(t),o=this.a+r.a*(1-this.a),n=a=>H((this[a]*this.a+r[a]*r.a*(1-this.a))/o);return this._c({r:n(\"r\"),g:n(\"g\"),b:n(\"b\"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t=\"#\",r=(this.r||0).toString(16);t+=r.length===2?r:\"0\"+r;let o=(this.g||0).toString(16);t+=o.length===2?o:\"0\"+o;let n=(this.b||0).toString(16);if(t+=n.length===2?n:\"0\"+n,typeof this.a==\"number\"&&this.a>=0&&this.a<1){let a=H(this.a*255).toString(16);t+=a.length===2?a:\"0\"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=H(this.getSaturation()*100),o=H(this.getLightness()*100);return this.a!==1?\"hsla(\".concat(t,\",\").concat(r,\"%,\").concat(o,\"%,\").concat(this.a,\")\"):\"hsl(\".concat(t,\",\").concat(r,\"%,\").concat(o,\"%)\")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?\"rgba(\".concat(this.r,\",\").concat(this.g,\",\").concat(this.b,\",\").concat(this.a,\")\"):\"rgb(\".concat(this.r,\",\").concat(this.g,\",\").concat(this.b,\")\")}toString(){return this.toRgbString()}_sc(t,r,o){let n=this.clone();return n[t]=dt(r,o),n}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>\"u\"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>\"u\"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){let r=t.replace(\"#\",\"\");function o(n,a){return parseInt(r[n]+r[a||n],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:t,s:r,l:o,a:n}){if(this._h=t%360,this._s=r,this._l=o,this.a=typeof n==\"number\"?n:1,r<=0){let x=H(o*255);this.r=x,this.g=x,this.b=x}let a=0,u=0,s=0,i=t/60,f=(1-Math.abs(2*o-1))*r,c=f*(1-Math.abs(i%2-1));i>=0&&i<1?(a=f,u=c):i>=1&&i<2?(a=c,u=f):i>=2&&i<3?(u=f,s=c):i>=3&&i<4?(u=c,s=f):i>=4&&i<5?(a=c,s=f):i>=5&&i<6&&(a=f,s=c);let p=o-f/2;this.r=H((a+p)*255),this.g=H((u+p)*255),this.b=H((s+p)*255)}fromHsv({h:t,s:r,v:o,a:n}){this._h=t%360,this._s=r,this._v=o,this.a=typeof n==\"number\"?n:1;let a=H(o*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;let u=t/60,s=Math.floor(u),i=u-s,f=H(o*(1-r)*255),c=H(o*(1-r*i)*255),p=H(o*(1-r*(1-i))*255);switch(s){case 0:this.g=p,this.b=f;break;case 1:this.r=c,this.b=f;break;case 2:this.r=f,this.b=p;break;case 3:this.r=f,this.g=c;break;case 4:this.r=p,this.g=f;break;case 5:default:this.g=f,this.b=c;break}}fromHsvString(t){let r=gr(t,Oo);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=gr(t,Oo);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=gr(t,(o,n)=>n.includes(\"%\")?H(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Mt=2,To=.16,Na=.05,Ba=.05,qa=.15,ko=5,Io=4,_a=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function So(e,t,r){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-Mt*t:Math.round(e.h)+Mt*t:o=r?Math.round(e.h)+Mt*t:Math.round(e.h)-Mt*t,o<0?o+=360:o>=360&&(o-=360),o}function Fo(e,t,r){if(e.h===0&&e.s===0)return e.s;var o;return r?o=e.s-To*t:t===Io?o=e.s+To:o=e.s+Na*t,o>1&&(o=1),r&&t===ko&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function Do(e,t,r){var o;return r?o=e.v+Ba*t:o=e.v-qa*t,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Lt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new Pe(e),n=o.toHsv(),a=ko;a>0;a-=1){var u=new Pe({h:So(n,a,!0),s:Fo(n,a,!0),v:Do(n,a,!0)});r.push(u)}r.push(o);for(var s=1;s<=Io;s+=1){var i=new Pe({h:So(n,s),s:Fo(n,s),v:Do(n,s)});r.push(i)}return t.theme===\"dark\"?_a.map(function(f){var c=f.index,p=f.amount;return new Pe(t.backgroundColor||\"#141414\").mix(r[c],p).toHexString()}):r.map(function(f){return f.toHexString()})}var Eo=[\"#fff1f0\",\"#ffccc7\",\"#ffa39e\",\"#ff7875\",\"#ff4d4f\",\"#f5222d\",\"#cf1322\",\"#a8071a\",\"#820014\",\"#5c0011\"];Eo.primary=Eo[5];var Ao=[\"#fff2e8\",\"#ffd8bf\",\"#ffbb96\",\"#ff9c6e\",\"#ff7a45\",\"#fa541c\",\"#d4380d\",\"#ad2102\",\"#871400\",\"#610b00\"];Ao.primary=Ao[5];var Po=[\"#fff7e6\",\"#ffe7ba\",\"#ffd591\",\"#ffc069\",\"#ffa940\",\"#fa8c16\",\"#d46b08\",\"#ad4e00\",\"#873800\",\"#612500\"];Po.primary=Po[5];var Mo=[\"#fffbe6\",\"#fff1b8\",\"#ffe58f\",\"#ffd666\",\"#ffc53d\",\"#faad14\",\"#d48806\",\"#ad6800\",\"#874d00\",\"#613400\"];Mo.primary=Mo[5];var Lo=[\"#feffe6\",\"#ffffb8\",\"#fffb8f\",\"#fff566\",\"#ffec3d\",\"#fadb14\",\"#d4b106\",\"#ad8b00\",\"#876800\",\"#614700\"];Lo.primary=Lo[5];var No=[\"#fcffe6\",\"#f4ffb8\",\"#eaff8f\",\"#d3f261\",\"#bae637\",\"#a0d911\",\"#7cb305\",\"#5b8c00\",\"#3f6600\",\"#254000\"];No.primary=No[5];var Bo=[\"#f6ffed\",\"#d9f7be\",\"#b7eb8f\",\"#95de64\",\"#73d13d\",\"#52c41a\",\"#389e0d\",\"#237804\",\"#135200\",\"#092b00\"];Bo.primary=Bo[5];var qo=[\"#e6fffb\",\"#b5f5ec\",\"#87e8de\",\"#5cdbd3\",\"#36cfc9\",\"#13c2c2\",\"#08979c\",\"#006d75\",\"#00474f\",\"#002329\"];qo.primary=qo[5];var Nt=[\"#e6f4ff\",\"#bae0ff\",\"#91caff\",\"#69b1ff\",\"#4096ff\",\"#1677ff\",\"#0958d9\",\"#003eb3\",\"#002c8c\",\"#001d66\"];Nt.primary=Nt[5];var _o=[\"#f0f5ff\",\"#d6e4ff\",\"#adc6ff\",\"#85a5ff\",\"#597ef7\",\"#2f54eb\",\"#1d39c4\",\"#10239e\",\"#061178\",\"#030852\"];_o.primary=_o[5];var Ro=[\"#f9f0ff\",\"#efdbff\",\"#d3adf7\",\"#b37feb\",\"#9254de\",\"#722ed1\",\"#531dab\",\"#391085\",\"#22075e\",\"#120338\"];Ro.primary=Ro[5];var Uo=[\"#fff0f6\",\"#ffd6e7\",\"#ffadd2\",\"#ff85c0\",\"#f759ab\",\"#eb2f96\",\"#c41d7f\",\"#9e1068\",\"#780650\",\"#520339\"];Uo.primary=Uo[5];var Wo=[\"#a6a6a6\",\"#999999\",\"#8c8c8c\",\"#808080\",\"#737373\",\"#666666\",\"#404040\",\"#1a1a1a\",\"#000000\",\"#000000\"];Wo.primary=Wo[5];var Ho=[\"#2a1215\",\"#431418\",\"#58181c\",\"#791a1f\",\"#a61d24\",\"#d32029\",\"#e84749\",\"#f37370\",\"#f89f9a\",\"#fac8c3\"];Ho.primary=Ho[5];var jo=[\"#2b1611\",\"#441d12\",\"#592716\",\"#7c3118\",\"#aa3e19\",\"#d84a1b\",\"#e87040\",\"#f3956a\",\"#f8b692\",\"#fad4bc\"];jo.primary=jo[5];var zo=[\"#2b1d11\",\"#442a11\",\"#593815\",\"#7c4a15\",\"#aa6215\",\"#d87a16\",\"#e89a3c\",\"#f3b765\",\"#f8cf8d\",\"#fae3b7\"];zo.primary=zo[5];var $o=[\"#2b2111\",\"#443111\",\"#594214\",\"#7c5914\",\"#aa7714\",\"#d89614\",\"#e8b339\",\"#f3cc62\",\"#f8df8b\",\"#faedb5\"];$o.primary=$o[5];var Vo=[\"#2b2611\",\"#443b11\",\"#595014\",\"#7c6e14\",\"#aa9514\",\"#d8bd14\",\"#e8d639\",\"#f3ea62\",\"#f8f48b\",\"#fafab5\"];Vo.primary=Vo[5];var Go=[\"#1f2611\",\"#2e3c10\",\"#3e4f13\",\"#536d13\",\"#6f9412\",\"#8bbb11\",\"#a9d134\",\"#c9e75d\",\"#e4f88b\",\"#f0fab5\"];Go.primary=Go[5];var Yo=[\"#162312\",\"#1d3712\",\"#274916\",\"#306317\",\"#3c8618\",\"#49aa19\",\"#6abe39\",\"#8fd460\",\"#b2e58b\",\"#d5f2bb\"];Yo.primary=Yo[5];var Ko=[\"#112123\",\"#113536\",\"#144848\",\"#146262\",\"#138585\",\"#13a8a8\",\"#33bcb7\",\"#58d1c9\",\"#84e2d8\",\"#b2f1e8\"];Ko.primary=Ko[5];var Xo=[\"#111a2c\",\"#112545\",\"#15325b\",\"#15417e\",\"#1554ad\",\"#1668dc\",\"#3c89e8\",\"#65a9f3\",\"#8dc5f8\",\"#b7dcfa\"];Xo.primary=Xo[5];var Zo=[\"#131629\",\"#161d40\",\"#1c2755\",\"#203175\",\"#263ea0\",\"#2b4acb\",\"#5273e0\",\"#7f9ef3\",\"#a8c1f8\",\"#d2e0fa\"];Zo.primary=Zo[5];var Qo=[\"#1a1325\",\"#24163a\",\"#301c4d\",\"#3e2069\",\"#51258f\",\"#642ab5\",\"#854eca\",\"#ab7ae0\",\"#cda8f0\",\"#ebd7fa\"];Qo.primary=Qo[5];var Jo=[\"#291321\",\"#40162f\",\"#551c3b\",\"#75204f\",\"#a02669\",\"#cb2b83\",\"#e0529c\",\"#f37fb7\",\"#f8a8cc\",\"#fad2e3\"];Jo.primary=Jo[5];var en=[\"#151515\",\"#1f1f1f\",\"#2d2d2d\",\"#393939\",\"#494949\",\"#5a5a5a\",\"#6a6a6a\",\"#7b7b7b\",\"#888888\",\"#969696\"];en.primary=en[5];function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tn(Object(r),!0).forEach(function(o){W(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}var xn=_(Y());function hr(){return!!(typeof window<\"u\"&&window.document&&window.document.createElement)}function br(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var rn=\"data-rc-order\",on=\"data-rc-priority\",Ra=\"rc-util-key\",vr=new Map;function nn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith(\"data-\")?t:\"data-\".concat(t):Ra}function yr(e){if(e.attachTo)return e.attachTo;var t=document.querySelector(\"head\");return t||document.body}function Ua(e){return e===\"queue\"?\"prependQueue\":e?\"prepend\":\"append\"}function wr(e){return Array.from((vr.get(e)||e).children).filter(function(t){return t.tagName===\"STYLE\"})}function an(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hr())return null;var r=t.csp,o=t.prepend,n=t.priority,a=n===void 0?0:n,u=Ua(o),s=u===\"prependQueue\",i=document.createElement(\"style\");i.setAttribute(rn,u),s&&a&&i.setAttribute(on,\"\".concat(a)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;var f=yr(t),c=f.firstChild;if(o){if(s){var p=(t.styles||wr(f)).filter(function(x){if(![\"prepend\",\"prependQueue\"].includes(x.getAttribute(rn)))return!1;var h=Number(x.getAttribute(on)||0);return a>=h});if(p.length)return f.insertBefore(i,p[p.length-1].nextSibling),i}f.insertBefore(i,c)}else f.appendChild(i);return i}function Wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=yr(t);return(t.styles||wr(r)).find(function(o){return o.getAttribute(nn(t))===e})}function Ha(e,t){var r=vr.get(e);if(!r||!br(document,r)){var o=an(\"\",t),n=o.parentNode;vr.set(e,n),e.removeChild(o)}}function ln(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=yr(r),n=wr(o),a=ee(ee({},r),{},{styles:n});Ha(o,a);var u=Wa(t,a);if(u){var s,i;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&u.nonce!==((i=a.csp)===null||i===void 0?void 0:i.nonce)){var f;u.nonce=(f=a.csp)===null||f===void 0?void 0:f.nonce}return u.innerHTML!==e&&(u.innerHTML=e),u}var c=an(e,a);return c.setAttribute(nn(a),t),c}function sn(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function ja(e){return sn(e)instanceof ShadowRoot}function un(e){return ja(e)?sn(e):null}var Cr={},za=[],$a=function(t){za.push(t)};function Va(e,t){if(0)var r}function Ga(e,t){if(0)var r}function Ya(){Cr={}}function dn(e,t,r){!t&&!Cr[r]&&(e(!1,r),Cr[r]=!0)}function Bt(e,t){dn(Va,e,t)}function Ka(e,t){dn(Ga,e,t)}Bt.preMessage=$a;Bt.resetWarned=Ya;Bt.noteOnce=Ka;var fn=Bt;var Me=_(Y());function Xa(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function pn(e,t){fn(e,\"[@ant-design/icons] \".concat(t))}function Or(e){return ce(e)===\"object\"&&typeof e.name==\"string\"&&typeof e.theme==\"string\"&&(ce(e.icon)===\"object\"||typeof e.icon==\"function\")}function cn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var o=e[r];switch(r){case\"class\":t.className=o,delete t.class;break;default:delete t[r],t[Xa(r)]=o}return t},{})}function qt(e,t,r){return r?Me.default.createElement(e.tag,ee(ee({key:t},cn(e.attrs)),r),(e.children||[]).map(function(o,n){return qt(o,\"\".concat(t,\"-\").concat(e.tag,\"-\").concat(n))})):Me.default.createElement(e.tag,ee({key:t},cn(e.attrs)),(e.children||[]).map(function(o,n){return qt(o,\"\".concat(t,\"-\").concat(e.tag,\"-\").concat(n))}))}function Tr(e){return Lt(e)[0]}function _t(e){return e?Array.isArray(e)?e:[e]:[]}var Za=\"\\n.anticon {\\n display: inline-flex;\\n align-items: center;\\n color: inherit;\\n font-style: normal;\\n line-height: 0;\\n text-align: center;\\n text-transform: none;\\n vertical-align: -0.125em;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.anticon > * {\\n line-height: 1;\\n}\\n\\n.anticon svg {\\n display: inline-block;\\n}\\n\\n.anticon::before {\\n display: none;\\n}\\n\\n.anticon .anticon-icon {\\n display: block;\\n}\\n\\n.anticon[tabindex] {\\n cursor: pointer;\\n}\\n\\n.anticon-spin::before,\\n.anticon-spin {\\n display: inline-block;\\n -webkit-animation: loadingCircle 1s infinite linear;\\n animation: loadingCircle 1s infinite linear;\\n}\\n\\n@-webkit-keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\",mn=function(t){var r=(0,Me.useContext)(It),o=r.csp,n=r.prefixCls,a=r.layer,u=Za;n&&(u=u.replace(/anticon/g,n)),a&&(u=\"@layer \".concat(a,\" {\\n\").concat(u,\"\\n}\")),(0,Me.useEffect)(function(){var s=t.current,i=un(s);ln(u,\"@ant-design-icons\",{prepend:!a,csp:o,attachTo:i})},[])};var Qa=[\"icon\",\"className\",\"onClick\",\"style\",\"primaryColor\",\"secondaryColor\"],ft={primaryColor:\"#333\",secondaryColor:\"#E6E6E6\",calculated:!1};function Ja(e){var t=e.primaryColor,r=e.secondaryColor;ft.primaryColor=t,ft.secondaryColor=r||Tr(t),ft.calculated=!!r}function el(){return ee({},ft)}var Rt=function(t){var r=t.icon,o=t.className,n=t.onClick,a=t.style,u=t.primaryColor,s=t.secondaryColor,i=At(t,Qa),f=xn.useRef(),c=ft;if(u&&(c={primaryColor:u,secondaryColor:s||Tr(u)}),mn(f),pn(Or(r),\"icon should be icon definiton, but got \".concat(r)),!Or(r))return null;var p=r;return p&&typeof p.icon==\"function\"&&(p=ee(ee({},p),{},{icon:p.icon(c.primaryColor,c.secondaryColor)})),qt(p.icon,\"svg-\".concat(p.name),ee(ee({className:o,onClick:n,style:a,\"data-icon\":p.name,width:\"1em\",height:\"1em\",fill:\"currentColor\",\"aria-hidden\":\"true\"},i),{},{ref:f}))};Rt.displayName=\"IconReact\";Rt.getTwoToneColors=el;Rt.setTwoToneColors=Ja;var ct=Rt;function Sr(e){var t=_t(e),r=Et(t,2),o=r[0],n=r[1];return ct.setTwoToneColors({primaryColor:o,secondaryColor:n})}function gn(){var e=ct.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var tl=[\"className\",\"icon\",\"spin\",\"rotate\",\"tabIndex\",\"onClick\",\"twoToneColor\"];Sr(Nt.primary);var Ut=Le.forwardRef(function(e,t){var r=e.className,o=e.icon,n=e.spin,a=e.rotate,u=e.tabIndex,s=e.onClick,i=e.twoToneColor,f=At(e,tl),c=Le.useContext(It),p=c.prefixCls,x=p===void 0?\"anticon\":p,h=c.rootClassName,w=(0,hn.default)(h,x,W(W({},\"\".concat(x,\"-\").concat(o.name),!!o.name),\"\".concat(x,\"-spin\"),!!n||o.name===\"loading\"),r),b=u;b===void 0&&s&&(b=-1);var y=a?{msTransform:\"rotate(\".concat(a,\"deg)\"),transform:\"rotate(\".concat(a,\"deg)\")}:void 0,O=_t(i),T=Et(O,2),C=T[0],I=T[1];return Le.createElement(\"span\",re({role:\"img\",\"aria-label\":o.name},f,{ref:t,tabIndex:b,onClick:s,className:w}),Le.createElement(ct,{icon:o,primaryColor:C,secondaryColor:I,style:y}))});Ut.displayName=\"AntdIcon\";Ut.getTwoToneColor=gn;Ut.setTwoToneColor=Sr;var Fe=Ut;var Wt=_(Y());var rl={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z\"}}]},name:\"down\",theme:\"outlined\"},bn=rl;var ol=function(t,r){return Wt.createElement(Fe,re({},t,{ref:r,icon:bn}))},nl=Wt.forwardRef(ol),Ht=nl;var jt=_(Y());var al={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z\"}},{tag:\"path\",attrs:{d:\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\"}}]},name:\"minus-circle\",theme:\"outlined\"},vn=al;var ll=function(t,r){return jt.createElement(Fe,re({},t,{ref:r,icon:vn}))},il=jt.forwardRef(ll),De=il;var zt=_(Y());var sl={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z\"}},{tag:\"path\",attrs:{d:\"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z\"}}]},name:\"plus\",theme:\"outlined\"},yn=sl;var ul=function(t,r){return zt.createElement(Fe,re({},t,{ref:r,icon:yn}))},dl=zt.forwardRef(ul),ke=dl;var $t=_(Y());var fl={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z\"}}]},name:\"up\",theme:\"outlined\"},wn=fl;var cl=function(t,r){return $t.createElement(Fe,re({},t,{ref:r,icon:wn}))},pl=$t.forwardRef(cl),Vt=pl;var m=_(Y()),Ue=_(pr());var N=_(Y());function On(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,N.useMemo)(()=>o=>{t.forEach(n=>n(o))},t)}var pt=typeof window<\"u\"&&typeof window.document<\"u\"&&typeof window.document.createElement<\"u\";function Ne(e){let t=Object.prototype.toString.call(e);return t===\"[object Window]\"||t===\"[object global]\"}function Gt(e){return\"nodeType\"in e}function V(e){var t,r;return e?Ne(e)?e:Gt(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Yt(e){let{Document:t}=V(e);return e instanceof t}function Ze(e){return Ne(e)?!1:e instanceof V(e).HTMLElement}function Dr(e){return e instanceof V(e).SVGElement}function Be(e){return e?Ne(e)?e.document:Gt(e)?Yt(e)?e:Ze(e)||Dr(e)?e.ownerDocument:document:document:document}var oe=pt?N.useLayoutEffect:N.useEffect;function Kt(e){let t=(0,N.useRef)(e);return oe(()=>{t.current=e}),(0,N.useCallback)(function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return t.current==null?void 0:t.current(...o)},[])}function Tn(){let e=(0,N.useRef)(null),t=(0,N.useCallback)((o,n)=>{e.current=setInterval(o,n)},[]),r=(0,N.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Qe(e,t){t===void 0&&(t=[e]);let r=(0,N.useRef)(e);return oe(()=>{r.current!==e&&(r.current=e)},t),r}function Je(e,t){let r=(0,N.useRef)();return(0,N.useMemo)(()=>{let o=e(r.current);return r.current=o,o},[...t])}function mt(e){let t=Kt(e),r=(0,N.useRef)(null),o=(0,N.useCallback)(n=>{n!==r.current&&(t==null||t(n,r.current)),r.current=n},[]);return[r,o]}function Xt(e){let t=(0,N.useRef)();return(0,N.useEffect)(()=>{t.current=e},[e]),t.current}var Fr={};function qe(e,t){return(0,N.useMemo)(()=>{if(t)return t;let r=Fr[e]==null?0:Fr[e]+1;return Fr[e]=r,e+\"-\"+r},[e,t])}function Sn(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.reduce((a,u)=>{let s=Object.entries(u);for(let[i,f]of s){let c=a[i];c!=null&&(a[i]=c+e*f)}return a},g({},t))}}var _e=Sn(1),et=Sn(-1);function ml(e){return\"clientX\"in e&&\"clientY\"in e}function xt(e){if(!e)return!1;let{KeyboardEvent:t}=V(e.target);return t&&e instanceof t}function xl(e){if(!e)return!1;let{TouchEvent:t}=V(e.target);return t&&e instanceof t}function gt(e){if(xl(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return ml(e)?{x:e.clientX,y:e.clientY}:null}var Ie=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return\"translate3d(\"+(t?Math.round(t):0)+\"px, \"+(r?Math.round(r):0)+\"px, 0)\"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return\"scaleX(\"+t+\") scaleY(\"+r+\")\"}},Transform:{toString(e){if(e)return[Ie.Translate.toString(e),Ie.Scale.toString(e)].join(\" \")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+\" \"+r+\"ms \"+o}}}),Cn=\"a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]\";function Fn(e){return e.matches(Cn)?e:e.querySelector(Cn)}var Re=_(Y()),gl={display:\"none\"};function Dn(e){let{id:t,value:r}=e;return Re.default.createElement(\"div\",{id:t,style:gl},r)}function kn(e){let{id:t,announcement:r,ariaLiveType:o=\"assertive\"}=e,n={position:\"fixed\",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:\"hidden\",clip:\"rect(0 0 0 0)\",clipPath:\"inset(100%)\",whiteSpace:\"nowrap\"};return Re.default.createElement(\"div\",{id:t,style:n,role:\"status\",\"aria-live\":o,\"aria-atomic\":!0},r)}function In(){let[e,t]=(0,Re.useState)(\"\");return{announce:(0,Re.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}var Un=(0,m.createContext)(null);function hl(e){let t=(0,m.useContext)(Un);(0,m.useEffect)(()=>{if(!t)throw new Error(\"useDndMonitor must be used within a children of <DndContext>\");return t(e)},[e,t])}function bl(){let[e]=(0,m.useState)(()=>new Set),t=(0,m.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,m.useCallback)(o=>{let{type:n,event:a}=o;e.forEach(u=>{var s;return(s=u[n])==null?void 0:s.call(u,a)})},[e]),t]}var vl={draggable:\"\\n To pick up a draggable item, press the space bar.\\n While dragging, use the arrow keys to move the item.\\n Press space again to drop the item in its new position, or press escape to cancel.\\n \"},yl={onDragStart(e){let{active:t}=e;return\"Picked up draggable item \"+t.id+\".\"},onDragOver(e){let{active:t,over:r}=e;return r?\"Draggable item \"+t.id+\" was moved over droppable area \"+r.id+\".\":\"Draggable item \"+t.id+\" is no longer over a droppable area.\"},onDragEnd(e){let{active:t,over:r}=e;return r?\"Draggable item \"+t.id+\" was dropped over droppable area \"+r.id:\"Draggable item \"+t.id+\" was dropped.\"},onDragCancel(e){let{active:t}=e;return\"Dragging was cancelled. Draggable item \"+t.id+\" was dropped.\"}};function wl(e){let{announcements:t=yl,container:r,hiddenTextDescribedById:o,screenReaderInstructions:n=vl}=e,{announce:a,announcement:u}=In(),s=qe(\"DndLiveRegion\"),[i,f]=(0,m.useState)(!1);if((0,m.useEffect)(()=>{f(!0)},[]),hl((0,m.useMemo)(()=>({onDragStart(p){let{active:x}=p;a(t.onDragStart({active:x}))},onDragMove(p){let{active:x,over:h}=p;t.onDragMove&&a(t.onDragMove({active:x,over:h}))},onDragOver(p){let{active:x,over:h}=p;a(t.onDragOver({active:x,over:h}))},onDragEnd(p){let{active:x,over:h}=p;a(t.onDragEnd({active:x,over:h}))},onDragCancel(p){let{active:x,over:h}=p;a(t.onDragCancel({active:x,over:h}))}}),[a,t])),!i)return null;let c=m.default.createElement(m.default.Fragment,null,m.default.createElement(Dn,{id:o,value:n.draggable}),m.default.createElement(kn,{id:s,announcement:u}));return r?(0,Ue.createPortal)(c,r):c}var R;(function(e){e.DragStart=\"dragStart\",e.DragMove=\"dragMove\",e.DragEnd=\"dragEnd\",e.DragCancel=\"dragCancel\",e.DragOver=\"dragOver\",e.RegisterDroppable=\"registerDroppable\",e.SetDroppableDisabled=\"setDroppableDisabled\",e.UnregisterDroppable=\"unregisterDroppable\"})(R||(R={}));function Qt(){}function Br(e,t){return(0,m.useMemo)(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function qr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,m.useMemo)(()=>[...t].filter(o=>o!=null),[...t])}var ie=Object.freeze({x:0,y:0});function Cl(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return o-r}function Wn(e,t){if(!e||e.length===0)return null;let[r]=e;return t?r[t]:r}function Ol(e,t){let r=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),u=n-o,s=a-r;if(o<n&&r<a){let i=t.width*t.height,f=e.width*e.height,c=u*s,p=c/(i+f-c);return Number(p.toFixed(4))}return 0}var Tl=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e,n=[];for(let a of o){let{id:u}=a,s=r.get(u);if(s){let i=Ol(s,t);i>0&&n.push({id:u,data:{droppableContainer:a,value:i}})}}return n.sort(Cl)};function Sl(e,t,r){return v(g({},e),{scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1})}function Hn(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ie}function Fl(e){return function(r){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return n.reduce((u,s)=>v(g({},u),{top:u.top+e*s.y,bottom:u.bottom+e*s.y,left:u.left+e*s.x,right:u.right+e*s.x}),g({},r))}}var Dl=Fl(1);function kl(e){if(e.startsWith(\"matrix3d(\")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(\"matrix(\")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Il(e,t,r){let o=kl(t);if(!o)return e;let{scaleX:n,scaleY:a,x:u,y:s}=o,i=e.left-u-(1-n)*parseFloat(r),f=e.top-s-(1-a)*parseFloat(r.slice(r.indexOf(\" \")+1)),c=n?e.width/n:e.width,p=a?e.height/a:e.height;return{width:c,height:p,top:f,right:i+c,bottom:f+p,left:i}}var El={ignoreTransform:!1};function ze(e,t){t===void 0&&(t=El);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:f,transformOrigin:c}=V(e).getComputedStyle(e);f&&(r=Il(r,f,c))}let{top:o,left:n,width:a,height:u,bottom:s,right:i}=r;return{top:o,left:n,width:a,height:u,bottom:s,right:i}}function En(e){return ze(e,{ignoreTransform:!0})}function Al(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function Pl(e,t){return t===void 0&&(t=V(e).getComputedStyle(e)),t.position===\"fixed\"}function Ml(e,t){t===void 0&&(t=V(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return[\"overflow\",\"overflowX\",\"overflowY\"].some(n=>{let a=t[n];return typeof a==\"string\"?r.test(a):!1})}function tr(e,t){let r=[];function o(n){if(t!=null&&r.length>=t||!n)return r;if(Yt(n)&&n.scrollingElement!=null&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!Ze(n)||Dr(n)||r.includes(n))return r;let a=V(e).getComputedStyle(n);return n!==e&&Ml(n,a)&&r.push(n),Pl(n,a)?r:o(n.parentNode)}return e?o(e):r}function jn(e){let[t]=tr(e,1);return t!=null?t:null}function kr(e){return!pt||!e?null:Ne(e)?e:Gt(e)?Yt(e)||e===Be(e).scrollingElement?window:Ze(e)?e:null:null}function zn(e){return Ne(e)?e.scrollX:e.scrollLeft}function $n(e){return Ne(e)?e.scrollY:e.scrollTop}function Ar(e){return{x:zn(e),y:$n(e)}}var j;(function(e){e[e.Forward=1]=\"Forward\",e[e.Backward=-1]=\"Backward\"})(j||(j={}));function Vn(e){return!pt||!e?!1:e===document.scrollingElement}function Gn(e){let t={x:0,y:0},r=Vn(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},n=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,u=e.scrollTop>=o.y,s=e.scrollLeft>=o.x;return{isTop:n,isLeft:a,isBottom:u,isRight:s,maxScroll:o,minScroll:t}}var Ll={x:.2,y:.2};function Nl(e,t,r,o,n){let{top:a,left:u,right:s,bottom:i}=r;o===void 0&&(o=10),n===void 0&&(n=Ll);let{isTop:f,isBottom:c,isLeft:p,isRight:x}=Gn(e),h={x:0,y:0},w={x:0,y:0},b={height:t.height*n.y,width:t.width*n.x};return!f&&a<=t.top+b.height?(h.y=j.Backward,w.y=o*Math.abs((t.top+b.height-a)/b.height)):!c&&i>=t.bottom-b.height&&(h.y=j.Forward,w.y=o*Math.abs((t.bottom-b.height-i)/b.height)),!x&&s>=t.right-b.width?(h.x=j.Forward,w.x=o*Math.abs((t.right-b.width-s)/b.width)):!p&&u<=t.left+b.width&&(h.x=j.Backward,w.x=o*Math.abs((t.left+b.width-u)/b.width)),{direction:h,speed:w}}function Bl(e){if(e===document.scrollingElement){let{innerWidth:a,innerHeight:u}=window;return{top:0,left:0,right:a,bottom:u,width:a,height:u}}let{top:t,left:r,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function Yn(e){return e.reduce((t,r)=>_e(t,Ar(r)),ie)}function ql(e){return e.reduce((t,r)=>t+zn(r),0)}function _l(e){return e.reduce((t,r)=>t+$n(r),0)}function Rl(e,t){if(t===void 0&&(t=ze),!e)return;let{top:r,left:o,bottom:n,right:a}=t(e);jn(e)&&(n<=0||a<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:\"center\",inline:\"center\"})}var Ul=[[\"x\",[\"left\",\"right\"],ql],[\"y\",[\"top\",\"bottom\"],_l]],bt=class{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let o=tr(r),n=Yn(o);this.rect=g({},t),this.width=t.width,this.height=t.height;for(let[a,u,s]of Ul)for(let i of u)Object.defineProperty(this,i,{get:()=>{let f=s(o),c=n[a]-f;return this.rect[i]+c},enumerable:!0});Object.defineProperty(this,\"rect\",{enumerable:!1})}},We=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...r)})},this.target=t}add(t,r,o){var n;(n=this.target)==null||n.addEventListener(t,r,o),this.listeners.push([t,r,o])}};function Wl(e){let{EventTarget:t}=V(e);return e instanceof t?e:Be(e)}function Ir(e,t){let r=Math.abs(e.x),o=Math.abs(e.y);return typeof t==\"number\"?Math.sqrt(r**2+o**2)>t:\"x\"in t&&\"y\"in t?r>t.x&&o>t.y:\"x\"in t?r>t.x:\"y\"in t?o>t.y:!1}var ne;(function(e){e.Click=\"click\",e.DragStart=\"dragstart\",e.Keydown=\"keydown\",e.ContextMenu=\"contextmenu\",e.Resize=\"resize\",e.SelectionChange=\"selectionchange\",e.VisibilityChange=\"visibilitychange\"})(ne||(ne={}));function An(e){e.preventDefault()}function Hl(e){e.stopPropagation()}var k;(function(e){e.Space=\"Space\",e.Down=\"ArrowDown\",e.Right=\"ArrowRight\",e.Left=\"ArrowLeft\",e.Up=\"ArrowUp\",e.Esc=\"Escape\",e.Enter=\"Enter\",e.Tab=\"Tab\"})(k||(k={}));var Kn={start:[k.Space,k.Enter],cancel:[k.Esc],end:[k.Space,k.Enter,k.Tab]},jl=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case k.Right:return v(g({},r),{x:r.x+25});case k.Left:return v(g({},r),{x:r.x-25});case k.Down:return v(g({},r),{y:r.y+25});case k.Up:return v(g({},r),{y:r.y-25})}},Jt=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:r}}=t;this.props=t,this.listeners=new We(Be(r)),this.windowListeners=new We(V(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ne.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:r}=this.props,o=t.node.current;o&&Rl(o),r(ie)}handleKeyDown(t){if(xt(t)){let{active:r,context:o,options:n}=this.props,{keyboardCodes:a=Kn,coordinateGetter:u=jl,scrollBehavior:s=\"smooth\"}=n,{code:i}=t;if(a.end.includes(i)){this.handleEnd(t);return}if(a.cancel.includes(i)){this.handleCancel(t);return}let{collisionRect:f}=o.current,c=f?{x:f.left,y:f.top}:ie;this.referenceCoordinates||(this.referenceCoordinates=c);let p=u(t,{active:r,context:o.current,currentCoordinates:c});if(p){let x=et(p,c),h={x:0,y:0},{scrollableAncestors:w}=o.current;for(let b of w){let y=t.code,{isTop:O,isRight:T,isLeft:C,isBottom:I,maxScroll:E,minScroll:A}=Gn(b),D=Bl(b),F={x:Math.min(y===k.Right?D.right-D.width/2:D.right,Math.max(y===k.Right?D.left:D.left+D.width/2,p.x)),y:Math.min(y===k.Down?D.bottom-D.height/2:D.bottom,Math.max(y===k.Down?D.top:D.top+D.height/2,p.y))},q=y===k.Right&&!T||y===k.Left&&!C,U=y===k.Down&&!I||y===k.Up&&!O;if(q&&F.x!==p.x){let M=b.scrollLeft+x.x,ae=y===k.Right&&M<=E.x||y===k.Left&&M>=A.x;if(ae&&!x.y){b.scrollTo({left:M,behavior:s});return}ae?h.x=b.scrollLeft-M:h.x=y===k.Right?b.scrollLeft-E.x:b.scrollLeft-A.x,h.x&&b.scrollBy({left:-h.x,behavior:s});break}else if(U&&F.y!==p.y){let M=b.scrollTop+x.y,ae=y===k.Down&&M<=E.y||y===k.Up&&M>=A.y;if(ae&&!x.x){b.scrollTo({top:M,behavior:s});return}ae?h.y=b.scrollTop-M:h.y=y===k.Down?b.scrollTop-E.y:b.scrollTop-A.y,h.y&&b.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,_e(et(p,this.referenceCoordinates),h))}}}handleMove(t,r){let{onMove:o}=this.props;t.preventDefault(),o(r)}handleEnd(t){let{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){let{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Jt.activators=[{eventName:\"onKeyDown\",handler:(e,t,r)=>{let{keyboardCodes:o=Kn,onActivation:n}=t,{active:a}=r,{code:u}=e.nativeEvent;if(o.start.includes(u)){let s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),n==null||n({event:e.nativeEvent}),!0)}return!1}}];function Pn(e){return!!(e&&\"distance\"in e)}function Mn(e){return!!(e&&\"delay\"in e)}var vt=class{constructor(t,r,o){var n;o===void 0&&(o=Wl(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;let{event:a}=t,{target:u}=a;this.props=t,this.events=r,this.document=Be(u),this.documentListeners=new We(this.document),this.listeners=new We(o),this.windowListeners=new We(V(u)),this.initialCoordinates=(n=gt(a))!=null?n:ie,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.DragStart,An),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),this.windowListeners.add(ne.ContextMenu,An),this.documentListeners.add(ne.Keydown,this.handleKeydown),r){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Mn(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(Pn(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){let{active:o,onPending:n}=this.props;n(o,t,this.initialCoordinates,r)}handleStart(){let{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(ne.Click,Hl,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ne.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;let{activated:o,initialCoordinates:n,props:a}=this,{onMove:u,options:{activationConstraint:s}}=a;if(!n)return;let i=(r=gt(t))!=null?r:ie,f=et(n,i);if(!o&&s){if(Pn(s)){if(s.tolerance!=null&&Ir(f,s.tolerance))return this.handleCancel();if(Ir(f,s.distance))return this.handleStart()}if(Mn(s)&&Ir(f,s.tolerance))return this.handleCancel();this.handlePending(s,f);return}t.cancelable&&t.preventDefault(),u(i)}handleEnd(){let{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){let{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===k.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},zl={cancel:{name:\"pointercancel\"},move:{name:\"pointermove\"},end:{name:\"pointerup\"}},je=class extends vt{constructor(t){let{event:r}=t,o=Be(r.target);super(t,zl,o)}};je.activators=[{eventName:\"onPointerDown\",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return!r.isPrimary||r.button!==0?!1:(o==null||o({event:r}),!0)}}];var $l={move:{name:\"mousemove\"},end:{name:\"mouseup\"}},Pr;(function(e){e[e.RightClick=2]=\"RightClick\"})(Pr||(Pr={}));var Mr=class extends vt{constructor(t){super(t,$l,Be(t.event.target))}};Mr.activators=[{eventName:\"onMouseDown\",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return r.button===Pr.RightClick?!1:(o==null||o({event:r}),!0)}}];var Er={cancel:{name:\"touchcancel\"},move:{name:\"touchmove\"},end:{name:\"touchend\"}},Lr=class extends vt{constructor(t){super(t,Er)}static setup(){return window.addEventListener(Er.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Er.move.name,t)};function t(){}}};Lr.activators=[{eventName:\"onTouchStart\",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t,{touches:n}=r;return n.length>1?!1:(o==null||o({event:r}),!0)}}];var ht;(function(e){e[e.Pointer=0]=\"Pointer\",e[e.DraggableRect=1]=\"DraggableRect\"})(ht||(ht={}));var er;(function(e){e[e.TreeOrder=0]=\"TreeOrder\",e[e.ReversedTreeOrder=1]=\"ReversedTreeOrder\"})(er||(er={}));function Vl(e){let{acceleration:t,activator:r=ht.Pointer,canScroll:o,draggingRect:n,enabled:a,interval:u=5,order:s=er.TreeOrder,pointerCoordinates:i,scrollableAncestors:f,scrollableAncestorRects:c,delta:p,threshold:x}=e,h=Yl({delta:p,disabled:!a}),[w,b]=Tn(),y=(0,m.useRef)({x:0,y:0}),O=(0,m.useRef)({x:0,y:0}),T=(0,m.useMemo)(()=>{switch(r){case ht.Pointer:return i?{top:i.y,bottom:i.y,left:i.x,right:i.x}:null;case ht.DraggableRect:return n}},[r,n,i]),C=(0,m.useRef)(null),I=(0,m.useCallback)(()=>{let A=C.current;if(!A)return;let D=y.current.x*O.current.x,F=y.current.y*O.current.y;A.scrollBy(D,F)},[]),E=(0,m.useMemo)(()=>s===er.TreeOrder?[...f].reverse():f,[s,f]);(0,m.useEffect)(()=>{if(!a||!f.length||!T){b();return}for(let A of E){if((o==null?void 0:o(A))===!1)continue;let D=f.indexOf(A),F=c[D];if(!F)continue;let{direction:q,speed:U}=Nl(A,F,T,t,x);for(let M of[\"x\",\"y\"])h[M][q[M]]||(U[M]=0,q[M]=0);if(U.x>0||U.y>0){b(),C.current=A,w(I,u),y.current=U,O.current=q;return}}y.current={x:0,y:0},O.current={x:0,y:0},b()},[t,I,o,b,a,u,JSON.stringify(T),JSON.stringify(h),w,f,E,c,JSON.stringify(x)])}var Gl={x:{[j.Backward]:!1,[j.Forward]:!1},y:{[j.Backward]:!1,[j.Forward]:!1}};function Yl(e){let{delta:t,disabled:r}=e,o=Xt(t);return Je(n=>{if(r||!o||!n)return Gl;let a={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[j.Backward]:n.x[j.Backward]||a.x===-1,[j.Forward]:n.x[j.Forward]||a.x===1},y:{[j.Backward]:n.y[j.Backward]||a.y===-1,[j.Forward]:n.y[j.Forward]||a.y===1}}},[r,t,o])}function Kl(e,t){let r=t!=null?e.get(t):void 0,o=r?r.node.current:null;return Je(n=>{var a;return t==null?null:(a=o!=null?o:n)!=null?a:null},[o,t])}function Xl(e,t){return(0,m.useMemo)(()=>e.reduce((r,o)=>{let{sensor:n}=o,a=n.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,o)}));return[...r,...a]},[]),[e,t])}var yt;(function(e){e[e.Always=0]=\"Always\",e[e.BeforeDragging=1]=\"BeforeDragging\",e[e.WhileDragging=2]=\"WhileDragging\"})(yt||(yt={}));var Nr;(function(e){e.Optimized=\"optimized\"})(Nr||(Nr={}));var Ln=new Map;function Zl(e,t){let{dragging:r,dependencies:o,config:n}=t,[a,u]=(0,m.useState)(null),{frequency:s,measure:i,strategy:f}=n,c=(0,m.useRef)(e),p=y(),x=Qe(p),h=(0,m.useCallback)(function(O){O===void 0&&(O=[]),!x.current&&u(T=>T===null?O:T.concat(O.filter(C=>!T.includes(C))))},[x]),w=(0,m.useRef)(null),b=Je(O=>{if(p&&!r)return Ln;if(!O||O===Ln||c.current!==e||a!=null){let T=new Map;for(let C of e){if(!C)continue;if(a&&a.length>0&&!a.includes(C.id)&&C.rect.current){T.set(C.id,C.rect.current);continue}let I=C.node.current,E=I?new bt(i(I),I):null;C.rect.current=E,E&&T.set(C.id,E)}return T}return O},[e,a,r,p,i]);return(0,m.useEffect)(()=>{c.current=e},[e]),(0,m.useEffect)(()=>{p||h()},[r,p]),(0,m.useEffect)(()=>{a&&a.length>0&&u(null)},[JSON.stringify(a)]),(0,m.useEffect)(()=>{p||typeof s!=\"number\"||w.current!==null||(w.current=setTimeout(()=>{h(),w.current=null},s))},[s,p,h,...o]),{droppableRects:b,measureDroppableContainers:h,measuringScheduled:a!=null};function y(){switch(f){case yt.Always:return!1;case yt.BeforeDragging:return r;default:return!r}}}function Xn(e,t){return Je(r=>e?r||(typeof t==\"function\"?t(e):e):null,[t,e])}function Ql(e,t){return Xn(e,t)}function Jl(e){let{callback:t,disabled:r}=e,o=Kt(t),n=(0,m.useMemo)(()=>{if(r||typeof window>\"u\"||typeof window.MutationObserver>\"u\")return;let{MutationObserver:a}=window;return new a(o)},[o,r]);return(0,m.useEffect)(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function rr(e){let{callback:t,disabled:r}=e,o=Kt(t),n=(0,m.useMemo)(()=>{if(r||typeof window>\"u\"||typeof window.ResizeObserver>\"u\")return;let{ResizeObserver:a}=window;return new a(o)},[r]);return(0,m.useEffect)(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function ei(e){return new bt(ze(e),e)}function Nn(e,t,r){t===void 0&&(t=ei);let[o,n]=(0,m.useState)(null);function a(){n(i=>{if(!e)return null;if(e.isConnected===!1){var f;return(f=i!=null?i:r)!=null?f:null}let c=t(e);return JSON.stringify(i)===JSON.stringify(c)?i:c})}let u=Jl({callback(i){if(e)for(let f of i){let{type:c,target:p}=f;if(c===\"childList\"&&p instanceof HTMLElement&&p.contains(e)){a();break}}}}),s=rr({callback:a});return oe(()=>{a(),e?(s==null||s.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),u==null||u.disconnect())},[e]),o}function ti(e){let t=Xn(e);return Hn(e,t)}var Bn=[];function ri(e){let t=(0,m.useRef)(e),r=Je(o=>e?o&&o!==Bn&&e&&t.current&&e.parentNode===t.current.parentNode?o:tr(e):Bn,[e]);return(0,m.useEffect)(()=>{t.current=e},[e]),r}function oi(e){let[t,r]=(0,m.useState)(null),o=(0,m.useRef)(e),n=(0,m.useCallback)(a=>{let u=kr(a.target);u&&r(s=>s?(s.set(u,Ar(u)),new Map(s)):null)},[]);return(0,m.useEffect)(()=>{let a=o.current;if(e!==a){u(a);let s=e.map(i=>{let f=kr(i);return f?(f.addEventListener(\"scroll\",n,{passive:!0}),[f,Ar(f)]):null}).filter(i=>i!=null);r(s.length?new Map(s):null),o.current=e}return()=>{u(e),u(a)};function u(s){s.forEach(i=>{let f=kr(i);f==null||f.removeEventListener(\"scroll\",n)})}},[n,e]),(0,m.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((a,u)=>_e(a,u),ie):Yn(e):ie,[e,t])}function qn(e,t){t===void 0&&(t=[]);let r=(0,m.useRef)(null);return(0,m.useEffect)(()=>{r.current=null},t),(0,m.useEffect)(()=>{let o=e!==ie;o&&!r.current&&(r.current=e),!o&&r.current&&(r.current=null)},[e]),r.current?et(e,r.current):ie}function ni(e){(0,m.useEffect)(()=>{if(!pt)return;let t=e.map(r=>{let{sensor:o}=r;return o.setup==null?void 0:o.setup()});return()=>{for(let r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function ai(e,t){return(0,m.useMemo)(()=>e.reduce((r,o)=>{let{eventName:n,handler:a}=o;return r[n]=u=>{a(u,t)},r},{}),[e,t])}function Zn(e){return(0,m.useMemo)(()=>e?Al(e):null,[e])}var _n=[];function li(e,t){t===void 0&&(t=ze);let[r]=e,o=Zn(r?V(r):null),[n,a]=(0,m.useState)(_n);function u(){a(()=>e.length?e.map(i=>Vn(i)?o:new bt(t(i),i)):_n)}let s=rr({callback:u});return oe(()=>{s==null||s.disconnect(),u(),e.forEach(i=>s==null?void 0:s.observe(i))},[e]),n}function ii(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Ze(t)?t:e}function si(e){let{measure:t}=e,[r,o]=(0,m.useState)(null),n=(0,m.useCallback)(f=>{for(let{target:c}of f)if(Ze(c)){o(p=>{let x=t(c);return p?v(g({},p),{width:x.width,height:x.height}):x});break}},[t]),a=rr({callback:n}),u=(0,m.useCallback)(f=>{let c=ii(f);a==null||a.disconnect(),c&&(a==null||a.observe(c)),o(c?t(c):null)},[t,a]),[s,i]=mt(u);return(0,m.useMemo)(()=>({nodeRef:s,rect:r,setRef:i}),[r,s,i])}var ui=[{sensor:je,options:{}},{sensor:Jt,options:{}}],di={current:{}},Zt={draggable:{measure:En},droppable:{measure:En,strategy:yt.WhileDragging,frequency:Nr.Optimized},dragOverlay:{measure:ze}},He=class extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,o;return(r=(o=this.get(t))==null?void 0:o.node.current)!=null?r:void 0}},fi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new He,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zt,measureDroppableContainers:Qt,windowRect:null,measuringScheduled:!1},ci={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:\"\"},dispatch:Qt,draggableNodes:new Map,over:null,measureDroppableContainers:Qt},or=(0,m.createContext)(ci),Qn=(0,m.createContext)(fi);function pi(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new He}}}function mi(e,t){switch(t.type){case R.DragStart:return v(g({},e),{draggable:v(g({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case R.DragMove:return e.draggable.active==null?e:v(g({},e),{draggable:v(g({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case R.DragEnd:case R.DragCancel:return v(g({},e),{draggable:v(g({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case R.RegisterDroppable:{let{element:r}=t,{id:o}=r,n=new He(e.droppable.containers);return n.set(o,r),v(g({},e),{droppable:v(g({},e.droppable),{containers:n})})}case R.SetDroppableDisabled:{let{id:r,key:o,disabled:n}=t,a=e.droppable.containers.get(r);if(!a||o!==a.key)return e;let u=new He(e.droppable.containers);return u.set(r,v(g({},a),{disabled:n})),v(g({},e),{droppable:v(g({},e.droppable),{containers:u})})}case R.UnregisterDroppable:{let{id:r,key:o}=t,n=e.droppable.containers.get(r);if(!n||o!==n.key)return e;let a=new He(e.droppable.containers);return a.delete(r),v(g({},e),{droppable:v(g({},e.droppable),{containers:a})})}default:return e}}function xi(e){let{disabled:t}=e,{active:r,activatorEvent:o,draggableNodes:n}=(0,m.useContext)(or),a=Xt(o),u=Xt(r==null?void 0:r.id);return(0,m.useEffect)(()=>{if(!t&&!o&&a&&u!=null){if(!xt(a)||document.activeElement===a.target)return;let s=n.get(u);if(!s)return;let{activatorNode:i,node:f}=s;if(!i.current&&!f.current)return;requestAnimationFrame(()=>{for(let c of[i.current,f.current]){if(!c)continue;let p=Fn(c);if(p){p.focus();break}}})}},[o,t,n,u,a]),null}function gi(e,t){let n=t,{transform:r}=n,o=cr(n,[\"transform\"]);return e!=null&&e.length?e.reduce((a,u)=>u(g({transform:a},o)),r):r}function hi(e){return(0,m.useMemo)(()=>({draggable:g(g({},Zt.draggable),e==null?void 0:e.draggable),droppable:g(g({},Zt.droppable),e==null?void 0:e.droppable),dragOverlay:g(g({},Zt.dragOverlay),e==null?void 0:e.dragOverlay)}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function bi(e){let{activeNode:t,measure:r,initialRect:o,config:n=!0}=e,a=(0,m.useRef)(!1),{x:u,y:s}=typeof n==\"boolean\"?{x:n,y:n}:n;oe(()=>{if(!u&&!s||!t){a.current=!1;return}if(a.current||!o)return;let f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;let c=r(f),p=Hn(c,o);if(u||(p.x=0),s||(p.y=0),a.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){let x=jn(f);x&&x.scrollBy({top:p.y,left:p.x})}},[t,u,s,o,r])}var Jn=(0,m.createContext)(v(g({},ie),{scaleX:1,scaleY:1})),Ee;(function(e){e[e.Uninitialized=0]=\"Uninitialized\",e[e.Initializing=1]=\"Initializing\",e[e.Initialized=2]=\"Initialized\"})(Ee||(Ee={}));var _r=(0,m.memo)(function(t){var r,o,n,a;let Xr=t,{id:u,accessibility:s,autoScroll:i=!0,children:f,sensors:c=ui,collisionDetection:p=Tl,measuring:x,modifiers:h}=Xr,w=cr(Xr,[\"id\",\"accessibility\",\"autoScroll\",\"children\",\"sensors\",\"collisionDetection\",\"measuring\",\"modifiers\"]),b=(0,m.useReducer)(mi,void 0,pi),[y,O]=b,[T,C]=bl(),[I,E]=(0,m.useState)(Ee.Uninitialized),A=I===Ee.Initialized,{draggable:{active:D,nodes:F,translate:q},droppable:{containers:U}}=y,M=D!=null?F.get(D):null,ae=(0,m.useRef)({initial:null,translated:null}),le=(0,m.useMemo)(()=>{var $;return D!=null?{id:D,data:($=M==null?void 0:M.data)!=null?$:di,rect:ae}:null},[D,M]),se=(0,m.useRef)(null),[tt,Ct]=(0,m.useState)(null),[K,Ot]=(0,m.useState)(null),pe=Qe(w,Object.values(w)),rt=qe(\"DndDescribedBy\",u),Tt=(0,m.useMemo)(()=>U.getEnabled(),[U]),G=hi(x),{droppableRects:me,measureDroppableContainers:Ae,measuringScheduled:ot}=Zl(Tt,{dragging:A,dependencies:[q.x,q.y],config:G.droppable}),X=Kl(F,D),St=(0,m.useMemo)(()=>K?gt(K):null,[K]),ve=wa(),xe=Ql(X,G.draggable.measure);bi({activeNode:D!=null?F.get(D):null,config:ve.layoutShiftCompensation,initialRect:xe,measure:G.draggable.measure});let P=Nn(X,G.draggable.measure,xe),nt=Nn(X?X.parentElement:null),ue=(0,m.useRef)({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:me,draggableNodes:F,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=U.getNodeFor((r=ue.current.over)==null?void 0:r.id),ge=si({measure:G.dragOverlay.measure}),Ve=(o=ge.nodeRef.current)!=null?o:X,Ge=A?(n=ge.rect)!=null?n:P:null,Hr=!!(ge.nodeRef.current&&ge.rect),jr=ti(Hr?null:P),sr=Zn(Ve?V(Ve):null),ye=ri(A?$e!=null?$e:X:null),Ft=li(ye),Dt=gi(h,{transform:{x:q.x-jr.x,y:q.y-jr.y,scaleX:1,scaleY:1},activatorEvent:K,active:le,activeNodeRect:P,containerNodeRect:nt,draggingNodeRect:Ge,over:ue.current.over,overlayNodeRect:ge.rect,scrollableAncestors:ye,scrollableAncestorRects:Ft,windowRect:sr}),zr=St?_e(St,q):null,$r=oi(ye),ma=qn($r),xa=qn($r,[P]),Ye=_e(Dt,ma),Ke=Ge?Dl(Ge,Dt):null,at=le&&Ke?p({active:le,collisionRect:Ke,droppableRects:me,droppableContainers:Tt,pointerCoordinates:zr}):null,Vr=Wn(at,\"id\"),[we,Gr]=(0,m.useState)(null),ga=Hr?Dt:_e(Dt,xa),ha=Sl(ga,(a=we==null?void 0:we.rect)!=null?a:null,P),ur=(0,m.useRef)(null),Yr=(0,m.useCallback)(($,Z)=>{let{sensor:Q,options:Ce}=Z;if(se.current==null)return;let te=F.get(se.current);if(!te)return;let J=$.nativeEvent,de=new Q({active:se.current,activeNode:te,event:J,options:Ce,context:ue,onAbort(z){if(!F.get(z))return;let{onDragAbort:fe}=pe.current,he={id:z};fe==null||fe(he),T({type:\"onDragAbort\",event:he})},onPending(z,Oe,fe,he){if(!F.get(z))return;let{onDragPending:it}=pe.current,Te={id:z,constraint:Oe,initialCoordinates:fe,offset:he};it==null||it(Te),T({type:\"onDragPending\",event:Te})},onStart(z){let Oe=se.current;if(Oe==null)return;let fe=F.get(Oe);if(!fe)return;let{onDragStart:he}=pe.current,lt={activatorEvent:J,active:{id:Oe,data:fe.data,rect:ae}};(0,Ue.unstable_batchedUpdates)(()=>{he==null||he(lt),E(Ee.Initializing),O({type:R.DragStart,initialCoordinates:z,active:Oe}),T({type:\"onDragStart\",event:lt}),Ct(ur.current),Ot(J)})},onMove(z){O({type:R.DragMove,coordinates:z})},onEnd:Xe(R.DragEnd),onCancel:Xe(R.DragCancel)});ur.current=de;function Xe(z){return async function(){let{active:fe,collisions:he,over:lt,scrollAdjustedTranslate:it}=ue.current,Te=null;if(fe&&it){let{cancelDrop:st}=pe.current;Te={activatorEvent:J,active:fe,collisions:he,delta:it,over:lt},z===R.DragEnd&&typeof st==\"function\"&&await Promise.resolve(st(Te))&&(z=R.DragCancel)}se.current=null,(0,Ue.unstable_batchedUpdates)(()=>{O({type:z}),E(Ee.Uninitialized),Gr(null),Ct(null),Ot(null),ur.current=null;let st=z===R.DragEnd?\"onDragEnd\":\"onDragCancel\";if(Te){let dr=pe.current[st];dr==null||dr(Te),T({type:st,event:Te})}})}}},[F]),ba=(0,m.useCallback)(($,Z)=>(Q,Ce)=>{let te=Q.nativeEvent,J=F.get(Ce);if(se.current!==null||!J||te.dndKit||te.defaultPrevented)return;let de={active:J};$(Q,Z.options,de)===!0&&(te.dndKit={capturedBy:Z.sensor},se.current=Ce,Yr(Q,Z))},[F,Yr]),Kr=Xl(c,ba);ni(c),oe(()=>{P&&I===Ee.Initializing&&E(Ee.Initialized)},[P,I]),(0,m.useEffect)(()=>{let{onDragMove:$}=pe.current,{active:Z,activatorEvent:Q,collisions:Ce,over:te}=ue.current;if(!Z||!Q)return;let J={active:Z,activatorEvent:Q,collisions:Ce,delta:{x:Ye.x,y:Ye.y},over:te};(0,Ue.unstable_batchedUpdates)(()=>{$==null||$(J),T({type:\"onDragMove\",event:J})})},[Ye.x,Ye.y]),(0,m.useEffect)(()=>{let{active:$,activatorEvent:Z,collisions:Q,droppableContainers:Ce,scrollAdjustedTranslate:te}=ue.current;if(!$||se.current==null||!Z||!te)return;let{onDragOver:J}=pe.current,de=Ce.get(Vr),Xe=de&&de.rect.current?{id:de.id,rect:de.rect.current,data:de.data,disabled:de.disabled}:null,z={active:$,activatorEvent:Z,collisions:Q,delta:{x:te.x,y:te.y},over:Xe};(0,Ue.unstable_batchedUpdates)(()=>{Gr(Xe),J==null||J(z),T({type:\"onDragOver\",event:z})})},[Vr]),oe(()=>{ue.current={activatorEvent:K,active:le,activeNode:X,collisionRect:Ke,collisions:at,droppableRects:me,draggableNodes:F,draggingNode:Ve,draggingNodeRect:Ge,droppableContainers:U,over:we,scrollableAncestors:ye,scrollAdjustedTranslate:Ye},ae.current={initial:Ge,translated:Ke}},[le,X,at,Ke,F,Ve,Ge,me,U,we,ye,Ye]),Vl(v(g({},ve),{delta:q,draggingRect:Ke,pointerCoordinates:zr,scrollableAncestors:ye,scrollableAncestorRects:Ft}));let va=(0,m.useMemo)(()=>({active:le,activeNode:X,activeNodeRect:P,activatorEvent:K,collisions:at,containerNodeRect:nt,dragOverlay:ge,draggableNodes:F,droppableContainers:U,droppableRects:me,over:we,measureDroppableContainers:Ae,scrollableAncestors:ye,scrollableAncestorRects:Ft,measuringConfiguration:G,measuringScheduled:ot,windowRect:sr}),[le,X,P,K,at,nt,ge,F,U,me,we,Ae,ye,Ft,G,ot,sr]),ya=(0,m.useMemo)(()=>({activatorEvent:K,activators:Kr,active:le,activeNodeRect:P,ariaDescribedById:{draggable:rt},dispatch:O,draggableNodes:F,over:we,measureDroppableContainers:Ae}),[K,Kr,le,P,O,rt,F,we,Ae]);return m.default.createElement(Un.Provider,{value:C},m.default.createElement(or.Provider,{value:ya},m.default.createElement(Qn.Provider,{value:va},m.default.createElement(Jn.Provider,{value:ha},f)),m.default.createElement(xi,{disabled:(s==null?void 0:s.restoreFocus)===!1})),m.default.createElement(wl,v(g({},s),{hiddenTextDescribedById:rt})));function wa(){let $=(tt==null?void 0:tt.autoScrollEnabled)===!1,Z=typeof i==\"object\"?i.enabled===!1:i===!1,Q=A&&!$&&!Z;return typeof i==\"object\"?v(g({},i),{enabled:Q}):{enabled:Q}}}),vi=(0,m.createContext)(null),Rn=\"button\",yi=\"Draggable\";function ea(e){let{id:t,data:r,disabled:o=!1,attributes:n}=e,a=qe(yi),{activators:u,activatorEvent:s,active:i,activeNodeRect:f,ariaDescribedById:c,draggableNodes:p,over:x}=(0,m.useContext)(or),{role:h=Rn,roleDescription:w=\"draggable\",tabIndex:b=0}=n!=null?n:{},y=(i==null?void 0:i.id)===t,O=(0,m.useContext)(y?Jn:vi),[T,C]=mt(),[I,E]=mt(),A=ai(u,t),D=Qe(r);oe(()=>(p.set(t,{id:t,key:a,node:T,activatorNode:I,data:D}),()=>{let q=p.get(t);q&&q.key===a&&p.delete(t)}),[p,t]);let F=(0,m.useMemo)(()=>({role:h,tabIndex:b,\"aria-disabled\":o,\"aria-pressed\":y&&h===Rn?!0:void 0,\"aria-roledescription\":w,\"aria-describedby\":c.draggable}),[o,h,b,y,w,c.draggable]);return{active:i,activatorEvent:s,activeNodeRect:f,attributes:F,isDragging:y,listeners:o?void 0:A,node:T,over:x,setNodeRef:C,setActivatorNodeRef:E,transform:O}}function ta(){return(0,m.useContext)(Qn)}var wi=\"Droppable\",Ci={timeout:25};function ra(e){let{data:t,disabled:r=!1,id:o,resizeObserverConfig:n}=e,a=qe(wi),{active:u,dispatch:s,over:i,measureDroppableContainers:f}=(0,m.useContext)(or),c=(0,m.useRef)({disabled:r}),p=(0,m.useRef)(!1),x=(0,m.useRef)(null),h=(0,m.useRef)(null),{disabled:w,updateMeasurementsFor:b,timeout:y}=g(g({},Ci),n),O=Qe(b!=null?b:o),T=(0,m.useCallback)(()=>{if(!p.current){p.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{f(Array.isArray(O.current)?O.current:[O.current]),h.current=null},y)},[y]),C=rr({callback:T,disabled:w||!u}),I=(0,m.useCallback)((F,q)=>{C&&(q&&(C.unobserve(q),p.current=!1),F&&C.observe(F))},[C]),[E,A]=mt(I),D=Qe(t);return(0,m.useEffect)(()=>{!C||!E.current||(C.disconnect(),p.current=!1,C.observe(E.current))},[E,C]),(0,m.useEffect)(()=>(s({type:R.RegisterDroppable,element:{id:o,key:a,disabled:r,node:E,rect:x,data:D}}),()=>s({type:R.UnregisterDroppable,key:a,id:o})),[o]),(0,m.useEffect)(()=>{r!==c.current.disabled&&(s({type:R.SetDroppableDisabled,id:o,key:a,disabled:r}),c.current.disabled=r)},[o,a,r,s]),{active:u,rect:x,isOver:(i==null?void 0:i.id)===o,node:E,over:i,setNodeRef:A}}var Rr=e=>{let{transform:t}=e;return v(g({},t),{x:0})};var B=_(Y());function be(e,t,r){let o=e.slice();return o.splice(r<0?o.length+r:r,0,o.splice(t,1)[0]),o}function Oi(e,t){return e.reduce((r,o,n)=>{let a=t.get(o);return a&&(r[n]=a),r},Array(e.length))}function nr(e){return e!==null&&e>=0}function Ti(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Si(e){return typeof e==\"boolean\"?{draggable:e,droppable:e}:e}var oa=e=>{let{rects:t,activeIndex:r,overIndex:o,index:n}=e,a=be(t,o,r),u=t[n],s=a[n];return!s||!u?null:{x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height}};var ar={scaleX:1,scaleY:1},Ur=e=>{var t;let{activeIndex:r,activeNodeRect:o,index:n,rects:a,overIndex:u}=e,s=(t=a[r])!=null?t:o;if(!s)return null;if(n===r){let f=a[u];return f?g({x:0,y:r<u?f.top+f.height-(s.top+s.height):f.top-s.top},ar):null}let i=Fi(a,n,r);return n>r&&n<=u?g({x:0,y:-s.height-i},ar):n<r&&n>=u?g({x:0,y:s.height+i},ar):g({x:0,y:0},ar)};function Fi(e,t,r){let o=e[t],n=e[t-1],a=e[t+1];return o?r<t?n?o.top-(n.top+n.height):a?a.top-(o.top+o.height):0:a?a.top-(o.top+o.height):n?o.top-(n.top+n.height):0:0}var na=\"Sortable\",aa=B.default.createContext({activeIndex:-1,containerId:na,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oa,disabled:{draggable:!1,droppable:!1}});function Wr(e){let{children:t,id:r,items:o,strategy:n=oa,disabled:a=!1}=e,{active:u,dragOverlay:s,droppableRects:i,over:f,measureDroppableContainers:c}=ta(),p=qe(na,r),x=s.rect!==null,h=(0,B.useMemo)(()=>o.map(A=>typeof A==\"object\"&&\"id\"in A?A.id:A),[o]),w=u!=null,b=u?h.indexOf(u.id):-1,y=f?h.indexOf(f.id):-1,O=(0,B.useRef)(h),T=!Ti(h,O.current),C=y!==-1&&b===-1||T,I=Si(a);oe(()=>{T&&w&&c(h)},[T,h,w,c]),(0,B.useEffect)(()=>{O.current=h},[h]);let E=(0,B.useMemo)(()=>({activeIndex:b,containerId:p,disabled:I,disableTransforms:C,items:h,overIndex:y,useDragOverlay:x,sortedRects:Oi(h,i),strategy:n}),[b,p,I.draggable,I.droppable,C,h,y,i,x,n]);return B.default.createElement(aa.Provider,{value:E},t)}var Di=e=>{let{id:t,items:r,activeIndex:o,overIndex:n}=e;return be(r,o,n).indexOf(t)},ki=e=>{let{containerId:t,isSorting:r,wasDragging:o,index:n,items:a,newIndex:u,previousItems:s,previousContainerId:i,transition:f}=e;return!f||!o||s!==a&&n===u?!1:r?!0:u!==n&&t===i},Ii={duration:200,easing:\"ease\"},la=\"transform\",Ei=Ie.Transition.toString({property:la,duration:0,easing:\"linear\"}),Ai={roleDescription:\"sortable\"};function Pi(e){let{disabled:t,index:r,node:o,rect:n}=e,[a,u]=(0,B.useState)(null),s=(0,B.useRef)(r);return oe(()=>{if(!t&&r!==s.current&&o.current){let i=n.current;if(i){let f=ze(o.current,{ignoreTransform:!0}),c={x:i.left-f.left,y:i.top-f.top,scaleX:i.width/f.width,scaleY:i.height/f.height};(c.x||c.y)&&u(c)}}r!==s.current&&(s.current=r)},[t,r,o,n]),(0,B.useEffect)(()=>{a&&u(null)},[a]),a}function ia(e){let{animateLayoutChanges:t=ki,attributes:r,disabled:o,data:n,getNewIndex:a=Di,id:u,strategy:s,resizeObserverConfig:i,transition:f=Ii}=e,{items:c,containerId:p,activeIndex:x,disabled:h,disableTransforms:w,sortedRects:b,overIndex:y,useDragOverlay:O,strategy:T}=(0,B.useContext)(aa),C=Mi(o,h),I=c.indexOf(u),E=(0,B.useMemo)(()=>g({sortable:{containerId:p,index:I,items:c}},n),[p,n,I,c]),A=(0,B.useMemo)(()=>c.slice(c.indexOf(u)),[c,u]),{rect:D,node:F,isOver:q,setNodeRef:U}=ra({id:u,data:E,disabled:C.droppable,resizeObserverConfig:g({updateMeasurementsFor:A},i)}),{active:M,activatorEvent:ae,activeNodeRect:le,attributes:se,setNodeRef:tt,listeners:Ct,isDragging:K,over:Ot,setActivatorNodeRef:pe,transform:rt}=ea({id:u,data:E,attributes:g(g({},Ai),r),disabled:C.draggable}),Tt=On(U,tt),G=!!M,me=G&&!w&&nr(x)&&nr(y),Ae=!O&&K,ot=Ae&&me?rt:null,X=s!=null?s:T,St=me?ot!=null?ot:X({rects:b,activeNodeRect:le,activeIndex:x,overIndex:y,index:I}):null,ve=nr(x)&&nr(y)?a({id:u,items:c,activeIndex:x,overIndex:y}):I,xe=M==null?void 0:M.id,P=(0,B.useRef)({activeId:xe,items:c,newIndex:ve,containerId:p}),nt=c!==P.current.items,ue=t({active:M,containerId:p,isDragging:K,isSorting:G,id:u,index:I,items:c,newIndex:P.current.newIndex,previousItems:P.current.items,previousContainerId:P.current.containerId,transition:f,wasDragging:P.current.activeId!=null}),$e=Pi({disabled:!ue,index:I,node:F,rect:D});return(0,B.useEffect)(()=>{G&&P.current.newIndex!==ve&&(P.current.newIndex=ve),p!==P.current.containerId&&(P.current.containerId=p),c!==P.current.items&&(P.current.items=c)},[G,ve,p,c]),(0,B.useEffect)(()=>{if(xe===P.current.activeId)return;if(xe!=null&&P.current.activeId==null){P.current.activeId=xe;return}let Ve=setTimeout(()=>{P.current.activeId=xe},50);return()=>clearTimeout(Ve)},[xe]),{active:M,activeIndex:x,attributes:se,data:E,rect:D,index:I,newIndex:ve,items:c,isOver:q,isSorting:G,isDragging:K,listeners:Ct,node:F,overIndex:y,over:Ot,setNodeRef:Tt,setActivatorNodeRef:pe,setDroppableNodeRef:U,setDraggableNodeRef:tt,transform:$e!=null?$e:St,transition:ge()};function ge(){if($e||nt&&P.current.newIndex===I)return Ei;if(!(Ae&&!xt(ae)||!f)&&(G||ue))return Ie.Transition.toString(v(g({},f),{property:la}))}}function Mi(e,t){var r,o;return typeof e==\"boolean\"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}var nd=[k.Down,k.Right,k.Up,k.Left];if(typeof window<\"u\"){let e=document.createElement(\"style\");e.textContent=\".container {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n width: 100vw;\\n height: 100vh;\\n}\\n.qrcodeCard {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: center;\\n}\\n.qrcodeCard img {\\n width: 150px;\\n height: 150px;\\n cursor: pointer;\\n}\\n.qrcodeCard .btns {\\n display: flex;\\n justify-content: space-around;\\n margin-top: 24px;\\n}\\n.dynamic-delete-button {\\n position: relative;\\n top: 2px;\\n margin: 0 8px;\\n color: #555;\\n font-size: 18px;\\n cursor: pointer;\\n transition: all 0.3s;\\n}\\n.dynamic-delete-button:hover {\\n color: #777;\\n}\\n.dynamic-delete-button[disabled] {\\n cursor: not-allowed;\\n opacity: 0.5;\\n}\\n.sites-table .ant-table-tbody > tr > td {\\n padding: 8px 16px;\\n}\\n\",document.head.appendChild(e)}var sa=\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAICAgICAQICAgIDAgIDAwYEAwMDAwcFBQQGCAcJCAgHCAgJCg0LCQoMCggICw8LDA0ODg8OCQsQERAOEQ0ODg7/2wBDAQIDAwMDAwcEBAcOCQgJDg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg7/wgARCAE8ATwDAREAAhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAABQYABAIDBwEJCP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAPv4QhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCGsoFU8IQhD0tG80FgtEKxQNRkXDMpmZfNpSMDcVDQQhCEMi6XTIgMEEWzI9IQ8MRjGQCh4PngtCKUjaN4QE43j6XRQKwZFIEGw9IQxMhyHcskARycDjCbTwhrF4KnRCsEzSUgOIxsKQ6DaI4MOgGg58XxsEQ2B0h4ZFUXRyOpF8gBOVG8cwQVS2FhPKZ1MLGAqi0aSoYC8Nw5iUKoyEFMNDeJo1B0DGkIlwRAudSL5ACcsLQZObgcMHRwQUTpZZN4KEYrjMLwCD4SFwGF8JgAuDaKA0mk50UxoH0UwmdSL5ACcrLZeOVAINnVimUB5BBbKQjBU6gQBAI2hw1A4UxYGkchPGcGnLiiNx00WQodSL5ACcrLYaObgcLnRgUDzo5SAZgBDadRLQiA4bS+JwpgMrDsMwljSaDnhTGgfRSCZ1IvkAJyosDoCCoWguJxTOpF0DmIugo6EbTlwROjmIiCEHBlDJpOejQMAFNISLYhhc6kXyAI5OCBjNp4emoXQmdFKhdK4tFUMhYQQoOJTKolDOGDEhzY2h8hD0pi4OZ1EvkBggCyZEPTwxMRlGUWzQYFQEgsNgkZxtKBfF0rgUuDqLIJNh4Q9MT0cx5LRDWUCmDikXCkDz0NBUWheChVOaAQ3mY8DuXw8UxFEIvHSxhNhrBZgFCA0JDAbiEIaxXF0Oi+KxiHw2AjaNYHOTAAtFsJlwJHRBgFk5iLA2HSxqKghFEfC0IxfH4tkIeFcDlIJgoAlYqmstlMOBQRBaGcPmAsi0NQ7C6c6F8vj8dEBRzUqj0NgmhA6WXiHhVForDQXweJgvmQZChzsEjGbzwtDQaRbAIDLwJF01Bk6CPYrimGA+MgOLo0FghVFoVi2PATA5ycXx6HwrHIRHDZ0UKCGfk8/aAUMjmgFChTNQ1DiNoIF0sG4Ih8Mlg9IUBNF03h8aiockBR0YZxVOXiyO510rn5DPnEdwPrGBxbK5vF8rDYHBwCAqiQBxpOhDGbCEKgpHOxUGE6oZHPwSOQYOZiWXjpB0c+UQiC+GD6oHIjs5fAInggYB7GUtmYnCmP4yBAKGZAac+Ofi+FDpRmbS4XzE5WKI1HRT8bCcfvA+cZ+0wOfJA+uYfDYCE0zD4YN4xm0EjoUy8OJZIVRbF0VBaCw2jiUCsMQrHNCiHD5Gn1dL4GD46HzfOjHeguagSaCyNhrKIyDUMhqLodNpCFMVBTAYujKdHIahqB5yAQTSfJY+shsLZ086afOUJH6cB5vGMoi2XSuL4WGwPDeMhZIQhWE8VwUKgUG8vhkaTQIApAU+c53s/RAYG4JHxmPqAdjKgPGYuCKJhiaAWQJj8dGGQ2kIYA8UxHBwYMimNA5lYFG0FiCfJs/Yp+rDn583DrR+8jqxvFY9DgKEM2l8WACYhw6mdLLpDQCjM2AkEi0XS4Q3goqhYsGAKPw4cFLR+nTvYYG4yNhSFAEA0Oj4Czm5QGU6idELZAYJRBtLwuHPhiN4pGYeCYIF0ohYegSaQ6bAOKgTHQXzlANIOJ1ACnJzadJH8MmZCkKQtBIKCSLI/B0ClA0jSbgCK5VOmFosjEeigcvMx7BwiBADGZ04ggjGPofLZ6QoCaADwFCYUxvD54CRdDYeNYvnh0o2F0ZgYJYIMjEAgULAYHnShxFoolsbRtN5AaJx6bRSA54bzaQGi8Fg0CgeMAwkGAMCUKAbCArAYMF4rAcLjaCRJKx086gXiFQWigQpGshD0IGsVw4XxIA4WBwcGYCnPQKEAyVAudFN56JAhHhqK4eOoHRC4QEHNRYNxmeEMTSMw8mgsCocxBZdPTaZlEDmgJDsaS+PwNCYqHOSgUy6dEOmDKbiAE5OUhqMzE9PBULI/AkKi0c0KQYGEXgCeFYxLQfPBgOjEN4ogUyFA0jUdKHUskAJystDcLZQLwxiqDxtFcaS+LZXMQaKxZN4qFQ3HpmHhqLpkCg+M4vFIsjWNJvIATlhaChzACBo6eDSgPpSDodNRpFg5ULR0EIHNDEZgebyyLpsG8YRnGQzMTAsFk9IATlZbLxysBBs6qUygdCNQWDgJFwDCwK4bLIlhk6gazeDzngbOkDCDD0YCAE3h42kAJywtDAIIICo/AMHjyBS6NILEY0l8Ai+ajANHVC8bBcEkeg8UBMKo6m0BhsdSyQAnKTMdioVzeXBLK5000CuXg8UhcAYXAgICxoHA9CRrFMYQGKIJNocN4yD2MhuIAzlIBDJtIQ1gUOnVwgLItF4vCMBB9BwnG4qBwaxqN4rCsKYFPRkDwACJ0gdCwQoiaL5D0hDwgwDkXSsLJXLItGI0lYWDUeF8bw+ZgcTwOYGYfDAuFMaxpN5DE0GkhCEIQ2lgyPDSYmRpIbzE0nhDIsG0hgVjAhDabTSYG43npCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIf/8QAJRAAAwEBAAIBBAMBAQEAAAAAAwQFAgEAFRAGBwgUERITFiBQ/9oACAEBAAECAP8Ax/P/AMTWyudpez9n7P2fs80xu9Y64I/O+EPqj7PNIbWmdUBviL3RGcN9Y297P2fs/Z+z9nikFnPfhwtOn2xyr7T2ntO1c2ZtTTO3J7GD6YpOtWPcAszaDLLVNCqgydl+qpTI49W5Y9p7T2ntO1QWZNBbXxS7Y0sqGT6r1XJJZLCsjQA6nLrsOZpUzmHxPuImiBpKJ9ns0aTtCSYu3/EUMSPU+q5JPKICDpHvxT8p8kC5wz3sgPfxVFM5Mx/gQVEGu71+qXRSRO6PVZwym+31kEfhvD5kBNsj/KSzZ8URwvEfml5S8k+PHoUPZzqSJ6nk7xE3aGWniPMpbyo8lxBHhWmgeuXW/lzcnw3hvJfazTdPNSS+MtLyH4j80vKfknyn5T+Jfkzyn5O8Foxl3X3Wyx+ohYnHTNxUI521D5fc23E0bw3k3y3455nyJ4Dyj5D8R+aXlPyT48ChO9ZOnIAqcm+JhbnbB1ZudLHM8c1QeW8RQNig4zSNwU6Omzg3kvlZVubmXJQwKl5D8R+aflTskvPDo+tAh5VLM7N6bwifFqGVOTDUCUiRfE+sdrLFDOnCkKJUsH7IMYZJ/JqybG6BYXiPzS5Yyq0Gv7X2vKpa7LUjK5SUQONunPzSVM7lDUbv7PH3emDJ4Zxag/p/xF/Ff2vteVmKuzwcI/LYqkzUfkz13rfXdnYkzJul2QjZITvG3BU8VzNxO7GNXSjKHDN0pbWBvSeSPWeu9d63ssEiSitj41gqeph1MiyqbHS4MmTenddwqpRDRPw+XAsxnQ0AHDhtKoo1iYxNawt6vUwwBBFOLO1hLQf/ACTyj0exapbIXBkGtvHOpxbFYNRXi40BzgB/bQqzKGiU8Vs8ZlVZlITDbVKolXn0GmHnpTimvnvSFYwOdhNyaSX2eQeNfraPPpH3USwghMxFJIoId5Koip1ar729pmkOpsVXX2VdymtboBjCS58mM5QWeV7/AFa6+/qtgic86tYitMFnm/1FmVWm2T8bn/3xWdcJ5nCSshAK9bGUV5CU8YDzkJ4MfBiPOHMhlLXNUe2DLeSVU16Pbu+mn+Sk2122efmWq8qo4vUGHOEzprqIpodBp9T/AAw3iovTV0IXOfDPHx70GinWVYo9r+Jbkl4zVqVW88hLzFao/uF9+/uz9Ufjb+QYGm2jIYk9E4RUqpVcIYMCgm/zB5uJuB9+T9pFpuEpSH5rD7NAIUpYWt2G9lSUiIDN+RH5P/b38R/vL9CfYD7FaY+iPvMm0QreXc8NPdnuBpZq6JXXECUvg67Y9fDfa2nQlVlaSdKYCfEFgvBsp5Xk4n7/ADP+7f4i/Zl/dL8SJAfrL6ZBqP8AUS9UZqWDeAMrSE8KghUdKsqoJnc7a3yYbk1iRQndGm9P2sJwyjORVZb6yzwrn5B/U/03o1rTUtMET85fov8AGuiDAmzn2r1VYai7QwvJuIjF5tNREWfj+D8fMfrae+yHUmWAqpqipCuAKP8An7ucXa/unmBhXz8+af4ny8yjopoBhuRCLAcba1tF1WyrbnuB7z/wfNFbYnDm8nhWbxVScX25inNNCZk/l39vfxl+uupIzk/D/Uf3x+5P24+mU1HJgAJbOpTmGCMBk9dy0m/IrTnxa+e+HXopOJDngAXOBzMgMeh1rIHJ31h9ufqX6P8Atz+U0j6l+ufvZ96/yT/Gz7LSdzNN6Y4sUVB9pzafDKuIkHjc9mAdPvwQhXgtEXJJZmG8UBpQR9UDGHpdzT+HPqn6V+uPwaf/ABRl/h79ufxczFSRWZ0cSromaRK3WZnFEqiDwxDmow0lc/DfXSpOKtdLTaOab4905VyKi/RbXMTrk+guZzqyoZHYzqJmZ51uWeP44rgMXCGLWXxT0I8pJIefhjL4N6SeJSq1xuyTl4VEogvpPnywi8sjybkqya4R77W09meVF2qzvI02xTnJLlTBUpaKPgS878M7fZ7jo23XTL9QexX7Vbo6cQqZrkrNvIdnlM8iyIjrjjnU+TdlefwXDTpFuwi7Cyrx5e5Nog38N4bVVRYScmai8h4lev8AXNI7WSS4gyDAUlhtc3PGRupX7TTolovu4wvJ5JNH2jOcFYepuPKNfT5Uu/B+tF4/ultn/b/b/bJQjamkkIS2AUdgJ+zp6e4KhRrPUP2Vmx7NiSBRTo9LWVzMZpbf52ajDTUz8PErPfv5Y/2/3/36xx6U+HWh55Ycfew5hr+uGe1z0SE8T8Sw1mRwXdkBq3xlbSmsJ8jYm4Fz4p+V+IJAk9meu5MLIdSlcwclIDNkTaeU0kuIvg6Loe58AQFDb0c6pOh/tU0FBmS1PAtMLJYX78U/KfkjOzM1vdq1hnq5n+b4XEsTU00D/nuzGmTnTQYmMiyPgP4HlEq9nNvdUhZS+5rEH/nl4c5EGfin5S8k+US0m/3Zjc4tPyd4AO5yCvAdW0CpivoPY+KOX+JLiknmKSzTzEV2gmCOgkLH6vU+Ljxn5p+U/JPlLlPP9ZmZnKfk7xbemkjc202eyd91MiyDrdFncYaSbMlaVUVOrKkzJvFztLUgGOY1FR4Wvil5S8k+NrPyvSoSU1qnJ3gsn4i4Buh42IGO8cUKPnnUpQZvSbHux4MUpfrLFejWSrJ2D1dlmZW58U/KnZTA2CY/XEPZ6jEvqIXUDDSazoyTmeNgFSUWFoQNJukaS3QDkC7dGuewR5Yo2x0Jxp2Q8+KObAQ7FQ9j7D2G6BtxwTMGC9PKJNg56Z18Tw1wf16bnUiKKKInRcQb235pYac6ZuQdScSQdfvwyKhK1C5E9L6X0nYmIU6UqL+DBbngnmRZjrRFUHZpYXofQKxkURi7hxRyRqB/zo/p5CPqa3FDEnogz8dzpf8AS/R/R/R/R/R4lhfPPO86Hi/Q9U4pkOgdS/R/R4ngXx3HVf0f0eJYW/y6rxLAOc/+T//EAD0QAAICAQMCAgkCBQEGBwAAAAECAAMRBBIhBTEGEwcQIiMkQVFScRQyCCBCYYFiM1BykbLRJVNzgqGiwv/aAAgBAQADPwD+Qf7lABipnmL90T74n3xPvi/fE++J90V/nBjvFz3gccTI9QQHJirnmL9win+oRXHeALmICfaiv85uEwIEzFPzgwYqkjdE++J98X7hF+4RfuEX74pz7UDjvMj1lK2jV2MA0sNh9qWkZ3GW/cZb9xlv3GWgdzLBZgtGsIBaHyMywXEZhIEATvBsPMKI5Bjq7ANLT2Yx9+C0a2vvGFBliWNzHawDdN9Q5ipSeZsdhuhezvCNOTmMljYaWsT7Ut+plv3GW/cZb9xlw+Zj7+WjW/Obq/WRU8Y6lxHusjGuGGExhWcR6rTGF4ENmljG3OIaq4awRCcjML0NiO95h8omGu+EgCb9KYQ7EQ16qBaO8IrYZjPe3MZrYf0ZjPewj2w7O0Pq4PEZEaPVqSIdwmafX7p5nVtAbOZXXpsmVIx5Ep+olT/MSuzT5ihyQJjWCA6cZiRfLOIeSIa3OTPNXEO/diLXURA2omMRV0h5ilmxNt+YfKxmNdWYwvmLRPgz+IDqz+YvlCV1VSlWPIlJ+YlTnGYjUGAaoz3onufVwZ7p58Y359RTSHB+UcWtzH+6O1wG6F9JM7p8ZBXpgYofG6B07xBW0QOcGeZbN2nJx8o/OBHFxJENCQtSQDLLWbvLd2dssSBasGIXMzcJ8GfxPjD+ZimFKG5jC1vaj7/3RnsXmF9JPfme+nufVwZ7p58W3q+Fb8T3rww+eJ8H/ifunxkb9HxLFuMIQjMY1Ngx2uOYTesD6fGIhydsrr3cCYsIEax4uzJWVITwJUiGbNwBhe88zc4nwZ/E+MP5nw09y0PnNPbE96s+DP8Awz3899Pc+v3Tz4tvzOYX0bcRmub2Y/2x1tHswpo5jdM6yb9LOWOI9bECNYhBmCTNmqE9wIErYzFrAGefbAFzieXScDtGrLR2yMx78yw3Z2xkI4m3SET4w/mZoheo8RzY3Ebd+0xksHEKaMz35nvp7n1+6eY1bQC2V2abBlTk8CVZ7CVI3YSuvTEQGxpnWCAacZlbAxXcnERKzkRfam3VQCkQGh8Q/q2mXERaIj1sJlHMP6kwWAZErVclJXX8oF0zTGrP5i+UORK7aj2lTEnAlOewlVbdhETTmBtUZ70T3PrJqeMNQ5jU3QhMZ9ePnCayAY9tpjG8GGvSwi0jMVk5MCocTzCYK2zAh25i2aU8wNqmnIhr08LORPM07GfEHj5xUrGZXWmAYrEjdPM0zRk1LGNXDtxn1kdjGesjMa3Uw7hMU+vfWY1ljkLLRYeJaBLZb9JbLCOxjl+RCjjiEUERltYwoCMxrYyAsYEU8zbd3gOnILQWXzOIX08fzoxohFhOJ+nRhCXIDQvd3nm6SM7khZaGOAZcPkZb9JbLvoZaR2MfzORDXjiba/WCDFfPEr5O2VpngSrfjAlRTtKkzwJSD8pTnuJWe0XyYh3YM32nEJr5E8uhoQ7CEGMEPMJsgQDmVmrlpW7dxFsrilDgRl34jrecwV3DJiPWBmV3DOIh/pErUH2ZUhPAlLuRK3XsJWiHgSpHifKe7/l90YQGxLPPMbyJYC2Jd5h5Mu39zHU8mZoPMZrDzAX5i+TC1D4EIufiEtGcdo4/pMsq+REtq+ZjC4ZaB6hkwPVEKNmIHcieXf3hV1BaBkGWitXnMVKm5myxsNM38vFdO8zSxBjLeRmF7AMzdV/JgQAERbcwb84mKyIHzxEBPErWCrIEdzjMOzM8i6Bl27pXdpzEYtxPf9ojJyJWU/bEVD7MCbsR6ruIUIBMHkfugCsN0NrtzM2E5jK4wZZkDJjHTRlpbmWW2NzLUtBlvAJMZ9LHOoJjC4ZmKf5AqmbGbmeZZiB0girW0WpmEDOQDDqGhLZxBXpjDXe+IaruTN1eN0/UzZlsRKnxKzTECHE84tOCwEOmu+mIRURmWW5IMcucws8LuJ2mzSRiGENlxyINucQVvB5OILLO0FR7Tanr2qZgMMw2WGe9zAKoCJil43nvHfUQtgkRESKtLQeY+IRcZZZYBGKjImzTNPIvcs2FHJM8NaX+IhOgrovO8CLmi/rg3GwXZ/2qp86R2PG49x9DR1TplGs0Wor1mjvrWym+lwyWIwyrKw4IIIOYc8iKunaEXPtlhYxnryRNmeJmyBecRa8CB6MQuCcQUuZXXxmVgkboH+cW2ALkTA9ZNZjbmgrY5ldZ7iKxwGgdJmh5794BqIu0QJSYAjjdBa74MLXzdauRFGmBxMUPPRh4K6pqdH1DxCnUup1Eh9D0pP1NqkdwSDsU/wBmYTwD429IbeIvBXQeoeH9TqWLdRq1IrWq9/8AzVVGOxj/AFckHv3zm/0c9Wo8J+ML7NX4F1FmKruXfpTk/vUdzUTyyDt3HzB0l/SaNbo769VpL6ltouqcMliMMqykcEEEEERXyoM/UMx7zyyTtgprIIi7jEF0UpgQs8wgzFaqEZKiWVFpYbTzLHIhWsZg2fyDaYih4ELbWj+ccNGe4DM9z3gNJGYbnbEsF5OJYAIyaU/iNvcZMNlhhstyFzCrqcTTdP6LfrNZeml0mnqa2+61gqVooJZiT2AAJnWfHvVtf4V8Bau7pHglSarNVVmvU9U7gknulR+SdyOW+g8eeMtBR1fxFangrolwD1fqqTZrLVPIIpyNoP1dgf7Gein0ZXp4W8NdX6t4m8aIwPUbrtTUNLoR9hVKwTYfpu9n5zXelPxGOsdZFvTfAmjtxqtSOH1rDvTUf+p/lOm9C8J6bp2gSrp/Sen6VKaKwdqUU1rtVeewVQJ4K9Ifijr3TPDPVf1mq6VdstDDaL07edV99e7K5/7qTWaxkypk4xCwbEdXaFLJ7QBaV7O8qRe4iNxuiXVGLtcwHVxVpBi1DvA/zmV9ZFbSzc0sdmjhicGeXcIBph7UNpwDPM7iVp3ErXgTNDYjF3OIVu5iAjMqrQciX9H8D9M9GXRtSab+sV/q+sOh5/SqxFdX4d1JP9q8dmnTdf04elfxTpE1QS8p4d0lyZUMhw2qI7EhgVT6FSZU9Vg3cEYO0kH/AJieZ/EvbqT1p7fR3a51dpsuLa0sWydOSe+Sf9qecf3mi6N4c0fR+j6Ovp/TNJUKtNpqF2pWo7ACabxr6NOteGOpW31aLqWmNFtmntKOueQQR9CBweD2IIJB8VegX+KX28jqfRdZtuVSVr12nb/82IQR9CfqJpuqeF+ndY6df5+g12mr1Oms7b63UMp/5EQscFottPMTa0xa0KHvHXsZay9zLFfljMpgtPOqMLarIHzhTTSwOY5cZnu/XuUwWE8RAG9mKqtgRqbeIwwpMFuMmKKMiFMxzbiedR2gKOdsFFrcdjPJc8wqmN01fij+NHxed5sNWsr6fpq88KKkWvA/LBj+TNN4Z9H/AEXw9oMJo+m6GrS1BRjIRQufycZMLg+3DdaeZ5xEDU5KSjp3jTwV4ppqxZrtLfotSQPnSwdP8kWvL+rfwhdFS5za/T9Tfo8nvtV96j/CuBHV49aRrlMdmPEcAw74DTBUpIhrt7zzgATKzgxPLxBa3Amwzah/kAUxU3CC4mDYxhpumCOYHoEFomLYBVAaXh32YlgtMtEv6L/GZ4vuvTc1XXP1e36qxFo/+CINVoKdVQ4sourWytx2ZSMgx/qYxsEAAzKv0v8AiaUaD0d9GRwdSbNZqXX7VArRf+ZLS2r+Eim+wYTWdX1N1X91G2v/AKq2hNZOI6ORiGw4Igas8TYjcQ0W9psrIm9DHFuYa25MCJ3gZsbolqxCn8uUMdt0atyTAKmnmXGOpzDTUATFPBaJY8BSB62nmu/EJJ9mNXu9majp3pD6T4701HwHU6V0escDtqKwdhP/ABV8D/0jKPGnoQo8OazUA+JegVCiyt29u/TDiq0fUAYQ/QgfcIwsxiHvtn6VOZpen9K1Or1mpTTaSio2XXWuFStFBLMSewABJmq9M/8AFFqtf0am7VaIunTeg6YD23rDEKcfV3Zm/wDcBNN4N9EHhrwpQwcdO0SVWuOz2n2rH/y5YxX0/aDk4i02SsjES2huJhmIEet2EawQqpOI1bx1jq3eYCgtBag5m5f5AYrq0O18CWFmG0xhZlli1pCVO2W+ZHDDM2VcmIMjMrscyqxIjA8Tonj30bdW8K9doL6DW17d6Ab6XHKWIfkykAiekT+Hn08U2h7endQ0thfpvVaUzp9fV9RnhgRwyHt2M8D+JNHptF43x4O67gK9zBrNHe3zYOBmvP0fgfcZ4L1/TF1PT/FnRtdQV3CyjqdLjH+Gnos8HaCx+p+Nem3XqONJoLxqryfkNlWSM/VsCdd9JNV/h3oNN3QPCBf26i2dRrsHjzSOAv8AoBI+pM1nRNXV6QfGOhbT9UKf+DaC8YegMCDdYp7MQcKD2GTC165g8gRPLMzYcRq35iCrBaVvW3Ii+e0Umb6TgQqWO2bSZiMLBHYCZp9e0GBGIzBaMZi3IYrEkrEqRjibLiILRyJWgyRK6TAUIDR3JwZaGOcwoOTEKcmVB+4nhTx/4Nv6B4s6Pp+tdLtO7y7hzW3IDo4wyNyfaUg8zVfrr9b6OvFNL6Y8p07rmVZPqBdWp3f2yg/M9OeivNdXhKjXJ99HWdIF/wDvYpnpY6peB1duleHKP6zfrPOcD+wqDA/5YTwX4A11HVLxZ4p8RVkMmt1tYFdLfWqrkL+SWI+RlgP7TDQ4JE8urGY1sLgkieTUTGqYgNHcEbobLDzHZxC+n5EC0tkTZawE3EgRnsBxCgHE21+sipsR1taMtnJissTYYgreBtWcGZqHzhFJxLRaY5bmK8U15AjVA4lqsZYpjGxQTN+lzH3kCG1+REZOViYPswUoxAhrtIzBYYp00HkWRmveWEQq/MXeuYn6aDyXm+9oXccQYU7YK6+02r68oYuWMNVp2wqeTAKG9qcuN08zU8njMQ0gZldlUqYkxKQYK7duYllQ5lVqSshjEQnE26oTdpxFJiKYuyIqGA1PG89o9bz4fkwNQ3MD3mVmntEqc4nl3YzC9HeGyhoW1ZyPnK0xkSutB2ibcCZHr2o09phDa5j1KTLFrYCW2WMY4uzzHqUAw7CJlTCyNG87OYyiHZBtIzBbnEJ1IMCaaAPibzB5PJi1o0Wx2BMFxzBXyJ5CYz2hcEZh87MIpxGfdGF8ygzFt00StyYunzzBvxunm45m5PWTW0ZrjPrB5DYjMx4jN/TCD+2Onylv0Mtlqo3Bji7tLGHAMtFWcGWV5jvbNgDQVptzGteFBmCqk8wDeA0zectK9nLSvyjzAzMFj33R2GdssC42x9hysNFhyIKDgtK/JI3xGRsNCXbBlhvjttmafWNhiI7ZlSEgNK2XGZS2ZT9RKfqJT9RKT9JVbFepsCe/PswImSJXVQZWC0TzTESmYt7xCMkytKe4g8pgHhd25h3d43YGWPXH3kmBrhkRBR2lQOJW1JgQNiGu04jgY3GOwOWhsMLuOIUA4m2r17amjJa+DLWc4aWkdzLvqZd9TLvqZaB3MsV+TGZwMxX0/Mr82KlJIhrrbmMbH5h3HmO64zHJzzHo+ccKRujWAjMLE+rLyvyOYgc4g88YhGj4j+eY3kczKNC1jcRlXsYRBviELE2CAL68VPCdS8820RfLyREHylX0EQ/IRfKOFnlWtCl4nl6OEakjMNtEZ62lnnNxHh3jMUUHiBS2I5c4jiEerYYUqxum9+8BuERtPKy5MSug8wOWAi2seJigkLHV24joe0srIEZkEzX6uDPdPPi2g8yJVpoiMeYn3RHfvFs00GWmNTCdBx9JZ+rP5jNSAZ5tU3OfZgH9MFGTiLUjCC21p5wmyljibHYQtGjiOXj0nM8tMFoD84XrIBjXWmZ7iCzTniBnPsz/AEwo/aGqbU9funnxjfn1FdK2DHFz8mPnuY5uHJhbRT90+MgfSRWuJIgQRTX2lXOQJTsPAiCt8Rw7gRjfzE8kZiDStB+oYCeY+JupziMjdoW+UNVLGWVuRLbGllqRu5EFWMiIUxEb5CV4PEqWIO0wvr908+Lf8/8Af1fCt+IfNeH6Q+eJjRj8T90+MgGkieZFaDycwVAwKSN089WGZ5oY4hpvPEFKYzBZp2G6F7zM3iLZphxAzdoFTtFTTtxN97AD5wsw9mKlYyolVdRldLkZis+N0Vl7wKp5gRyMwWPNyev3Tz4xvzOYbNGY72NhY/2mOloO2GvSYmN0+Mjfo+JYtxzChwTA9MZ62xLfNPeOG5itURN24gRqnMezKxic4my8QCgRIhrOJmp4G1cRagYlCd8RBWw3zLnDwi7looqHtRWU4eNbacHMfMIrHr908xqmirbyZW9HJlLse0olKStKCMwNYwzM6sQPphBtY7Y1NxxCDgmLbVKyGOBEpDYgNxGYLqIqk8RRdE8qKmpgWjvGYnBjskNlJhTVQVafvMbgHjlj7caxv3Rt8tRP3Ry+GaLYRkxNkG315qeN57y2q0y1V7mW/WWSyWFSMyy14/nAmYpED1mAhjiNRacRxxCNO0sYvLHvhGlEJVsCOlxlhQiWC3MsPEa0Amba4HqORNhc4j1hgJa7NLSZYX7GM57Qig8R6rTLK3xGZBM1+vejTzXYhYd54jj5R/oY/wBDH+2P9Id/InlPyJsT1BkPE3scCFW7QmojEZ3bibH/AGzZTjE81GhLn2Yfthz+2FH7QVqMiKqwFDA6NxC7txCSfZn+iYblYK/6YDSeJudsLCr9oasTCevIitE+giRIkSJEip8oF9WRAYBAYh+URfkIAICDEPyiRIg+QgX1giKc5ESJEirBiISciIPkIEmB/ur/xAAUEQEAAAAAAAAAAAAAAAAAAACg/9oACAECAQE/AEgf/8QAFBEBAAAAAAAAAAAAAAAAAAAAoP/aAAgBAwEBPwBIH//Z\";var{TabPane:L}=d.Tabs,S=ir.default.create({baseURL:\"/website\"});S.interceptors.response.use(function(e){if(e.data.code!==0)throw d.message.error(e.data.message),new Error(e.data);return e.data.data},function(e){return Promise.reject(e)});d.message.config({top:\"40%\"});function ca({src:e}){let[t,r]=l.default.useState(!1);return l.default.createElement(\"img\",{src:t?e:sa,onClick:()=>r(!0)})}function wt({qrcodeUrl:e,cacheUrl:t}){let[r,o]=l.default.useState(\"\"),n=async()=>{let s=await S.post(t);o(s)},a=async()=>{await S.put(t,{cookie:r}),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")},u=s=>{(0,fa.default)(s),d.message.success(\"\\u590D\\u5236\\u6210\\u529F\")};return(0,l.useEffect)(()=>{S.get(t).then(s=>{o(s)})},[]),l.default.createElement(\"div\",{className:\"qrcodeCard\"},l.default.createElement(ca,{src:e}),l.default.createElement(d.Divider,null,l.default.createElement(d.Button,{onClick:n},\"\\u626B\\u7801\\u540E\\u70B9\\u6211\")),l.default.createElement(d.Input.TextArea,{value:r,onChange:s=>o(s.target.value),rows:4}),l.default.createElement(\"div\",{className:\"btns\"},l.default.createElement(d.Button,{onClick:()=>u(r),color:\"cyan\",variant:\"solid\",style:{marginRight:24},size:\"large\"},\"\\u590D\\u5236\"),l.default.createElement(d.Button,{onClick:a,type:\"primary\",size:\"large\"},\"\\u5165\\u5E93\")))}function Ni(){let[e,t]=l.default.useState({token:\"\",token280:\"\"}),r=\"/ali/token\",o=async()=>{let a=await S.post(r);t(a)},n=async()=>{await S.put(r,{data:e}),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")};return(0,l.useEffect)(()=>{S.get(r).then(a=>{t(a)})},[]),l.default.createElement(\"div\",{className:\"qrcodeCard\"},l.default.createElement(ca,{src:\"/website/ali/qrcode\"}),l.default.createElement(d.Divider,null,l.default.createElement(d.Button,{onClick:o},\"\\u626B\\u7801\\u540E\\u70B9\\u6211\")),l.default.createElement(d.Row,null,l.default.createElement(d.Col,{span:11},l.default.createElement(\"p\",null,\"Token\"),l.default.createElement(d.Input.TextArea,{value:e.token,onChange:a=>t({token:a.target.value,token280:e.token280}),rows:4})),l.default.createElement(d.Col,{span:11,offset:2},l.default.createElement(\"p\",null,\"OpenToken\"),l.default.createElement(d.Input.TextArea,{value:e.token280,onChange:a=>t({token:e.token,token280:a.target.value}),rows:4}))),l.default.createElement(\"div\",{className:\"btns\"},l.default.createElement(d.Button,{onClick:n,disabled:!e,type:\"primary\",size:\"large\"},\"\\u5165\\u5E93\")))}function lr({api:e,name:t}){let[r]=d.Form.useForm(),o={labelCol:{span:6},wrapperCol:{span:18}},n={wrapperCol:{span:18,offset:6}},a=async()=>{let i=await S.get(e);r.setFieldsValue({urls:i})},u=async()=>{let i=await r.validateFields();try{await S.put(e,i.urls),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")}catch(f){console.error(f),d.message.error(\"\\u5165\\u5E93\\u5931\\u8D25\\uFF1A\".concat(f==null?void 0:f.message))}},s=async()=>{try{await S.delete(e),a(),d.message.success(\"\\u91CD\\u7F6E\\u6210\\u529F\")}catch(i){console.error(i),d.message.error(\"\\u91CD\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}};return(0,l.useEffect)(()=>{a()},[]),l.default.createElement(d.Form,g({form:r},o),l.default.createElement(d.Alert,{message:\"\\u542F\\u52A8\\u65F6\\u5C06\\u81EA\\u52A8\\u9009\\u62E9\\u901F\\u5EA6\\u6700\\u5FEB\\u7684\\u57DF\\u540D\",type:\"info\",style:{marginBottom:12}}),l.default.createElement(d.Form.List,{name:\"urls\",rules:[{required:!0,message:\"\\u8BF7\\u6DFB\\u52A0\\u57DF\\u540D\"}]},(i,{add:f,remove:c},{errors:p})=>l.default.createElement(l.default.Fragment,null,i.map((x,h)=>l.default.createElement(d.Form.Item,v(g({label:h===0?\"\\u57DF\\u540D\\u5217\\u8868\":\"\",required:!1,key:x.key},h===0?o:n),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},x),{validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165\".concat(t,\"\\u57DF\\u540D\")}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165\".concat(t,\"\\u57DF\\u540D\"),style:{width:\"60%\"}})),i.length>1?l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>c(x.name)}):null)),l.default.createElement(d.Form.Item,g({label:\"\"},n),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>f(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0\\u57DF\\u540D\"),l.default.createElement(d.Form.ErrorList,{errors:p})))),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:u},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginLeft:16},onClick:s},\"\\u91CD\\u7F6E\")))}function ua({api:e}){let[t]=d.Form.useForm(),r=async()=>{try{let o=await t.validateFields();await S.put(e,o),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")}catch(o){console.error(o),d.message.error(\"\\u5165\\u5E93\\u5931\\u8D25\\uFF1A\".concat(o==null?void 0:o.message))}};return(0,l.useEffect)(()=>{S.get(e).then(o=>{t.setFieldsValue(o)})},[]),l.default.createElement(d.Form,{form:t},l.default.createElement(d.Form.Item,{label:\"\\u8D26\\u53F7\",name:\"username\"},l.default.createElement(d.Input,null)),l.default.createElement(d.Form.Item,{label:\"\\u5BC6\\u7801\",name:\"password\"},l.default.createElement(d.Input.Password,null)),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:r},\"\\u4FDD\\u5B58\")))}function Bi(){let[e]=d.Form.useForm(),t={labelCol:{span:6},wrapperCol:{span:18}},r={wrapperCol:{span:18,offset:6}},o=async()=>{let n=await e.validateFields();console.log(\"data\",n);try{await S.put(\"/tgsou/config\",n),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")}catch(a){console.error(a),d.message.error(\"\\u5165\\u5E93\\u5931\\u8D25\\uFF1A\".concat(a==null?void 0:a.message))}};return(0,l.useEffect)(()=>{S.get(\"/tgsou/config\").then(n=>{e.setFieldsValue(n)})},[]),l.default.createElement(d.Form,g({form:e},t),l.default.createElement(d.Form.Item,{label:\"\\u670D\\u52A1\\u5668\\u5730\\u5740\",name:\"url\"},l.default.createElement(d.Input,null)),l.default.createElement(d.Form.List,{name:\"channelUsername\",rules:[{required:!0,message:\"\\u8BF7\\u6DFB\\u52A0\\u9891\\u9053\"}]},(n,{add:a,remove:u},{errors:s})=>l.default.createElement(l.default.Fragment,null,n.map((i,f)=>l.default.createElement(d.Form.Item,v(g({label:f===0?\"\\u9891\\u9053\\u5217\\u8868\":\"\",required:!1,key:i.key},f===0?t:r),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},i),{validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\"}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\",style:{width:\"60%\"}})),n.length>1?l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>u(i.name)}):null)),l.default.createElement(d.Form.Item,g({label:\"\"},r),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>a(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0\\u9891\\u9053\"),l.default.createElement(d.Form.ErrorList,{errors:s})))),l.default.createElement(d.Form.Item,{label:\"\\u5355\\u9891\\u9053\\u8D44\\u6E90\\u6570\\u91CF\",name:\"count\"},l.default.createElement(d.InputNumber,{min:1})),l.default.createElement(d.Form.Item,{label:\"\\u663E\\u793A\\u56FE\\u7247\",name:\"pic\"},l.default.createElement(d.Switch,null)),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:o},\"\\u4FDD\\u5B58\")))}function qi(){let[e]=d.Form.useForm(),t={labelCol:{span:6},wrapperCol:{span:18}},r={wrapperCol:{span:18,offset:6}},o=\"/tgchannel/config\",n=async()=>{let a=await e.validateFields();console.log(\"data\",a);try{await S.put(o,a),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")}catch(u){console.error(u),d.message.error(\"\\u5165\\u5E93\\u5931\\u8D25\\uFF1A\".concat(u==null?void 0:u.message))}};return(0,l.useEffect)(()=>{S.get(o).then(a=>{e.setFieldsValue(a)})},[]),l.default.createElement(d.Form,g({form:e},t),l.default.createElement(d.Form.Item,{label:\"TG\\u57DF\\u540D\",name:\"url\",rules:[{required:!0,message:\"\\u8BF7\\u8F93\\u5165TG\\u57DF\\u540D\"}],extra:l.default.createElement(\"div\",null,\"\\u9700\\u5B8C\\u6574\\u4EE3\\u7406t.me\\u57DF\\u540D\\uFF0C\\u81F3\\u5C11\\u9700\\u8981\\u652F\\u6301\\u4EE5\\u4E0B\\u94FE\\u63A5\",l.default.createElement(\"p\",{style:{margin:0}},\"1. \\u9891\\u9053\\u9875\\u9762\\uFF1Ahttps://t.me/s/xx\\uFF0C\\u5E76\\u4E14\\u4F1A\\u5E26\\u5206\\u9875\\u53C2\\u6570before=yy\\u3001\\u641C\\u7D22\\u53C2\\u6570q=zz\"),l.default.createElement(\"p\",{style:{margin:0}},\"2. \\u6D88\\u606F\\u8BE6\\u60C5\\u9875\\uFF1Ahttps://t.me/xx/yy\"))},l.default.createElement(d.Input,{style:{width:\"60%\"}})),l.default.createElement(\"h3\",null,\"\\u9996\\u9875\"),l.default.createElement(d.Form.List,{name:\"homeChannelUsername\",rules:[{required:!0,message:\"\\u8BF7\\u6DFB\\u52A0\\u9891\\u9053\"}]},(a,{add:u,remove:s},{errors:i})=>l.default.createElement(l.default.Fragment,null,a.map((f,c)=>l.default.createElement(d.Form.Item,v(g({label:c===0?\"\\u9891\\u9053\\u5217\\u8868\":\"\",required:!1,key:f.key},c===0?t:r),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},f),{validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\"}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\",style:{width:\"60%\"}})),a.length>1?l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>s(f.name)}):null)),l.default.createElement(d.Form.Item,g({label:\"\"},r),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>u(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0\\u9891\\u9053\"),l.default.createElement(d.Form.ErrorList,{errors:i})))),l.default.createElement(\"h3\",null,\"\\u641C\\u7D22\"),l.default.createElement(d.Form.Item,{label:\"\\u5355\\u9891\\u9053\\u8D44\\u6E90\\u6570\\u91CF\",name:\"count\"},l.default.createElement(d.InputNumber,{min:1})),l.default.createElement(d.Form.List,{name:\"channelUsername\",rules:[{required:!0,message:\"\\u8BF7\\u6DFB\\u52A0\\u9891\\u9053\"}]},(a,{add:u,remove:s},{errors:i})=>l.default.createElement(l.default.Fragment,null,a.map((f,c)=>l.default.createElement(d.Form.Item,v(g({label:c===0?\"\\u9891\\u9053\\u5217\\u8868\":\"\",required:!1,key:f.key},c===0?t:r),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},f),{validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\"}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165\\u9891\\u9053\\u540D\",style:{width:\"60%\"}})),a.length>1?l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>s(f.name)}):null)),l.default.createElement(d.Form.Item,g({label:\"\"},r),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>u(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0\\u9891\\u9053\"),l.default.createElement(d.Form.ErrorList,{errors:i})))),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:n},\"\\u4FDD\\u5B58\")))}function _i(){let[e,t]=l.default.useState(\"\"),r=\"/uc/ut\",o=async()=>{try{await S.put(r,{ut:e}),d.message.success(\"\\u8BBE\\u7F6E\\u6210\\u529F\")}catch(n){console.error(n),d.message.error(\"\\u8BBE\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(n==null?void 0:n.message))}};return(0,l.useEffect)(()=>{S.get(r).then(n=>{t(n)})},[]),l.default.createElement(\"div\",null,l.default.createElement(d.Alert,{message:\"\\u5173\\u6CE8\\u5FAE\\u4FE1\\u516C\\u4F17\\u53F7\\u201C\\u738B\\u4E8C\\u5C0F\\u653E\\u725B\\u5A03\\u201D\\uFF0C\\u8F93\\u5165\\u201C\\u673A\\u5668\\u7801\\u201D\\u5373\\u53EF\\u83B7\\u5F97\",type:\"info\",style:{marginBottom:16}}),l.default.createElement(d.Input.TextArea,{placeholder:\"\\u8BF7\\u8F93\\u5165UC\\u673A\\u5668\\u7801\",value:e,onChange:n=>t(n.target.value),rows:4}),l.default.createElement(d.Button,{type:\"primary\",onClick:o,style:{marginTop:16}},\"\\u4FDD\\u5B58\"))}var pa=e=>{let{attributes:t,listeners:r,setNodeRef:o,transform:n,transition:a,isDragging:u}=ia({id:e[\"data-row-key\"]}),s=g(v(g({},e.style),{transform:Ie.Translate.toString(n),transition:a,cursor:\"move\"}),u?{position:\"relative\",zIndex:9999}:{});return l.default.createElement(\"tr\",g(g(v(g({},e),{ref:o,style:s}),t),r))};function Ri(){let[e,t]=(0,l.useState)([]),r=(0,l.useMemo)(()=>[{title:\"\\u7AD9\\u6E90\",dataIndex:\"key\",render(i,f){return l.default.createElement(l.default.Fragment,null,f.name,f.t4&&l.default.createElement(d.Tag,{style:{marginLeft:4},color:\"blue\"},\"T4\"),f.cms&&l.default.createElement(d.Tag,{style:{marginLeft:4},color:\"blue\"},\"CMS\"))}},{title:\"\\u662F\\u5426\\u542F\\u7528\",dataIndex:\"enable\",render(i,f,c){return l.default.createElement(d.Switch,{value:i,onChange:p=>{e[c].enable=p,t([...e])}})},width:120},{title:\"\\u64CD\\u4F5C\",dataIndex:\"op\",render(i,f,c){return l.default.createElement(l.default.Fragment,null,l.default.createElement(d.Button,{icon:l.default.createElement(Vt,null),style:{marginRight:8},onClick:()=>{t(p=>be(p,c,c-1))}}),l.default.createElement(d.Button,{icon:l.default.createElement(Ht,null),onClick:()=>{t(p=>be(p,c,c+1))}}))},width:120}],[e]),o=qr(Br(je,{activationConstraint:{distance:1}})),n=({active:i,over:f})=>{i.id!==(f==null?void 0:f.id)&&t(c=>{let p=c.findIndex(h=>h.key===i.id),x=c.findIndex(h=>h.key===(f==null?void 0:f.id));return be(c,p,x)})},a=async()=>{let f=(await ir.default.get(\"/full-config\")).data.video.sites,c=await S.get(\"/sites/list\"),p={},x={};f.forEach(w=>{x[w.key]=w});let h=c.filter(w=>(p[w.key]=!0,x[w.key]));f.forEach(w=>{p[w.key]||h.push({key:w.key,name:w.name,enable:!0,t4:w.t4,cms:w.cms})}),console.log(\"dataSource\",h,c,f),t(h)},u=async()=>{try{await S.put(\"/sites/list\",{list:e}),d.message.success({content:l.default.createElement(l.default.Fragment,null,\"\\u8BBE\\u7F6E\\u6210\\u529F\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null)),duration:5})}catch(i){console.error(i),d.message.error(\"\\u8BBE\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}},s=async()=>{try{await S.delete(\"/sites/list\"),a(),d.message.success(\"\\u91CD\\u7F6E\\u6210\\u529F\")}catch(i){console.error(i),d.message.error(\"\\u91CD\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}};return(0,l.useEffect)(()=>{a()},[]),l.default.createElement(\"div\",null,l.default.createElement(_r,{sensors:o,modifiers:[Rr],onDragEnd:n},l.default.createElement(Wr,{items:e.map(i=>i.key),strategy:Ur},l.default.createElement(d.Table,{components:{body:{row:pa}},rowKey:\"key\",columns:r,dataSource:e,pagination:!1,className:\"sites-table\"}))),l.default.createElement(d.Button,{type:\"primary\",style:{marginTop:16},onClick:u},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginTop:16,marginLeft:16},onClick:s},\"\\u91CD\\u7F6E\"))}function Ui(){let[e,t]=(0,l.useState)([]),r=(0,l.useMemo)(()=>[{title:\"\\u7F51\\u76D8\",dataIndex:\"key\",render(i,f,c){return l.default.createElement(d.Input,{value:f.name,onChange:p=>{e[c]=v(g({},f),{name:p.target.value}),t([...e])}})}},{title:\"\\u662F\\u5426\\u542F\\u7528\",dataIndex:\"enable\",render(i,f,c){return l.default.createElement(d.Switch,{value:i,onChange:p=>{e[c].enable=p,t([...e])}})},width:120},{title:\"\\u64CD\\u4F5C\",dataIndex:\"op\",render(i,f,c){return l.default.createElement(l.default.Fragment,null,l.default.createElement(d.Button,{icon:l.default.createElement(Vt,null),style:{marginRight:8},onClick:()=>{t(p=>be(p,c,c-1))}}),l.default.createElement(d.Button,{icon:l.default.createElement(Ht,null),onClick:()=>{t(p=>be(p,c,c+1))}}))},width:120}],[e]),o=qr(Br(je,{activationConstraint:{distance:1}})),n=({active:i,over:f})=>{i.id!==(f==null?void 0:f.id)&&t(c=>{let p=c.findIndex(h=>h.key===i.id),x=c.findIndex(h=>h.key===(f==null?void 0:f.id));return be(c,p,x)})},a=async()=>{let i=await S.get(\"/pans/list\");t(i)},u=async()=>{try{await S.put(\"/pans/list\",{list:e}),d.message.success(\"\\u8BBE\\u7F6E\\u6210\\u529F\")}catch(i){console.error(i),d.message.error(\"\\u8BBE\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}},s=async()=>{try{await S.delete(\"/pans/list\"),a(),d.message.success(\"\\u91CD\\u7F6E\\u6210\\u529F\")}catch(i){console.error(i),d.message.error(\"\\u91CD\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}};return(0,l.useEffect)(()=>{a()},[]),l.default.createElement(\"div\",null,l.default.createElement(_r,{sensors:o,modifiers:[Rr],onDragEnd:n},l.default.createElement(Wr,{items:e.map(i=>i.key),strategy:Ur},l.default.createElement(d.Table,{components:{body:{row:pa}},rowKey:\"key\",columns:r,dataSource:e,pagination:!1}))),l.default.createElement(d.Button,{type:\"primary\",style:{marginTop:16},onClick:u},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginTop:16,marginLeft:16},onClick:s},\"\\u91CD\\u7F6E\"))}function Wi(){let[e]=d.Form.useForm(),t={labelCol:{span:4},wrapperCol:{span:20}},r={wrapperCol:{span:20,offset:4}},o=\"/danmu/setting\",n=async()=>{let s=await S.get(o);e.setFieldsValue(s)},a=async()=>{let s=await e.validateFields();try{await S.put(o,s),d.message.success(\"\\u5165\\u5E93\\u6210\\u529F\")}catch(i){console.error(i),d.message.error(\"\\u5165\\u5E93\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}},u=async()=>{try{await S.delete(o),n(),d.message.success(\"\\u91CD\\u7F6E\\u6210\\u529F\")}catch(s){console.error(s),d.message.error(\"\\u91CD\\u7F6E\\u5931\\u8D25\\uFF1A\".concat(s==null?void 0:s.message))}};return(0,l.useEffect)(()=>{n()},[]),l.default.createElement(d.Form,g({form:e},t),l.default.createElement(d.Alert,{message:\"\\u5F00\\u542F\\u81EA\\u52A8\\u63A8\\u9001\\u65F6\\uFF0C\\u81EA\\u52A8\\u9009\\u53D6\\u6700\\u5FEB\\u54CD\\u5E94\\u7684API\",type:\"info\",style:{marginBottom:12}}),l.default.createElement(d.Form.List,{name:\"urls\",rules:[{required:!0,message:\"\\u8BF7\\u6DFB\\u52A0API\\u5730\\u5740\"}]},(s,{add:i,remove:f},{errors:c})=>l.default.createElement(l.default.Fragment,null,s.map((p,x)=>l.default.createElement(d.Form.Item,v(g({label:x===0?\"API\\u5217\\u8868\":\"\",required:!1,key:p.key},x===0?t:r),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},p),{name:[p.name,\"address\"],validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165API\\u5730\\u5740\"}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165API\\u5730\\u5740\",style:{width:\"65%\"}})),l.default.createElement(d.Form.Item,v(g({},p),{name:[p.name,\"name\"],validateTrigger:[\"onChange\",\"onBlur\"],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u522B\\u540D\",style:{width:\"25%\",marginLeft:8}})),s.length>1?l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>f(p.name)}):null)),l.default.createElement(d.Form.Item,g({label:\"\"},r),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>i(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0API\"),l.default.createElement(d.Form.ErrorList,{errors:c})))),l.default.createElement(d.Form.Item,{label:\"\\u81EA\\u52A8\\u63A8\\u9001\",name:\"autoPush\"},l.default.createElement(d.Switch,null)),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:a},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginLeft:16},onClick:u},\"\\u91CD\\u7F6E\")))}function Hi(){let[e]=d.Form.useForm(),t={labelCol:{span:0},wrapperCol:{span:24}},r={wrapperCol:{span:24,offset:0}},o=\"/t4/list\",n=async()=>{let s=await S.get(o);e.setFieldsValue({list:s})},a=async()=>{let s=await e.validateFields();try{await S.put(o,s.list),d.message.success({content:l.default.createElement(l.default.Fragment,null,\"\\u4FDD\\u5B58\\u6210\\u529F\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null)),duration:5})}catch(i){console.error(i),d.message.error(\"\\u4FDD\\u5B58\\u5931\\u8D25\\uFF1A\".concat(i==null?void 0:i.message))}},u=async()=>{try{await S.delete(o),n(),d.message.success(\"\\u6E05\\u7A7A\\u6210\\u529F\")}catch(s){console.error(s),d.message.error(\"\\u6E05\\u7A7A\\u5931\\u8D25\\uFF1A\".concat(s==null?void 0:s.message))}};return(0,l.useEffect)(()=>{n()},[]),l.default.createElement(d.Form,g({form:e},t),l.default.createElement(d.Form.List,{name:\"list\"},(s,{add:i,remove:f},{errors:c})=>l.default.createElement(l.default.Fragment,null,s.map((p,x)=>l.default.createElement(d.Form.Item,v(g({required:!1,key:p.key},t),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},p),{name:[p.name,\"address\"],validateTrigger:[\"onChange\",\"onBlur\"],rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165T4\\u63A5\\u53E3\\u5730\\u5740\"}],noStyle:!0}),l.default.createElement(d.Input,{placeholder:\"\\u8BF7\\u8F93\\u5165T4\\u63A5\\u53E3\\u5730\\u5740\",style:{width:\"65%\"}})),l.default.createElement(d.Form.Item,v(g({},p),{name:[p.name,\"name\"],validateTrigger:[\"onChange\",\"onBlur\"],noStyle:!0,rules:[{required:!0,whitespace:!0,message:\"\\u8BF7\\u8F93\\u5165\\u540D\\u79F0\"}]}),l.default.createElement(d.Input,{placeholder:\"\\u540D\\u79F0\",style:{width:\"25%\",marginLeft:8}})),l.default.createElement(De,{className:\"dynamic-delete-button\",onClick:()=>f(p.name)}))),l.default.createElement(d.Form.Item,g({label:\"\"},r),l.default.createElement(d.Button,{type:\"dashed\",onClick:()=>i(),style:{width:\"60%\"},icon:l.default.createElement(ke,null)},\"\\u6DFB\\u52A0T4\\u63A5\\u53E3\"),l.default.createElement(d.Form.ErrorList,{errors:c})))),l.default.createElement(d.Form.Item,{label:null},l.default.createElement(d.Button,{type:\"primary\",onClick:a},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginLeft:16},onClick:u},\"\\u6E05\\u7A7A\")))}function ji(){let e=\"/cms/list\",[t,r]=(0,l.useState)(\"\"),[o,n]=(0,l.useState)([]),[a,u]=(0,l.useState)(!1),s=[{title:\"\\u540D\\u79F0\",dataIndex:\"name\",key:\"name\"},{title:\"API\",dataIndex:\"address\",key:\"address\"}],i=async()=>{let x=await S.get(e);n(x)},f=async()=>{if(!t){d.message.error(\"\\u8BF7\\u8F93\\u5165CMS\\u63A5\\u53E3\\u5730\\u5740\");return}u(!0);try{let{data:x}=await ir.default.get(t.trim());x.sites.length&&n(x.sites.map(h=>({name:h.name,address:h.api})))}catch(x){console.error(x),d.message.error(\"\\u63A5\\u53E3\\u89E3\\u6790\\u5931\\u8D25\")}u(!1)},c=async()=>{try{await S.put(e,o),d.message.success({content:l.default.createElement(l.default.Fragment,null,\"\\u4FDD\\u5B58\\u6210\\u529F\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null),\"\\u9700\\u91CD\\u65B0\\u52A0\\u8F7D\\u6E90\\uFF01\",l.default.createElement(\"br\",null)),duration:5})}catch(x){console.error(x),d.message.error(\"\\u4FDD\\u5B58\\u5931\\u8D25\\uFF1A\".concat(x==null?void 0:x.message))}},p=async()=>{try{await S.delete(e),i(),d.message.success(\"\\u6E05\\u7A7A\\u6210\\u529F\")}catch(x){console.error(x),d.message.error(\"\\u6E05\\u7A7A\\u5931\\u8D25\\uFF1A\".concat(x==null?void 0:x.message))}};return(0,l.useEffect)(()=>{i()},[]),l.default.createElement(d.Form,null,l.default.createElement(d.Space.Compact,{style:{width:\"100%\",marginBottom:12}},l.default.createElement(d.Input,{defaultValue:\"\\u8F93\\u5165XPTV CMS\\u63A5\\u53E3\\u5730\\u5740\",value:t,onChange:x=>r(x.target.value)}),l.default.createElement(d.Button,{type:\"primary\",onClick:f,loading:a},\"\\u8BC6\\u522B\")),l.default.createElement(d.Table,{columns:s,dataSource:o,pagination:!1}),l.default.createElement(d.Form.Item,{label:null,style:{marginTop:16}},l.default.createElement(d.Button,{type:\"primary\",onClick:c},\"\\u4FDD\\u5B58\"),l.default.createElement(d.Button,{danger:!0,style:{marginLeft:16},onClick:p},\"\\u6E05\\u7A7A\")))}function zi(){return l.default.createElement(\"div\",{className:\"container\"},l.default.createElement(d.Card,{style:{minHeight:600,maxHeight:\"100vh\",width:600}},l.default.createElement(d.Tabs,{type:\"card\",tabBarExtraContent:l.default.createElement(\"div\",{style:{display:\"flex\",alignItems:\"center\"}},l.default.createElement(d.Upload,g({},{accept:\".json\",showUploadList:!1,beforeUpload(t){let r=new FileReader;return r.onload=async o=>{try{let n=JSON.parse(o.target.result);console.log(\"Parsed JSON data:\",n),await S.put(\"/backup\",n),d.message.success(\"\".concat(t.name,\"\\u5BFC\\u5165\\u6210\\u529F\"))}catch(n){d.message.error(\"\".concat(t.name,\"\\u5BFC\\u5165\\u5931\\u8D25: \").concat(n.message)),console.error(\"Error parsing JSON:\",n)}},r.readAsText(t),!1}}),l.default.createElement(d.Button,{type:\"link\"},\"\\u5BFC\\u5165\")),l.default.createElement(\"a\",{href:\"/website/backup\",target:\"_blank\"},\"\\u5BFC\\u51FA\"))},l.default.createElement(L,{tab:\"\\u767B\\u5F55\\u4FE1\\u606F\",key:\"account\"},l.default.createElement(d.Tabs,null,l.default.createElement(L,{tab:\"\\u5938\\u514B\",key:\"quark\"},l.default.createElement(wt,{qrcodeUrl:\"/website/quark/qrcode\",cacheUrl:\"/quark/cookie\"})),l.default.createElement(L,{tab:\"UC Cookie\",key:\"uc-cookie\"},l.default.createElement(wt,{qrcodeUrl:\"/website/uc/qrcode\",cacheUrl:\"/uc/cookie\"})),l.default.createElement(L,{tab:\"UC token\",key:\"uc-token\"},l.default.createElement(wt,{qrcodeUrl:\"/website/uc-tv/qrcode\",cacheUrl:\"/uc-tv/token\"})),l.default.createElement(L,{tab:\"UC\\u673A\\u5668\\u7801\",key:\"uc-ut\"},l.default.createElement(_i,null)),l.default.createElement(L,{tab:\"115\",key:\"115\"},l.default.createElement(wt,{qrcodeUrl:\"/website/115/qrcode\",cacheUrl:\"/115/cookie\"})),l.default.createElement(L,{tab:\"\\u767E\\u5EA6\",key:\"baidu\"},l.default.createElement(wt,{qrcodeUrl:\"/website/baidu/qrcode\",cacheUrl:\"/baidu/cookie\"})),l.default.createElement(L,{tab:\"\\u963F\\u91CC\",key:\"ali\"},l.default.createElement(Ni,null)),l.default.createElement(L,{tab:\"\\u5929\\u7FFC\",key:\"tianyi\"},l.default.createElement(ua,{api:\"/tianyi/account\"})),l.default.createElement(L,{tab:\"123\",key:\"123\"},l.default.createElement(ua,{api:\"/pan123/account\"})))),l.default.createElement(L,{tab:\"\\u7AD9\\u6E90\\u8BBE\\u7F6E\",key:\"site\"},l.default.createElement(d.Tabs,{destroyOnHidden:!0},l.default.createElement(L,{tab:\"\\u7AD9\\u6E90\\u5217\\u8868\",key:\"sites\"},l.default.createElement(Ri,null)),l.default.createElement(L,{tab:\"T4\\u63A5\\u53E3\",key:\"t4\"},l.default.createElement(Hi,null)),l.default.createElement(L,{tab:\"XPTV-CMS\\u63A5\\u53E3\",key:\"cms\"},l.default.createElement(ji,null)),l.default.createElement(L,{tab:\"\\u6728\\u5076\\u57DF\\u540D\",key:\"muou\"},l.default.createElement(lr,{api:\"/muou/urls\",name:\"\\u6728\\u5076\"})),l.default.createElement(L,{tab:\"\\u73A9\\u5076\\u57DF\\u540D\",key:\"wogg\"},l.default.createElement(lr,{api:\"/wogg/urls\",name:\"\\u73A9\\u5076\"})),l.default.createElement(L,{tab:\"\\u96F7\\u9CB8\\u57DF\\u540D\",key:\"leijing\"},l.default.createElement(lr,{api:\"/leijing/urls\",name:\"\\u96F7\\u9CB8\"})),l.default.createElement(L,{tab:\"\\u81F3\\u81FB\\u57DF\\u540D\",key:\"zhizhen\"},l.default.createElement(lr,{api:\"/zhizhen/urls\",name:\"\\u81F3\\u81FB\"})),l.default.createElement(L,{tab:\"TG\\u9891\\u9053\",key:\"tgchannel\"},l.default.createElement(qi,null)),l.default.createElement(L,{tab:\"TG\\u641C\",key:\"tgsou\"},l.default.createElement(Bi,null)))),l.default.createElement(L,{tab:\"\\u901A\\u7528\\u8BBE\\u7F6E\",key:\"common\"},l.default.createElement(d.Tabs,null,l.default.createElement(L,{tab:\"\\u7F51\\u76D8\\u5217\\u8868\",key:\"pans\"},l.default.createElement(Ui,null)),l.default.createElement(L,{tab:\"\\u5F39\\u5E55\\u8BBE\\u7F6E\",key:\"danmu\"},l.default.createElement(Wi,null)))))))}function $i(){(0,da.createRoot)(document.getElementById(\"app\")).render(l.default.createElement(zi,null))}\n/*! Bundled license information:\n\nclassnames/index.js:\n (*!\n \tCopyright (c) 2018 Jed Watson.\n \tLicensed under the MIT License (MIT), see\n \thttp://jedwatson.github.io/classnames\n *)\n*/\n"}
module.exports.renderClient();
})();
`;
}();
globalThis.danmuBundle = function() {
return `
(function() {
const exports = {};
const module = { exports };
${"var Nt=Object.create;var M=Object.defineProperty,Ht=Object.defineProperties,qt=Object.getOwnPropertyDescriptor,Ut=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,ce=Object.getOwnPropertySymbols,Wt=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var he=(t,e,r)=>e in t?M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ge=(t,e)=>{for(var r in e||(e={}))Oe.call(e,r)&&he(t,r,e[r]);if(ce)for(var r of ce(e))Vt.call(e,r)&&he(t,r,e[r]);return t},Te=(t,e)=>Ht(t,Ut(e));var R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),zt=(t,e)=>{for(var r in e)M(t,r,{get:e[r],enumerable:!0})},be=(t,e,r,o)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let a of jt(e))!Oe.call(t,a)&&a!==r&&M(t,a,{get:()=>e[a],enumerable:!(o=qt(e,a))||o.enumerable});return t};var b=(t,e,r)=>(r=t!=null?Nt(Wt(t)):{},be(e||!t||!t.__esModule?M(r,\"default\",{value:t,enumerable:!0}):r,t)),Gt=t=>be(M({},\"__esModule\",{value:!0}),t);var y=R((Rr,we)=>{we.exports=window.React});var Fe=R((Dr,Ce)=>{Ce.exports=window.ReactDOM});var Se=R(ee=>{\"use strict\";var ye=Fe();ee.createRoot=ye.createRoot,ee.hydrateRoot=ye.hydrateRoot;var Mr});var ke=R((Er,ve)=>{ve.exports=window.antd});var Be=R((lo,q)=>{(function(){\"use strict\";var t={}.hasOwnProperty;function e(){for(var a=\"\",l=0;l<arguments.length;l++){var n=arguments[l];n&&(a=o(a,r(n)))}return a}function r(a){if(typeof a==\"string\"||typeof a==\"number\")return a;if(typeof a!=\"object\")return\"\";if(Array.isArray(a))return e.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes(\"[native code]\"))return a.toString();var l=\"\";for(var n in a)t.call(a,n)&&a[n]&&(l=o(l,n));return l}function o(a,l){return l?a?a+\" \"+l:a+l:a}typeof q<\"u\"&&q.exports?(e.default=e,q.exports=e):typeof define==\"function\"&&typeof define.amd==\"object\"&&define.amd?define(\"classnames\",[],function(){return e}):window.classNames=e})()});var Et=R((pa,_t)=>{_t.exports=window.axios});var Pr={};zt(Pr,{Danmu:()=>Lt,renderDanmu:()=>kr});module.exports=Gt(Pr);var s=b(y(),1),Bt=b(Se(),1),x=b(ke(),1);var Pe=b(y()),$t=(0,Pe.createContext)({}),L=$t;function S(){return S=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},S.apply(null,arguments)}function Ae(t){if(Array.isArray(t))return t}function Re(t,e){var r=t==null?null:typeof Symbol<\"u\"&&t[Symbol.iterator]||t[\"@@iterator\"];if(r!=null){var o,a,l,n,d=[],f=!0,i=!1;try{if(l=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(o=l.call(r)).done)&&(d.push(o.value),d.length!==e);f=!0);}catch(m){i=!0,a=m}finally{try{if(!f&&r.return!=null&&(n=r.return(),Object(n)!==n))return}finally{if(i)throw a}}return d}}function te(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=Array(e);r<e;r++)o[r]=t[r];return o}function De(t,e){if(t){if(typeof t==\"string\")return te(t,e);var r={}.toString.call(t).slice(8,-1);return r===\"Object\"&&t.constructor&&(r=t.constructor.name),r===\"Map\"||r===\"Set\"?Array.from(t):r===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(t,e):void 0}}function Me(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}function N(t,e){return Ae(t)||Re(t,e)||De(t,e)||Me()}function w(t){\"@babel/helpers - typeof\";return w=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},w(t)}function _e(t,e){if(w(t)!=\"object\"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||\"default\");if(w(o)!=\"object\")return o;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(e===\"string\"?String:Number)(t)}function Ee(t){var e=_e(t,\"string\");return w(e)==\"symbol\"?e:e+\"\"}function c(t,e,r){return(e=Ee(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ie(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function H(t,e){if(t==null)return{};var r,o,a=Ie(t,e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(o=0;o<l.length;o++)r=l[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var P=b(y()),Rt=b(Be());var h=Math.round;function re(t,e){let r=t.replace(/^[^(]*\\((.*)/,\"$1\").replace(/\\).*/,\"\").match(/\\d*\\.?\\d+%?/g)||[],o=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)o[a]=e(o[a]||0,r[a]||\"\",a);return r[3]?o[3]=r[3].includes(\"%\")?o[3]/100:o[3]:o[3]=1,o}var Le=(t,e,r)=>r===0?t:t/100;function _(t,e){let r=e||255;return t>r?r:t<0?0:t}var v=class t{constructor(e){c(this,\"isValid\",!0),c(this,\"r\",0),c(this,\"g\",0),c(this,\"b\",0),c(this,\"a\",1),c(this,\"_h\",void 0),c(this,\"_s\",void 0),c(this,\"_l\",void 0),c(this,\"_v\",void 0),c(this,\"_max\",void 0),c(this,\"_min\",void 0),c(this,\"_brightness\",void 0);function r(o){return o[0]in e&&o[1]in e&&o[2]in e}if(e)if(typeof e==\"string\"){let a=function(l){return o.startsWith(l)},o=e.trim();/^#?[A-F\\d]{3,8}$/i.test(o)?this.fromHexString(o):a(\"rgb\")?this.fromRgbString(o):a(\"hsl\")?this.fromHslString(o):(a(\"hsv\")||a(\"hsb\"))&&this.fromHsvString(o)}else if(e instanceof t)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(r(\"rgb\"))this.r=_(e.r),this.g=_(e.g),this.b=_(e.b),this.a=typeof e.a==\"number\"?_(e.a,1):1;else if(r(\"hsl\"))this.fromHsl(e);else if(r(\"hsv\"))this.fromHsv(e);else throw new Error(\"@ant-design/fast-color: unsupported input \"+JSON.stringify(e))}setR(e){return this._sc(\"r\",e)}setG(e){return this._sc(\"g\",e)}setB(e){return this._sc(\"b\",e)}setA(e){return this._sc(\"a\",e,1)}setHue(e){let r=this.toHsv();return r.h=e,this._c(r)}getLuminance(){function e(l){let n=l/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}let r=e(this.r),o=e(this.g),a=e(this.b);return .2126*r+.7152*o+.0722*a}getHue(){if(typeof this._h>\"u\"){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=h(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>\"u\"){let e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>\"u\"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>\"u\"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>\"u\"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let r=this.getHue(),o=this.getSaturation(),a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:r,s:o,l:a,a:this.a})}lighten(e=10){let r=this.getHue(),o=this.getSaturation(),a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:r,s:o,l:a,a:this.a})}mix(e,r=50){let o=this._c(e),a=r/100,l=d=>(o[d]-this[d])*a+this[d],n={r:h(l(\"r\")),g:h(l(\"g\")),b:h(l(\"b\")),a:h(l(\"a\")*100)/100};return this._c(n)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let r=this._c(e),o=this.a+r.a*(1-this.a),a=l=>h((this[l]*this.a+r[l]*r.a*(1-this.a))/o);return this._c({r:a(\"r\"),g:a(\"g\"),b:a(\"b\"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=\"#\",r=(this.r||0).toString(16);e+=r.length===2?r:\"0\"+r;let o=(this.g||0).toString(16);e+=o.length===2?o:\"0\"+o;let a=(this.b||0).toString(16);if(e+=a.length===2?a:\"0\"+a,typeof this.a==\"number\"&&this.a>=0&&this.a<1){let l=h(this.a*255).toString(16);e+=l.length===2?l:\"0\"+l}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),r=h(this.getSaturation()*100),o=h(this.getLightness()*100);return this.a!==1?\"hsla(\".concat(e,\",\").concat(r,\"%,\").concat(o,\"%,\").concat(this.a,\")\"):\"hsl(\".concat(e,\",\").concat(r,\"%,\").concat(o,\"%)\")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?\"rgba(\".concat(this.r,\",\").concat(this.g,\",\").concat(this.b,\",\").concat(this.a,\")\"):\"rgb(\".concat(this.r,\",\").concat(this.g,\",\").concat(this.b,\")\")}toString(){return this.toRgbString()}_sc(e,r,o){let a=this.clone();return a[e]=_(r,o),a}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>\"u\"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>\"u\"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let r=e.replace(\"#\",\"\");function o(a,l){return parseInt(r[a]+r[l||a],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:e,s:r,l:o,a}){if(this._h=e%360,this._s=r,this._l=o,this.a=typeof a==\"number\"?a:1,r<=0){let p=h(o*255);this.r=p,this.g=p,this.b=p}let l=0,n=0,d=0,f=e/60,i=(1-Math.abs(2*o-1))*r,m=i*(1-Math.abs(f%2-1));f>=0&&f<1?(l=i,n=m):f>=1&&f<2?(l=m,n=i):f>=2&&f<3?(n=i,d=m):f>=3&&f<4?(n=m,d=i):f>=4&&f<5?(l=m,d=i):f>=5&&f<6&&(l=i,d=m);let u=o-i/2;this.r=h((l+u)*255),this.g=h((n+u)*255),this.b=h((d+u)*255)}fromHsv({h:e,s:r,v:o,a}){this._h=e%360,this._s=r,this._v=o,this.a=typeof a==\"number\"?a:1;let l=h(o*255);if(this.r=l,this.g=l,this.b=l,r<=0)return;let n=e/60,d=Math.floor(n),f=n-d,i=h(o*(1-r)*255),m=h(o*(1-r*f)*255),u=h(o*(1-r*(1-f))*255);switch(d){case 0:this.g=u,this.b=i;break;case 1:this.r=m,this.b=i;break;case 2:this.r=i,this.b=u;break;case 3:this.r=i,this.g=m;break;case 4:this.r=u,this.g=i;break;case 5:default:this.g=i,this.b=m;break}}fromHsvString(e){let r=re(e,Le);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(e){let r=re(e,Le);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(e){let r=re(e,(o,a)=>a.includes(\"%\")?h(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var U=2,Ne=.16,Qt=.05,Yt=.05,Jt=.15,je=5,We=4,Kt=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function He(t,e,r){var o;return Math.round(t.h)>=60&&Math.round(t.h)<=240?o=r?Math.round(t.h)-U*e:Math.round(t.h)+U*e:o=r?Math.round(t.h)+U*e:Math.round(t.h)-U*e,o<0?o+=360:o>=360&&(o-=360),o}function qe(t,e,r){if(t.h===0&&t.s===0)return t.s;var o;return r?o=t.s-Ne*e:e===We?o=t.s+Ne:o=t.s+Qt*e,o>1&&(o=1),r&&e===je&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function Ue(t,e,r){var o;return r?o=t.v+Yt*e:o=t.v-Jt*e,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function j(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],o=new v(t),a=o.toHsv(),l=je;l>0;l-=1){var n=new v({h:He(a,l,!0),s:qe(a,l,!0),v:Ue(a,l,!0)});r.push(n)}r.push(o);for(var d=1;d<=We;d+=1){var f=new v({h:He(a,d),s:qe(a,d),v:Ue(a,d)});r.push(f)}return e.theme===\"dark\"?Kt.map(function(i){var m=i.index,u=i.amount;return new v(e.backgroundColor||\"#141414\").mix(r[m],u).toHexString()}):r.map(function(i){return i.toHexString()})}var Ve=[\"#fff1f0\",\"#ffccc7\",\"#ffa39e\",\"#ff7875\",\"#ff4d4f\",\"#f5222d\",\"#cf1322\",\"#a8071a\",\"#820014\",\"#5c0011\"];Ve.primary=Ve[5];var ze=[\"#fff2e8\",\"#ffd8bf\",\"#ffbb96\",\"#ff9c6e\",\"#ff7a45\",\"#fa541c\",\"#d4380d\",\"#ad2102\",\"#871400\",\"#610b00\"];ze.primary=ze[5];var Ge=[\"#fff7e6\",\"#ffe7ba\",\"#ffd591\",\"#ffc069\",\"#ffa940\",\"#fa8c16\",\"#d46b08\",\"#ad4e00\",\"#873800\",\"#612500\"];Ge.primary=Ge[5];var $e=[\"#fffbe6\",\"#fff1b8\",\"#ffe58f\",\"#ffd666\",\"#ffc53d\",\"#faad14\",\"#d48806\",\"#ad6800\",\"#874d00\",\"#613400\"];$e.primary=$e[5];var Qe=[\"#feffe6\",\"#ffffb8\",\"#fffb8f\",\"#fff566\",\"#ffec3d\",\"#fadb14\",\"#d4b106\",\"#ad8b00\",\"#876800\",\"#614700\"];Qe.primary=Qe[5];var Ye=[\"#fcffe6\",\"#f4ffb8\",\"#eaff8f\",\"#d3f261\",\"#bae637\",\"#a0d911\",\"#7cb305\",\"#5b8c00\",\"#3f6600\",\"#254000\"];Ye.primary=Ye[5];var Je=[\"#f6ffed\",\"#d9f7be\",\"#b7eb8f\",\"#95de64\",\"#73d13d\",\"#52c41a\",\"#389e0d\",\"#237804\",\"#135200\",\"#092b00\"];Je.primary=Je[5];var Ke=[\"#e6fffb\",\"#b5f5ec\",\"#87e8de\",\"#5cdbd3\",\"#36cfc9\",\"#13c2c2\",\"#08979c\",\"#006d75\",\"#00474f\",\"#002329\"];Ke.primary=Ke[5];var W=[\"#e6f4ff\",\"#bae0ff\",\"#91caff\",\"#69b1ff\",\"#4096ff\",\"#1677ff\",\"#0958d9\",\"#003eb3\",\"#002c8c\",\"#001d66\"];W.primary=W[5];var Ze=[\"#f0f5ff\",\"#d6e4ff\",\"#adc6ff\",\"#85a5ff\",\"#597ef7\",\"#2f54eb\",\"#1d39c4\",\"#10239e\",\"#061178\",\"#030852\"];Ze.primary=Ze[5];var Xe=[\"#f9f0ff\",\"#efdbff\",\"#d3adf7\",\"#b37feb\",\"#9254de\",\"#722ed1\",\"#531dab\",\"#391085\",\"#22075e\",\"#120338\"];Xe.primary=Xe[5];var et=[\"#fff0f6\",\"#ffd6e7\",\"#ffadd2\",\"#ff85c0\",\"#f759ab\",\"#eb2f96\",\"#c41d7f\",\"#9e1068\",\"#780650\",\"#520339\"];et.primary=et[5];var tt=[\"#a6a6a6\",\"#999999\",\"#8c8c8c\",\"#808080\",\"#737373\",\"#666666\",\"#404040\",\"#1a1a1a\",\"#000000\",\"#000000\"];tt.primary=tt[5];var rt=[\"#2a1215\",\"#431418\",\"#58181c\",\"#791a1f\",\"#a61d24\",\"#d32029\",\"#e84749\",\"#f37370\",\"#f89f9a\",\"#fac8c3\"];rt.primary=rt[5];var ot=[\"#2b1611\",\"#441d12\",\"#592716\",\"#7c3118\",\"#aa3e19\",\"#d84a1b\",\"#e87040\",\"#f3956a\",\"#f8b692\",\"#fad4bc\"];ot.primary=ot[5];var at=[\"#2b1d11\",\"#442a11\",\"#593815\",\"#7c4a15\",\"#aa6215\",\"#d87a16\",\"#e89a3c\",\"#f3b765\",\"#f8cf8d\",\"#fae3b7\"];at.primary=at[5];var lt=[\"#2b2111\",\"#443111\",\"#594214\",\"#7c5914\",\"#aa7714\",\"#d89614\",\"#e8b339\",\"#f3cc62\",\"#f8df8b\",\"#faedb5\"];lt.primary=lt[5];var nt=[\"#2b2611\",\"#443b11\",\"#595014\",\"#7c6e14\",\"#aa9514\",\"#d8bd14\",\"#e8d639\",\"#f3ea62\",\"#f8f48b\",\"#fafab5\"];nt.primary=nt[5];var ft=[\"#1f2611\",\"#2e3c10\",\"#3e4f13\",\"#536d13\",\"#6f9412\",\"#8bbb11\",\"#a9d134\",\"#c9e75d\",\"#e4f88b\",\"#f0fab5\"];ft.primary=ft[5];var it=[\"#162312\",\"#1d3712\",\"#274916\",\"#306317\",\"#3c8618\",\"#49aa19\",\"#6abe39\",\"#8fd460\",\"#b2e58b\",\"#d5f2bb\"];it.primary=it[5];var dt=[\"#112123\",\"#113536\",\"#144848\",\"#146262\",\"#138585\",\"#13a8a8\",\"#33bcb7\",\"#58d1c9\",\"#84e2d8\",\"#b2f1e8\"];dt.primary=dt[5];var ut=[\"#111a2c\",\"#112545\",\"#15325b\",\"#15417e\",\"#1554ad\",\"#1668dc\",\"#3c89e8\",\"#65a9f3\",\"#8dc5f8\",\"#b7dcfa\"];ut.primary=ut[5];var st=[\"#131629\",\"#161d40\",\"#1c2755\",\"#203175\",\"#263ea0\",\"#2b4acb\",\"#5273e0\",\"#7f9ef3\",\"#a8c1f8\",\"#d2e0fa\"];st.primary=st[5];var mt=[\"#1a1325\",\"#24163a\",\"#301c4d\",\"#3e2069\",\"#51258f\",\"#642ab5\",\"#854eca\",\"#ab7ae0\",\"#cda8f0\",\"#ebd7fa\"];mt.primary=mt[5];var pt=[\"#291321\",\"#40162f\",\"#551c3b\",\"#75204f\",\"#a02669\",\"#cb2b83\",\"#e0529c\",\"#f37fb7\",\"#f8a8cc\",\"#fad2e3\"];pt.primary=pt[5];var xt=[\"#151515\",\"#1f1f1f\",\"#2d2d2d\",\"#393939\",\"#494949\",\"#5a5a5a\",\"#6a6a6a\",\"#7b7b7b\",\"#888888\",\"#969696\"];xt.primary=xt[5];function ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,o)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ct(Object(r),!0).forEach(function(o){c(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}var Pt=b(y());function oe(){return!!(typeof window<\"u\"&&window.document&&window.document.createElement)}function ae(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var r=e;r;){if(r===t)return!0;r=r.parentNode}return!1}var ht=\"data-rc-order\",Ot=\"data-rc-priority\",Zt=\"rc-util-key\",le=new Map;function gt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith(\"data-\")?e:\"data-\".concat(e):Zt}function ne(t){if(t.attachTo)return t.attachTo;var e=document.querySelector(\"head\");return e||document.body}function Xt(t){return t===\"queue\"?\"prependQueue\":t?\"prepend\":\"append\"}function fe(t){return Array.from((le.get(t)||t).children).filter(function(e){return e.tagName===\"STYLE\"})}function Tt(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!oe())return null;var r=e.csp,o=e.prepend,a=e.priority,l=a===void 0?0:a,n=Xt(o),d=n===\"prependQueue\",f=document.createElement(\"style\");f.setAttribute(ht,n),d&&l&&f.setAttribute(Ot,\"\".concat(l)),r!=null&&r.nonce&&(f.nonce=r==null?void 0:r.nonce),f.innerHTML=t;var i=ne(e),m=i.firstChild;if(o){if(d){var u=(e.styles||fe(i)).filter(function(p){if(![\"prepend\",\"prependQueue\"].includes(p.getAttribute(ht)))return!1;var O=Number(p.getAttribute(Ot)||0);return l>=O});if(u.length)return i.insertBefore(f,u[u.length-1].nextSibling),f}i.insertBefore(f,m)}else i.appendChild(f);return f}function er(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=ne(e);return(e.styles||fe(r)).find(function(o){return o.getAttribute(gt(e))===t})}function tr(t,e){var r=le.get(t);if(!r||!ae(document,r)){var o=Tt(\"\",e),a=o.parentNode;le.set(t,a),t.removeChild(o)}}function bt(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=ne(r),a=fe(o),l=g(g({},r),{},{styles:a});tr(o,l);var n=er(e,l);if(n){var d,f;if((d=l.csp)!==null&&d!==void 0&&d.nonce&&n.nonce!==((f=l.csp)===null||f===void 0?void 0:f.nonce)){var i;n.nonce=(i=l.csp)===null||i===void 0?void 0:i.nonce}return n.innerHTML!==t&&(n.innerHTML=t),n}var m=Tt(t,l);return m.setAttribute(gt(l),e),m}function wt(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function rr(t){return wt(t)instanceof ShadowRoot}function Ct(t){return rr(t)?wt(t):null}var ie={},or=[],ar=function(e){or.push(e)};function lr(t,e){if(0)var r}function nr(t,e){if(0)var r}function fr(){ie={}}function Ft(t,e,r){!e&&!ie[r]&&(t(!1,r),ie[r]=!0)}function V(t,e){Ft(lr,t,e)}function ir(t,e){Ft(nr,t,e)}V.preMessage=ar;V.resetWarned=fr;V.noteOnce=ir;var yt=V;var k=b(y());function dr(t){return t.replace(/-(.)/g,function(e,r){return r.toUpperCase()})}function vt(t,e){yt(t,\"[@ant-design/icons] \".concat(e))}function de(t){return w(t)===\"object\"&&typeof t.name==\"string\"&&typeof t.theme==\"string\"&&(w(t.icon)===\"object\"||typeof t.icon==\"function\")}function St(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(e,r){var o=t[r];switch(r){case\"class\":e.className=o,delete e.class;break;default:delete e[r],e[dr(r)]=o}return e},{})}function z(t,e,r){return r?k.default.createElement(t.tag,g(g({key:e},St(t.attrs)),r),(t.children||[]).map(function(o,a){return z(o,\"\".concat(e,\"-\").concat(t.tag,\"-\").concat(a))})):k.default.createElement(t.tag,g({key:e},St(t.attrs)),(t.children||[]).map(function(o,a){return z(o,\"\".concat(e,\"-\").concat(t.tag,\"-\").concat(a))}))}function ue(t){return j(t)[0]}function G(t){return t?Array.isArray(t)?t:[t]:[]}var ur=\"\\n.anticon {\\n display: inline-flex;\\n align-items: center;\\n color: inherit;\\n font-style: normal;\\n line-height: 0;\\n text-align: center;\\n text-transform: none;\\n vertical-align: -0.125em;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.anticon > * {\\n line-height: 1;\\n}\\n\\n.anticon svg {\\n display: inline-block;\\n}\\n\\n.anticon::before {\\n display: none;\\n}\\n\\n.anticon .anticon-icon {\\n display: block;\\n}\\n\\n.anticon[tabindex] {\\n cursor: pointer;\\n}\\n\\n.anticon-spin::before,\\n.anticon-spin {\\n display: inline-block;\\n -webkit-animation: loadingCircle 1s infinite linear;\\n animation: loadingCircle 1s infinite linear;\\n}\\n\\n@-webkit-keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\",kt=function(e){var r=(0,k.useContext)(L),o=r.csp,a=r.prefixCls,l=r.layer,n=ur;a&&(n=n.replace(/anticon/g,a)),l&&(n=\"@layer \".concat(l,\" {\\n\").concat(n,\"\\n}\")),(0,k.useEffect)(function(){var d=e.current,f=Ct(d);bt(n,\"@ant-design-icons\",{prepend:!l,csp:o,attachTo:f})},[])};var sr=[\"icon\",\"className\",\"onClick\",\"style\",\"primaryColor\",\"secondaryColor\"],E={primaryColor:\"#333\",secondaryColor:\"#E6E6E6\",calculated:!1};function mr(t){var e=t.primaryColor,r=t.secondaryColor;E.primaryColor=e,E.secondaryColor=r||ue(e),E.calculated=!!r}function pr(){return g({},E)}var $=function(e){var r=e.icon,o=e.className,a=e.onClick,l=e.style,n=e.primaryColor,d=e.secondaryColor,f=H(e,sr),i=Pt.useRef(),m=E;if(n&&(m={primaryColor:n,secondaryColor:d||ue(n)}),kt(i),vt(de(r),\"icon should be icon definiton, but got \".concat(r)),!de(r))return null;var u=r;return u&&typeof u.icon==\"function\"&&(u=g(g({},u),{},{icon:u.icon(m.primaryColor,m.secondaryColor)})),z(u.icon,\"svg-\".concat(u.name),g(g({className:o,onClick:a,style:l,\"data-icon\":u.name,width:\"1em\",height:\"1em\",fill:\"currentColor\",\"aria-hidden\":\"true\"},f),{},{ref:i}))};$.displayName=\"IconReact\";$.getTwoToneColors=pr;$.setTwoToneColors=mr;var I=$;function se(t){var e=G(t),r=N(e,2),o=r[0],a=r[1];return I.setTwoToneColors({primaryColor:o,secondaryColor:a})}function At(){var t=I.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var xr=[\"className\",\"icon\",\"spin\",\"rotate\",\"tabIndex\",\"onClick\",\"twoToneColor\"];se(W.primary);var Q=P.forwardRef(function(t,e){var r=t.className,o=t.icon,a=t.spin,l=t.rotate,n=t.tabIndex,d=t.onClick,f=t.twoToneColor,i=H(t,xr),m=P.useContext(L),u=m.prefixCls,p=u===void 0?\"anticon\":u,O=m.rootClassName,F=(0,Rt.default)(O,p,c(c({},\"\".concat(p,\"-\").concat(o.name),!!o.name),\"\".concat(p,\"-spin\"),!!a||o.name===\"loading\"),r),A=n;A===void 0&&d&&(A=-1);var D=l?{msTransform:\"rotate(\".concat(l,\"deg)\"),transform:\"rotate(\".concat(l,\"deg)\")}:void 0,T=G(f),C=N(T,2),B=C[0],X=C[1];return P.createElement(\"span\",S({role:\"img\",\"aria-label\":o.name},i,{ref:e,tabIndex:A,onClick:d,className:F}),P.createElement(I,{icon:o,primaryColor:B,secondaryColor:X,style:D}))});Q.displayName=\"AntdIcon\";Q.getTwoToneColor=At;Q.setTwoToneColor=se;var Y=Q;var J=b(y());var cr={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0012.6 0l112-141.9c4.1-5.2.4-13-6.3-13z\"}}]},name:\"sort-ascending\",theme:\"outlined\"},Dt=cr;var hr=function(e,r){return J.createElement(Y,S({},e,{ref:r,icon:Dt}))},Or=J.forwardRef(hr),me=Or;var K=b(y());var gr={icon:{tag:\"svg\",attrs:{viewBox:\"64 64 896 896\",focusable:\"false\"},children:[{tag:\"path\",attrs:{d:\"M839.6 433.8L749 150.5a9.24 9.24 0 00-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 00-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 00-9.2-9.3zM310.3 167.1a8 8 0 00-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z\"}}]},name:\"sort-descending\",theme:\"outlined\"},Mt=gr;var Tr=function(e,r){return K.createElement(Y,S({},e,{ref:r,icon:Mt}))},br=K.forwardRef(Tr),pe=br;var Z=b(Et(),1);if(typeof window<\"u\"){let t=document.createElement(\"style\");t.textContent=\"html,\\nbody,\\n#app {\\n height: 100%;\\n margin: 0;\\n padding: 0;\\n overflow: hidden;\\n}\\n.danmu-container {\\n display: flex;\\n flex-direction: column;\\n height: 100%;\\n padding: 20px;\\n box-sizing: border-box;\\n}\\n.danmu-container .main-title {\\n text-align: center;\\n transition: all 0.3s ease-out;\\n max-height: 50px;\\n opacity: 1;\\n margin-bottom: 20px;\\n overflow: hidden;\\n}\\n.danmu-container .main-title.hidden {\\n max-height: 0;\\n opacity: 0;\\n margin: 0;\\n}\\n.danmu-container .search-input {\\n margin-bottom: 20px;\\n}\\n.danmu-container .result-container {\\n flex-grow: 1;\\n overflow: hidden;\\n display: flex;\\n flex-direction: column;\\n}\\n.danmu-container .result-container .spin-container {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100%;\\n}\\n.danmu-container .result-container > .ant-tabs {\\n flex-grow: 1;\\n display: flex;\\n flex-direction: column;\\n overflow: hidden;\\n}\\n.danmu-container .result-container > .ant-tabs .ant-tabs-content-holder {\\n overflow-y: auto;\\n flex-grow: 1;\\n}\\n.drawer {\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n}\\n.drawer .ant-drawer-mask {\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n}\\n.drawer .ant-drawer-content-wrapper {\\n left: 0;\\n right: 0;\\n}\\n.drawer .ant-drawer-title {\\n white-space: nowrap;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n.drawer .ant-list-item {\\n padding: 16px 24px;\\n}\\n@media (max-width: 768px) {\\n .danmu-container {\\n padding: 10px;\\n }\\n .danmu-container .search-input {\\n margin-bottom: 8px;\\n }\\n .danmu-container .ant-tabs-left > .ant-tabs-nav {\\n width: 80px;\\n }\\n .danmu-container .ant-tabs-nav {\\n margin: 0;\\n }\\n .danmu-container .ant-tabs-tab {\\n font-size: 12px;\\n padding: 8px 12px;\\n }\\n .danmu-container .anime-episode-container {\\n flex-direction: column;\\n }\\n .danmu-container .anime-episode-container .anime-list-col,\\n .danmu-container .anime-episode-container .episode-list-col {\\n width: 100%;\\n border-right: none;\\n max-height: 50vh;\\n }\\n .danmu-container .anime-episode-container .anime-list-col {\\n border-bottom: 1px solid #f0f0f0;\\n }\\n .drawer .ant-drawer-header {\\n padding: 16px 12px;\\n }\\n .drawer .ant-list-item {\\n padding: 12px;\\n }\\n}\\n\",document.head.appendChild(t)}var{Search:wr}=x.Input,{Title:Cr}=x.Typography,xe=\"danmu_search_cache\",It=\"danmu_search_order\",Fr=3,yr=t=>{let e=localStorage.getItem(xe);return e&&JSON.parse(e)[t]||null},Sr=(t,e)=>{let r=[];try{r=JSON.parse(localStorage.getItem(It)||\"[]\")}catch(a){}let o={};try{o=JSON.parse(localStorage.getItem(xe)||\"{}\")}catch(a){}if(r=r.filter(a=>a!==t),r.unshift(t),o[t]=e,r.length>Fr){let a=r.pop();delete o[a]}localStorage.setItem(It,JSON.stringify(r)),localStorage.setItem(xe,JSON.stringify(o))},vr=({animes:t,sourceUrl:e})=>{let[r,o]=(0,s.useState)(!1),[a,l]=(0,s.useState)(null),[n,d]=(0,s.useState)(!1),f=async u=>{try{await Z.default.post(\"/website/danmu/push\",{url:\"\".concat(e,\"/api/v2/comment/\").concat(u.episodeId,\"?format=xml\")}),x.message.success(\"\\u5DF2\\u63A8\\u9001\\uFF0C\\u8BF7\\u7B49\\u5F85\\u5F39\\u5E55\\u52A0\\u8F7D\\u5B8C\\u6210\"),o(!1)}catch(p){console.error(p),x.message.error(\"\\u63A8\\u9001\\u5931\\u8D25\")}},i=u=>{l(u),o(!0),d(!1)},m=()=>{a&&(l(Te(ge({},a),{episodes:[...a.episodes].reverse()})),d(u=>!u))};return!t||t.length===0?s.default.createElement(x.Empty,{description:\"\\u8BE5\\u6765\\u6E90\\u4E0B\\u65E0\\u7ED3\\u679C\"}):s.default.createElement(s.default.Fragment,null,s.default.createElement(x.List,{dataSource:t,renderItem:u=>s.default.createElement(x.List.Item,{onClick:()=>i(u)},u.animeTitle)}),a&&s.default.createElement(x.Drawer,{title:a.animeTitle,placement:\"bottom\",onClose:()=>o(!1),open:r,height:\"80%\",destroyOnClose:!0,closable:!1,bodyStyle:{padding:0},rootClassName:\"drawer\",extra:s.default.createElement(x.Button,{icon:n?s.default.createElement(me,null):s.default.createElement(pe,null),onClick:m,style:{marginLeft:16}})},s.default.createElement(x.List,{dataSource:a.episodes,renderItem:u=>s.default.createElement(x.List.Item,{onClick:()=>f(u)},u.episodeTitle)})))};function Lt(){let[t,e]=(0,s.useState)([]),[r,o]=(0,s.useState)(!1),[a,l]=(0,s.useState)([]),[n,d]=(0,s.useState)(!1),[f,i]=(0,s.useState)(new URLSearchParams(window.location.search).get(\"keyword\")||\"\");(0,s.useEffect)(()=>{Z.default.get(\"/website/danmu/setting\").then(p=>{p.data.code===0&&p.data.data&&p.data.data.urls?e(p.data.data.urls.map(O=>({name:O.name||new URL(O.address).hostname,url:O.address}))):x.message.error(\"\\u83B7\\u53D6\\u5F39\\u5E55\\u6E90\\u5931\\u8D25\")}).catch(p=>{console.error(p),x.message.error(\"\\u83B7\\u53D6\\u5F39\\u5E55\\u6E90\\u5931\\u8D25\")})},[]);let m=(0,s.useCallback)((p,O=!1)=>{let F=p.trim();if(!F){O||x.message.warning(\"\\u8BF7\\u8F93\\u5165\\u641C\\u7D22\\u5173\\u952E\\u8BCD\");return}if(t.length===0&&!O){x.message.error(\"\\u6CA1\\u6709\\u53EF\\u7528\\u7684\\u5F39\\u5E55\\u6E90\");return}if(i(F),!O){let T=new URL(window.location);T.searchParams.set(\"keyword\",F),window.history.pushState({},\"\",T)}if(O){let T=yr(F);if(T){l(T),d(!0),o(!1),x.message.success(\"\\u4ECE\\u7F13\\u5B58\\u52A0\\u8F7D\\u4E86\\u7ED3\\u679C\");return}}o(!0),d(!0),l([]);let A=0,D=[];t.forEach(T=>{Z.default.get(\"\".concat(T.url,\"/api/v2/search/episodes\"),{params:{anime:F}}).then(C=>{if(C.data.success&&C.data.animes&&C.data.animes.length>0){let B={sourceName:T.name,sourceUrl:T.url,data:C.data};D.push(B),l(X=>[...X,B])}}).catch(C=>console.error(\"Search from \".concat(T.name,\" failed:\"),C)).finally(()=>{A++,A===t.length&&(o(!1),D.length>0&&Sr(F,D))})})},[t]);(0,s.useEffect)(()=>{if(t.length>0){let O=new URLSearchParams(window.location.search).get(\"keyword\");O&&m(O,!0)}},[t,m]);let u=a.map((p,O)=>({key:\"\".concat(p.sourceName,\"-\").concat(O),label:p.sourceName,children:s.default.createElement(vr,{animes:p.data.animes,sourceUrl:p.sourceUrl})}));return s.default.createElement(\"div\",{className:\"danmu-container\"},s.default.createElement(Cr,{level:2,className:\"main-title \".concat(n?\"hidden\":\"\")},\"\\u5F39\\u5E55\\u641C\\u7D22\"),s.default.createElement(wr,{placeholder:\"\\u8F93\\u5165\\u5F71\\u89C6\\u540D\\u79F0...\",enterButton:\"\\u641C\\u7D22\",size:\"large\",onSearch:p=>m(p),loading:r,className:\"search-input\",value:f,onChange:p=>i(p.target.value)}),s.default.createElement(\"div\",{className:\"result-container\"},n&&a.length===0&&r&&s.default.createElement(\"div\",{className:\"spin-container\"},s.default.createElement(x.Spin,{size:\"large\"})),a.length>0&&s.default.createElement(x.Tabs,{items:u,size:\"small\"}),n&&a.length===0&&!r&&s.default.createElement(x.Empty,{description:\"\\u672A\\u627E\\u5230\\u76F8\\u5173\\u7ED3\\u679C\"})))}function kr(){(0,Bt.createRoot)(document.getElementById(\"app\")).render(s.default.createElement(Lt,null))}\n/*! Bundled license information:\n\nclassnames/index.js:\n (*!\n \tCopyright (c) 2018 Jed Watson.\n \tLicensed under the MIT License (MIT), see\n \thttp://jedwatson.github.io/classnames\n *)\n*/\n"}
module.exports.renderDanmu();
})();
`;
}();
var sce=Object.create;var sg=Object.defineProperty;var ace=Object.getOwnPropertyDescriptor;var oce=Object.getOwnPropertyNames;var uce=Object.getPrototypeOf,cce=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Is=(e,t)=>{for(var r in t)sg(e,r,{get:t[r],enumerable:!0})},SD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oce(t))!cce.call(e,i)&&i!==r&&sg(e,i,{get:()=>t[i],enumerable:!(n=ace(t,i))||n.enumerable});return e};var Te=(e,t,r)=>(r=e!=null?sce(uce(e)):{},SD(t||!e||!e.__esModule?sg(r,"default",{value:e,enumerable:!0}):r,e)),lce=e=>SD(sg({},"__esModule",{value:!0}),e);var AD=_((LZe,wD)=>{"use strict";function fce(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}wD.exports=fce});var ID=_((MZe,kv)=>{"use strict";var dce=AD();function CD(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=dce(pce),i=null,s=null,a=0,o=null,u={push:m,drain:Hn,saturated:Hn,pause:c,paused:!1,get concurrency(){return r},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=S,!u.paused)for(;i&&a<r;)a++,g()},running:l,resume:h,idle:p,length:f,getQueue:d,unshift:y,empty:Hn,kill:v,killAndDrain:E,error:T,abort:x};return u;function l(){return a}function c(){u.paused=!0}function f(){for(var S=i,w=0;S;)S=S.next,w++;return w}function d(){for(var S=i,w=[];S;)w.push(S.value),S=S.next;return w}function h(){if(u.paused){if(u.paused=!1,i===null){a++,g();return}for(;i&&a<r;)a++,g()}}function p(){return a===0&&u.length()===0}function m(S,w){var A=n.get();A.context=e,A.release=g,A.value=S,A.callback=w||Hn,A.errorHandler=o,a>=r||u.paused?s?(s.next=A,s=A):(i=A,s=A,u.saturated()):(a++,t.call(e,A.value,A.worked))}function y(S,w){var A=n.get();A.context=e,A.release=g,A.value=S,A.callback=w||Hn,A.errorHandler=o,a>=r||u.paused?i?(A.next=i,i=A):(i=A,s=A,u.saturated()):(a++,t.call(e,A.value,A.worked))}function g(S){S&&n.release(S);var w=i;w&&a<=r?u.paused?a--:(s===i&&(s=null),i=w.next,w.next=null,t.call(e,w.value,w.worked),s===null&&u.empty()):--a===0&&u.drain()}function v(){i=null,s=null,u.drain=Hn}function E(){i=null,s=null,u.drain(),u.drain=Hn}function x(){var S=i;for(i=null,s=null;S;){var w=S.next,A=S.callback,C=S.errorHandler,I=S.value,M=S.context;S.value=null,S.callback=Hn,S.errorHandler=null,C&&C(new Error("abort"),I),A.call(M,new Error("abort")),S.release(S),S=w}u.drain=Hn}function T(S){o=S}}function Hn(){}function pce(){this.value=null,this.callback=Hn,this.next=null,this.release=Hn,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,a=e.value;e.value=null,e.callback=Hn,e.errorHandler&&s(r,a),i.call(e.context,r,n),e.release(e)}}function hce(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(c,f){t.call(this,c).then(function(d){f(null,d)},f)}var i=CD(e,n,r),s=i.push,a=i.unshift;return i.push=o,i.unshift=u,i.drained=l,i;function o(c){var f=new Promise(function(d,h){s(c,function(p,m){if(p){h(p);return}d(m)})});return f.catch(Hn),f}function u(c){var f=new Promise(function(d,h){a(c,function(p,m){if(p){h(p);return}d(m)})});return f.catch(Hn),f}function l(){var c=new Promise(function(f){process.nextTick(function(){if(i.idle())f();else{var d=i.drain;i.drain=function(){typeof d=="function"&&d(),f(),i.drain=d}}})});return c}}kv.exports=CD;kv.exports.promise=hce});var Lv=_((FZe,ag)=>{"use strict";var{format:mce}=require("node:util");function gce(){return`${this.name} [${this.code}]: ${this.message}`}function $v(e,t,r=500,n=Error){if(!e)throw new Error("Fastify error code must not be empty");if(!t)throw new Error("Fastify error message must not be empty");e=e.toUpperCase(),!r&&(r=void 0);function i(...s){if(!new.target)return new i(...s);this.code=e,this.name="FastifyError",this.statusCode=r;let a=s.length-1;a!==-1&&s[a]&&typeof s[a]=="object"&&"cause"in s[a]&&(this.cause=s.pop().cause),this.message=mce(t,...s),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,i)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),i.prototype[Symbol.toStringTag]="Error",i.prototype.toString=gce,i}ag.exports=$v;ag.exports.default=$v;ag.exports.createError=$v});var og=_((BZe,RD)=>{"use strict";var{createError:bo}=Lv();RD.exports={AVV_ERR_EXPOSE_ALREADY_DEFINED:bo("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' is already defined, specify an expose option for '%s'"),AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:bo("AVV_ERR_ATTRIBUTE_ALREADY_DEFINED","'%s' is already defined"),AVV_ERR_CALLBACK_NOT_FN:bo("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:bo("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:bo("AVV_ERR_ROOT_PLG_BOOTED","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:bo("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:bo("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"),AVV_ERR_PLUGIN_EXEC_TIMEOUT:bo("AVV_ERR_PLUGIN_EXEC_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var bl=_((qZe,ND)=>{"use strict";var yce=Symbol("avvio.Boot"),bce=Symbol("isOnCloseHandler"),xce=Symbol("avvio.ThenifyDoNotWrap"),Ece=Symbol("avvio.TimeTree.untrackNode"),_ce=Symbol("avvio.TimeTree.trackNode"),vce=Symbol("avvio.TimeTree.getParent"),Tce=Symbol("avvio.TimeTree.getNode"),Sce=Symbol("avvio.TimeTree.addNode"),wce=Symbol.for("plugin-meta");ND.exports={kAvvio:yce,kIsOnCloseHandler:bce,kThenifyDoNotWrap:xce,kUntrackNode:Ece,kTrackNode:_ce,kGetParent:vce,kGetNode:Tce,kAddNode:Sce,kPluginMeta:wce}});var MD=_((jZe,LD)=>{"use strict";var{kUntrackNode:OD,kTrackNode:Mv,kGetParent:PD,kGetNode:DD,kAddNode:kD}=bl(),Fv=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Mv](t){this.tableId.set(t.id,t),this.tableLabel.has(t.label)?this.tableLabel.get(t.label).push(t):this.tableLabel.set(t.label,[t])}[OD](t){this.tableId.delete(t.id);let r=this.tableLabel.get(t.label);r.pop(),r.length===0&&this.tableLabel.delete(t.label)}[PD](t){if(t===null)return null;if(this.tableLabel.has(t)){let r=this.tableLabel.get(t);return r[r.length-1]}else return null}[DD](t){return this.tableId.get(t)}[kD](t,r,n){let i=this[PD](t);if(i===null)return this.root={parent:null,id:"root",label:r,nodes:[],start:n,stop:null,diff:-1},this[Mv](this.root),this.root.id;let a=`${r}-${Math.random()}`,o={parent:t,id:a,label:r,nodes:[],start:n,stop:null,diff:-1};return i.nodes.push(o),this[Mv](o),a}start(t,r,n=Date.now()){return this[kD](t,r,n)}stop(t,r=Date.now()){let n=this[DD](t);n&&(n.stop=r,n.diff=n.stop-n.start||0,this[OD](n))}toJSON(){return Object.assign({},this.root)}prettyPrint(){return $D(this.toJSON())}};function $D(e,t=""){let r=t,n=e.nodes.length,i=n-1;r+=`${e.label} ${e.diff} ms
`;for(let s=0;s<n;++s){let a=e.nodes[s],o=t+(s===i?" ":"\u2502 ");r+=t,r+=s===i?"\u2514\u2500":"\u251C\u2500",r+=a.nodes.length===0?"\u2500 ":"\u252C ",r+=$D(a,o).slice(t.length+2)}return r}LD.exports={TimeTree:Fv}});var ug=_((UZe,FD)=>{"use strict";var{debuglog:Ace}=require("node:util"),Cce=Ace("avvio");FD.exports={debug:Cce}});var qD=_((HZe,BD)=>{"use strict";function Ice(){let e={resolve:null,reject:null,promise:null};return e.promise=new Promise((t,r)=>{e.resolve=t,e.reject=r}),e}BD.exports={createPromise:Ice}});var UD=_((zZe,jD)=>{"use strict";var{kPluginMeta:Bv}=bl();function Rce(e,t){return e[Bv]&&e[Bv].name?e[Bv].name:t&&t.name?t.name:e.name?e.name:e.toString().split(`
`).slice(0,2).map(r=>r.trim()).join(" -- ")}jD.exports={getPluginName:Rce}});var cg=_((VZe,HD)=>{"use strict";function Nce(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}HD.exports={isPromiseLike:Nce}});var VD=_((GZe,zD)=>{"use strict";var{EventEmitter:Oce}=require("node:events"),{inherits:Pce}=require("node:util"),{debug:Gr}=ug(),{createPromise:Dce}=qD(),{AVV_ERR_PLUGIN_EXEC_TIMEOUT:kce}=og(),{getPluginName:$ce}=UD(),{isPromiseLike:Lce}=cg();function xl(e,t,r,n,i){this.queue=e,this.func=t,this.options=r,this.isAfter=n,this.timeout=i,this.started=!1,this.name=$ce(t,r),this.queue.pause(),this._error=null,this.loaded=!1,this._promise=null,this.startTime=null}Pce(xl,Oce);xl.prototype.exec=function(e,t){Gr("exec",this.name),this.server=e;let r=this.func,n=this.name,i=!1;this.options=typeof this.options=="function"?this.options(this.server):this.options;let s=null,a=u=>{if(i){Gr("loading complete",n);return}this._error=u,Gr(u?"exec errored":"exec completed",n),i=!0,s&&clearTimeout(s),t(u)};this.timeout>0&&(Gr("setting up timeout",n,this.timeout),s=setTimeout(function(){Gr("timed out",n),s=null;let u=new kce(n);u.fn=r,a(u)},this.timeout)),this.started=!0,this.startTime=Date.now(),this.emit("start",this.server?this.server.name:null,this.name,Date.now());let o=r(this.server,this.options,a);Lce(o)&&(Gr("exec: resolving promise",n),o.then(()=>process.nextTick(a),u=>process.nextTick(a,u)))};xl.prototype.loadedSoFar=function(){if(Gr("loadedSoFar",this.name),this.loaded)return Promise.resolve();let e=()=>{this.server.after((r,n)=>{this._error=r,this.queue.pause(),this._promise&&(r?(Gr("rejecting promise",this.name,r),this._promise.reject(r)):(Gr("resolving promise",this.name),this._promise.resolve()),this._promise=null),process.nextTick(n,r)}),this.queue.resume()},t;return this._promise?t=Promise.resolve():(this._promise=Dce(),t=this._promise.promise,this.server?e():this.on("start",e)),t};xl.prototype.enqueue=function(e,t){Gr("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.queue.push(e,t)};xl.prototype.finish=function(e,t){Gr("finish",this.name,e);let r=()=>{this.loaded||(Gr("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),r();return}let n=()=>{if(Gr("check",this.name,this.queue.length(),this.queue.running(),this._promise),this.queue.length()===0&&this.queue.running()===0)if(this._promise){let i=()=>{Gr("wrap"),queueMicrotask(n)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else r();else Gr("delayed",this.name),this.queue.drain=()=>{Gr("drain",this.name),this.queue.drain=Mce,queueMicrotask(n)}};queueMicrotask(n),this.queue.resume()};function Mce(){}zD.exports={Plugin:xl}});var WD=_((WZe,GD)=>{"use strict";var{AVV_ERR_PLUGIN_NOT_VALID:qv}=og();function Fce(e){if(!(e&&(typeof e=="function"||typeof e.then=="function")))throw Array.isArray(e)?new qv("array"):e===null?new qv("null"):new qv(typeof e)}GD.exports={validatePlugin:Fce}});var YD=_((KZe,KD)=>{"use strict";function Bce(e){return e!==null&&typeof e=="object"&&typeof e.default=="function"}KD.exports={isBundledOrTypescriptPlugin:Bce}});var QD=_((YZe,JD)=>{"use strict";var{debug:XD}=ug(),{kThenifyDoNotWrap:jv}=bl();function qce(){if(this.booted){XD("thenify returning undefined because we are already booted");return}if(this[jv]){this[jv]=!1;return}return XD("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[jv]=!0,e(this._server)),t)}JD.exports={thenify:qce}});var e5=_((XZe,ZD)=>{"use strict";var{isPromiseLike:jce}=cg(),{kAvvio:Uce}=bl();function Hce(e,t,r){let n=e.apply(e,t);jce(n)&&!n[Uce]?n.then(()=>process.nextTick(r),i=>process.nextTick(r,i)):r&&process.nextTick(r)}ZD.exports={executeWithThenable:Hce}});var u5=_((JZe,Hv)=>{"use strict";var lg=ID(),zce=require("node:events").EventEmitter,Vce=require("node:util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Wd,AVV_ERR_CALLBACK_NOT_FN:El,AVV_ERR_ROOT_PLG_BOOTED:Gce,AVV_ERR_READY_TIMEOUT:Wce,AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:Kce}=og(),{kAvvio:n5,kIsOnCloseHandler:i5}=bl(),{TimeTree:Yce}=MD(),{Plugin:s5}=VD(),{debug:_l}=ug(),{validatePlugin:Xce}=WD(),{isBundledOrTypescriptPlugin:Jce}=YD(),{isPromiseLike:Qce}=cg(),{thenify:a5}=QD(),{executeWithThenable:t5}=e5();function or(e,t,r){if(typeof e=="function"&&arguments.length===1&&(r=e,t={},e=null),typeof t=="function"&&(r=t,t={}),t=t||{},t.autostart=t.autostart!==!1,t.timeout=Number(t.timeout)||0,t.expose=t.expose||{},!new.target)return new or(e,t,r);this._server=e||this,this._opts=t,e&&this._expose(),this._current=[],this._error=null,this._lastUsed=null,this.setMaxListeners(0),r&&this.once("start",r),this.started=!1,this.booted=!1,this.pluginTree=new Yce,this._readyQ=lg(this,o5,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=r5},this._closeQ=lg(this,ele,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=r5},this._doStart=null;let n=this;this._root=new s5(lg(this,this._loadPluginNextTick,1),function(s,a,o){n._doStart=o,a.autostart&&n.start()},t,!1,0),this._trackPluginLoading(this._root),this._loadPlugin(this._root,i=>{_l("root plugin ready");try{this.emit("preReady"),this._root=null}catch(s){i=i||this._error||s}if(i){if(this._error=i,this._readyQ.length()===0)throw i}else this.booted=!0;this._readyQ.resume()})}Vce(or,zce);or.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};or.prototype.override=function(e,t,r){return e};or.prototype[n5]=!0;or.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};or.prototype._loadRegistered=function(){let e=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.queue.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(or.prototype,"then",{get:a5});or.prototype._addPlugin=function(e,t,r){if(Jce(e)&&(e=e.default),Xce(e),t=t||{},this.booted)throw new Gce;let n=this._current[0],i=this._opts.timeout;if(!n.loaded&&n.timeout>0){let a=Date.now()-n.startTime;i=n.timeout-(a+3)}let s=new s5(lg(this,this._loadPluginNextTick,1),e,t,r,i);if(this._trackPluginLoading(s),n.loaded)throw new Error(s.name,n.name);return n.enqueue(s,a=>{a&&(this._error=a)}),s};or.prototype._expose=function(){let t=this,r=t._server,{use:n="use",after:i="after",ready:s="ready",onClose:a="onClose",close:o="close"}=this._opts.expose;if(r[n])throw new Wd(n,"use");if(r[n]=function(u,l){return t.use(u,l),this},r[i])throw new Wd(i,"after");if(r[i]=function(u){return typeof u!="function"?t._loadRegistered():(t.after(Uv(u,this)),this)},r[s])throw new Wd(s,"ready");if(r[s]=function(u){if(u&&typeof u!="function")throw new El(s,typeof u);return t.ready(u?Uv(u,this):void 0)},r[a])throw new Wd(a,"onClose");if(r[a]=function(u){if(typeof u!="function")throw new El(a,typeof u);return t.onClose(tle(u,this)),this},r[o])throw new Wd(o,"close");if(r[o]=function(u){if(u&&typeof u!="function")throw new El(o,typeof u);return u?(t.close(Uv(u,this)),this):t.close()},r.then)throw new Kce("then");Object.defineProperty(r,"then",{get:a5.bind(t)}),r[n5]=!0};or.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(r,n,i){o5.call(this,e,i)}return this};or.prototype.onClose=function(e){if(typeof e!="function")throw new El("onClose",typeof e);return e[i5]=!0,this._closeQ.unshift(e,t=>{t&&(this._error=t)}),this};or.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new El("close",typeof e)}else t=new Promise(function(r,n){e=function(i){if(i)return n(i);r()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};or.prototype.ready=function(e){if(e){if(typeof e!="function")throw new El("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,r)=>{this._readyQ.push(i),this.start();let n=this._current[0].server;function i(s,a,o){s?r(s):t(n),process.nextTick(o)}})};or.prototype._trackPluginLoading=function(e){let t=this._current[0]?.name||null;e.once("start",(r,n,i)=>{let s=this.pluginTree.start(t||null,n,i);e.once("loaded",(a,o,u)=>{this.pluginTree.stop(s,u)})})};or.prototype.prettyPrint=function(){return this.pluginTree.prettyPrint()};or.prototype.toJSON=function(){return this.pluginTree.toJSON()};or.prototype._loadPlugin=function(e,t){let r=this;if(Qce(e.func)){e.func.then(a=>{typeof a.default=="function"&&(a=a.default),e.func=a,this._loadPlugin(e,t)},t);return}let n=r._current[0];if(r._current.unshift(e),r._error&&!e.isAfter){_l("skipping loading of plugin as instance errored and it is not an after",e.name),process.nextTick(s);return}let i=n&&n.server||r._server;if(!e.isAfter)try{i=r.override(i,e.func,e.options)}catch(a){return _l("override errored",e.name),s(a)}e.exec(i,s);function s(a){e.finish(a,o=>{r._current.shift(),t(o)})}};or.prototype._loadPluginNextTick=function(e,t){process.nextTick(this._loadPlugin.bind(this),e,t)};function r5(){}function o5(e,t){let r=this._server,n=this._error;if(this._error=null,e.length===0)this._error=n,t5(e,[],t);else if(e.length===1)t5(e,[n],t);else if(this._opts.timeout===0){let i=s=>{this._error=s,t(this._error)};e.length===2?e(n,i):e(n,r,i)}else Zce.call(this,e,n,r,t)}function Zce(e,t,r,n){let i=e.unwrappedName??e.name;_l("setting up ready timeout",i,this._opts.timeout);let s=setTimeout(()=>{_l("timed out",i),s=null;let o=new Wce(i);o.fn=e,this._error=o,n(o)},this._opts.timeout);e.length===2?e(t,a.bind(this)):e(t,r,a.bind(this));function a(o){s&&(clearTimeout(s),this._error=o,n(this._error))}}function ele(e,t){let r=this._server,n=e[i5];if(e.length===0||e.length===1){let i;n?i=e(r):i=e(this._error),i&&typeof i.then=="function"?(_l("resolving close/onClose promise"),i.then(()=>process.nextTick(t),s=>process.nextTick(t,s))):process.nextTick(t)}else e.length===2?e(n?r:this._error,t):n?e(r,t):e(this._error,r,t)}function tle(e,t){return r.bind(t);function r(n,i){let s;e.length===0?(s=e(),s&&s.then?s.then(function(){process.nextTick(i)},i):process.nextTick(i)):e.length===1?(s=e(this),s&&s.then?s.then(function(){process.nextTick(i)},i):process.nextTick(i)):e(this,i)}}function Uv(e,t){let r=n.bind(t);return r.unwrappedName=e.name,r;function n(i,s){let a;e?e.length===0?(a=e(),a&&a.then?a.then(function(){process.nextTick(s,i)},s):process.nextTick(s,i)):e.length===1?(a=e(i),a&&a.then?a.then(function(){process.nextTick(s)},s):process.nextTick(s)):e.length===2?e(i,s):e(i,this,s):process.nextTick(s)}}Hv.exports=or;Hv.exports.express=function(e){return or(e,{expose:{use:"load"}})}});var Or=_((QZe,c5)=>{"use strict";var rle={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kServerBindings:Symbol("fastify.serverBindings"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kRouteContext:Symbol("fastify.context"),kPublicRouteContext:Symbol("fastify.routeOptions"),kGenReqId:Symbol("fastify.genReqId"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kSchemaVisited:Symbol("fastify.schemas.visited"),kRequest:Symbol("fastify.Request"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),kFourOhFour:Symbol("fastify.404"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReply:Symbol("fastify.Reply"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplyHijacked:Symbol("fastify.reply.hijacked"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyNextErrorHandler:Symbol("fastify.reply.nextErrorHandler"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};c5.exports=rle});var Gv=_((ZZe,fg)=>{"use strict";var{format:zv}=require("node:util");function nle(e){return l5({...e,name:"DeprecationWarning"})}function l5({name:e,code:t,message:r,unlimited:n=!1}={}){if(!e)throw new Error("Warning name must not be empty");if(!t)throw new Error("Warning code must not be empty");if(!r)throw new Error("Warning message must not be empty");if(typeof n!="boolean")throw new Error("Warning opts.unlimited must be a boolean");t=t.toUpperCase();let i={[e]:function(a,o,u){s.emitted===!0&&s.unlimited!==!0||(s.emitted=!0,process.emitWarning(s.format(a,o,u),s.name,s.code))}};n&&(i={[e]:function(a,o,u){s.emitted=!0,process.emitWarning(s.format(a,o,u),s.name,s.code)}});let s=i[e];return s.emitted=!1,s.message=r,s.unlimited=n,s.code=t,s.format=function(a,o,u){let l;return a&&o&&u?l=zv(r,a,o,u):a&&o?l=zv(r,a,o):a?l=zv(r,a):l=r,l},s}var Vv={createWarning:l5,createDeprecation:nle};fg.exports=Vv;fg.exports.default=Vv;fg.exports.processWarning=Vv});var xa=_((eet,d5)=>{"use strict";var{createDeprecation:rn,createWarning:f5}=Gv(),ile=rn({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),sle=rn({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),ale=rn({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),ole=rn({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),ule=rn({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),cle=rn({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),lle=rn({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),fle=rn({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),dle=rn({code:"FSTDEP013",message:'Direct return of "trailers" function is deprecated. Please use "callback" or "async-await" for return value. The support of direct return will removed in `fastify@5`.'}),ple=rn({code:"FSTDEP014",message:"You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes."}),hle=rn({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),mle=rn({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),gle=rn({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),yle=rn({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),ble=rn({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),xle=rn({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),Ele=f5({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),_le=f5({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});d5.exports={FSTDEP005:ile,FSTDEP006:sle,FSTDEP007:ale,FSTDEP008:ole,FSTDEP009:ule,FSTDEP010:cle,FSTDEP011:lle,FSTDEP012:fle,FSTDEP013:dle,FSTDEP014:ple,FSTDEP015:hle,FSTDEP016:mle,FSTDEP017:gle,FSTDEP018:yle,FSTDEP019:ble,FSTDEP020:xle,FSTWRN001:Ele,FSTWRN002:_le}});var nn=_((tet,dg)=>{"use strict";var pe=Lv(),vl={FST_ERR_NOT_FOUND:pe("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:pe("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:pe("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:pe("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:pe("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:pe("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:pe("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:pe("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:pe("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:pe("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:pe("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:pe("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:pe("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:pe("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:pe("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:pe("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:pe("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:pe("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:pe("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:pe("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:pe("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:pe("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:pe("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:pe("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:pe("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:pe("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:pe("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:pe("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:pe("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:pe("FST_ERR_HOOK_TIMEOUT","A callback for '%s' hook timed out. You may have forgotten to call 'done' function or to resolve a Promise"),FST_ERR_LOG_INVALID_DESTINATION:pe("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:pe("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:pe("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:pe("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:pe("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:pe("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:pe("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:pe("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:pe("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:pe("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:pe("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:pe("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:pe("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:pe("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:pe("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:pe("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:pe("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:pe("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:pe("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:pe("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:pe("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:pe("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:pe("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:pe("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:pe("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:pe("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:pe("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:pe("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:pe("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:pe("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:pe("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:pe("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:pe("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:pe("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:pe("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:pe("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:pe("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:pe("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:pe("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:pe("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:pe("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:pe("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:pe("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:pe("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:pe("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:pe("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:pe("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:pe("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:pe("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function vle(e,t){return t.cause=e,t}dg.exports=vl;dg.exports.appendStackTrace=vle;dg.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:vl.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:vl.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:vl.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:vl.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:vl.FST_ERR_PLUGIN_TIMEOUT}});var xo=_((ret,_5)=>{"use strict";var Tle=["onRoute","onRegister","onReady","onListen","preClose","onClose"],g5=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],Sle=g5.concat(Tle),{FST_ERR_HOOK_INVALID_TYPE:wle,FST_ERR_HOOK_INVALID_HANDLER:Ale,FST_ERR_SEND_UNDEFINED_ERR:pg,FST_ERR_HOOK_TIMEOUT:Cle,FST_ERR_HOOK_NOT_SUPPORTED:Ile,AVVIO_ERRORS_MAP:p5,appendStackTrace:h5}=nn(),{kChildren:Kd,kHooks:y5,kRequestPayloadStream:m5}=Or();function Yd(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}Yd.prototype=Object.create(null);Yd.prototype.validate=function(e,t){if(typeof e!="string")throw new wle;if(Array.isArray(this[e])===!1)throw new Ile(e);if(typeof t!="function")throw new Ale(e,Object.prototype.toString.call(t))};Yd.prototype.add=function(e,t){this.validate(e,t),this[e].push(t)};function Rle(e){let t=new Yd;return t.onRequest=e.onRequest.slice(),t.preParsing=e.preParsing.slice(),t.preValidation=e.preValidation.slice(),t.preSerialization=e.preSerialization.slice(),t.preHandler=e.preHandler.slice(),t.onSend=e.onSend.slice(),t.onResponse=e.onResponse.slice(),t.onError=e.onError.slice(),t.onRoute=e.onRoute.slice(),t.onRegister=e.onRegister.slice(),t.onTimeout=e.onTimeout.slice(),t.onRequestAbort=e.onRequestAbort.slice(),t.onReady=[],t.onListen=[],t.preClose=[],t}function b5(e,t,r,n){let i=r[y5][e],s=0,a=0;u();function o(c){if(c){c.code==="AVV_ERR_READY_TIMEOUT"?c=h5(c,new Cle(e)):c=p5[c.code]!=null?h5(c,new p5[c.code](c.message)):c,n(c);return}n()}function u(c){if(c){o(c);return}if(s===i.length&&a===r[Kd].length){s===0&&a===0?o():t(function(d,h){o(d),h(d)});return}if(s===i.length&&a<r[Kd].length){let f=r[Kd][a++];b5(e,t,f,u);return}t(l(i[s++],r)),u()}function l(c,f){return function(d,h){if(d){h(d);return}if(c.length===1){try{c.call(f,h)}catch(p){h(p)}return}try{let p=c.call(f);if(p&&typeof p.then=="function"){p.then(h,h);return}}catch(p){d=p}h(d)}}}function x5(e){let t=e[y5].onListen,r=t.length,n=0,i=0;s();function s(o){if(o&&e.log.error(o),n===r){for(;i<e[Kd].length;){let u=e[Kd][i++];x5(u)}return}a(t[n++],e,s)}async function a(o,u,l){if(o.length===1){try{o.call(u,l)}catch(c){l(c)}return}try{let c=o.call(u);if(c&&typeof c.then=="function"){c.then(l,l);return}l()}catch(c){l(c)}}}function Tl(e){return function(r,n,i,s){let a=0;function o(c){if(c||a===r.length){s(c,n,i);return}let f;try{f=e(r[a++],n,i,o)}catch(d){s(d,n,i);return}f&&typeof f.then=="function"&&f.then(u,l)}function u(){o()}function l(c){c||(c=new pg),s(c,n,i)}o()}}function Nle(e,t,r,n){return e(t,r,n)}var Ole=Tl(Nle),Ple=Tl(Xd),Dle=Tl(Xd),kle=Tl(Xd),$le=Tl(Xd);function E5(e,t,r,n,i){let s=0;function a(l,c){if(l){i(l,t,r,n);return}if(c!==void 0&&(n=c),s===e.length){i(null,t,r,n);return}let f;try{f=e[s++](t,r,n,a)}catch(d){i(d,t,r);return}f&&typeof f.then=="function"&&f.then(o,u)}function o(l){a(null,l)}function u(l){l||(l=new pg),i(l,t,r,n)}a()}var Lle=E5;function Mle(e,t,r,n){let i=0;function s(u,l){if(r.sent)return;if(l!==void 0&&(t[m5]=l),u||i===e.length){n(u,t,r);return}let c;try{c=e[i++](t,r,t[m5],s)}catch(f){n(f,t,r);return}c&&typeof c.then=="function"&&c.then(a,o)}function a(u){s(null,u)}function o(u){u||(u=new pg),n(u,t,r)}s()}function Fle(e,t,r){let n=0;function i(o){if(o||n===e.length){r(o,t);return}let u;try{u=e[n++](t,i)}catch(l){r(l,t);return}u&&typeof u.then=="function"&&u.then(s,a)}function s(){i()}function a(o){o||(o=new pg),r(o,t)}i()}function Xd(e,t,r,n){if(r.sent!==!0)return e(t,r,n)}_5.exports={Hooks:Yd,buildHooks:Rle,hookRunnerGenerator:Tl,preParsingHookRunner:Mle,onResponseHookRunner:Ole,onSendHookRunner:E5,preSerializationHookRunner:Lle,onRequestAbortHookRunner:Fle,hookIterator:Xd,hookRunnerApplication:b5,onListenHookRunner:x5,preHandlerHookRunner:Dle,preValidationHookRunner:Ple,onRequestHookRunner:$le,onTimeoutHookRunner:kle,lifecycleHooks:g5,supportedHooks:Sle}});var O5=_((net,Kv)=>{"use strict";var Ble=require("node:http"),qle=require("node:https"),jle=require("node:dns"),{FSTDEP011:v5}=xa(),{kState:sn,kOptions:Ule,kServerBindings:Hle}=Or(),{onListenHookRunner:hg}=xo(),{FST_ERR_HTTP2_INVALID_VERSION:zle,FST_ERR_REOPENED_CLOSE_SERVER:w5,FST_ERR_REOPENED_SERVER:A5,FST_ERR_LISTEN_OPTIONS_INVALID:Vle}=nn();Kv.exports.createServer=Gle;Kv.exports.compileValidateHTTPVersion=Kle;function C5(e){return`Server listening at ${e}`}function Gle(e,t){let r=R5(e,t);function n(i,...s){let a=s.slice(-1).pop(),o=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)i=Wv([]);else if(arguments.length>0&&o!=="[object Object]"&&o!=="[object Function]")v5(),i=Wv(Array.from(arguments)),a=i.cb;else if(s.length>1){v5();let l=i.path?[i.path]:[i.port??0,i.host??"localhost"];Object.assign(i,Wv([...l,...s]))}else i.cb=a;if(i.signal){if(typeof i.signal.on!="function"&&typeof i.signal.addEventListener!="function")throw new Vle("Invalid options.signal");if(i.signal.aborted)this.close();else{let l=()=>{this.close()};i.signal.addEventListener("abort",l,{once:!0})}}let u;if(i.path==null?u=i.host??"localhost":u=i.host,Object.prototype.hasOwnProperty.call(i,"host")===!1&&(i.host=u),u==="localhost"?i.cb=(l,c)=>{if(l){a(l,c);return}T5.call(this,r,t,e,i,()=>{this[sn].listening=!0,a(null,c),hg(this)})}:i.cb=(l,c)=>{if(l){a(l,c);return}this[sn].listening=!0,a(null,c),hg(this)},a===void 0)return Wle.call(this,r,i).then(c=>new Promise((f,d)=>{u==="localhost"?T5.call(this,r,t,e,i,()=>{this[sn].listening=!0,f(c),hg(this)}):(f(c),hg(this))}));this.ready(I5.call(this,r,i))}return{server:r,listen:n}}function T5(e,t,r,n,i){this[sn].listening=!1,jle.lookup(n.host,{all:!0},(s,a)=>{if(s){i();return}let o=e.listening&&r.serverFactory,u=0,l=0;if(!o){let f=e.address();for(let d of a)if(d.address!==f.address){u++;let h=Object.assign({},n,{host:d.address,port:f.port,cb:y=>{l++,y||this[Hle].push(p),l===u&&i()}}),p=R5(r,t),m=()=>{p.close(()=>{}),r.forceCloseConnections==="idle"?p.closeIdleConnections():typeof p.closeAllConnections=="function"&&r.forceCloseConnections&&p.closeAllConnections()};p.on("upgrade",e.emit.bind(e,"upgrade")),e.on("unref",m),e.on("close",m),e.on("error",m),this[sn].listening=!1,I5.call(this,p,h)()}}if(u===0){i();return}let c=e.unref;e.unref=function(){c.call(e),e.emit("unref")}})}function I5(e,t){let r=n=>{if(e.removeListener("error",r),n)this[sn].listening=!1,t.cb(n,null);else{let i=N5.call(this,e,t.listenTextResolver||C5);t.cb(null,i)}};return n=>{if(n!=null)return t.cb(n);if(this[sn].listening&&this[sn].closing)return t.cb(new w5,null);if(this[sn].listening)return t.cb(new A5,null);e.once("error",r),this[sn].closing||(e.listen(t,r),this[sn].listening=!0)}}function Wle(e,t){return this[sn].listening&&this[sn].closing?Promise.reject(new w5):this[sn].listening?Promise.reject(new A5):this.ready().then(()=>{let r,n=new Promise((s,a)=>{r=o=>{this[sn].listening=!1,a(o)},e.once("error",r)}),i=new Promise((s,a)=>{e.listen(t,()=>{e.removeListener("error",r),s(N5.call(this,e,t.listenTextResolver||C5))}),this[sn].listening=!0});return Promise.race([n,i])})}function Kle(e){let t=!1,r=new Map;return e.serverFactory&&(t=!0),e.http2?(r.set("2.0",!0),e.https&&e.https.allowHTTP1===!0&&(r.set("1.1",!0),r.set("1.0",!0))):(r.set("1.1",!0),r.set("1.0",!0)),function(i){return t||r.has(i)}}function R5(e,t){let r=null,n=e.https===!0?{}:e.https;return e.serverFactory?r=e.serverFactory(t,e):e.http2?(typeof n=="object"?r=S5().createSecureServer(n,t):r=S5().createServer(t),r.on("session",Xle(e.http2SessionTimeout))):(n?r=qle.createServer(n,t):r=Ble.createServer(e.http,t),r.keepAliveTimeout=e.keepAliveTimeout,r.requestTimeout=e.requestTimeout,e.maxRequestsPerSocket>0&&(r.maxRequestsPerSocket=e.maxRequestsPerSocket)),e.serverFactory||r.setTimeout(e.connectionTimeout),r}function Wv(e){if(e.length===0)return{port:0,host:"localhost"};let r={cb:typeof e[e.length-1]=="function"?e.pop():void 0},n=e[0],i=e.length,s=e[i-1];return typeof n=="string"&&isNaN(n)?(r.path=n,r.backlog=i>1?s:void 0):(r.port=i>=1&&Number.isInteger(n)?n:Yle(n),r.host=i>=2&&e[1]?e[1]:"localhost",r.backlog=i>=3?e[2]:void 0),r}function Yle(e){let t=Number(e);return t>=0&&!Number.isNaN(t)&&Number.isInteger(t)?t:0}function N5(e,t){let r=e.address(),n=typeof r=="string";n||(r.address.indexOf(":")===-1?r=r.address+":"+r.port:r="["+r.address+"]:"+r.port),r=(n?"":"http"+(this[Ule].https?"s":"")+"://")+r;let i=t(r);return this.log.info(i),r}function S5(){try{return require("node:http2")}catch{throw new zle}}function Xle(e){return function(t){t.setTimeout(e,Jle)}}function Jle(){this.close()}});var Qv=_((iet,D5)=>{"use strict";var{kSchemaHeaders:yg,kSchemaParams:Yv,kSchemaQuerystring:Xv,kSchemaBody:Jv,kSchemaResponse:P5}=Or(),Qle=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Zle}=nn(),{FSTWRN001:mg}=xa();function efe(e,t){if(!e.schema||!e.schema.response)return;let{method:r,url:n}=e.config||{};e[P5]=Object.keys(e.schema.response).reduce(function(i,s){let a=e.schema.response[s];if(s=s.toLowerCase(),!Qle.exec(s))throw new Zle;if(a.content){let o={};for(let u of Object.keys(a.content)){let l=a.content[u].schema;o[u]=t({schema:l,url:n,method:r,httpStatus:s,contentType:u})}i[s]=o}else i[s]=t({schema:a,url:n,method:r,httpStatus:s});return i},{})}function tfe(e,t,r){let{schema:n}=e;if(!n)return;let{method:i,url:s}=e.config||{},a=n.headers;if(a&&(r||Object.getPrototypeOf(a)!==Object.prototype))e[yg]=t({schema:a,method:i,url:s,httpPart:"headers"});else if(a){let o={};Object.keys(a).forEach(u=>{o[u]=a[u]}),o.required instanceof Array&&(o.required=o.required.map(u=>u.toLowerCase())),a.properties&&(o.properties={},Object.keys(a.properties).forEach(u=>{o.properties[u.toLowerCase()]=a.properties[u]})),e[yg]=t({schema:o,method:i,url:s,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(n,"headers")&&mg("headers",i,s);n.body?e[Jv]=t({schema:n.body,method:i,url:s,httpPart:"body"}):Object.prototype.hasOwnProperty.call(n,"body")&&mg("body",i,s),n.querystring?e[Xv]=t({schema:n.querystring,method:i,url:s,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(n,"querystring")&&mg("querystring",i,s),n.params?e[Yv]=t({schema:n.params,method:i,url:s,httpPart:"params"}):Object.prototype.hasOwnProperty.call(n,"params")&&mg("params",i,s)}function gg(e,t,r){let n=t[r]===void 0,i=e&&e(n?null:t[r]);if(i?.then)return i.then(a=>s(a)).catch(a=>a);return s(i);function s(a){return a===!1?e.errors:a&&a.error?a.error:(a&&a.value&&(t[r]=a.value),!1)}}function bg(e,t,r){let n=r===void 0;if(n||!r.skipParams){let s=gg(e[Yv],t,"params");if(s)return typeof s.then!="function"?Eo(s,"params",e.schemaErrorFormatter):rfe(s,e,t)}if(n||!r.skipBody){let s=gg(e[Jv],t,"body");if(s)return typeof s.then!="function"?Eo(s,"body",e.schemaErrorFormatter):nfe(s,e,t)}if(n||!r.skipQuery){let s=gg(e[Xv],t,"query");if(s)return typeof s.then!="function"?Eo(s,"querystring",e.schemaErrorFormatter):ife(s,e,t)}let i=gg(e[yg],t,"headers");return i?typeof i.then!="function"?Eo(i,"headers",e.schemaErrorFormatter):sfe(i,e,t):!1}function rfe(e,t,r){return e.then(n=>n?Eo(n,"params",t.schemaErrorFormatter):bg(t,r,{skipParams:!0}))}function nfe(e,t,r){return e.then(n=>n?Eo(n,"body",t.schemaErrorFormatter):bg(t,r,{skipParams:!0,skipBody:!0}))}function ife(e,t,r){return e.then(n=>n?Eo(n,"querystring",t.schemaErrorFormatter):bg(t,r,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function sfe(e,t,r){return e.then(n=>n?Eo(n,"headers",t.schemaErrorFormatter):!1)}function Eo(e,t,r){if(e instanceof Error)return e.statusCode=e.statusCode||400,e.code=e.code||"FST_ERR_VALIDATION",e.validationContext=e.validationContext||t,e;let n=r(e,t);return n.statusCode=n.statusCode||400,n.code=n.code||"FST_ERR_VALIDATION",n.validation=e,n.validationContext=t,n}D5.exports={symbols:{bodySchema:Jv,querystringSchema:Xv,responseSchema:P5,paramsSchema:Yv,headersSchema:yg},compileSchemasForValidation:tfe,compileSchemasForSerialization:efe,validate:bg}});var Zv=_((set,$5)=>{"use strict";var{kReplyIsError:k5,kReplyHijacked:afe}=Or();function ofe(e,t){e.then(function(r){if(t[afe]!==!0&&(r!==void 0||t.sent===!1&&t.raw.headersSent===!1&&t.request.raw.aborted===!1))try{t.send(r)}catch(n){t[k5]=!0,t.send(n)}},function(r){if(t.sent===!0){t.log.error({err:r},"Promise errored, but reply.sent = true was set");return}t[k5]=!0;try{t.send(r)}catch(n){t.send(n)}})}$5.exports=ofe});var n2=_((aet,r2)=>{"use strict";var{validate:ufe}=Qv(),{preValidationHookRunner:cfe,preHandlerHookRunner:lfe}=xo(),ffe=Zv(),{kReplyIsError:xg,kRouteContext:vo}=Or();function dfe(e,t,r){if(r.sent===!0)return;if(e!=null){r[xg]=!0,r.send(e);return}let n=t.raw.method,i=t.headers,s=t[vo];if(n==="GET"||n==="HEAD"){_o(t,r);return}let a=i["content-type"];if(n==="POST"||n==="PUT"||n==="PATCH"||n==="TRACE"||n==="SEARCH"){a===void 0?i["transfer-encoding"]===void 0&&(i["content-length"]==="0"||i["content-length"]===void 0)?_o(t,r):s.contentTypeParser.run("",_o,t,r):s.contentTypeParser.run(a,_o,t,r);return}if(n==="OPTIONS"||n==="DELETE"){a!==void 0&&(i["transfer-encoding"]!==void 0||i["content-length"]!==void 0)?s.contentTypeParser.run(a,_o,t,r):_o(t,r);return}_o(t,r)}function _o(e,t){try{e[vo].preValidation!==null?cfe(e[vo].preValidation,e,t,e2):e2(null,e,t)}catch(r){e2(r,e,t)}}function e2(e,t,r){if(r.sent===!0)return;if(e!=null){r[xg]=!0,r.send(e);return}let n=ufe(r[vo],t);if(n&&typeof n.then=="function"||!1){let s=L5.bind(null,t,r);n.then(s,s)}else L5(t,r,n)}function L5(e,t,r){if(r){if(t[vo].attachValidation===!1){t.send(r);return}t.request.validationError=r}e[vo].preHandler!==null?lfe(e[vo].preHandler,e,t,t2):t2(null,e,t)}function t2(e,t,r){if(r.sent)return;if(e!=null){r[xg]=!0,r.send(e);return}let n;try{n=t[vo].handler(t,r)}catch(i){r[xg]=!0,r.send(i);return}n!==void 0&&(n!==null&&typeof n.then=="function"?ffe(n,r):r.send(n))}r2.exports=dfe;r2.exports[Symbol.for("internals")]={handler:_o,preHandlerCallback:t2}});var F5=_((oet,M5)=>{"use strict";function Sl(){}var pfe={fatal:Sl,error:Sl,warn:Sl,info:Sl,debug:Sl,trace:Sl};Object.defineProperty(M5,"exports",{get(){return Object.create(pfe)}})});var s2=_((uet,j5)=>{"use strict";var Jd=e=>e&&typeof e.message=="string",i2=e=>{if(!e)return;let t=e.cause;if(typeof t=="function"){let r=e.cause();return Jd(r)?r:void 0}else return Jd(t)?t:void 0},B5=(e,t)=>{if(!Jd(e))return"";let r=e.stack||"";if(t.has(e))return r+`
causes have become circular...`;let n=i2(e);return n?(t.add(e),r+`
caused by: `+B5(n,t)):r},hfe=e=>B5(e,new Set),q5=(e,t,r)=>{if(!Jd(e))return"";let n=r?"":e.message||"";if(t.has(e))return n+": ...";let i=i2(e);if(i){t.add(e);let s=typeof e.cause=="function";return n+(s?"":": ")+q5(i,t,s)}else return n},mfe=e=>q5(e,new Set);j5.exports={isErrorLike:Jd,getErrorCause:i2,stackWithCauses:hfe,messageWithCauses:mfe}});var a2=_((cet,H5)=>{"use strict";var gfe=Symbol("circular-ref-tag"),Eg=Symbol("pino-raw-err-ref"),U5=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[Eg]},set:function(e){this[Eg]=e}}});Object.defineProperty(U5,Eg,{writable:!0,value:{}});H5.exports={pinoErrProto:U5,pinoErrorSymbols:{seen:gfe,rawSymbol:Eg}}});var G5=_((fet,V5)=>{"use strict";V5.exports=u2;var{messageWithCauses:yfe,stackWithCauses:bfe,isErrorLike:z5}=s2(),{pinoErrProto:xfe,pinoErrorSymbols:Efe}=a2(),{seen:o2}=Efe,{toString:_fe}=Object.prototype;function u2(e){if(!z5(e))return e;e[o2]=void 0;let t=Object.create(xfe);t.type=_fe.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=yfe(e),t.stack=bfe(e),Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>u2(r)));for(let r in e)if(t[r]===void 0){let n=e[r];z5(n)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,o2)&&(t[r]=u2(n)):t[r]=n}return delete e[o2],t.raw=e,t}});var K5=_((det,W5)=>{"use strict";W5.exports=vg;var{isErrorLike:c2}=s2(),{pinoErrProto:vfe,pinoErrorSymbols:Tfe}=a2(),{seen:_g}=Tfe,{toString:Sfe}=Object.prototype;function vg(e){if(!c2(e))return e;e[_g]=void 0;let t=Object.create(vfe);t.type=Sfe.call(e.constructor)==="[object Function]"?e.constructor.name:e.name,t.message=e.message,t.stack=e.stack,Array.isArray(e.errors)&&(t.aggregateErrors=e.errors.map(r=>vg(r))),c2(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,_g)&&(t.cause=vg(e.cause));for(let r in e)if(t[r]===void 0){let n=e[r];c2(n)?Object.prototype.hasOwnProperty.call(n,_g)||(t[r]=vg(n)):t[r]=n}return delete e[_g],t.raw=e,t}});var Q5=_((pet,J5)=>{"use strict";J5.exports={mapHttpRequest:wfe,reqSerializer:X5};var l2=Symbol("pino-raw-req-ref"),Y5=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[l2]},set:function(e){this[l2]=e}}});Object.defineProperty(Y5,l2,{writable:!0,value:{}});function X5(e){let t=e.info||e.socket,r=Object.create(Y5);if(r.id=typeof e.id=="function"?e.id():e.id||(e.info?e.info.id:void 0),r.method=e.method,e.originalUrl)r.url=e.originalUrl;else{let n=e.path;r.url=typeof n=="string"?n:e.url?e.url.path||e.url:void 0}return e.query&&(r.query=e.query),e.params&&(r.params=e.params),r.headers=e.headers,r.remoteAddress=t&&t.remoteAddress,r.remotePort=t&&t.remotePort,r.raw=e.raw||e,r}function wfe(e){return{req:X5(e)}}});var rk=_((het,tk)=>{"use strict";tk.exports={mapHttpResponse:Afe,resSerializer:ek};var f2=Symbol("pino-raw-res-ref"),Z5=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[f2]},set:function(e){this[f2]=e}}});Object.defineProperty(Z5,f2,{writable:!0,value:{}});function ek(e){let t=Object.create(Z5);return t.statusCode=e.headersSent?e.statusCode:null,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}function Afe(e){return{res:ek(e)}}});var p2=_((met,nk)=>{"use strict";var d2=G5(),Cfe=K5(),Tg=Q5(),Sg=rk();nk.exports={err:d2,errWithCause:Cfe,mapHttpRequest:Tg.mapHttpRequest,mapHttpResponse:Sg.mapHttpResponse,req:Tg.reqSerializer,res:Sg.resSerializer,wrapErrorSerializer:function(t){return t===d2?t:function(n){return t(d2(n))}},wrapRequestSerializer:function(t){return t===Tg.reqSerializer?t:function(n){return t(Tg.reqSerializer(n))}},wrapResponseSerializer:function(t){return t===Sg.resSerializer?t:function(n){return t(Sg.resSerializer(n))}}}});var h2=_((get,ik)=>{"use strict";function Ife(e,t){return t}ik.exports=function(){let t=Error.prepareStackTrace;Error.prepareStackTrace=Ife;let r=new Error().stack;if(Error.prepareStackTrace=t,!Array.isArray(r))return;let n=r.slice(2),i=[];for(let s of n)s&&i.push(s.getFileName());return i}});var ak=_((yet,sk)=>{"use strict";sk.exports=Rfe;function Rfe(e={}){let{ERR_PATHS_MUST_BE_STRINGS:t=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=n=>`fast-redact \u2013 Invalid path (${n})`}=e;return function({paths:i}){i.forEach(s=>{if(typeof s!="string")throw Error(t());try{if(//.test(s))throw Error();let a=(s[0]==="["?"":".")+s.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(a)||/\/\*/.test(a))throw Error();Function(`
'use strict'
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
const \u3007 = null;
o${a}
if ([o${a}].length !== 1) throw Error()`)()}catch{throw Error(r(s))}})}}});var wg=_((bet,ok)=>{"use strict";ok.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var ck=_((xet,uk)=>{"use strict";var Nfe=wg();uk.exports=Ofe;function Ofe({paths:e}){let t=[];var r=0;let n=e.reduce(function(i,s,a){var o=s.match(Nfe).map(c=>c.replace(/'|"|`/g,""));let u=s[0]==="[";o=o.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let l=o.indexOf("*");if(l>-1){let c=o.slice(0,l),f=c.join("."),d=o.slice(l+1,o.length),h=d.length>0;r++,t.push({before:c,beforeStr:f,after:d,nested:h})}else i[s]={path:o,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(s),leadingBracket:u};return i},{});return{wildcards:t,wcLen:r,secret:n}}});var fk=_((Eet,lk)=>{"use strict";var Pfe=wg();lk.exports=Dfe;function Dfe({secret:e,serialize:t,wcLen:r,strict:n,isCensorFct:i,censorFctTakesPath:s},a){let o=Function("o",`
if (typeof o !== 'object' || o == null) {
${Mfe(n,t)}
}
const { censor, secret } = this
const originalSecret = {}
const secretKeys = Object.keys(secret)
for (var i = 0; i < secretKeys.length; i++) {
originalSecret[secretKeys[i]] = secret[secretKeys[i]]
}
${kfe(e,i,s)}
this.compileRestore()
${$fe(r>0,i,s)}
this.secret = originalSecret
${Lfe(t)}
`).bind(a);return o.state=a,t===!1&&(o.restore=u=>a.restore(u)),o}function kfe(e,t,r){return Object.keys(e).map(n=>{let{escPath:i,leadingBracket:s,path:a}=e[n],o=s?1:0,u=s?"":".",l=[];for(var c;(c=Pfe.exec(n))!==null;){let[,p]=c,{index:m,input:y}=c;m>o&&l.push(y.substring(0,m-(p?0:1)))}var f=l.map(p=>`o${u}${p}`).join(" && ");f.length===0?f+=`o${u}${n} != null`:f+=` && o${u}${n} != null`;let d=`
switch (true) {
${l.reverse().map(p=>`
case o${u}${p} === censor:
secret[${i}].circle = ${JSON.stringify(p)}
break
`).join(`
`)}
}
`,h=r?`val, ${JSON.stringify(a)}`:"val";return`
if (${f}) {
const val = o${u}${n}
if (val === censor) {
secret[${i}].precensored = true
} else {
secret[${i}].val = val
o${u}${n} = ${t?`censor(${h})`:"censor"}
${d}
}
}
`}).join(`
`)}function $fe(e,t,r){return e===!0?`
{
const { wildcards, wcLen, groupRedact, nestedRedact } = this
for (var i = 0; i < wcLen; i++) {
const { before, beforeStr, after, nested } = wildcards[i]
if (nested === true) {
secret[beforeStr] = secret[beforeStr] || []
nestedRedact(secret[beforeStr], o, before, after, censor, ${t}, ${r})
} else secret[beforeStr] = groupRedact(o, before, censor, ${t}, ${r})
}
}
`:""}function Lfe(e){return e===!1?"return o":`
var s = this.serialize(o)
this.restore(o)
return s
`}function Mfe(e,t){return e===!0?"throw Error('fast-redact: primitives cannot be redacted')":t===!1?"return o":"return this.serialize(o)"}});var g2=_((_et,hk)=>{"use strict";hk.exports={groupRedact:Bfe,groupRestore:Ffe,nestedRedact:jfe,nestedRestore:qfe};function Ffe({keys:e,values:t,target:r}){if(r==null||typeof r=="string")return;let n=e.length;for(var i=0;i<n;i++){let s=e[i];r[s]=t[i]}}function Bfe(e,t,r,n,i){let s=dk(e,t);if(s==null||typeof s=="string")return{keys:null,values:null,target:s,flat:!0};let a=Object.keys(s),o=a.length,u=t.length,l=i?[...t]:void 0,c=new Array(o);for(var f=0;f<o;f++){let d=a[f];c[f]=s[d],i?(l[u]=d,s[d]=r(s[d],l)):n?s[d]=r(s[d]):s[d]=r}return{keys:a,values:c,target:s,flat:!0}}function qfe(e){for(let t=0;t<e.length;t++){let{target:r,path:n,value:i}=e[t],s=r;for(let a=n.length-1;a>0;a--)s=s[n[a]];s[n[0]]=i}}function jfe(e,t,r,n,i,s,a){let o=dk(t,r);if(o==null)return;let u=Object.keys(o),l=u.length;for(var c=0;c<l;c++){let f=u[c];Ufe(e,o,f,r,n,i,s,a)}return e}function m2(e,t){return e!=null?"hasOwn"in Object?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t):!1}function Ufe(e,t,r,n,i,s,a,o){let u=i.length,l=u-1,c=r;var f=-1,d,h,p,m=null,y=null,g,v,E=!1,x=0,T=0,S=Hfe();if(p=d=t[r],typeof d=="object"){for(;d!=null&&++f<u&&(T+=1,r=i[f],m=p,!(r!=="*"&&!y&&!(typeof d=="object"&&r in d)));)if(!(r==="*"&&(y==="*"&&(E=!0),y=r,f!==l))){if(y){let A=Object.keys(d);for(var w=0;w<A.length;w++){let C=A[w];if(v=d[C],g=r==="*",E)S=Ea(S,C,T),x=f,p=pk(v,x-1,r,n,i,s,a,o,c,d,h,p,g,C,f,l,S,e,t[c],T+1);else if(g||typeof v=="object"&&v!==null&&r in v){if(g?p=v:p=v[r],h=f!==l?p:a?o?s(p,[...n,c,...i]):s(p):s,g){let I=Qd(Ea(S,C,T),p,t[c]);e.push(I),d[C]=h}else if(v[r]!==h)if(h===void 0&&s!==void 0||m2(v,r)&&h===p)S=Ea(S,C,T);else{S=Ea(S,C,T);let I=Qd(Ea(S,r,T+1),p,t[c]);e.push(I),v[r]=h}}}y=null}else{if(p=d[r],S=Ea(S,r,T),h=f!==l?p:a?o?s(p,[...n,c,...i]):s(p):s,!(m2(d,r)&&h===p||h===void 0&&s!==void 0)){let A=Qd(S,p,t[c]);e.push(A),d[r]=h}d=d[r]}if(typeof d!="object")break}}}function dk(e,t){for(var r=-1,n=t.length,i=e;i!=null&&++r<n;)i=i[t[r]];return i}function pk(e,t,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v,E){if(t===0&&(d||typeof e=="object"&&e!==null&&r in e)){if(d?f=e:f=e[r],c=p!==m?f:a?o?s(f,[...n,u,...i]):s(f):s,d){let x=Qd(y,f,v);g.push(x),l[h]=c}else if(e[r]!==c){if(!(c===void 0&&s!==void 0||m2(e,r)&&c===f)){let x=Qd(Ea(y,r,E+1),f,v);g.push(x),e[r]=c}}}for(let x in e)typeof e[x]=="object"&&(y=Ea(y,x,E),pk(e[x],t-1,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v,E+1))}function Hfe(){return{parent:null,key:null,children:[],depth:0}}function Ea(e,t,r){if(e.depth===r)return Ea(e.parent,t,r);var n={parent:e,key:t,depth:r,children:[]};return e.children.push(n),n}function Qd(e,t,r){let n=e,i=[];do i.push(n.key),n=n.parent;while(n.parent!=null);return{path:i,value:t,target:r}}});var gk=_((vet,mk)=>{"use strict";var{groupRestore:zfe,nestedRestore:Vfe}=g2();mk.exports=Gfe;function Gfe(){return function(){if(this.restore){this.restore.state.secret=this.secret;return}let{secret:t,wcLen:r}=this,n=Object.keys(t),i=Wfe(t,n),s=r>0,a=s?{secret:t,groupRestore:zfe,nestedRestore:Vfe}:{secret:t};this.restore=Function("o",Kfe(i,n,s)).bind(a),this.restore.state=a}}function Wfe(e,t){return t.map(r=>{let{circle:n,escPath:i,leadingBracket:s}=e[r],o=n?`o.${n} = secret[${i}].val`:`o${s?"":"."}${r} = secret[${i}].val`,u=`secret[${i}].val = undefined`;return`
if (secret[${i}].val !== undefined) {
try { ${o} } catch (e) {}
${u}
}
`}).join("")}function Kfe(e,t,r){return`
const secret = this.secret
${r===!0?`
const keys = Object.keys(secret)
const len = keys.length
for (var i = len - 1; i >= ${t.length}; i--) {
const k = keys[i]
const o = secret[k]
if (o) {
if (o.flat === true) this.groupRestore(o)
else this.nestedRestore(o)
secret[k] = null
}
}
`:""}
${e}
return o
`}});var bk=_((Tet,yk)=>{"use strict";yk.exports=Yfe;function Yfe(e){let{secret:t,censor:r,compileRestore:n,serialize:i,groupRedact:s,nestedRedact:a,wildcards:o,wcLen:u}=e,l=[{secret:t,censor:r,compileRestore:n}];return i!==!1&&l.push({serialize:i}),u>0&&l.push({groupRedact:s,nestedRedact:a,wildcards:o,wcLen:u}),Object.assign(...l)}});var _k=_((wet,Ek)=>{"use strict";var xk=ak(),Xfe=ck(),Jfe=fk(),Qfe=gk(),{groupRedact:Zfe,nestedRedact:ede}=g2(),tde=bk(),rde=wg(),nde=xk(),y2=e=>e;y2.restore=y2;var ide="[REDACTED]";b2.rx=rde;b2.validator=xk;Ek.exports=b2;function b2(e={}){let t=Array.from(new Set(e.paths||[])),r="serialize"in e&&(e.serialize===!1||typeof e.serialize=="function")?e.serialize:JSON.stringify,n=e.remove;if(n===!0&&r!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let i=n===!0?void 0:"censor"in e?e.censor:ide,s=typeof i=="function",a=s&&i.length>1;if(t.length===0)return r||y2;nde({paths:t,serialize:r,censor:i});let{wildcards:o,wcLen:u,secret:l}=Xfe({paths:t,censor:i}),c=Qfe(),f="strict"in e?e.strict:!0;return Jfe({secret:l,wcLen:u,serialize:r,strict:f,isCensorFct:s,censorFctTakesPath:a},tde({secret:l,censor:i,compileRestore:c,serialize:r,groupRedact:Zfe,nestedRedact:ede,wildcards:o,wcLen:u}))}});var wl=_((Aet,vk)=>{"use strict";var sde=Symbol("pino.setLevel"),ade=Symbol("pino.getLevel"),ode=Symbol("pino.levelVal"),ude=Symbol("pino.levelComp"),cde=Symbol("pino.useLevelLabels"),lde=Symbol("pino.useOnlyCustomLevels"),fde=Symbol("pino.mixin"),dde=Symbol("pino.lsCache"),pde=Symbol("pino.chindings"),hde=Symbol("pino.asJson"),mde=Symbol("pino.write"),gde=Symbol("pino.redactFmt"),yde=Symbol("pino.time"),bde=Symbol("pino.timeSliceIndex"),xde=Symbol("pino.stream"),Ede=Symbol("pino.stringify"),_de=Symbol("pino.stringifySafe"),vde=Symbol("pino.stringifiers"),Tde=Symbol("pino.end"),Sde=Symbol("pino.formatOpts"),wde=Symbol("pino.messageKey"),Ade=Symbol("pino.errorKey"),Cde=Symbol("pino.nestedKey"),Ide=Symbol("pino.nestedKeyStr"),Rde=Symbol("pino.mixinMergeStrategy"),Nde=Symbol("pino.msgPrefix"),Ode=Symbol("pino.wildcardFirst"),Pde=Symbol.for("pino.serializers"),Dde=Symbol.for("pino.formatters"),kde=Symbol.for("pino.hooks"),$de=Symbol.for("pino.metadata");vk.exports={setLevelSym:sde,getLevelSym:ade,levelValSym:ode,levelCompSym:ude,useLevelLabelsSym:cde,mixinSym:fde,lsCacheSym:dde,chindingsSym:pde,asJsonSym:hde,writeSym:mde,serializersSym:Pde,redactFmtSym:gde,timeSym:yde,timeSliceIndexSym:bde,streamSym:xde,stringifySym:Ede,stringifySafeSym:_de,stringifiersSym:vde,endSym:Tde,formatOptsSym:Sde,messageKeySym:wde,errorKeySym:Ade,nestedKeySym:Cde,wildcardFirstSym:Ode,needsMetadataGsym:$de,useOnlyCustomLevelsSym:lde,formattersSym:Dde,hooksSym:kde,nestedKeyStrSym:Ide,mixinMergeStrategySym:Rde,msgPrefixSym:Nde}});var _2=_((Cet,Ak)=>{"use strict";var E2=_k(),{redactFmtSym:Lde,wildcardFirstSym:Ag}=wl(),{rx:x2,validator:Mde}=E2,Tk=Mde({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:e=>`pino \u2013 redact paths array contains an invalid path (${e})`}),Sk="[Redacted]",wk=!1;function Fde(e,t){let{paths:r,censor:n}=Bde(e),i=r.reduce((o,u)=>{x2.lastIndex=0;let l=x2.exec(u),c=x2.exec(u),f=l[1]!==void 0?l[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):l[0];if(f==="*"&&(f=Ag),c===null)return o[f]=null,o;if(o[f]===null)return o;let{index:d}=c,h=`${u.substr(d,u.length-1)}`;return o[f]=o[f]||[],f!==Ag&&o[f].length===0&&o[f].push(...o[Ag]||[]),f===Ag&&Object.keys(o).forEach(function(p){o[p]&&o[p].push(h)}),o[f].push(h),o},{}),s={[Lde]:E2({paths:r,censor:n,serialize:t,strict:wk})},a=(...o)=>t(typeof n=="function"?n(...o):n);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((o,u)=>{if(i[u]===null)o[u]=l=>a(l,[u]);else{let l=typeof n=="function"?(c,f)=>n(c,[u,...f]):n;o[u]=E2({paths:i[u],censor:l,serialize:t,strict:wk})}return o},s)}function Bde(e){if(Array.isArray(e))return e={paths:e,censor:Sk},Tk(e),e;let{paths:t,censor:r=Sk,remove:n}=e;if(Array.isArray(t)===!1)throw Error("pino \u2013 redact must contain an array of strings");return n===!0&&(r=void 0),Tk({paths:t,censor:r}),{paths:t,censor:r}}Ak.exports=Fde});var Ik=_((Iet,Ck)=>{"use strict";var qde=()=>"",jde=()=>`,"time":${Date.now()}`,Ude=()=>`,"time":${Math.round(Date.now()/1e3)}`,Hde=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;Ck.exports={nullTime:qde,epochTime:jde,unixTime:Ude,isoTime:Hde}});var Nk=_((Ret,Rk)=>{"use strict";function zde(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}Rk.exports=Vde;function Vde(e,t,r){var n=r&&r.stringify||zde,i=1;if(typeof e=="object"&&e!==null){var s=t.length+i;if(s===1)return e;var a=new Array(s);a[0]=n(e);for(var o=1;o<s;o++)a[o]=n(t[o]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",c=1-i,f=-1,d=e&&e.length||0,h=0;h<d;){if(e.charCodeAt(h)===37&&h+1<d){switch(f=f>-1?f:0,e.charCodeAt(h+1)){case 100:case 102:if(c>=u||t[c]==null)break;f<h&&(l+=e.slice(f,h)),l+=Number(t[c]),f=h+2,h++;break;case 105:if(c>=u||t[c]==null)break;f<h&&(l+=e.slice(f,h)),l+=Math.floor(Number(t[c])),f=h+2,h++;break;case 79:case 111:case 106:if(c>=u||t[c]===void 0)break;f<h&&(l+=e.slice(f,h));var p=typeof t[c];if(p==="string"){l+="'"+t[c]+"'",f=h+2,h++;break}if(p==="function"){l+=t[c].name||"<anonymous>",f=h+2,h++;break}l+=n(t[c]),f=h+2,h++;break;case 115:if(c>=u)break;f<h&&(l+=e.slice(f,h)),l+=String(t[c]),f=h+2,h++;break;case 37:f<h&&(l+=e.slice(f,h)),l+="%",f=h+2,h++,c--;break}++c}++h}return f===-1?e:(f<d&&(l+=e.slice(f)),l)}});var T2=_((Net,v2)=>{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let t=function(r){if((r>0&&r<1/0)===!1)throw typeof r!="number"&&typeof r!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(e,0,0,Number(r))},e=new Int32Array(new SharedArrayBuffer(4));v2.exports=t}else{let e=function(t){if((t>0&&t<1/0)===!1)throw typeof t!="number"&&typeof t!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let n=Date.now()+Number(t);for(;n>Date.now(););};v2.exports=e}});var Fk=_((Oet,Mk)=>{"use strict";var ur=require("fs"),Gde=require("events"),Wde=require("util").inherits,Ok=require("path"),w2=T2(),Cg=100,Ig=Buffer.allocUnsafe(0),Kde=16*1024,Pk="buffer",Dk="utf8";function kk(e,t){t._opening=!0,t._writing=!0,t._asyncDrainScheduled=!1;function r(s,a){if(s){t._reopening=!1,t._writing=!1,t._opening=!1,t.sync?process.nextTick(()=>{t.listenerCount("error")>0&&t.emit("error",s)}):t.emit("error",s);return}let o=t._reopening;t.fd=a,t.file=e,t._reopening=!1,t._opening=!1,t._writing=!1,t.sync?process.nextTick(()=>t.emit("ready")):t.emit("ready"),!t.destroyed&&(!t._writing&&t._len>t.minLength||t._flushPending?t._actualWrite():o&&process.nextTick(()=>t.emit("drain")))}let n=t.append?"a":"w",i=t.mode;if(t.sync)try{t.mkdir&&ur.mkdirSync(Ok.dirname(e),{recursive:!0});let s=ur.openSync(e,n,i);r(null,s)}catch(s){throw r(s),s}else t.mkdir?ur.mkdir(Ok.dirname(e),{recursive:!0},s=>{if(s)return r(s);ur.open(e,n,i,r)}):ur.open(e,n,i,r)}function Qi(e){if(!(this instanceof Qi))return new Qi(e);let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:s,sync:a,append:o=!0,mkdir:u,retryEAGAIN:l,fsync:c,contentMode:f,mode:d}=e||{};t=t||r,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(n||0,16387),this.file=null,this.destroyed=!1,this.minLength=n||0,this.maxLength=i||0,this.maxWrite=s||Kde,this.sync=a||!1,this.writable=!0,this._fsync=c||!1,this.append=o||!1,this.mode=d,this.retryEAGAIN=l||(()=>!0),this.mkdir=u||!1;let h,p;if(f===Pk)this._writingBuf=Ig,this.write=Jde,this.flush=Zde,this.flushSync=t0e,this._actualWrite=n0e,h=()=>ur.writeSync(this.fd,this._writingBuf),p=()=>ur.write(this.fd,this._writingBuf,this.release);else if(f===void 0||f===Dk)this._writingBuf="",this.write=Xde,this.flush=Qde,this.flushSync=e0e,this._actualWrite=r0e,h=()=>ur.writeSync(this.fd,this._writingBuf,"utf8"),p=()=>ur.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${Dk}" and "${Pk}", but passed ${f}`);if(typeof t=="number")this.fd=t,process.nextTick(()=>this.emit("ready"));else if(typeof t=="string")kk(t,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(m,y)=>{if(m){if((m.code==="EAGAIN"||m.code==="EBUSY")&&this.retryEAGAIN(m,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{w2(Cg),this.release(void 0,0)}catch(E){this.release(E)}else setTimeout(p,Cg);else this._writing=!1,this.emit("error",m);return}this.emit("write",y);let g=S2(this._writingBuf,this._len,y);if(this._len=g.len,this._writingBuf=g.writingBuf,this._writingBuf.length){if(!this.sync){p();return}try{do{let E=h(),x=S2(this._writingBuf,this._len,E);this._len=x.len,this._writingBuf=x.writingBuf}while(this._writingBuf.length)}catch(E){this.release(E);return}}this._fsync&&ur.fsyncSync(this.fd);let v=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):v>this.minLength?this._actualWrite():this._ending?v>0?this._actualWrite():(this._writing=!1,Rg(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(Yde,this)):this.emit("drain"))},this.on("newListener",function(m){m==="drain"&&(this._asyncDrainScheduled=!1)})}function S2(e,t,r){return typeof e=="string"&&Buffer.byteLength(e)!==r&&(r=Buffer.from(e).subarray(0,r).toString().length),t=Math.max(t-r,0),e=e.slice(r),{writingBuf:e,len:t}}function Yde(e){e.listenerCount("drain")>0&&(e._asyncDrainScheduled=!1,e.emit("drain"))}Wde(Qi,Gde);function $k(e,t){return e.length===0?Ig:e.length===1?e[0]:Buffer.concat(e,t)}function Xde(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||r[r.length-1].length+e.length>this.maxWrite?r.push(""+e):r[r.length-1]+=e,this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function Jde(e){if(this.destroyed)throw new Error("SonicBoom destroyed");let t=this._len+e.length,r=this._bufs,n=this._lens;return this.maxLength&&t>this.maxLength?(this.emit("drop",e),this._len<this._hwm):(r.length===0||n[n.length-1]+e.length>this.maxWrite?(r.push([e]),n.push(e.length)):(r[r.length-1].push(e),n[n.length-1]+=e.length),this._len=t,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len<this._hwm)}function Lk(e){this._flushPending=!0;let t=()=>{this._fsync?(this._flushPending=!1,e()):ur.fsync(this.fd,n=>{this._flushPending=!1,e(n)}),this.off("error",r)},r=n=>{this._flushPending=!1,e(n),this.off("drain",t)};this.once("drain",t),this.once("error",r)}function Qde(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Lk.call(this,e),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function Zde(e){if(e!=null&&typeof e!="function")throw new Error("flush cb must be a function");if(this.destroyed){let t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}e&&Lk.call(this,e),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}Qi.prototype.reopen=function(e){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(e&&(this.file=e),this._reopening=!0,this._writing)return;let t=this.fd;this.once("ready",()=>{t!==this.fd&&ur.close(t,r=>{if(r)return this.emit("error",r)})}),kk(this.file,this)};Qi.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():Rg(this)))};function e0e(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let e="";for(;this._bufs.length||e;){e.length<=0&&(e=this._bufs[0]);try{let t=ur.writeSync(this.fd,e,"utf8"),r=S2(e,this._len,t);e=r.writingBuf,this._len=r.len,e.length<=0&&this._bufs.shift()}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;w2(Cg)}}try{ur.fsyncSync(this.fd)}catch{}}function t0e(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=Ig);let e=Ig;for(;this._bufs.length||e.length;){e.length<=0&&(e=$k(this._bufs[0],this._lens[0]));try{let t=ur.writeSync(this.fd,e);e=e.subarray(t),this._len=Math.max(this._len-t,0),e.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(t){if((t.code==="EAGAIN"||t.code==="EBUSY")&&!this.retryEAGAIN(t,e.length,this._len-e.length))throw t;w2(Cg)}}}Qi.prototype.destroy=function(){this.destroyed||Rg(this)};function r0e(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let t=ur.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}else ur.write(this.fd,this._writingBuf,"utf8",e)}function n0e(){let e=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:$k(this._bufs.shift(),this._lens.shift()),this.sync)try{let t=ur.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}else ur.write(this.fd,this._writingBuf,e)}function Rg(e){if(e.fd===-1){e.once("ready",Rg.bind(null,e));return}e.destroyed=!0,e._bufs=[],e._lens=[],ur.fsync(e.fd,t);function t(){e.fd!==1&&e.fd!==2?ur.close(e.fd,r):r()}function r(n){if(n){e.emit("error",n);return}e._ending&&!e._writing&&e.emit("finish"),e.emit("close")}}Qi.SonicBoom=Qi;Qi.default=Qi;Mk.exports=Qi});var A2=_((Pet,Hk)=>{"use strict";var Zi={exit:[],beforeExit:[]},Bk={exit:a0e,beforeExit:o0e},Al;function i0e(){Al===void 0&&(Al=new FinalizationRegistry(u0e))}function s0e(e){Zi[e].length>0||process.on(e,Bk[e])}function qk(e){Zi[e].length>0||(process.removeListener(e,Bk[e]),Zi.exit.length===0&&Zi.beforeExit.length===0&&(Al=void 0))}function a0e(){jk("exit")}function o0e(){jk("beforeExit")}function jk(e){for(let t of Zi[e]){let r=t.deref(),n=t.fn;r!==void 0&&n(r,e)}Zi[e]=[]}function u0e(e){for(let t of["exit","beforeExit"]){let r=Zi[t].indexOf(e);Zi[t].splice(r,r+1),qk(t)}}function Uk(e,t,r){if(t===void 0)throw new Error("the object can't be undefined");s0e(e);let n=new WeakRef(t);n.fn=r,i0e(),Al.register(t,n),Zi[e].push(n)}function c0e(e,t){Uk("exit",e,t)}function l0e(e,t){Uk("beforeExit",e,t)}function f0e(e){if(Al!==void 0){Al.unregister(e);for(let t of["exit","beforeExit"])Zi[t]=Zi[t].filter(r=>{let n=r.deref();return n&&n!==e}),qk(t)}}Hk.exports={register:c0e,registerBeforeExit:l0e,unregister:f0e}});var zk=_((Det,d0e)=>{d0e.exports={name:"thread-stream",version:"2.7.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0","@yao-pkg/pkg":"^5.11.5",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^9.0.6","pino-elasticsearch":"^8.0.0","sonic-boom":"^3.0.0",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^5.3.2","why-is-node-running":"^2.2.2"},scripts:{test:'standard && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',"test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var Gk=_((ket,Vk)=>{"use strict";function p0e(e,t,r,n,i){let s=Date.now()+n,a=Atomics.load(e,t);if(a===r){i(null,"ok");return}let o=a,u=l=>{Date.now()>s?i(null,"timed-out"):setTimeout(()=>{o=a,a=Atomics.load(e,t),a===o?u(l>=1e3?1e3:l*2):a===r?i(null,"ok"):i(null,"not-equal")},l)};u(1)}function h0e(e,t,r,n,i){let s=Date.now()+n,a=Atomics.load(e,t);if(a!==r){i(null,"ok");return}let o=u=>{Date.now()>s?i(null,"timed-out"):setTimeout(()=>{a=Atomics.load(e,t),a!==r?i(null,"ok"):o(u>=1e3?1e3:u*2)},u)};o(1)}Vk.exports={wait:p0e,waitDiff:h0e}});var Kk=_(($et,Wk)=>{"use strict";Wk.exports={WRITE_INDEX:4,READ_INDEX:8}});var Zk=_((Let,Qk)=>{"use strict";var{version:m0e}=zk(),{EventEmitter:g0e}=require("events"),{Worker:y0e}=require("worker_threads"),{join:b0e}=require("path"),{pathToFileURL:x0e}=require("url"),{wait:E0e}=Gk(),{WRITE_INDEX:zn,READ_INDEX:Rs}=Kk(),_0e=require("buffer"),v0e=require("assert"),oe=Symbol("kImpl"),T0e=_0e.constants.MAX_STRING_LENGTH,Zd=class{constructor(t){this._value=t}deref(){return this._value}},Og=class{register(){}unregister(){}},S0e=process.env.NODE_V8_COVERAGE?Og:global.FinalizationRegistry||Og,w0e=process.env.NODE_V8_COVERAGE?Zd:global.WeakRef||Zd,Yk=new S0e(e=>{e.exited||e.terminate()});function A0e(e,t){let{filename:r,workerData:n}=t,s=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||b0e(__dirname,"lib","worker.js"),a=new y0e(s,{...t.workerOpts,trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:x0e(r).href,dataBuf:e[oe].dataBuf,stateBuf:e[oe].stateBuf,workerData:{$context:{threadStreamVersion:m0e},...n}}});return a.stream=new Zd(e),a.on("message",C0e),a.on("exit",Jk),Yk.register(e,a),a}function Xk(e){v0e(!e[oe].sync),e[oe].needDrain&&(e[oe].needDrain=!1,e.emit("drain"))}function Ng(e){let t=Atomics.load(e[oe].state,zn),r=e[oe].data.length-t;if(r>0){if(e[oe].buf.length===0){e[oe].flushing=!1,e[oe].ending?O2(e):e[oe].needDrain&&process.nextTick(Xk,e);return}let n=e[oe].buf.slice(0,r),i=Buffer.byteLength(n);i<=r?(e[oe].buf=e[oe].buf.slice(r),Pg(e,n,Ng.bind(null,e))):e.flush(()=>{if(!e.destroyed){for(Atomics.store(e[oe].state,Rs,0),Atomics.store(e[oe].state,zn,0);i>e[oe].data.length;)r=r/2,n=e[oe].buf.slice(0,r),i=Buffer.byteLength(n);e[oe].buf=e[oe].buf.slice(r),Pg(e,n,Ng.bind(null,e))}})}else if(r===0){if(t===0&&e[oe].buf.length===0)return;e.flush(()=>{Atomics.store(e[oe].state,Rs,0),Atomics.store(e[oe].state,zn,0),Ng(e)})}else Ns(e,new Error("overwritten"))}function C0e(e){let t=this.stream.deref();if(t===void 0){this.exited=!0,this.terminate();return}switch(e.code){case"READY":this.stream=new w0e(t),t.flush(()=>{t[oe].ready=!0,t.emit("ready")});break;case"ERROR":Ns(t,e.err);break;case"EVENT":Array.isArray(e.args)?t.emit(e.name,...e.args):t.emit(e.name,e.args);break;case"WARNING":process.emitWarning(e.err);break;default:Ns(t,new Error("this should not happen: "+e.code))}}function Jk(e){let t=this.stream.deref();t!==void 0&&(Yk.unregister(t),t.worker.exited=!0,t.worker.off("exit",Jk),Ns(t,e!==0?new Error("the worker thread exited"):null))}var I2=class extends g0e{constructor(t={}){if(super(),t.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[oe]={},this[oe].stateBuf=new SharedArrayBuffer(128),this[oe].state=new Int32Array(this[oe].stateBuf),this[oe].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024),this[oe].data=Buffer.from(this[oe].dataBuf),this[oe].sync=t.sync||!1,this[oe].ending=!1,this[oe].ended=!1,this[oe].needDrain=!1,this[oe].destroyed=!1,this[oe].flushing=!1,this[oe].ready=!1,this[oe].finished=!1,this[oe].errored=null,this[oe].closed=!1,this[oe].buf="",this.worker=A0e(this,t),this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){if(this[oe].destroyed)return R2(this,new Error("the worker has exited")),!1;if(this[oe].ending)return R2(this,new Error("the worker is ending")),!1;if(this[oe].flushing&&this[oe].buf.length+t.length>=T0e)try{C2(this),this[oe].flushing=!0}catch(r){return Ns(this,r),!1}if(this[oe].buf+=t,this[oe].sync)try{return C2(this),!0}catch(r){return Ns(this,r),!1}return this[oe].flushing||(this[oe].flushing=!0,setImmediate(Ng,this)),this[oe].needDrain=this[oe].data.length-this[oe].buf.length-Atomics.load(this[oe].state,zn)<=0,!this[oe].needDrain}end(){this[oe].destroyed||(this[oe].ending=!0,O2(this))}flush(t){if(this[oe].destroyed){typeof t=="function"&&process.nextTick(t,new Error("the worker has exited"));return}let r=Atomics.load(this[oe].state,zn);E0e(this[oe].state,Rs,r,1/0,(n,i)=>{if(n){Ns(this,n),process.nextTick(t,n);return}if(i==="not-equal"){this.flush(t);return}process.nextTick(t)})}flushSync(){this[oe].destroyed||(C2(this),N2(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[oe].ready}get destroyed(){return this[oe].destroyed}get closed(){return this[oe].closed}get writable(){return!this[oe].destroyed&&!this[oe].ending}get writableEnded(){return this[oe].ending}get writableFinished(){return this[oe].finished}get writableNeedDrain(){return this[oe].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[oe].errored}};function R2(e,t){setImmediate(()=>{e.emit("error",t)})}function Ns(e,t){e[oe].destroyed||(e[oe].destroyed=!0,t&&(e[oe].errored=t,R2(e,t)),e.worker.exited?setImmediate(()=>{e[oe].closed=!0,e.emit("close")}):e.worker.terminate().catch(()=>{}).then(()=>{e[oe].closed=!0,e.emit("close")}))}function Pg(e,t,r){let n=Atomics.load(e[oe].state,zn),i=Buffer.byteLength(t);return e[oe].data.write(t,n),Atomics.store(e[oe].state,zn,n+i),Atomics.notify(e[oe].state,zn),r(),!0}function O2(e){if(!(e[oe].ended||!e[oe].ending||e[oe].flushing)){e[oe].ended=!0;try{e.flushSync();let t=Atomics.load(e[oe].state,Rs);Atomics.store(e[oe].state,zn,-1),Atomics.notify(e[oe].state,zn);let r=0;for(;t!==-1;){if(Atomics.wait(e[oe].state,Rs,t,1e3),t=Atomics.load(e[oe].state,Rs),t===-2){Ns(e,new Error("end() failed"));return}if(++r===10){Ns(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[oe].finished=!0,e.emit("finish")})}catch(t){Ns(e,t)}}}function C2(e){let t=()=>{e[oe].ending?O2(e):e[oe].needDrain&&process.nextTick(Xk,e)};for(e[oe].flushing=!1;e[oe].buf.length!==0;){let r=Atomics.load(e[oe].state,zn),n=e[oe].data.length-r;if(n===0){N2(e),Atomics.store(e[oe].state,Rs,0),Atomics.store(e[oe].state,zn,0);continue}else if(n<0)throw new Error("overwritten");let i=e[oe].buf.slice(0,n),s=Buffer.byteLength(i);if(s<=n)e[oe].buf=e[oe].buf.slice(n),Pg(e,i,t);else{for(N2(e),Atomics.store(e[oe].state,Rs,0),Atomics.store(e[oe].state,zn,0);s>e[oe].buf.length;)n=n/2,i=e[oe].buf.slice(0,n),s=Buffer.byteLength(i);e[oe].buf=e[oe].buf.slice(n),Pg(e,i,t)}}}function N2(e){if(e[oe].flushing)throw new Error("unable to flush while flushing");let t=Atomics.load(e[oe].state,zn),r=0;for(;;){let n=Atomics.load(e[oe].state,Rs);if(n===-2)throw Error("_flushSync failed");if(n!==t)Atomics.wait(e[oe].state,Rs,n,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}Qk.exports=I2});var k2=_((Met,e$)=>{"use strict";var{createRequire:I0e}=require("module"),R0e=h2(),{join:P2,isAbsolute:N0e,sep:O0e}=require("path"),P0e=T2(),D2=A2(),D0e=Zk();function k0e(e){D2.register(e,L0e),D2.registerBeforeExit(e,M0e),e.on("close",function(){D2.unregister(e)})}function $0e(e,t,r){let n=new D0e({filename:e,workerData:t,workerOpts:r});n.on("ready",i),n.on("close",function(){process.removeListener("exit",s)}),process.on("exit",s);function i(){process.removeListener("exit",s),n.unref(),r.autoEnd!==!1&&k0e(n)}function s(){n.closed||(n.flushSync(),P0e(100),n.end())}return n}function L0e(e){e.ref(),e.flushSync(),e.end(),e.once("close",function(){e.unref()})}function M0e(e){e.flushSync()}function F0e(e){let{pipeline:t,targets:r,levels:n,dedupe:i,options:s={},worker:a={},caller:o=R0e()}=e,u=typeof o=="string"?[o]:o,l="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},c=e.target;if(c&&r)throw new Error("only one of target or targets can be specified");return r?(c=l["pino-worker"]||P2(__dirname,"worker.js"),s.targets=r.map(d=>({...d,target:f(d.target)}))):t&&(c=l["pino-pipeline-worker"]||P2(__dirname,"worker-pipeline.js"),s.targets=t.map(d=>({...d,target:f(d.target)}))),n&&(s.levels=n),i&&(s.dedupe=i),s.pinoWillSendConfig=!0,$0e(f(c),s,a);function f(d){if(d=l[d]||d,N0e(d)||d.indexOf("file://")===0)return d;if(d==="pino/file")return P2(__dirname,"..","file.js");let h;for(let p of u)try{let m=p==="node:repl"?process.cwd()+O0e:p;h=I0e(m).resolve(d);break}catch{continue}if(!h)throw new Error(`unable to determine transport target for "${d}"`);return h}}e$.exports=F0e});var $g=_((Fet,f$)=>{"use strict";var t$=Nk(),{mapHttpRequest:B0e,mapHttpResponse:q0e}=p2(),L2=Fk(),r$=A2(),{lsCacheSym:j0e,chindingsSym:s$,writeSym:n$,serializersSym:a$,formatOptsSym:i$,endSym:U0e,stringifiersSym:o$,stringifySym:u$,stringifySafeSym:M2,wildcardFirstSym:c$,nestedKeySym:H0e,formattersSym:l$,messageKeySym:z0e,errorKeySym:V0e,nestedKeyStrSym:G0e,msgPrefixSym:Dg}=wl(),{isMainThread:W0e}=require("worker_threads"),K0e=k2();function Cl(){}function Y0e(e,t){if(!t)return r;return function(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n=="object"){let s=n;n!==null&&(n.method&&n.headers&&n.socket?n=B0e(n):typeof n.setHeader=="function"&&(n=q0e(n)));let a;s===null&&i.length===0?a=[null]:(s=i.shift(),a=i),typeof this[Dg]=="string"&&s!==void 0&&s!==null&&(s=this[Dg]+s),this[n$](n,t$(s,a,this[i$]),e)}else{let s=n===void 0?i.shift():n;typeof this[Dg]=="string"&&s!==void 0&&s!==null&&(s=this[Dg]+s),this[n$](null,t$(s,i,this[i$]),e)}}}function $2(e){let t="",r=0,n=!1,i=255,s=e.length;if(s>100)return JSON.stringify(e);for(var a=0;a<s&&i>=32;a++)i=e.charCodeAt(a),(i===34||i===92)&&(t+=e.slice(r,a)+"\\",r=a,n=!0);return n?t+=e.slice(r):t=e,i<32?JSON.stringify(e):'"'+t+'"'}function X0e(e,t,r,n){let i=this[u$],s=this[M2],a=this[o$],o=this[U0e],u=this[s$],l=this[a$],c=this[l$],f=this[z0e],d=this[V0e],h=this[j0e][r]+n;h=h+u;let p;c.log&&(e=c.log(e));let m=a[c$],y="";for(let v in e)if(p=e[v],Object.prototype.hasOwnProperty.call(e,v)&&p!==void 0){l[v]?p=l[v](p):v===d&&l.err&&(p=l.err(p));let E=a[v]||m;switch(typeof p){case"undefined":case"function":continue;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":E&&(p=E(p));break;case"string":p=(E||$2)(p);break;default:p=(E||i)(p,s)}if(p===void 0)continue;let x=$2(v);y+=","+x+":"+p}let g="";if(t!==void 0){p=l[f]?l[f](t):t;let v=a[f]||m;switch(typeof p){case"function":break;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":v&&(p=v(p)),g=',"'+f+'":'+p;break;case"string":p=(v||$2)(p),g=',"'+f+'":'+p;break;default:p=(v||i)(p,s),g=',"'+f+'":'+p}}return this[H0e]&&y?h+this[G0e]+y.slice(1)+"}"+g+o:h+y+g+o}function J0e(e,t){let r,n=e[s$],i=e[u$],s=e[M2],a=e[o$],o=a[c$],u=e[a$],l=e[l$].bindings;t=l(t);for(let c in t)if(r=t[c],(c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels"&&t.hasOwnProperty(c)&&r!==void 0)===!0){if(r=u[c]?u[c](r):r,r=(a[c]||o||i)(r,s),r===void 0)continue;n+=',"'+c+'":'+r}return n}function Q0e(e){return e.write!==e.constructor.prototype.write}var Z0e=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function kg(e){let t=new L2(e);return t.on("error",r),!Z0e&&!e.sync&&W0e&&(r$.register(t,epe),t.on("close",function(){r$.unregister(t)})),t;function r(n){if(n.code==="EPIPE"){t.write=Cl,t.end=Cl,t.flushSync=Cl,t.destroy=Cl;return}t.removeListener("error",r),t.emit("error",n)}}function epe(e,t){e.destroyed||(t==="beforeExit"?(e.flush(),e.on("drain",function(){e.end()})):e.flushSync())}function tpe(e){return function(r,n,i={},s){if(typeof i=="string")s=kg({dest:i}),i={};else if(typeof s=="string"){if(i&&i.transport)throw Error("only one of option.transport or stream can be specified");s=kg({dest:s})}else if(i instanceof L2||i.writable||i._writableState)s=i,i={};else if(i.transport){if(i.transport instanceof L2||i.transport.writable||i.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let u;i.customLevels&&(u=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),s=K0e({caller:n,...i.transport,levels:u})}if(i=Object.assign({},e,i),i.serializers=Object.assign({},e.serializers,i.serializers),i.formatters=Object.assign({},e.formatters,i.formatters),i.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:a,onChild:o}=i;return a===!1&&(i.level="silent"),o||(i.onChild=Cl),s||(Q0e(process.stdout)?s=process.stdout:s=kg({fd:process.stdout.fd||1})),{opts:i,stream:s}}}function rpe(e,t){try{return JSON.stringify(e)}catch{try{return(t||this[M2])(e)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function npe(e,t,r){return{level:e,bindings:t,log:r}}function ipe(e){let t=Number(e);return typeof e=="string"&&Number.isFinite(t)?t:e===void 0?1:e}f$.exports={noop:Cl,buildSafeSonicBoom:kg,asChindings:J0e,asJson:X0e,genLog:Y0e,createArgsNormalizer:tpe,stringify:rpe,buildFormatters:npe,normalizeDestFileDescriptor:ipe}});var Lg=_((Bet,d$)=>{var spe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},ape={ASC:"ASC",DESC:"DESC"};d$.exports={DEFAULT_LEVELS:spe,SORTING_ORDER:ape}});var q2=_((qet,g$)=>{"use strict";var{lsCacheSym:ope,levelValSym:F2,useOnlyCustomLevelsSym:upe,streamSym:cpe,formattersSym:lpe,hooksSym:fpe,levelCompSym:p$}=wl(),{noop:dpe,genLog:Vu}=$g(),{DEFAULT_LEVELS:Os,SORTING_ORDER:h$}=Lg(),m$={fatal:e=>{let t=Vu(Os.fatal,e);return function(...r){let n=this[cpe];if(t.call(this,...r),typeof n.flushSync=="function")try{n.flushSync()}catch{}}},error:e=>Vu(Os.error,e),warn:e=>Vu(Os.warn,e),info:e=>Vu(Os.info,e),debug:e=>Vu(Os.debug,e),trace:e=>Vu(Os.trace,e)},B2=Object.keys(Os).reduce((e,t)=>(e[Os[t]]=t,e),{}),ppe=Object.keys(B2).reduce((e,t)=>(e[t]='{"level":'+Number(t),e),{});function hpe(e){let t=e[lpe].level,{labels:r}=e.levels,n={};for(let i in r){let s=t(r[i],Number(i));n[i]=JSON.stringify(s).slice(0,-1)}return e[ope]=n,e}function mpe(e,t){if(t)return!1;switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function gpe(e){let{labels:t,values:r}=this.levels;if(typeof e=="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);let n=this[F2],i=this[F2]=r[e],s=this[upe],a=this[p$],o=this[fpe].logMethod;for(let u in r){if(a(r[u],i)===!1){this[u]=dpe;continue}this[u]=mpe(u,s)?m$[u](o):Vu(r[u],o)}this.emit("level-change",e,i,t[n],n,this)}function ype(e){let{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function bpe(e){let{values:t}=this.levels,r=t[e];return r!==void 0&&this[p$](r,this[F2])}function xpe(e,t,r){return e===h$.DESC?t<=r:t>=r}function Epe(e){return typeof e=="string"?xpe.bind(null,e):e}function _pe(e=null,t=!1){let r=e?Object.keys(e).reduce((s,a)=>(s[e[a]]=a,s),{}):null,n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:B2,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),t?null:Os,e);return{labels:n,values:i}}function vpe(e,t,r){if(typeof e=="number"){if(![].concat(Object.keys(t||{}).map(s=>t[s]),r?[]:Object.keys(B2).map(s=>+s),1/0).includes(e))throw Error(`default level:${e} must be included in custom levels`);return}let n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:Os,t);if(!(e in n))throw Error(`default level:${e} must be included in custom levels`)}function Tpe(e,t){let{labels:r,values:n}=e;for(let i in t){if(i in n)throw Error("levels cannot be overridden");if(t[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}function Spe(e){if(typeof e!="function"&&!(typeof e=="string"&&Object.values(h$).includes(e)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}g$.exports={initialLsCache:ppe,genLsCache:hpe,levelMethods:m$,getLevel:ype,setLevel:gpe,isLevelEnabled:bpe,mappings:_pe,assertNoLevelCollisions:Tpe,assertDefaultLevelFound:vpe,genLevelComparison:Epe,assertLevelComparison:Spe}});var j2=_((jet,y$)=>{"use strict";y$.exports={version:"8.21.0"}});var I$=_((Het,C$)=>{"use strict";var{EventEmitter:wpe}=require("events"),{lsCacheSym:Ape,levelValSym:Cpe,setLevelSym:H2,getLevelSym:b$,chindingsSym:z2,parsedChindingsSym:Ipe,mixinSym:Rpe,asJsonSym:T$,writeSym:Npe,mixinMergeStrategySym:Ope,timeSym:Ppe,timeSliceIndexSym:Dpe,streamSym:S$,serializersSym:Gu,formattersSym:U2,errorKeySym:kpe,messageKeySym:$pe,useOnlyCustomLevelsSym:Lpe,needsMetadataGsym:Mpe,redactFmtSym:Fpe,stringifySym:Bpe,formatOptsSym:qpe,stringifiersSym:jpe,msgPrefixSym:x$}=wl(),{getLevel:Upe,setLevel:Hpe,isLevelEnabled:zpe,mappings:Vpe,initialLsCache:Gpe,genLsCache:Wpe,assertNoLevelCollisions:Kpe}=q2(),{asChindings:w$,asJson:Ype,buildFormatters:E$,stringify:_$}=$g(),{version:Xpe}=j2(),Jpe=_2(),Qpe=class{},A$={constructor:Qpe,child:Zpe,bindings:ehe,setBindings:the,flush:she,isLevelEnabled:zpe,version:Xpe,get level(){return this[b$]()},set level(e){this[H2](e)},get levelVal(){return this[Cpe]},set levelVal(e){throw Error("levelVal is read-only")},[Ape]:Gpe,[Npe]:nhe,[T$]:Ype,[b$]:Upe,[H2]:Hpe};Object.setPrototypeOf(A$,wpe.prototype);C$.exports=function(){return Object.create(A$)};var v$=e=>e;function Zpe(e,t){if(!e)throw Error("missing bindings for child Pino");t=t||{};let r=this[Gu],n=this[U2],i=Object.create(this);if(t.hasOwnProperty("serializers")===!0){i[Gu]=Object.create(null);for(let c in r)i[Gu][c]=r[c];let u=Object.getOwnPropertySymbols(r);for(var s=0;s<u.length;s++){let c=u[s];i[Gu][c]=r[c]}for(let c in t.serializers)i[Gu][c]=t.serializers[c];let l=Object.getOwnPropertySymbols(t.serializers);for(var a=0;a<l.length;a++){let c=l[a];i[Gu][c]=t.serializers[c]}}else i[Gu]=r;if(t.hasOwnProperty("formatters")){let{level:u,bindings:l,log:c}=t.formatters;i[U2]=E$(u||n.level,l||v$,c||n.log)}else i[U2]=E$(n.level,v$,n.log);if(t.hasOwnProperty("customLevels")===!0&&(Kpe(this.levels,t.customLevels),i.levels=Vpe(t.customLevels,i[Lpe]),Wpe(i)),typeof t.redact=="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;let u=Jpe(i.redact,_$),l={stringify:u[Fpe]};i[Bpe]=_$,i[jpe]=u,i[qpe]=l}typeof t.msgPrefix=="string"&&(i[x$]=(this[x$]||"")+t.msgPrefix),i[z2]=w$(i,e);let o=t.level||this.level;return i[H2](o),this.onChild(i),i}function ehe(){let t=`{${this[z2].substr(1)}}`,r=JSON.parse(t);return delete r.pid,delete r.hostname,r}function the(e){let t=w$(this,e);this[z2]=t,delete this[Ipe]}function rhe(e,t){return Object.assign(t,e)}function nhe(e,t,r){let n=this[Ppe](),i=this[Rpe],s=this[kpe],a=this[$pe],o=this[Ope]||rhe,u;e==null?u={}:e instanceof Error?(u={[s]:e},t===void 0&&(t=e.message)):(u=e,t===void 0&&e[a]===void 0&&e[s]&&(t=e[s].message)),i&&(u=o(u,i(u,r,this)));let l=this[T$](u,t,r,n),c=this[S$];c[Mpe]===!0&&(c.lastLevel=r,c.lastObj=u,c.lastMsg=t,c.lastTime=n.slice(this[Dpe]),c.lastLogger=this),c.write(l)}function ihe(){}function she(e){if(e!=null&&typeof e!="function")throw Error("callback must be a function");let t=this[S$];typeof t.flush=="function"?t.flush(e||ihe):e&&e()}});var P$=_((K2,O$)=>{"use strict";var{hasOwnProperty:e0}=Object.prototype,Ku=W2();Ku.configure=W2;Ku.stringify=Ku;Ku.default=Ku;K2.stringify=Ku;K2.configure=W2;O$.exports=Ku;var ahe=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function To(e){return e.length<5e3&&!ahe.test(e)?`"${e}"`:JSON.stringify(e)}function V2(e,t){if(e.length>200||t)return e.sort(t);for(let r=1;r<e.length;r++){let n=e[r],i=r;for(;i!==0&&e[i-1]>n;)e[i]=e[i-1],i--;e[i]=n}return e}var ohe=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function G2(e){return ohe.call(e)!==void 0&&e.length!==0}function R$(e,t,r){e.length<r&&(r=e.length);let n=t===","?"":" ",i=`"0":${n}${e[0]}`;for(let s=1;s<r;s++)i+=`${t}"${s}":${n}${e[s]}`;return i}function uhe(e){if(e0.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function che(e){let t;if(e0.call(e,"deterministic")&&(t=e.deterministic,typeof t!="boolean"&&typeof t!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return t===void 0?!0:t}function lhe(e,t){let r;if(e0.call(e,t)&&(r=e[t],typeof r!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return r===void 0?!0:r}function N$(e,t){let r;if(e0.call(e,t)){if(r=e[t],typeof r!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${t}" argument must be an integer`);if(r<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return r===void 0?1/0:r}function Wu(e){return e===1?"1 item":`${e} items`}function fhe(e){let t=new Set;for(let r of e)(typeof r=="string"||typeof r=="number")&&t.add(String(r));return t}function dhe(e){if(e0.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}function W2(e){e={...e};let t=dhe(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let r=uhe(e),n=lhe(e,"bigint"),i=che(e),s=typeof i=="function"?i:void 0,a=N$(e,"maximumDepth"),o=N$(e,"maximumBreadth");function u(h,p,m,y,g,v){let E=p[h];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(h)),E=y.call(p,h,E),typeof E){case"string":return To(E);case"object":{if(E===null)return"null";if(m.indexOf(E)!==-1)return r;let x="",T=",",S=v;if(Array.isArray(E)){if(E.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(E),g!==""&&(v+=g,x+=`
${v}`,T=`,
${v}`);let R=Math.min(E.length,o),P=0;for(;P<R-1;P++){let K=u(String(P),E,m,y,g,v);x+=K!==void 0?K:"null",x+=T}let k=u(String(P),E,m,y,g,v);if(x+=k!==void 0?k:"null",E.length-1>o){let K=E.length-o-1;x+=`${T}"... ${Wu(K)} not stringified"`}return g!==""&&(x+=`
${S}`),m.pop(),`[${x}]`}let w=Object.keys(E),A=w.length;if(A===0)return"{}";if(a<m.length+1)return'"[Object]"';let C="",I="";g!==""&&(v+=g,T=`,
${v}`,C=" ");let M=Math.min(A,o);i&&!G2(E)&&(w=V2(w,s)),m.push(E);for(let R=0;R<M;R++){let P=w[R],k=u(P,E,m,y,g,v);k!==void 0&&(x+=`${I}${To(P)}:${C}${k}`,I=T)}if(A>o){let R=A-o;x+=`${I}"...":${C}"${Wu(R)} not stringified"`,I=T}return g!==""&&I.length>1&&(x=`
${v}${x}
${S}`),m.pop(),`{${x}}`}case"number":return isFinite(E)?String(E):t?t(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(E);default:return t?t(E):void 0}}function l(h,p,m,y,g,v){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(h)),typeof p){case"string":return To(p);case"object":{if(p===null)return"null";if(m.indexOf(p)!==-1)return r;let E=v,x="",T=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(p),g!==""&&(v+=g,x+=`
${v}`,T=`,
${v}`);let A=Math.min(p.length,o),C=0;for(;C<A-1;C++){let M=l(String(C),p[C],m,y,g,v);x+=M!==void 0?M:"null",x+=T}let I=l(String(C),p[C],m,y,g,v);if(x+=I!==void 0?I:"null",p.length-1>o){let M=p.length-o-1;x+=`${T}"... ${Wu(M)} not stringified"`}return g!==""&&(x+=`
${E}`),m.pop(),`[${x}]`}m.push(p);let S="";g!==""&&(v+=g,T=`,
${v}`,S=" ");let w="";for(let A of y){let C=l(A,p[A],m,y,g,v);C!==void 0&&(x+=`${w}${To(A)}:${S}${C}`,w=T)}return g!==""&&w.length>1&&(x=`
${v}${x}
${E}`),m.pop(),`{${x}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function c(h,p,m,y,g){switch(typeof p){case"string":return To(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(h),typeof p!="object")return c(h,p,m,y,g);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let v=g;if(Array.isArray(p)){if(p.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(p),g+=y;let C=`
${g}`,I=`,
${g}`,M=Math.min(p.length,o),R=0;for(;R<M-1;R++){let k=c(String(R),p[R],m,y,g);C+=k!==void 0?k:"null",C+=I}let P=c(String(R),p[R],m,y,g);if(C+=P!==void 0?P:"null",p.length-1>o){let k=p.length-o-1;C+=`${I}"... ${Wu(k)} not stringified"`}return C+=`
${v}`,m.pop(),`[${C}]`}let E=Object.keys(p),x=E.length;if(x===0)return"{}";if(a<m.length+1)return'"[Object]"';g+=y;let T=`,
${g}`,S="",w="",A=Math.min(x,o);G2(p)&&(S+=R$(p,T,o),E=E.slice(p.length),A-=p.length,w=T),i&&(E=V2(E,s)),m.push(p);for(let C=0;C<A;C++){let I=E[C],M=c(I,p[I],m,y,g);M!==void 0&&(S+=`${w}${To(I)}: ${M}`,w=T)}if(x>o){let C=x-o;S+=`${w}"...": "${Wu(C)} not stringified"`,w=T}return w!==""&&(S=`
${g}${S}
${v}`),m.pop(),`{${S}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function f(h,p,m){switch(typeof p){case"string":return To(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(h),typeof p!="object")return f(h,p,m);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let y="",g=p.length!==void 0;if(g&&Array.isArray(p)){if(p.length===0)return"[]";if(a<m.length+1)return'"[Array]"';m.push(p);let S=Math.min(p.length,o),w=0;for(;w<S-1;w++){let C=f(String(w),p[w],m);y+=C!==void 0?C:"null",y+=","}let A=f(String(w),p[w],m);if(y+=A!==void 0?A:"null",p.length-1>o){let C=p.length-o-1;y+=`,"... ${Wu(C)} not stringified"`}return m.pop(),`[${y}]`}let v=Object.keys(p),E=v.length;if(E===0)return"{}";if(a<m.length+1)return'"[Object]"';let x="",T=Math.min(E,o);g&&G2(p)&&(y+=R$(p,",",o),v=v.slice(p.length),T-=p.length,x=","),i&&(v=V2(v,s)),m.push(p);for(let S=0;S<T;S++){let w=v[S],A=f(w,p[w],m);A!==void 0&&(y+=`${x}${To(w)}:${A}`,x=",")}if(E>o){let S=E-o;y+=`${x}"...":"${Wu(S)} not stringified"`}return m.pop(),`{${y}}`}case"number":return isFinite(p)?String(p):t?t(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return t?t(p):void 0}}function d(h,p,m){if(arguments.length>1){let y="";if(typeof m=="number"?y=" ".repeat(Math.min(m,10)):typeof m=="string"&&(y=m.slice(0,10)),p!=null){if(typeof p=="function")return u("",{"":h},[],p,y,"");if(Array.isArray(p))return l("",h,[],fhe(p),y,"")}if(y.length!==0)return c("",h,[],y,"")}return f("",h,[])}return d}});var $$=_((zet,k$)=>{"use strict";var Y2=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:D$}=Lg(),phe=D$.info;function hhe(e,t){let r=0;e=e||[],t=t||{dedupe:!1};let n=Object.create(D$);n.silent=1/0,t.levels&&typeof t.levels=="object"&&Object.keys(t.levels).forEach(f=>{n[f]=t.levels[f]});let i={write:s,add:u,emit:a,flushSync:o,end:l,minLevel:0,streams:[],clone:c,[Y2]:!0,streamLevels:n};return Array.isArray(e)?e.forEach(u,i):u.call(i,e),e=null,i;function s(f){let d,h=this.lastLevel,{streams:p}=this,m=0,y;for(let g=ghe(p.length,t.dedupe);bhe(g,p.length,t.dedupe);g=yhe(g,t.dedupe))if(d=p[g],d.level<=h){if(m!==0&&m!==d.level)break;if(y=d.stream,y[Y2]){let{lastTime:v,lastMsg:E,lastObj:x,lastLogger:T}=this;y.lastLevel=h,y.lastTime=v,y.lastMsg=E,y.lastObj=x,y.lastLogger=T}y.write(f),t.dedupe&&(m=d.level)}else if(!t.dedupe)break}function a(...f){for(let{stream:d}of this.streams)typeof d.emit=="function"&&d.emit(...f)}function o(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync()}function u(f){if(!f)return i;let d=typeof f.write=="function"||f.stream,h=f.write?f:f.stream;if(!d)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:p,streamLevels:m}=this,y;typeof f.levelVal=="number"?y=f.levelVal:typeof f.level=="string"?y=m[f.level]:typeof f.level=="number"?y=f.level:y=phe;let g={stream:h,level:y,levelVal:void 0,id:r++};return p.unshift(g),p.sort(mhe),this.minLevel=p[0].level,i}function l(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync(),f.end()}function c(f){let d=new Array(this.streams.length);for(let h=0;h<d.length;h++)d[h]={level:f,stream:this.streams[h].stream};return{write:s,add:u,minLevel:f,streams:d,clone:c,emit:a,flushSync:o,[Y2]:!0}}}function mhe(e,t){return e.level-t.level}function ghe(e,t){return t?e-1:0}function yhe(e,t){return t?e-1:e+1}function bhe(e,t,r){return r?e>=0:e<t}k$.exports=hhe});var K$=_((Vet,_i)=>{"use strict";var xhe=require("os"),H$=p2(),Ehe=h2(),_he=_2(),z$=Ik(),vhe=I$(),V$=wl(),{configure:The}=P$(),{assertDefaultLevelFound:She,mappings:G$,genLsCache:whe,genLevelComparison:Ahe,assertLevelComparison:Che}=q2(),{DEFAULT_LEVELS:Ihe,SORTING_ORDER:Rhe}=Lg(),{createArgsNormalizer:Nhe,asChindings:Ohe,buildSafeSonicBoom:L$,buildFormatters:Phe,stringify:X2,normalizeDestFileDescriptor:M$,noop:Dhe}=$g(),{version:khe}=j2(),{chindingsSym:F$,redactFmtSym:$he,serializersSym:B$,timeSym:Lhe,timeSliceIndexSym:Mhe,streamSym:Fhe,stringifySym:q$,stringifySafeSym:J2,stringifiersSym:j$,setLevelSym:Bhe,endSym:qhe,formatOptsSym:jhe,messageKeySym:Uhe,errorKeySym:Hhe,nestedKeySym:zhe,mixinSym:Vhe,levelCompSym:Ghe,useOnlyCustomLevelsSym:Whe,formattersSym:U$,hooksSym:Khe,nestedKeyStrSym:Yhe,mixinMergeStrategySym:Xhe,msgPrefixSym:Jhe}=V$,{epochTime:W$,nullTime:Qhe}=z$,{pid:Zhe}=process,eme=xhe.hostname(),tme=H$.err,rme={level:"info",levelComparison:Rhe.ASC,levels:Ihe,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Zhe,hostname:eme},serializers:Object.assign(Object.create(null),{err:tme}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0},timestamp:W$,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},nme=Nhe(rme),ime=Object.assign(Object.create(null),H$);function Q2(...e){let t={},{opts:r,stream:n}=nme(t,Ehe(),...e),{redact:i,crlf:s,serializers:a,timestamp:o,messageKey:u,errorKey:l,nestedKey:c,base:f,name:d,level:h,customLevels:p,levelComparison:m,mixin:y,mixinMergeStrategy:g,useOnlyCustomLevels:v,formatters:E,hooks:x,depthLimit:T,edgeLimit:S,onChild:w,msgPrefix:A}=r,C=The({maximumDepth:T,maximumBreadth:S}),I=Phe(E.level,E.bindings,E.log),M=X2.bind({[J2]:C}),R=i?_he(i,M):{},P=i?{stringify:R[$he]}:{stringify:M},k="}"+(s?`\r
`:`
`),K=Ohe.bind(null,{[F$]:"",[B$]:a,[j$]:R,[q$]:X2,[J2]:C,[U$]:I}),z="";f!==null&&(d===void 0?z=K(f):z=K(Object.assign({},f,{name:d})));let G=o instanceof Function?o:o?W$:Qhe,te=G().indexOf(":")+1;if(v&&!p)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(y&&typeof y!="function")throw Error(`Unknown mixin type "${typeof y}" - expected "function"`);if(A&&typeof A!="string")throw Error(`Unknown msgPrefix type "${typeof A}" - expected "string"`);She(h,p,v);let j=G$(p,v);typeof n.emit=="function"&&n.emit("message",{code:"PINO_CONFIG",config:{levels:j,messageKey:u,errorKey:l}}),Che(m);let ee=Ahe(m);return Object.assign(t,{levels:j,[Ghe]:ee,[Whe]:v,[Fhe]:n,[Lhe]:G,[Mhe]:te,[q$]:X2,[J2]:C,[j$]:R,[qhe]:k,[jhe]:P,[Uhe]:u,[Hhe]:l,[zhe]:c,[Yhe]:c?`,${JSON.stringify(c)}:{`:"",[B$]:a,[Vhe]:y,[Xhe]:g,[F$]:z,[U$]:I,[Khe]:x,silent:Dhe,onChild:w,[Jhe]:A}),Object.setPrototypeOf(t,vhe()),whe(t),t[Bhe](h),t}_i.exports=Q2;_i.exports.destination=(e=process.stdout.fd)=>typeof e=="object"?(e.dest=M$(e.dest||process.stdout.fd),L$(e)):L$({dest:M$(e),minLength:0});_i.exports.transport=k2();_i.exports.multistream=$$();_i.exports.levels=G$();_i.exports.stdSerializers=ime;_i.exports.stdTimeFunctions=Object.assign({},z$);_i.exports.symbols=V$;_i.exports.version=khe;_i.exports.default=Q2;_i.exports.pino=Q2});var t0=_((Get,Z$)=>{"use strict";var sme=F5(),Mg=K$(),{serializersSym:Y$}=Mg.symbols,{FST_ERR_LOG_INVALID_DESTINATION:ame,FST_ERR_LOG_INVALID_LOGGER:ome}=nn();function X$(e){if(e.stream&&e.file)throw new ame;e.file&&(e.stream=Mg.destination(e.file),delete e.file);let t=e.logger,r=e.genReqId,n=null;return t?(e.logger=void 0,e.genReqId=void 0,t[Y$]&&(e.serializers=Object.assign({},e.serializers,t[Y$])),n=t.child({},e),e.logger=t,e.genReqId=r):n=Mg(e,e.stream),n}var Z2={req:function(t){return{method:t.method,url:t.url,version:t.headers&&t.headers["accept-version"],hostname:t.hostname,remoteAddress:t.ip,remotePort:t.socket?t.socket.remotePort:void 0}},err:Mg.stdSerializers.err,res:function(t){return{statusCode:t.statusCode}}};function ume(){let e=process.hrtime();return e[0]*1e3+e[1]/1e6}function cme(e){if(!e.logger){let n=sme;return n.child=()=>n,{logger:n,hasLogger:!1}}if(J$(e.logger))return{logger:X$({logger:e.logger,serializers:Object.assign({},Z2,e.logger.serializers)}),hasLogger:!0};let t={};return Object.prototype.toString.call(e.logger)==="[object Object]"&&Reflect.ownKeys(e.logger).forEach(n=>{Object.defineProperty(t,n,{value:e.logger[n],writable:!0,enumerable:!0,configurable:!0})}),t.level=t.level||"info",t.serializers=Object.assign({},Z2,t.serializers),e.logger=t,{logger:X$(e.logger),hasLogger:!0}}function J$(e,t){let r=["info","error","debug","fatal","warn","trace","child"],n=e?r.filter(i=>!e[i]||typeof e[i]!="function"):r;if(n.length){if(n.length===r.length&&!t)return!1;throw ome(n.join(","))}else return!0}function lme(e,t,r,n,i){let s={[e.requestIdLogLabel]:n},a=e.childLoggerFactory.call(e.server,t,s,i||{},r);return e.childLoggerFactory!==Q$&&J$(a,!0),a}function Q$(e,t,r){return e.child(t,r)}Z$.exports={createLogger:cme,createChildLogger:lme,defaultChildLoggerFactory:Q$,serializers:Z2,now:ume}});var Fg=_((Wet,eL)=>{"use strict";eL.exports=fme;function Il(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function fme(e){if(e=e||{},e.circles)return dme(e);let t=new Map;if(t.set(Date,a=>new Date(a)),t.set(Map,(a,o)=>new Map(n(Array.from(a),o))),t.set(Set,(a,o)=>new Set(n(Array.from(a),o))),e.constructorHandlers)for(let a of e.constructorHandlers)t.set(a[0],a[1]);let r=null;return e.proto?s:i;function n(a,o){let u=Object.keys(a),l=new Array(u.length);for(let c=0;c<u.length;c++){let f=u[c],d=a[f];typeof d!="object"||d===null?l[f]=d:d.constructor!==Object&&(r=t.get(d.constructor))?l[f]=r(d,o):ArrayBuffer.isView(d)?l[f]=Il(d):l[f]=o(d)}return l}function i(a){if(typeof a!="object"||a===null)return a;if(Array.isArray(a))return n(a,i);if(a.constructor!==Object&&(r=t.get(a.constructor)))return r(a,i);let o={};for(let u in a){if(Object.hasOwnProperty.call(a,u)===!1)continue;let l=a[u];typeof l!="object"||l===null?o[u]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[u]=r(l,i):ArrayBuffer.isView(l)?o[u]=Il(l):o[u]=i(l)}return o}function s(a){if(typeof a!="object"||a===null)return a;if(Array.isArray(a))return n(a,s);if(a.constructor!==Object&&(r=t.get(a.constructor)))return r(a,s);let o={};for(let u in a){let l=a[u];typeof l!="object"||l===null?o[u]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[u]=r(l,s):ArrayBuffer.isView(l)?o[u]=Il(l):o[u]=s(l)}return o}}function dme(e){let t=[],r=[],n=new Map;if(n.set(Date,u=>new Date(u)),n.set(Map,(u,l)=>new Map(s(Array.from(u),l))),n.set(Set,(u,l)=>new Set(s(Array.from(u),l))),e.constructorHandlers)for(let u of e.constructorHandlers)n.set(u[0],u[1]);let i=null;return e.proto?o:a;function s(u,l){let c=Object.keys(u),f=new Array(c.length);for(let d=0;d<c.length;d++){let h=c[d],p=u[h];if(typeof p!="object"||p===null)f[h]=p;else if(p.constructor!==Object&&(i=n.get(p.constructor)))f[h]=i(p,l);else if(ArrayBuffer.isView(p))f[h]=Il(p);else{let m=t.indexOf(p);m!==-1?f[h]=r[m]:f[h]=l(p)}}return f}function a(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return s(u,a);if(u.constructor!==Object&&(i=n.get(u.constructor)))return i(u,a);let l={};t.push(u),r.push(l);for(let c in u){if(Object.hasOwnProperty.call(u,c)===!1)continue;let f=u[c];if(typeof f!="object"||f===null)l[c]=f;else if(f.constructor!==Object&&(i=n.get(f.constructor)))l[c]=i(f,a);else if(ArrayBuffer.isView(f))l[c]=Il(f);else{let d=t.indexOf(f);d!==-1?l[c]=r[d]:l[c]=a(f)}}return t.pop(),r.pop(),l}function o(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return s(u,o);if(u.constructor!==Object&&(i=n.get(u.constructor)))return i(u,o);let l={};t.push(u),r.push(l);for(let c in u){let f=u[c];if(typeof f!="object"||f===null)l[c]=f;else if(f.constructor!==Object&&(i=n.get(f.constructor)))l[c]=i(f,o);else if(ArrayBuffer.isView(f))l[c]=Il(f);else{let d=t.indexOf(f);d!==-1?l[c]=r[d]:l[c]=o(f)}}return t.pop(),r.pop(),l}}});var r0=_((Ket,iL)=>{"use strict";var pme=Fg()({circles:!1,proto:!0}),{kSchemaVisited:tL,kSchemaResponse:hme}=Or(),tT=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:mme,FST_ERR_SCH_ALREADY_PRESENT:gme,FST_ERR_SCH_DUPLICATE:yme,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:bme}=nn(),nL=["params","body","querystring","query","headers"];function Bg(e){this.store=e||{}}Bg.prototype.add=function(e){let t=pme(e.isFluentSchema||e.isFluentJSONSchema||e[tT]?e.valueOf():e),r=t.$id;if(!r)throw new mme;if(this.store[r])throw new gme(r);this.store[r]=t};Bg.prototype.getSchemas=function(){return Object.assign({},this.store)};Bg.prototype.getSchema=function(e){return this.store[e]};function rL(e){return typeof e=="object"&&Object.getPrototypeOf(e)!==Object.prototype}function xme(e,t){if(e[tL])return e;if(e.query){if(e.querystring)throw new yme("querystring");e.querystring=e.query}Eme(e);for(let r of nL){let n=e[r];n&&!rL(n)&&(e[r]=eT(n,t.jsonShorthand))}if(e.response){let r=Object.keys(e.response);for(let n of r){if(rL(e.response[n]))continue;let i=e.response[n].content,s=!1;if(i){let a=Object.keys(i);for(let o=0;o<a.length;o++){let u=a[o];if(!i[u].schema){if(a.length===1)break;throw new bme(u)}e.response[n].content[u].schema=eT(i[u].schema,t.jsonShorthand),o===a.length-1&&(s=!0)}}s||(e.response[n]=eT(e.response[n],t.jsonShorthand))}}return e[tL]=!0,e}function Eme(e){for(let t of nL)e[t]&&(e[t].isFluentSchema||e[t][tT])&&(e[t]=e[t].valueOf());if(e.response){let t=Object.keys(e.response);for(let r of t)(e.response[r].isFluentSchema||e.response[r][tT])&&(e.response[r]=e.response[r].valueOf())}}function eT(e,t){return!t||e.$ref||e.oneOf||e.allOf||e.anyOf||e.$merge||e.$patch?e:!e.type&&!e.properties?{type:"object",properties:e}:e}function _me(e,t,r){let n=e[hme];if(!n)return!1;if(n[t]){if(n[t].constructor===Object&&r){let s=r.split(";",1)[0];return n[t][s]?n[t][s]:!1}return n[t]}let i=(t+"")[0]+"xx";if(n[i]){if(n[i].constructor===Object&&r){let s=r.split(";",1)[0];return n[i][s]?n[i][s]:!1}return n[i]}if(n.default){if(n.default.constructor===Object&&r){let s=r.split(";",1)[0];return n.default[s]?n.default[s]:!1}return n.default}return!1}iL.exports={buildSchemas(e){return new Bg(e)},getSchemaSerializer:_me,normalizeSchema:xme}});var rT=_((Yet,aL)=>{"use strict";var vme=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;aL.exports=class sL{constructor(t){switch(t&&t.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=t}asInteger(t){if(Number.isInteger(t))return""+t;if(typeof t=="bigint")return t.toString();let r=this.parseInteger(t);if(r===1/0||r===-1/0||r!==r)throw new Error(`The value "${t}" cannot be converted to an integer.`);return""+r}asNumber(t){let r=Number(t);if(r!==r)throw new Error(`The value "${t}" cannot be converted to a number.`);return r===1/0||r===-1/0?"null":""+r}asBoolean(t){return t&&"true"||"false"}asDateTime(t){if(t===null)return'""';if(t instanceof Date)return'"'+t.toISOString()+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a date-time.`)}asDate(t){if(t===null)return'""';if(t instanceof Date)return'"'+new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a date.`)}asTime(t){if(t===null)return'""';if(t instanceof Date)return'"'+new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof t=="string")return'"'+t+'"';throw new Error(`The value "${t}" cannot be converted to a time.`)}asString(t){let r=t.length;if(r<42){let i="",s=-1,a=255;for(var n=0;n<r;n++)if(a=t.charCodeAt(n),a===34||a===92)s===-1&&(s=0),i+=t.slice(s,n)+"\\",s=n;else if(a<32||a>=55296&&a<=57343)return JSON.stringify(t);return s===-1&&'"'+t+'"'||'"'+i+t.slice(s)+'"'}else return r<5e3&&vme.test(t)===!1?'"'+t+'"':JSON.stringify(t)}asUnsafeString(t){return'"'+t+'"'}getState(){return this._options}static restoreFromState(t){return new sL(t)}}});var s0=_(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.regexpCode=yt.getEsmExportName=yt.getProperty=yt.safeStringify=yt.stringify=yt.strConcat=yt.addCodeArg=yt.str=yt._=yt.nil=yt._Code=yt.Name=yt.IDENTIFIER=yt._CodeOrName=void 0;var n0=class{};yt._CodeOrName=n0;yt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Yu=class extends n0{constructor(t){if(super(),!yt.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};yt.Name=Yu;var vi=class extends n0{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Yu&&(r[n.str]=(r[n.str]||0)+1),r),{})}};yt._Code=vi;yt.nil=new vi("");function oL(e,...t){let r=[e[0]],n=0;for(;n<t.length;)iT(r,t[n]),r.push(e[++n]);return new vi(r)}yt._=oL;var nT=new vi("+");function uL(e,...t){let r=[i0(e[0])],n=0;for(;n<t.length;)r.push(nT),iT(r,t[n]),r.push(nT,i0(e[++n]));return Tme(r),new vi(r)}yt.str=uL;function iT(e,t){t instanceof vi?e.push(...t._items):t instanceof Yu?e.push(t):e.push(Ame(t))}yt.addCodeArg=iT;function Tme(e){let t=1;for(;t<e.length-1;){if(e[t]===nT){let r=Sme(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function Sme(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Yu||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Yu))return`"${e}${t.slice(1)}`}function wme(e,t){return t.emptyStr()?e:e.emptyStr()?t:uL`${e}${t}`}yt.strConcat=wme;function Ame(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:i0(Array.isArray(e)?e.join(","):e)}function Cme(e){return new vi(i0(e))}yt.stringify=Cme;function i0(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}yt.safeStringify=i0;function Ime(e){return typeof e=="string"&&yt.IDENTIFIER.test(e)?new vi(`.${e}`):oL`[${e}]`}yt.getProperty=Ime;function Rme(e){if(typeof e=="string"&&yt.IDENTIFIER.test(e))return new vi(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}yt.getEsmExportName=Rme;function Nme(e){return new vi(e.toString())}yt.regexpCode=Nme});var oT=_(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.ValueScope=Gn.ValueScopeName=Gn.Scope=Gn.varKinds=Gn.UsedValueState=void 0;var Vn=s0(),sT=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},qg;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(qg||(Gn.UsedValueState=qg={}));Gn.varKinds={const:new Vn.Name("const"),let:new Vn.Name("let"),var:new Vn.Name("var")};var jg=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Vn.Name?t:this.name(t)}name(t){return new Vn.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Gn.Scope=jg;var Ug=class extends Vn.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Vn._)`.${new Vn.Name(r)}[${n}]`}};Gn.ValueScopeName=Ug;var Ome=(0,Vn._)`\n`,aT=class extends jg{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Ome:Vn.nil}}get(){return this._scope}name(t){return new Ug(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,o=this._values[s];if(o){let c=o.get(a);if(c)return c}else o=this._values[s]=new Map;o.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Vn._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Vn.nil;for(let a in t){let o=t[a];if(!o)continue;let u=n[a]=n[a]||new Map;o.forEach(l=>{if(u.has(l))return;u.set(l,qg.Started);let c=r(l);if(c){let f=this.opts.es5?Gn.varKinds.var:Gn.varKinds.const;s=(0,Vn._)`${s}${f} ${l} = ${c};${this.opts._n}`}else if(c=i?.(l))s=(0,Vn._)`${s}${c}${this.opts._n}`;else throw new sT(l);u.set(l,qg.Completed)})}return s}};Gn.ValueScope=aT});var Ue=_(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.or=Ve.and=Ve.not=Ve.CodeGen=Ve.operators=Ve.varKinds=Ve.ValueScopeName=Ve.ValueScope=Ve.Scope=Ve.Name=Ve.regexpCode=Ve.stringify=Ve.getProperty=Ve.nil=Ve.strConcat=Ve.str=Ve._=void 0;var at=s0(),es=oT(),So=s0();Object.defineProperty(Ve,"_",{enumerable:!0,get:function(){return So._}});Object.defineProperty(Ve,"str",{enumerable:!0,get:function(){return So.str}});Object.defineProperty(Ve,"strConcat",{enumerable:!0,get:function(){return So.strConcat}});Object.defineProperty(Ve,"nil",{enumerable:!0,get:function(){return So.nil}});Object.defineProperty(Ve,"getProperty",{enumerable:!0,get:function(){return So.getProperty}});Object.defineProperty(Ve,"stringify",{enumerable:!0,get:function(){return So.stringify}});Object.defineProperty(Ve,"regexpCode",{enumerable:!0,get:function(){return So.regexpCode}});Object.defineProperty(Ve,"Name",{enumerable:!0,get:function(){return So.Name}});var Gg=oT();Object.defineProperty(Ve,"Scope",{enumerable:!0,get:function(){return Gg.Scope}});Object.defineProperty(Ve,"ValueScope",{enumerable:!0,get:function(){return Gg.ValueScope}});Object.defineProperty(Ve,"ValueScopeName",{enumerable:!0,get:function(){return Gg.ValueScopeName}});Object.defineProperty(Ve,"varKinds",{enumerable:!0,get:function(){return Gg.varKinds}});Ve.operators={GT:new at._Code(">"),GTE:new at._Code(">="),LT:new at._Code("<"),LTE:new at._Code("<="),EQ:new at._Code("==="),NEQ:new at._Code("!=="),NOT:new at._Code("!"),OR:new at._Code("||"),AND:new at._Code("&&"),ADD:new at._Code("+")};var _a=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},uT=class extends _a{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?es.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Nl(this.rhs,t,r)),this}get names(){return this.rhs instanceof at._CodeOrName?this.rhs.names:{}}},Hg=class extends _a{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof at.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Nl(this.rhs,t,r),this}get names(){let t=this.lhs instanceof at.Name?{}:{...this.lhs.names};return Vg(t,this.rhs)}},cT=class extends Hg{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},lT=class extends _a{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},fT=class extends _a{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},dT=class extends _a{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},pT=class extends _a{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Nl(this.code,t,r),this}get names(){return this.code instanceof at._CodeOrName?this.code.names:{}}},a0=class extends _a{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(Pme(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Qu(t,r.names),{})}},va=class extends a0{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},hT=class extends a0{},Rl=class extends va{};Rl.kind="else";var Xu=class e extends va{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Rl(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(cL(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Nl(this.condition,t,r),this}get names(){let t=super.names;return Vg(t,this.condition),this.else&&Qu(t,this.else.names),t}};Xu.kind="if";var Ju=class extends va{};Ju.kind="for";var mT=class extends Ju{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Nl(this.iteration,t,r),this}get names(){return Qu(super.names,this.iteration.names)}},gT=class extends Ju{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?es.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=Vg(super.names,this.from);return Vg(t,this.to)}},zg=class extends Ju{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Nl(this.iterable,t,r),this}get names(){return Qu(super.names,this.iterable.names)}},o0=class extends va{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};o0.kind="func";var u0=class extends a0{render(t){return"return "+super.render(t)}};u0.kind="return";var yT=class extends va{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Qu(t,this.catch.names),this.finally&&Qu(t,this.finally.names),t}},c0=class extends va{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};c0.kind="catch";var l0=class extends va{render(t){return"finally"+super.render(t)}};l0.kind="finally";var bT=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
`:""},this._extScope=t,this._scope=new es.Scope({parent:t}),this._nodes=[new hT]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new uT(t,s,n)),s}const(t,r,n){return this._def(es.varKinds.const,t,r,n)}let(t,r,n){return this._def(es.varKinds.let,t,r,n)}var(t,r,n){return this._def(es.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Hg(t,r,n))}add(t,r){return this._leafNode(new cT(t,Ve.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==at.nil&&this._leafNode(new pT(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,at.addCodeArg)(r,i));return r.push("}"),new at._Code(r)}if(t,r,n){if(this._blockNode(new Xu(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Xu(t))}else(){return this._elseNode(new Rl)}endIf(){return this._endBlockNode(Xu,Rl)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new mT(t),r)}forRange(t,r,n,i,s=this.opts.es5?es.varKinds.var:es.varKinds.let){let a=this._scope.toName(t);return this._for(new gT(s,a,r,n),()=>i(a))}forOf(t,r,n,i=es.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof at.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,at._)`${a}.length`,o=>{this.var(s,(0,at._)`${a}[${o}]`),n(s)})}return this._for(new zg("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?es.varKinds.var:es.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,at._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new zg("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Ju)}label(t){return this._leafNode(new lT(t))}break(t){return this._leafNode(new fT(t))}return(t){let r=new u0;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(u0)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new yT;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new c0(s),r(s)}return n&&(this._currNode=i.finally=new l0,this.code(n)),this._endBlockNode(c0,l0)}throw(t){return this._leafNode(new dT(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=at.nil,n,i){return this._blockNode(new o0(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(o0)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Xu))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};Ve.CodeGen=bT;function Qu(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Vg(e,t){return t instanceof at._CodeOrName?Qu(e,t.names):e}function Nl(e,t,r){if(e instanceof at.Name)return n(e);if(!i(e))return e;return new at._Code(e._items.reduce((s,a)=>(a instanceof at.Name&&(a=n(a)),a instanceof at._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof at._Code&&s._items.some(a=>a instanceof at.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function Pme(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function cL(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,at._)`!${xT(e)}`}Ve.not=cL;var Dme=lL(Ve.operators.AND);function kme(...e){return e.reduce(Dme)}Ve.and=kme;var $me=lL(Ve.operators.OR);function Lme(...e){return e.reduce($me)}Ve.or=Lme;function lL(e){return(t,r)=>t===at.nil?r:r===at.nil?t:(0,at._)`${xT(t)} ${e} ${xT(r)}`}function xT(e){return e instanceof at.Name?e:(0,at._)`(${e})`}});var bt=_(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.checkStrictMode=Ke.getErrorPath=Ke.Type=Ke.useFunc=Ke.setEvaluated=Ke.evaluatedPropsToName=Ke.mergeEvaluated=Ke.eachItem=Ke.unescapeJsonPointer=Ke.escapeJsonPointer=Ke.escapeFragment=Ke.unescapeFragment=Ke.schemaRefOrVal=Ke.schemaHasRulesButRef=Ke.schemaHasRules=Ke.checkUnknownRules=Ke.alwaysValidSchema=Ke.toHash=void 0;var Mt=Ue(),Mme=s0();function Fme(e){let t={};for(let r of e)t[r]=!0;return t}Ke.toHash=Fme;function Bme(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(pL(e,t),!hL(t,e.self.RULES.all))}Ke.alwaysValidSchema=Bme;function pL(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||yL(e,`unknown keyword: "${s}"`)}Ke.checkUnknownRules=pL;function hL(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Ke.schemaHasRules=hL;function qme(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Ke.schemaHasRulesButRef=qme;function jme({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Mt._)`${r}`}return(0,Mt._)`${e}${t}${(0,Mt.getProperty)(n)}`}Ke.schemaRefOrVal=jme;function Ume(e){return mL(decodeURIComponent(e))}Ke.unescapeFragment=Ume;function Hme(e){return encodeURIComponent(_T(e))}Ke.escapeFragment=Hme;function _T(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ke.escapeJsonPointer=_T;function mL(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ke.unescapeJsonPointer=mL;function zme(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Ke.eachItem=zme;function fL({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,o)=>{let u=a===void 0?s:a instanceof Mt.Name?(s instanceof Mt.Name?e(i,s,a):t(i,s,a),a):s instanceof Mt.Name?(t(i,a,s),s):r(s,a);return o===Mt.Name&&!(u instanceof Mt.Name)?n(i,u):u}}Ke.mergeEvaluated={props:fL({mergeNames:(e,t,r)=>e.if((0,Mt._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Mt._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Mt._)`${r} || {}`).code((0,Mt._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Mt._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Mt._)`${r} || {}`),vT(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:gL}),items:fL({mergeNames:(e,t,r)=>e.if((0,Mt._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Mt._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Mt._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Mt._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function gL(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Mt._)`{}`);return t!==void 0&&vT(e,r,t),r}Ke.evaluatedPropsToName=gL;function vT(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Mt._)`${t}${(0,Mt.getProperty)(n)}`,!0))}Ke.setEvaluated=vT;var dL={};function Vme(e,t){return e.scopeValue("func",{ref:t,code:dL[t.code]||(dL[t.code]=new Mme._Code(t.code))})}Ke.useFunc=Vme;var ET;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ET||(Ke.Type=ET={}));function Gme(e,t,r){if(e instanceof Mt.Name){let n=t===ET.Num;return r?n?(0,Mt._)`"[" + ${e} + "]"`:(0,Mt._)`"['" + ${e} + "']"`:n?(0,Mt._)`"/" + ${e}`:(0,Mt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Mt.getProperty)(e).toString():"/"+_T(e)}Ke.getErrorPath=Gme;function yL(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Ke.checkStrictMode=yL});var Ta=_(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0});var an=Ue(),Wme={data:new an.Name("data"),valCxt:new an.Name("valCxt"),instancePath:new an.Name("instancePath"),parentData:new an.Name("parentData"),parentDataProperty:new an.Name("parentDataProperty"),rootData:new an.Name("rootData"),dynamicAnchors:new an.Name("dynamicAnchors"),vErrors:new an.Name("vErrors"),errors:new an.Name("errors"),this:new an.Name("this"),self:new an.Name("self"),scope:new an.Name("scope"),json:new an.Name("json"),jsonPos:new an.Name("jsonPos"),jsonLen:new an.Name("jsonLen"),jsonPart:new an.Name("jsonPart")};TT.default=Wme});var f0=_(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.extendErrors=on.resetErrorsCount=on.reportExtraError=on.reportError=on.keyword$DataError=on.keywordError=void 0;var lt=Ue(),Wg=bt(),Rn=Ta();on.keywordError={message:({keyword:e})=>(0,lt.str)`must pass "${e}" keyword validation`};on.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,lt.str)`"${e}" keyword must be ${t} ($data)`:(0,lt.str)`"${e}" keyword is invalid ($data)`};function Kme(e,t=on.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:o}=i,u=EL(e,t,r);n??(a||o)?bL(s,u):xL(i,(0,lt._)`[${u}]`)}on.reportError=Kme;function Yme(e,t=on.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,o=EL(e,t,r);bL(i,o),s||a||xL(n,Rn.default.vErrors)}on.reportExtraError=Yme;function Xme(e,t){e.assign(Rn.default.errors,t),e.if((0,lt._)`${Rn.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,lt._)`${Rn.default.vErrors}.length`,t),()=>e.assign(Rn.default.vErrors,null)))}on.resetErrorsCount=Xme;function Jme({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Rn.default.errors,o=>{e.const(a,(0,lt._)`${Rn.default.vErrors}[${o}]`),e.if((0,lt._)`${a}.instancePath === undefined`,()=>e.assign((0,lt._)`${a}.instancePath`,(0,lt.strConcat)(Rn.default.instancePath,s.errorPath))),e.assign((0,lt._)`${a}.schemaPath`,(0,lt.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,lt._)`${a}.schema`,r),e.assign((0,lt._)`${a}.data`,n))})}on.extendErrors=Jme;function bL(e,t){let r=e.const("err",t);e.if((0,lt._)`${Rn.default.vErrors} === null`,()=>e.assign(Rn.default.vErrors,(0,lt._)`[${r}]`),(0,lt._)`${Rn.default.vErrors}.push(${r})`),e.code((0,lt._)`${Rn.default.errors}++`)}function xL(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,lt._)`new ${e.ValidationError}(${t})`):(r.assign((0,lt._)`${n}.errors`,t),r.return(!1))}var Zu={keyword:new lt.Name("keyword"),schemaPath:new lt.Name("schemaPath"),params:new lt.Name("params"),propertyName:new lt.Name("propertyName"),message:new lt.Name("message"),schema:new lt.Name("schema"),parentSchema:new lt.Name("parentSchema")};function EL(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,lt._)`{}`:Qme(e,t,r)}function Qme(e,t,r={}){let{gen:n,it:i}=e,s=[Zme(i,r),ege(e,r)];return tge(e,t,s),n.object(...s)}function Zme({errorPath:e},{instancePath:t}){let r=t?(0,lt.str)`${e}${(0,Wg.getErrorPath)(t,Wg.Type.Str)}`:e;return[Rn.default.instancePath,(0,lt.strConcat)(Rn.default.instancePath,r)]}function ege({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,lt.str)`${t}/${e}`;return r&&(i=(0,lt.str)`${i}${(0,Wg.getErrorPath)(r,Wg.Type.Str)}`),[Zu.schemaPath,i]}function tge(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:o}=e,{opts:u,propertyName:l,topSchemaRef:c,schemaPath:f}=o;n.push([Zu.keyword,i],[Zu.params,typeof t=="function"?t(e):t||(0,lt._)`{}`]),u.messages&&n.push([Zu.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Zu.schema,a],[Zu.parentSchema,(0,lt._)`${c}${f}`],[Rn.default.data,s]),l&&n.push([Zu.propertyName,l])}});var vL=_(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.boolOrEmptySchema=Ol.topBoolOrEmptySchema=void 0;var rge=f0(),nge=Ue(),ige=Ta(),sge={message:"boolean schema is false"};function age(e){let{gen:t,schema:r,validateName:n}=e;r===!1?_L(e,!1):typeof r=="object"&&r.$async===!0?t.return(ige.default.data):(t.assign((0,nge._)`${n}.errors`,null),t.return(!0))}Ol.topBoolOrEmptySchema=age;function oge(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),_L(e)):r.var(t,!0)}Ol.boolOrEmptySchema=oge;function _L(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,rge.reportError)(i,sge,void 0,t)}});var ST=_(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getRules=Pl.isJSONType=void 0;var uge=["string","number","integer","boolean","null","object","array"],cge=new Set(uge);function lge(e){return typeof e=="string"&&cge.has(e)}Pl.isJSONType=lge;function fge(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Pl.getRules=fge});var wT=_(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.shouldUseRule=wo.shouldUseGroup=wo.schemaHasRulesForType=void 0;function dge({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&TL(e,n)}wo.schemaHasRulesForType=dge;function TL(e,t){return t.rules.some(r=>SL(e,r))}wo.shouldUseGroup=TL;function SL(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}wo.shouldUseRule=SL});var d0=_(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.reportTypeError=un.checkDataTypes=un.checkDataType=un.coerceAndCheckDataType=un.getJSONTypes=un.getSchemaTypes=un.DataType=void 0;var pge=ST(),hge=wT(),mge=f0(),Be=Ue(),wL=bt(),Dl;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Dl||(un.DataType=Dl={}));function gge(e){let t=AL(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}un.getSchemaTypes=gge;function AL(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(pge.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}un.getJSONTypes=AL;function yge(e,t){let{gen:r,data:n,opts:i}=e,s=bge(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,hge.schemaHasRulesForType)(e,t[0]));if(a){let o=CT(t,n,i.strictNumbers,Dl.Wrong);r.if(o,()=>{s.length?xge(e,t,s):IT(e)})}return a}un.coerceAndCheckDataType=yge;var CL=new Set(["string","number","integer","boolean","null"]);function bge(e,t){return t?e.filter(r=>CL.has(r)||t==="array"&&r==="array"):[]}function xge(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,Be._)`typeof ${i}`),o=n.let("coerced",(0,Be._)`undefined`);s.coerceTypes==="array"&&n.if((0,Be._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Be._)`${i}[0]`).assign(a,(0,Be._)`typeof ${i}`).if(CT(t,i,s.strictNumbers),()=>n.assign(o,i))),n.if((0,Be._)`${o} !== undefined`);for(let l of r)(CL.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),IT(e),n.endIf(),n.if((0,Be._)`${o} !== undefined`,()=>{n.assign(i,o),Ege(e,o)});function u(l){switch(l){case"string":n.elseIf((0,Be._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,Be._)`"" + ${i}`).elseIf((0,Be._)`${i} === null`).assign(o,(0,Be._)`""`);return;case"number":n.elseIf((0,Be._)`${a} == "boolean" || ${i} === null
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(o,(0,Be._)`+${i}`);return;case"integer":n.elseIf((0,Be._)`${a} === "boolean" || ${i} === null
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,(0,Be._)`+${i}`);return;case"boolean":n.elseIf((0,Be._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf((0,Be._)`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":n.elseIf((0,Be._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(o,null);return;case"array":n.elseIf((0,Be._)`${a} === "string" || ${a} === "number"
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,Be._)`[${i}]`)}}}function Ege({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Be._)`${t} !== undefined`,()=>e.assign((0,Be._)`${t}[${r}]`,n))}function AT(e,t,r,n=Dl.Correct){let i=n===Dl.Correct?Be.operators.EQ:Be.operators.NEQ,s;switch(e){case"null":return(0,Be._)`${t} ${i} null`;case"array":s=(0,Be._)`Array.isArray(${t})`;break;case"object":s=(0,Be._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,Be._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,Be._)`typeof ${t} ${i} ${e}`}return n===Dl.Correct?s:(0,Be.not)(s);function a(o=Be.nil){return(0,Be.and)((0,Be._)`typeof ${t} == "number"`,o,r?(0,Be._)`isFinite(${t})`:Be.nil)}}un.checkDataType=AT;function CT(e,t,r,n){if(e.length===1)return AT(e[0],t,r,n);let i,s=(0,wL.toHash)(e);if(s.array&&s.object){let a=(0,Be._)`typeof ${t} != "object"`;i=s.null?a:(0,Be._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=Be.nil;s.number&&delete s.integer;for(let a in s)i=(0,Be.and)(i,AT(a,t,r,n));return i}un.checkDataTypes=CT;var _ge={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Be._)`{type: ${e}}`:(0,Be._)`{type: ${t}}`};function IT(e){let t=vge(e);(0,mge.reportError)(t,_ge)}un.reportTypeError=IT;function vge(e){let{gen:t,data:r,schema:n}=e,i=(0,wL.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var RL=_(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.assignDefaults=void 0;var kl=Ue(),Tge=bt();function Sge(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)IL(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>IL(e,s,i.default))}Kg.assignDefaults=Sge;function IL(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let o=(0,kl._)`${s}${(0,kl.getProperty)(t)}`;if(i){(0,Tge.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,kl._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,kl._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,kl._)`${o} = ${(0,kl.stringify)(r)}`)}});var Ti=_(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.validateUnion=Nt.validateArray=Nt.usePattern=Nt.callValidateCode=Nt.schemaProperties=Nt.allSchemaProperties=Nt.noPropertyInData=Nt.propertyInData=Nt.isOwnProperty=Nt.hasPropFunc=Nt.reportMissingProp=Nt.checkMissingProp=Nt.checkReportMissingProp=void 0;var Kt=Ue(),RT=bt(),Ao=Ta(),wge=bt();function Age(e,t){let{gen:r,data:n,it:i}=e;r.if(OT(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Kt._)`${t}`},!0),e.error()})}Nt.checkReportMissingProp=Age;function Cge({gen:e,data:t,it:{opts:r}},n,i){return(0,Kt.or)(...n.map(s=>(0,Kt.and)(OT(e,t,s,r.ownProperties),(0,Kt._)`${i} = ${s}`)))}Nt.checkMissingProp=Cge;function Ige(e,t){e.setParams({missingProperty:t},!0),e.error()}Nt.reportMissingProp=Ige;function NL(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Kt._)`Object.prototype.hasOwnProperty`})}Nt.hasPropFunc=NL;function NT(e,t,r){return(0,Kt._)`${NL(e)}.call(${t}, ${r})`}Nt.isOwnProperty=NT;function Rge(e,t,r,n){let i=(0,Kt._)`${t}${(0,Kt.getProperty)(r)} !== undefined`;return n?(0,Kt._)`${i} && ${NT(e,t,r)}`:i}Nt.propertyInData=Rge;function OT(e,t,r,n){let i=(0,Kt._)`${t}${(0,Kt.getProperty)(r)} === undefined`;return n?(0,Kt.or)(i,(0,Kt.not)(NT(e,t,r))):i}Nt.noPropertyInData=OT;function OL(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Nt.allSchemaProperties=OL;function Nge(e,t){return OL(t).filter(r=>!(0,RT.alwaysValidSchema)(e,t[r]))}Nt.schemaProperties=Nge;function Oge({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},o,u,l){let c=l?(0,Kt._)`${e}, ${t}, ${n}${i}`:t,f=[[Ao.default.instancePath,(0,Kt.strConcat)(Ao.default.instancePath,s)],[Ao.default.parentData,a.parentData],[Ao.default.parentDataProperty,a.parentDataProperty],[Ao.default.rootData,Ao.default.rootData]];a.opts.dynamicRef&&f.push([Ao.default.dynamicAnchors,Ao.default.dynamicAnchors]);let d=(0,Kt._)`${c}, ${r.object(...f)}`;return u!==Kt.nil?(0,Kt._)`${o}.call(${u}, ${d})`:(0,Kt._)`${o}(${d})`}Nt.callValidateCode=Oge;var Pge=(0,Kt._)`new RegExp`;function Dge({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Kt._)`${i.code==="new RegExp"?Pge:(0,wge.useFunc)(e,i)}(${r}, ${n})`})}Nt.usePattern=Dge;function kge(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let o=t.let("valid",!0);return a(()=>t.assign(o,!1)),o}return t.var(s,!0),a(()=>t.break()),s;function a(o){let u=t.const("len",(0,Kt._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:RT.Type.Num},s),t.if((0,Kt.not)(s),o)})}}Nt.validateArray=kge;function $ge(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,RT.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let c=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},o);t.assign(a,(0,Kt._)`${a} || ${o}`),e.mergeValidEvaluated(c,o)||t.if((0,Kt.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Nt.validateUnion=$ge});var kL=_(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.validateKeywordUsage=Ps.validSchemaType=Ps.funcKeywordCode=Ps.macroKeywordCode=void 0;var Nn=Ue(),ec=Ta(),Lge=Ti(),Mge=f0();function Fge(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,o=t.macro.call(a.self,i,s,a),u=DL(r,n,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let l=r.name("valid");e.subschema({schema:o,schemaPath:Nn.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Ps.macroKeywordCode=Fge;function Bge(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:o,it:u}=e;jge(u,t);let l=!o&&t.compile?t.compile.call(u.self,s,a,u):t.validate,c=DL(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)m(),t.modifying&&PL(e),y(()=>e.error());else{let g=t.async?h():p();t.modifying&&PL(e),y(()=>qge(e,g))}}function h(){let g=n.let("ruleErrs",null);return n.try(()=>m((0,Nn._)`await `),v=>n.assign(f,!1).if((0,Nn._)`${v} instanceof ${u.ValidationError}`,()=>n.assign(g,(0,Nn._)`${v}.errors`),()=>n.throw(v))),g}function p(){let g=(0,Nn._)`${c}.errors`;return n.assign(g,null),m(Nn.nil),g}function m(g=t.async?(0,Nn._)`await `:Nn.nil){let v=u.opts.passContext?ec.default.this:ec.default.self,E=!("compile"in t&&!o||t.schema===!1);n.assign(f,(0,Nn._)`${g}${(0,Lge.callValidateCode)(e,c,v,E)}`,t.modifying)}function y(g){var v;n.if((0,Nn.not)((v=t.valid)!==null&&v!==void 0?v:f),g)}}Ps.funcKeywordCode=Bge;function PL(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Nn._)`${n.parentData}[${n.parentDataProperty}]`))}function qge(e,t){let{gen:r}=e;r.if((0,Nn._)`Array.isArray(${t})`,()=>{r.assign(ec.default.vErrors,(0,Nn._)`${ec.default.vErrors} === null ? ${t} : ${ec.default.vErrors}.concat(${t})`).assign(ec.default.errors,(0,Nn._)`${ec.default.vErrors}.length`),(0,Mge.extendErrors)(e)},()=>e.error())}function jge({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function DL(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Nn.stringify)(r)})}function Uge(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Ps.validSchemaType=Uge;function Hge({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a?.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Ps.validateKeywordUsage=Hge});var LL=_(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.extendSubschemaMode=Co.extendSubschemaData=Co.getSubschema=void 0;var Ds=Ue(),$L=bt();function zge(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,Ds._)`${e.schemaPath}${(0,Ds.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,Ds._)`${e.schemaPath}${(0,Ds.getProperty)(t)}${(0,Ds.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,$L.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Co.getSubschema=zge;function Vge(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=t;if(r!==void 0){let{errorPath:l,dataPathArr:c,opts:f}=t,d=o.let("data",(0,Ds._)`${t.data}${(0,Ds.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Ds.str)`${l}${(0,$L.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ds._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ds.Name?i:o.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Co.extendSubschemaData=Vge;function Gge(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Co.extendSubschemaMode=Gge});var Si=_((ltt,ML)=>{"use strict";ML.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var a=s[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var BL=_((ftt,FL)=>{"use strict";var Io=FL.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Yg(t,n,i,e,"",e)};Io.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Io.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Io.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Io.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Yg(e,t,r,n,i,s,a,o,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,o,u,l);for(var c in n){var f=n[c];if(Array.isArray(f)){if(c in Io.arrayKeywords)for(var d=0;d<f.length;d++)Yg(e,t,r,f[d],i+"/"+c+"/"+d,s,i,c,n,d)}else if(c in Io.propsKeywords){if(f&&typeof f=="object")for(var h in f)Yg(e,t,r,f[h],i+"/"+c+"/"+Wge(h),s,i,c,n,h)}else(c in Io.keywords||e.allKeys&&!(c in Io.skipKeywords))&&Yg(e,t,r,f,i+"/"+c,s,i,c,n)}r(n,i,s,a,o,u,l)}}function Wge(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var p0=_(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.getSchemaRefs=Wn.resolveUrl=Wn.normalizeId=Wn._getFullPath=Wn.getFullPath=Wn.inlineRef=void 0;var Kge=bt(),Yge=Si(),Xge=BL(),Jge=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Qge(e,t=!0){return typeof e=="boolean"?!0:t===!0?!PT(e):t?qL(e)<=t:!1}Wn.inlineRef=Qge;var Zge=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function PT(e){for(let t in e){if(Zge.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(PT)||typeof r=="object"&&PT(r))return!0}return!1}function qL(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Jge.has(r)&&(typeof e[r]=="object"&&(0,Kge.eachItem)(e[r],n=>t+=qL(n)),t===1/0))return 1/0}return t}function jL(e,t="",r){r!==!1&&(t=$l(t));let n=e.parse(t);return UL(e,n)}Wn.getFullPath=jL;function UL(e,t){return e.serialize(t).split("#")[0]+"#"}Wn._getFullPath=UL;var e1e=/#\/?$/;function $l(e){return e?e.replace(e1e,""):""}Wn.normalizeId=$l;function t1e(e,t,r){return r=$l(r),e.resolve(t,r)}Wn.resolveUrl=t1e;var r1e=/^[a-z_][-a-z0-9._]*$/i;function n1e(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=$l(e[r]||t),s={"":i},a=jL(n,i,!1),o={},u=new Set;return Xge(e,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=a+d,y=s[p];typeof f[r]=="string"&&(y=g.call(this,f[r])),v.call(this,f.$anchor),v.call(this,f.$dynamicAnchor),s[d]=y;function g(E){let x=this.opts.uriResolver.resolve;if(E=$l(y?x(y,E):E),u.has(E))throw c(E);u.add(E);let T=this.refs[E];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,E):E!==$l(m)&&(E[0]==="#"?(l(f,o[E],E),o[E]=f):this.refs[E]=m),E}function v(E){if(typeof E=="string"){if(!r1e.test(E))throw new Error(`invalid anchor "${E}"`);g.call(this,`#${E}`)}}}),o;function l(f,d,h){if(d!==void 0&&!Yge(f,d))throw c(h)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Wn.getSchemaRefs=n1e});var g0=_(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.getData=Ro.KeywordCxt=Ro.validateFunctionCode=void 0;var WL=vL(),HL=d0(),kT=wT(),Xg=d0(),i1e=RL(),m0=kL(),DT=LL(),Ce=Ue(),Pe=Ta(),s1e=p0(),Sa=bt(),h0=f0();function a1e(e){if(XL(e)&&(JL(e),YL(e))){c1e(e);return}KL(e,()=>(0,WL.topBoolOrEmptySchema)(e))}Ro.validateFunctionCode=a1e;function KL({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,Ce._)`${Pe.default.data}, ${Pe.default.valCxt}`,n.$async,()=>{e.code((0,Ce._)`"use strict"; ${zL(r,i)}`),u1e(e,i),e.code(s)}):e.func(t,(0,Ce._)`${Pe.default.data}, ${o1e(i)}`,n.$async,()=>e.code(zL(r,i)).code(s))}function o1e(e){return(0,Ce._)`{${Pe.default.instancePath}="", ${Pe.default.parentData}, ${Pe.default.parentDataProperty}, ${Pe.default.rootData}=${Pe.default.data}${e.dynamicRef?(0,Ce._)`, ${Pe.default.dynamicAnchors}={}`:Ce.nil}}={}`}function u1e(e,t){e.if(Pe.default.valCxt,()=>{e.var(Pe.default.instancePath,(0,Ce._)`${Pe.default.valCxt}.${Pe.default.instancePath}`),e.var(Pe.default.parentData,(0,Ce._)`${Pe.default.valCxt}.${Pe.default.parentData}`),e.var(Pe.default.parentDataProperty,(0,Ce._)`${Pe.default.valCxt}.${Pe.default.parentDataProperty}`),e.var(Pe.default.rootData,(0,Ce._)`${Pe.default.valCxt}.${Pe.default.rootData}`),t.dynamicRef&&e.var(Pe.default.dynamicAnchors,(0,Ce._)`${Pe.default.valCxt}.${Pe.default.dynamicAnchors}`)},()=>{e.var(Pe.default.instancePath,(0,Ce._)`""`),e.var(Pe.default.parentData,(0,Ce._)`undefined`),e.var(Pe.default.parentDataProperty,(0,Ce._)`undefined`),e.var(Pe.default.rootData,Pe.default.data),t.dynamicRef&&e.var(Pe.default.dynamicAnchors,(0,Ce._)`{}`)})}function c1e(e){let{schema:t,opts:r,gen:n}=e;KL(e,()=>{r.$comment&&t.$comment&&ZL(e),h1e(e),n.let(Pe.default.vErrors,null),n.let(Pe.default.errors,0),r.unevaluated&&l1e(e),QL(e),y1e(e)})}function l1e(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Ce._)`${r}.evaluated`),t.if((0,Ce._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Ce._)`${e.evaluated}.props`,(0,Ce._)`undefined`)),t.if((0,Ce._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Ce._)`${e.evaluated}.items`,(0,Ce._)`undefined`))}function zL(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Ce._)`/*# sourceURL=${r} */`:Ce.nil}function f1e(e,t){if(XL(e)&&(JL(e),YL(e))){d1e(e,t);return}(0,WL.boolOrEmptySchema)(e,t)}function YL({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function XL(e){return typeof e.schema!="boolean"}function d1e(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&ZL(e),m1e(e),g1e(e);let s=n.const("_errs",Pe.default.errors);QL(e,s),n.var(t,(0,Ce._)`${s} === ${Pe.default.errors}`)}function JL(e){(0,Sa.checkUnknownRules)(e),p1e(e)}function QL(e,t){if(e.opts.jtd)return VL(e,[],!1,t);let r=(0,HL.getSchemaTypes)(e.schema),n=(0,HL.coerceAndCheckDataType)(e,r);VL(e,r,!n,t)}function p1e(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Sa.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function h1e(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Sa.checkStrictMode)(e,"default is ignored in the schema root")}function m1e(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,s1e.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function g1e(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function ZL({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,Ce._)`${Pe.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,Ce.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,Ce._)`${Pe.default.self}.opts.$comment(${s}, ${a}, ${o}.schema)`)}}function y1e(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,Ce._)`${Pe.default.errors} === 0`,()=>t.return(Pe.default.data),()=>t.throw((0,Ce._)`new ${i}(${Pe.default.vErrors})`)):(t.assign((0,Ce._)`${n}.errors`,Pe.default.vErrors),s.unevaluated&&b1e(e),t.return((0,Ce._)`${Pe.default.errors} === 0`))}function b1e({gen:e,evaluated:t,props:r,items:n}){r instanceof Ce.Name&&e.assign((0,Ce._)`${t}.props`,r),n instanceof Ce.Name&&e.assign((0,Ce._)`${t}.items`,n)}function VL(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:o,opts:u,self:l}=e,{RULES:c}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Sa.schemaHasRulesButRef)(s,c))){i.block(()=>t9(e,"$ref",c.all.$ref.definition));return}u.jtd||x1e(e,t),i.block(()=>{for(let d of c.rules)f(d);f(c.post)});function f(d){(0,kT.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Xg.checkDataType)(d.type,a,u.strictNumbers)),GL(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,Xg.reportTypeError)(e)),i.endIf()):GL(e,d),o||i.if((0,Ce._)`${Pe.default.errors} === ${n||0}`))}}function GL(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,i1e.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,kT.shouldUseRule)(n,s)&&t9(e,s.keyword,s.definition,t.type)})}function x1e(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(E1e(e,t),e.opts.allowUnionTypes||_1e(e,t),v1e(e,e.dataTypes))}function E1e(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{e9(e.dataTypes,r)||$T(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),S1e(e,t)}}function _1e(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&$T(e,"use allowUnionTypes to allow union type keyword")}function v1e(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,kT.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>T1e(t,a))&&$T(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function T1e(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function e9(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function S1e(e,t){let r=[];for(let n of e.dataTypes)e9(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function $T(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Sa.checkStrictMode)(e,t,e.opts.strictTypes)}var Jg=class{constructor(t,r,n){if((0,m0.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Sa.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",r9(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,m0.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Pe.default.errors))}result(t,r,n){this.failResult((0,Ce.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Ce.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Ce._)`${r} !== undefined && (${(0,Ce.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?h0.reportExtraError:h0.reportError)(this,this.def.error,r)}$dataError(){(0,h0.reportError)(this,this.def.$dataError||h0.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h0.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Ce.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Ce.nil,r=Ce.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,Ce.or)((0,Ce._)`${i} === undefined`,r)),t!==Ce.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Ce.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,Ce.or)(a(),o());function a(){if(n.length){if(!(r instanceof Ce.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,Ce._)`${(0,Xg.checkDataTypes)(u,r,s.opts.strictNumbers,Xg.DataType.Wrong)}`}return Ce.nil}function o(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Ce._)`!${u}(${r})`}return Ce.nil}}subschema(t,r){let n=(0,DT.getSubschema)(this.it,t);(0,DT.extendSubschemaData)(n,this.it,t),(0,DT.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return f1e(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Sa.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Sa.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,Ce.Name)),!0}};Ro.KeywordCxt=Jg;function t9(e,t,r,n){let i=new Jg(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,m0.funcKeywordCode)(i,r):"macro"in r?(0,m0.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,m0.funcKeywordCode)(i,r)}var w1e=/^\/(?:[^~]|~0|~1)*$/,A1e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function r9(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return Pe.default.rootData;if(e[0]==="/"){if(!w1e.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=Pe.default.rootData}else{let l=A1e.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let c=+l[1];if(i=l[2],i==="#"){if(c>=t)throw new Error(u("property/index",c));return n[t-c]}if(c>t)throw new Error(u("data",c));if(s=r[t-c],!i)return s}let a=s,o=i.split("/");for(let l of o)l&&(s=(0,Ce._)`${s}${(0,Ce.getProperty)((0,Sa.unescapeJsonPointer)(l))}`,a=(0,Ce._)`${a} && ${s}`);return a;function u(l,c){return`Cannot access ${l} ${c} levels up, current level is ${t}`}}Ro.getData=r9});var Qg=_(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});var LT=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};MT.default=LT});var y0=_(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});var FT=p0(),BT=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,FT.resolveUrl)(t,r,n),this.missingSchema=(0,FT.normalizeId)((0,FT.getFullPath)(t,this.missingRef))}};qT.default=BT});var e1=_(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.resolveSchema=wi.getCompilingSchema=wi.resolveRef=wi.compileSchema=wi.SchemaEnv=void 0;var ts=Ue(),C1e=Qg(),tc=Ta(),rs=p0(),n9=bt(),I1e=g0(),Ll=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,rs.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};wi.SchemaEnv=Ll;function UT(e){let t=i9.call(this,e);if(t)return t;let r=(0,rs.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new ts.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o;e.$async&&(o=a.scopeValue("Error",{ref:C1e.default,code:(0,ts._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:tc.default.data,parentData:tc.default.parentData,parentDataProperty:tc.default.parentDataProperty,dataNames:[tc.default.data],dataPathArr:[ts.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ts.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ts.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ts._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(e),(0,I1e.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();c=`${a.scopeRefs(tc.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,e));let h=new Function(`${tc.default.self}`,`${tc.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof ts.Name?void 0:p,items:m instanceof ts.Name?void 0:m,dynamicProps:p instanceof ts.Name,dynamicItems:m instanceof ts.Name},h.source&&(h.source.evaluated=(0,ts.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(e)}}wi.compileSchema=UT;function R1e(e,t,r){var n;r=(0,rs.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=P1e.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;a&&(s=new Ll({schema:a,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=N1e.call(this,s)}wi.resolveRef=R1e;function N1e(e){return(0,rs.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:UT.call(this,e)}function i9(e){for(let t of this._compilations)if(O1e(t,e))return t}wi.getCompilingSchema=i9;function O1e(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function P1e(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Zg.call(this,e,t)}function Zg(e,t){let r=this.opts.uriResolver.parse(t),n=(0,rs._getFullPath)(this.opts.uriResolver,r),i=(0,rs.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return jT.call(this,r,e);let s=(0,rs.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let o=Zg.call(this,e,a);return typeof o?.schema!="object"?void 0:jT.call(this,r,o)}if(typeof a?.schema=="object"){if(a.validate||UT.call(this,a),s===(0,rs.normalizeId)(t)){let{schema:o}=a,{schemaId:u}=this.opts,l=o[u];return l&&(i=(0,rs.resolveUrl)(this.opts.uriResolver,i,l)),new Ll({schema:o,schemaId:u,root:e,baseId:i})}return jT.call(this,r,a)}}wi.resolveSchema=Zg;var D1e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function jT(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,n9.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!D1e.has(o)&&l&&(t=(0,rs.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,n9.schemaHasRulesButRef)(r,this.RULES)){let o=(0,rs.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Zg.call(this,n,o)}let{schemaId:a}=this.opts;if(s=s||new Ll({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var s9=_((ytt,k1e)=>{k1e.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var zT=_((btt,c9)=>{"use strict";var $1e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),o9=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function HT(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var L1e=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a9(e){return e.length=0,!0}function M1e(e,t,r){if(e.length){let n=HT(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function F1e(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,o=M1e;for(let u=0;u<e.length;u++){let l=e[u];if(!(l==="["||l==="]"))if(l===":"){if(s===!0&&(a=!0),!o(i,n,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!o(i,n,r))break;o=a9}else{i.push(l);continue}}return i.length&&(o===a9?r.zone=i.join(""):a?n.push(i.join("")):n.push(HT(i))),r.address=n.join(""),r}function u9(e){if(B1e(e,":")<2)return{host:e,isIPV6:!1};let t=F1e(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function B1e(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function q1e(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(i===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function j1e(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function U1e(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!o9(r)){let n=u9(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}c9.exports={nonSimpleDomain:L1e,recomposeAuthority:U1e,normalizeComponentEncoding:j1e,removeDotSegments:q1e,isIPv4:o9,isUUID:$1e,normalizeIPv6:u9,stringArrayToHexStripped:HT}});var h9=_((xtt,p9)=>{"use strict";var{isUUID:H1e}=zT(),z1e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,V1e=["http","https","ws","wss","urn","urn:uuid"];function G1e(e){return V1e.indexOf(e)!==-1}function VT(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function l9(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function f9(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function W1e(e){return e.secure=VT(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function K1e(e){if((e.port===(VT(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function Y1e(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(z1e);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=GT(i);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function X1e(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=GT(i);s&&(e=s.serialize(e,t));let a=e,o=e.nss;return a.path=`${n||t.nid}:${o}`,t.skipEscape=!0,a}function J1e(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!H1e(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Q1e(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var d9={scheme:"http",domainHost:!0,parse:l9,serialize:f9},Z1e={scheme:"https",domainHost:d9.domainHost,parse:l9,serialize:f9},t1={scheme:"ws",domainHost:!0,parse:W1e,serialize:K1e},eye={scheme:"wss",domainHost:t1.domainHost,parse:t1.parse,serialize:t1.serialize},tye={scheme:"urn",parse:Y1e,serialize:X1e,skipNormalize:!0},rye={scheme:"urn:uuid",parse:J1e,serialize:Q1e,skipNormalize:!0},r1={http:d9,https:Z1e,ws:t1,wss:eye,urn:tye,"urn:uuid":rye};Object.setPrototypeOf(r1,null);function GT(e){return e&&(r1[e]||r1[e.toLowerCase()])||void 0}p9.exports={wsIsSecure:VT,SCHEMES:r1,isValidSchemeName:G1e,getSchemeHandler:GT}});var y9=_((Ett,i1)=>{"use strict";var{normalizeIPv6:nye,removeDotSegments:b0,recomposeAuthority:iye,normalizeComponentEncoding:n1,isIPv4:sye,nonSimpleDomain:aye}=zT(),{SCHEMES:oye,getSchemeHandler:m9}=h9();function uye(e,t){return typeof e=="string"?e=ks(wa(e,t),t):typeof e=="object"&&(e=wa(ks(e,t),t)),e}function cye(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=g9(wa(e,n),wa(t,n),n,!0);return n.skipEscape=!0,ks(i,n)}function g9(e,t,r,n){let i={};return n||(e=wa(ks(e,r),r),t=wa(ks(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=b0(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=b0(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=b0(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=b0(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function lye(e,t,r){return typeof e=="string"?(e=unescape(e),e=ks(n1(wa(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=ks(n1(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=ks(n1(wa(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=ks(n1(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function ks(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=m9(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let a=iye(r);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=b0(o)),a===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),i.push(o)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var fye=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function wa(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(fye);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if(sye(n.host)===!1){let u=nye(n.host);n.host=u.host.toLowerCase(),i=u.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=m9(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&i===!1&&aye(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(o){n.error=n.error||"Host's domain name can not be converted to ASCII: "+o}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var WT={SCHEMES:oye,normalize:uye,resolve:cye,resolveComponent:g9,equal:lye,serialize:ks,parse:wa};i1.exports=WT;i1.exports.default=WT;i1.exports.fastUri=WT});var x9=_(KT=>{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});var b9=y9();b9.code='require("ajv/dist/runtime/uri").default';KT.default=b9});var C9=_(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.CodeGen=Wr.Name=Wr.nil=Wr.stringify=Wr.str=Wr._=Wr.KeywordCxt=void 0;var dye=g0();Object.defineProperty(Wr,"KeywordCxt",{enumerable:!0,get:function(){return dye.KeywordCxt}});var Ml=Ue();Object.defineProperty(Wr,"_",{enumerable:!0,get:function(){return Ml._}});Object.defineProperty(Wr,"str",{enumerable:!0,get:function(){return Ml.str}});Object.defineProperty(Wr,"stringify",{enumerable:!0,get:function(){return Ml.stringify}});Object.defineProperty(Wr,"nil",{enumerable:!0,get:function(){return Ml.nil}});Object.defineProperty(Wr,"Name",{enumerable:!0,get:function(){return Ml.Name}});Object.defineProperty(Wr,"CodeGen",{enumerable:!0,get:function(){return Ml.CodeGen}});var pye=Qg(),S9=y0(),hye=ST(),x0=e1(),mye=Ue(),E0=p0(),s1=d0(),XT=bt(),E9=s9(),gye=x9(),w9=(e,t)=>new RegExp(e,t);w9.code="new RegExp";var yye=["removeAdditional","useDefaults","coerceTypes"],bye=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),xye={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Eye={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},_9=200;function _ye(e){var t,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v,E,x,T,S,w,A,C;let I=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,P=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:w9,k=(i=e.uriResolver)!==null&&i!==void 0?i:gye.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:I)!==null&&a!==void 0?a:!0,strictNumbers:(u=(o=e.strictNumbers)!==null&&o!==void 0?o:I)!==null&&u!==void 0?u:!0,strictTypes:(c=(l=e.strictTypes)!==null&&l!==void 0?l:I)!==null&&c!==void 0?c:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:I)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=e.strictRequired)!==null&&h!==void 0?h:I)!==null&&p!==void 0?p:!1,code:e.code?{...e.code,optimize:R,regExp:P}:{optimize:R,regExp:P},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:_9,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:_9,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=e.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(C=e.int32range)!==null&&C!==void 0?C:!0,uriResolver:k}}var _0=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,..._ye(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new mye.ValueScope({scope:{},prefixes:bye,es5:r,lines:n}),this.logger=Cye(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,hye.getRules)(),v9.call(this,xye,t,"NOT SUPPORTED"),v9.call(this,Eye,t,"DEPRECATED","warn"),this._metaOpts=wye.call(this),t.formats&&Tye.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&Sye.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),vye.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=E9;n==="id"&&(i={...E9},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(c,f){await s.call(this,c.$schema);let d=this._addSchema(c,f);return d.validate||a.call(this,d)}async function s(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof S9.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,c)}}function o({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function u(c){let f=await l.call(this,c);this.refs[c]||await s.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,r)}async function l(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,E0.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=T9.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new x0.SchemaEnv({schema:{},schemaId:n});if(r=x0.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=T9.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,E0.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Rye.call(this,n,r),!r)return(0,XT.eachItem)(n,s=>YT.call(this,s)),this;Oye.call(this,r);let i={...r,type:(0,s1.getJSONTypes)(r.type),schemaType:(0,s1.getJSONTypes)(r.schemaType)};return(0,XT.eachItem)(n,i.type.length===0?s=>YT.call(this,s,i):s=>i.type.forEach(a=>YT.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let o of s)a=a[o];for(let o in n){let u=n[o];if(typeof u!="object")continue;let{$data:l}=u.definition,c=a[o];l&&c&&(a[o]=A9(c))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof t=="object")a=t[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,E0.normalizeId)(a||n);let l=E0.getSchemaRefs.call(this,t,n);return u=new x0.SchemaEnv({schema:t,schemaId:o,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):x0.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{x0.compileSchema.call(this,t)}finally{this.opts=r}}};_0.ValidationError=pye.default;_0.MissingRefError=S9.default;Wr.default=_0;function v9(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}function T9(e){return e=(0,E0.normalizeId)(e),this.schemas[e]||this.refs[e]}function vye(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function Tye(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function Sye(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function wye(){let e={...this.opts};for(let t of yye)delete e[t];return e}var Aye={log(){},warn(){},error(){}};function Cye(e){if(e===!1)return Aye;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var Iye=/^[a-z_$][a-z0-9_$:-]*$/i;function Rye(e,t){let{RULES:r}=this;if((0,XT.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Iye.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function YT(e,t,r){var n;let i=t?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,s1.getJSONTypes)(t.type),schemaType:(0,s1.getJSONTypes)(t.schemaType)}};t.before?Nye.call(this,a,o,t.before):a.rules.push(o),s.all[e]=o,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}function Nye(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function Oye(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=A9(t)),e.validateSchema=this.compile(t,!0))}var Pye={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function A9(e){return{anyOf:[e,Pye]}}});var I9=_(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});var Dye={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};JT.default=Dye});var P9=_(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.callRef=rc.getValidate=void 0;var kye=y0(),R9=Ti(),Kn=Ue(),Fl=Ta(),N9=e1(),a1=bt(),$ye={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:o,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let c=N9.resolveRef.call(u,l,i,r);if(c===void 0)throw new kye.default(n.opts.uriResolver,i,r);if(c instanceof N9.SchemaEnv)return d(c);return h(c);function f(){if(s===l)return o1(e,a,s,s.$async);let p=t.scopeValue("root",{ref:l});return o1(e,(0,Kn._)`${p}.validate`,l,l.$async)}function d(p){let m=O9(e,p);o1(e,m,p,p.$async)}function h(p){let m=t.scopeValue("schema",o.code.source===!0?{ref:p,code:(0,Kn.stringify)(p)}:{ref:p}),y=t.name("valid"),g=e.subschema({schema:p,dataTypes:[],schemaPath:Kn.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function O9(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Kn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}rc.getValidate=O9;function o1(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:o,opts:u}=s,l=u.passContext?Fl.default.this:Kn.nil;n?c():f();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,Kn._)`await ${(0,R9.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},m=>{i.if((0,Kn._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),a||i.assign(p,!1)}),e.ok(p)}function f(){e.result((0,R9.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}function d(p){let m=(0,Kn._)`${p}.errors`;i.assign(Fl.default.vErrors,(0,Kn._)`${Fl.default.vErrors} === null ? ${m} : ${Fl.default.vErrors}.concat(${m})`),i.assign(Fl.default.errors,(0,Kn._)`${Fl.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let y=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=a1.mergeEvaluated.props(i,y.props,s.props));else{let g=i.var("props",(0,Kn._)`${p}.evaluated.props`);s.props=a1.mergeEvaluated.props(i,g,s.props,Kn.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=a1.mergeEvaluated.items(i,y.items,s.items));else{let g=i.var("items",(0,Kn._)`${p}.evaluated.items`);s.items=a1.mergeEvaluated.items(i,g,s.items,Kn.Name)}}}rc.callRef=o1;rc.default=$ye});var D9=_(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});var Lye=I9(),Mye=P9(),Fye=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Lye.default,Mye.default];QT.default=Fye});var k9=_(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});var u1=Ue(),No=u1.operators,c1={maximum:{okStr:"<=",ok:No.LTE,fail:No.GT},minimum:{okStr:">=",ok:No.GTE,fail:No.LT},exclusiveMaximum:{okStr:"<",ok:No.LT,fail:No.GTE},exclusiveMinimum:{okStr:">",ok:No.GT,fail:No.LTE}},Bye={message:({keyword:e,schemaCode:t})=>(0,u1.str)`must be ${c1[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,u1._)`{comparison: ${c1[e].okStr}, limit: ${t}}`},qye={keyword:Object.keys(c1),type:"number",schemaType:"number",$data:!0,error:Bye,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,u1._)`${r} ${c1[t].fail} ${n} || isNaN(${r})`)}};ZT.default=qye});var $9=_(eS=>{"use strict";Object.defineProperty(eS,"__esModule",{value:!0});var v0=Ue(),jye={message:({schemaCode:e})=>(0,v0.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,v0._)`{multipleOf: ${e}}`},Uye={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:jye,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),o=s?(0,v0._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,v0._)`${a} !== parseInt(${a})`;e.fail$data((0,v0._)`(${n} === 0 || (${a} = ${r}/${n}, ${o}))`)}};eS.default=Uye});var M9=_(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});function L9(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}tS.default=L9;L9.code='require("ajv/dist/runtime/ucs2length").default'});var F9=_(rS=>{"use strict";Object.defineProperty(rS,"__esModule",{value:!0});var nc=Ue(),Hye=bt(),zye=M9(),Vye={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,nc.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,nc._)`{limit: ${e}}`},Gye={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Vye,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?nc.operators.GT:nc.operators.LT,a=i.opts.unicode===!1?(0,nc._)`${r}.length`:(0,nc._)`${(0,Hye.useFunc)(e.gen,zye.default)}(${r})`;e.fail$data((0,nc._)`${a} ${s} ${n}`)}};rS.default=Gye});var B9=_(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});var Wye=Ti(),l1=Ue(),Kye={message:({schemaCode:e})=>(0,l1.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,l1._)`{pattern: ${e}}`},Yye={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Kye,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",o=r?(0,l1._)`(new RegExp(${i}, ${a}))`:(0,Wye.usePattern)(e,n);e.fail$data((0,l1._)`!${o}.test(${t})`)}};nS.default=Yye});var q9=_(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});var T0=Ue(),Xye={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,T0.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,T0._)`{limit: ${e}}`},Jye={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Xye,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?T0.operators.GT:T0.operators.LT;e.fail$data((0,T0._)`Object.keys(${r}).length ${i} ${n}`)}};iS.default=Jye});var j9=_(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});var S0=Ti(),w0=Ue(),Qye=bt(),Zye={message:({params:{missingProperty:e}})=>(0,w0.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,w0._)`{missingProperty: ${e}}`},ebe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Zye,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:o}=a;if(!s&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?l():c(),o.strictRequired){let h=e.parentSchema.properties,{definedProperties:p}=e.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let y=a.schemaEnv.baseId+a.errSchemaPath,g=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,Qye.checkStrictMode)(a,g,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(w0.nil,f);else for(let h of r)(0,S0.checkReportMissingProp)(e,h)}function c(){let h=t.let("missing");if(u||s){let p=t.let("valid",!0);e.block$data(p,()=>d(h,p)),e.ok(p)}else t.if((0,S0.checkMissingProp)(e,r,h)),(0,S0.reportMissingProp)(e,h),t.else()}function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,S0.noPropertyInData)(t,i,h,o.ownProperties),()=>e.error())})}function d(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,S0.propertyInData)(t,i,h,o.ownProperties)),t.if((0,w0.not)(p),()=>{e.error(),t.break()})},w0.nil)}}};sS.default=ebe});var U9=_(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});var A0=Ue(),tbe={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,A0.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,A0._)`{limit: ${e}}`},rbe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tbe,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?A0.operators.GT:A0.operators.LT;e.fail$data((0,A0._)`${r}.length ${i} ${n}`)}};aS.default=rbe});var C0=_(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});var H9=Si();H9.code='require("ajv/dist/runtime/equal").default';oS.default=H9});var z9=_(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});var uS=d0(),Kr=Ue(),nbe=bt(),ibe=C0(),sbe={message:({params:{i:e,j:t}})=>(0,Kr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Kr._)`{i: ${e}, j: ${t}}`},abe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:sbe,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:o}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,uS.getSchemaTypes)(s.items):[];e.block$data(u,c,(0,Kr._)`${a} === false`),e.ok(u);function c(){let p=t.let("i",(0,Kr._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(u,!0),t.if((0,Kr._)`${p} > 1`,()=>(f()?d:h)(p,m))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function d(p,m){let y=t.name("item"),g=(0,uS.checkDataTypes)(l,y,o.opts.strictNumbers,uS.DataType.Wrong),v=t.const("indices",(0,Kr._)`{}`);t.for((0,Kr._)`;${p}--;`,()=>{t.let(y,(0,Kr._)`${r}[${p}]`),t.if(g,(0,Kr._)`continue`),l.length>1&&t.if((0,Kr._)`typeof ${y} == "string"`,(0,Kr._)`${y} += "_"`),t.if((0,Kr._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(m,(0,Kr._)`${v}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Kr._)`${v}[${y}] = ${p}`)})}function h(p,m){let y=(0,nbe.useFunc)(t,ibe.default),g=t.name("outer");t.label(g).for((0,Kr._)`;${p}--;`,()=>t.for((0,Kr._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Kr._)`${y}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(g)})))}}};cS.default=abe});var V9=_(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});var lS=Ue(),obe=bt(),ube=C0(),cbe={message:"must be equal to constant",params:({schemaCode:e})=>(0,lS._)`{allowedValue: ${e}}`},lbe={keyword:"const",$data:!0,error:cbe,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,lS._)`!${(0,obe.useFunc)(t,ube.default)}(${r}, ${i})`):e.fail((0,lS._)`${s} !== ${r}`)}};fS.default=lbe});var G9=_(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});var I0=Ue(),fbe=bt(),dbe=C0(),pbe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,I0._)`{allowedValues: ${e}}`},hbe={keyword:"enum",schemaType:"array",$data:!0,error:pbe,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,u,l=()=>u??(u=(0,fbe.useFunc)(t,dbe.default)),c;if(o||n)c=t.let("valid"),e.block$data(c,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);c=(0,I0.or)(...i.map((p,m)=>d(h,m)))}e.pass(c);function f(){t.assign(c,!1),t.forOf("v",s,h=>t.if((0,I0._)`${l()}(${r}, ${h})`,()=>t.assign(c,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,I0._)`${l()}(${r}, ${h}[${p}])`:(0,I0._)`${r} === ${m}`}}};dS.default=hbe});var W9=_(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});var mbe=k9(),gbe=$9(),ybe=F9(),bbe=B9(),xbe=q9(),Ebe=j9(),_be=U9(),vbe=z9(),Tbe=V9(),Sbe=G9(),wbe=[mbe.default,gbe.default,ybe.default,bbe.default,xbe.default,Ebe.default,_be.default,vbe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Tbe.default,Sbe.default];pS.default=wbe});var mS=_(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.validateAdditionalItems=void 0;var ic=Ue(),hS=bt(),Abe={message:({params:{len:e}})=>(0,ic.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ic._)`{limit: ${e}}`},Cbe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Abe,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,hS.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}K9(e,n)}};function K9(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let o=r.const("len",(0,ic._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ic._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,hS.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,ic._)`${o} <= ${t.length}`);r.if((0,ic.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,o,c=>{e.subschema({keyword:s,dataProp:c,dataPropType:hS.Type.Num},l),a.allErrors||r.if((0,ic.not)(l),()=>r.break())})}}R0.validateAdditionalItems=K9;R0.default=Cbe});var gS=_(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.validateTuple=void 0;var Y9=Ue(),f1=bt(),Ibe=Ti(),Rbe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return X9(e,"additionalItems",t);r.items=!0,!(0,f1.alwaysValidSchema)(r,t)&&e.ok((0,Ibe.validateArray)(e))}};function X9(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:o}=e;c(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=f1.mergeEvaluated.items(n,r.length,o.items));let u=n.name("valid"),l=n.const("len",(0,Y9._)`${s}.length`);r.forEach((f,d)=>{(0,f1.alwaysValidSchema)(o,f)||(n.if((0,Y9._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function c(f){let{opts:d,errSchemaPath:h}=o,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[t]===!1);if(d.strictTuples&&!m){let y=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,f1.checkStrictMode)(o,y,d.strictTuples)}}}N0.validateTuple=X9;N0.default=Rbe});var J9=_(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});var Nbe=gS(),Obe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Nbe.validateTuple)(e,"items")};yS.default=Obe});var Z9=_(bS=>{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});var Q9=Ue(),Pbe=bt(),Dbe=Ti(),kbe=mS(),$be={message:({params:{len:e}})=>(0,Q9.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Q9._)`{limit: ${e}}`},Lbe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:$be,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,Pbe.alwaysValidSchema)(n,t)&&(i?(0,kbe.validateAdditionalItems)(e,i):e.ok((0,Dbe.validateArray)(e)))}};bS.default=Lbe});var e7=_(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});var Ai=Ue(),d1=bt(),Mbe={message:({params:{min:e,max:t}})=>t===void 0?(0,Ai.str)`must contain at least ${e} valid item(s)`:(0,Ai.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Ai._)`{minContains: ${e}}`:(0,Ai._)`{minContains: ${e}, maxContains: ${t}}`},Fbe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Mbe,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,o,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,o=l):a=1;let c=t.const("len",(0,Ai._)`${i}.length`);if(e.setParams({min:a,max:o}),o===void 0&&a===0){(0,d1.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,d1.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,d1.alwaysValidSchema)(s,r)){let m=(0,Ai._)`${c} >= ${a}`;o!==void 0&&(m=(0,Ai._)`${m} && ${c} <= ${o}`),e.pass(m);return}s.items=!0;let f=t.name("valid");o===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),o!==void 0&&t.if((0,Ai._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let m=t.name("_valid"),y=t.let("count",0);h(m,()=>t.if(m,()=>p(y)))}function h(m,y){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:d1.Type.Num,compositeRule:!0},m),y()})}function p(m){t.code((0,Ai._)`${m}++`),o===void 0?t.if((0,Ai._)`${m} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Ai._)`${m} > ${o}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Ai._)`${m} >= ${a}`,()=>t.assign(f,!0)))}}};xS.default=Fbe});var n7=_($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.validateSchemaDeps=$s.validatePropertyDeps=$s.error=void 0;var ES=Ue(),Bbe=bt(),O0=Ti();$s.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,ES.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,ES._)`{property: ${e},
missingProperty: ${n},
depsCount: ${t},
deps: ${r}}`};var qbe={keyword:"dependencies",type:"object",schemaType:"object",error:$s.error,code(e){let[t,r]=jbe(e);t7(e,t),r7(e,r)}};function jbe({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function t7(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let o=t[a];if(o.length===0)continue;let u=(0,O0.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of o)(0,O0.checkReportMissingProp)(e,l)}):(r.if((0,ES._)`${u} && (${(0,O0.checkMissingProp)(e,o,s)})`),(0,O0.reportMissingProp)(e,s),r.else())}}$s.validatePropertyDeps=t7;function r7(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let o in t)(0,Bbe.alwaysValidSchema)(s,t[o])||(r.if((0,O0.propertyInData)(r,n,o,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:o},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}$s.validateSchemaDeps=r7;$s.default=qbe});var s7=_(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});var i7=Ue(),Ube=bt(),Hbe={message:"property name must be valid",params:({params:e})=>(0,i7._)`{propertyName: ${e.propertyName}}`},zbe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Hbe,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,Ube.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,i7.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};_S.default=zbe});var TS=_(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});var p1=Ti(),ns=Ue(),Vbe=Ta(),h1=bt(),Gbe={message:"must NOT have additional properties",params:({params:e})=>(0,ns._)`{additionalProperty: ${e.additionalProperty}}`},Wbe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Gbe,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,h1.alwaysValidSchema)(a,r))return;let l=(0,p1.allSchemaProperties)(n.properties),c=(0,p1.allSchemaProperties)(n.patternProperties);f(),e.ok((0,ns._)`${s} === ${Vbe.default.errors}`);function f(){t.forIn("key",i,y=>{!l.length&&!c.length?p(y):t.if(d(y),()=>p(y))})}function d(y){let g;if(l.length>8){let v=(0,h1.schemaRefOrVal)(a,n.properties,"properties");g=(0,p1.isOwnProperty)(t,v,y)}else l.length?g=(0,ns.or)(...l.map(v=>(0,ns._)`${y} === ${v}`)):g=ns.nil;return c.length&&(g=(0,ns.or)(g,...c.map(v=>(0,ns._)`${(0,p1.usePattern)(e,v)}.test(${y})`))),(0,ns.not)(g)}function h(y){t.code((0,ns._)`delete ${i}[${y}]`)}function p(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,h1.alwaysValidSchema)(a,r)){let g=t.name("valid");u.removeAdditional==="failing"?(m(y,g,!1),t.if((0,ns.not)(g),()=>{e.reset(),h(y)})):(m(y,g),o||t.if((0,ns.not)(g),()=>t.break()))}}function m(y,g,v){let E={keyword:"additionalProperties",dataProp:y,dataPropType:h1.Type.Str};v===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,g)}}};vS.default=Wbe});var u7=_(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});var Kbe=g0(),a7=Ti(),SS=bt(),o7=TS(),Ybe={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&o7.default.code(new Kbe.KeywordCxt(s,o7.default,"additionalProperties"));let a=(0,a7.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=SS.mergeEvaluated.props(t,(0,SS.toHash)(a),s.props));let o=a.filter(f=>!(0,SS.alwaysValidSchema)(s,r[f]));if(o.length===0)return;let u=t.name("valid");for(let f of o)l(f)?c(f):(t.if((0,a7.propertyInData)(t,i,f,s.opts.ownProperties)),c(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function c(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};wS.default=Ybe});var d7=_(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});var c7=Ti(),m1=Ue(),l7=bt(),f7=bt(),Xbe={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,o=(0,c7.allSchemaProperties)(r),u=o.filter(m=>(0,l7.alwaysValidSchema)(s,r[m]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,c=t.name("valid");s.props!==!0&&!(s.props instanceof m1.Name)&&(s.props=(0,f7.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let m of o)l&&h(m),s.allErrors?p(m):(t.var(c,!0),p(m),t.if(c))}function h(m){for(let y in l)new RegExp(m).test(y)&&(0,l7.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",n,y=>{t.if((0,m1._)`${(0,c7.usePattern)(e,m)}.test(${y})`,()=>{let g=u.includes(m);g||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:f7.Type.Str},c),s.opts.unevaluated&&f!==!0?t.assign((0,m1._)`${f}[${y}]`,!0):!g&&!s.allErrors&&t.if((0,m1.not)(c),()=>t.break())})})}}};AS.default=Xbe});var p7=_(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});var Jbe=bt(),Qbe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,Jbe.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};CS.default=Qbe});var h7=_(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});var Zbe=Ti(),exe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Zbe.validateUnion,error:{message:"must match a schema in anyOf"}};IS.default=exe});var m7=_(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});var g1=Ue(),txe=bt(),rxe={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,g1._)`{passingSchemas: ${e.passing}}`},nxe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:rxe,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((c,f)=>{let d;(0,txe.alwaysValidSchema)(i,c)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,g1._)`${u} && ${a}`).assign(a,!1).assign(o,(0,g1._)`[${o}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(o,f),d&&e.mergeEvaluated(d,g1.Name)})})}}};RS.default=nxe});var g7=_(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});var ixe=bt(),sxe={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,ixe.alwaysValidSchema)(n,s))return;let o=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(o)})}};NS.default=sxe});var x7=_(OS=>{"use strict";Object.defineProperty(OS,"__esModule",{value:!0});var y1=Ue(),b7=bt(),axe={message:({params:e})=>(0,y1.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,y1._)`{failingKeyword: ${e.ifClause}}`},oxe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:axe,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,b7.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=y7(n,"then"),s=y7(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),i&&s){let c=t.let("ifClause");e.setParams({ifClause:c}),t.if(o,l("then",c),l("else",c))}else i?t.if(o,l("then")):t.if((0,y1.not)(o),l("else"));e.pass(a,()=>e.error(!0));function u(){let c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(c)}function l(c,f){return()=>{let d=e.subschema({keyword:c},o);t.assign(a,o),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,y1._)`${c}`):e.setParams({ifClause:c})}}}};function y7(e,t){let r=e.schema[t];return r!==void 0&&!(0,b7.alwaysValidSchema)(e,r)}OS.default=oxe});var E7=_(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});var uxe=bt(),cxe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,uxe.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};PS.default=cxe});var _7=_(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});var lxe=mS(),fxe=J9(),dxe=gS(),pxe=Z9(),hxe=e7(),mxe=n7(),gxe=s7(),yxe=TS(),bxe=u7(),xxe=d7(),Exe=p7(),_xe=h7(),vxe=m7(),Txe=g7(),Sxe=x7(),wxe=E7();function Axe(e=!1){let t=[Exe.default,_xe.default,vxe.default,Txe.default,Sxe.default,wxe.default,gxe.default,yxe.default,mxe.default,bxe.default,xxe.default];return e?t.push(fxe.default,pxe.default):t.push(lxe.default,dxe.default),t.push(hxe.default),t}DS.default=Axe});var v7=_(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});var cr=Ue(),Cxe={message:({schemaCode:e})=>(0,cr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,cr._)`{format: ${e}}`},Ixe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Cxe,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:o}=e,{opts:u,errSchemaPath:l,schemaEnv:c,self:f}=o;if(!u.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),m=r.const("fDef",(0,cr._)`${p}[${a}]`),y=r.let("fType"),g=r.let("format");r.if((0,cr._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,cr._)`${m}.type || "string"`).assign(g,(0,cr._)`${m}.validate`),()=>r.assign(y,(0,cr._)`"string"`).assign(g,m)),e.fail$data((0,cr.or)(v(),E()));function v(){return u.strictSchema===!1?cr.nil:(0,cr._)`${a} && !${g}`}function E(){let x=c.$async?(0,cr._)`(${m}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,cr._)`${g}(${n})`,T=(0,cr._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,cr._)`${g} && ${g} !== true && ${y} === ${t} && !${T}`}}function h(){let p=f.formats[s];if(!p){v();return}if(p===!0)return;let[m,y,g]=E(p);m===t&&e.pass(x());function v(){if(u.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function E(T){let S=T instanceof RegExp?(0,cr.regexpCode)(T):u.code.formats?(0,cr._)`${u.code.formats}${(0,cr.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:T,code:S});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,cr._)`${w}.validate`]:["string",T,w]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!c.$async)throw new Error("async format in sync schema");return(0,cr._)`await ${g}(${n})`}return typeof y=="function"?(0,cr._)`${g}(${n})`:(0,cr._)`${g}.test(${n})`}}}};kS.default=Ixe});var T7=_($S=>{"use strict";Object.defineProperty($S,"__esModule",{value:!0});var Rxe=v7(),Nxe=[Rxe.default];$S.default=Nxe});var S7=_(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.contentVocabulary=Bl.metadataVocabulary=void 0;Bl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var A7=_(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});var Oxe=D9(),Pxe=W9(),Dxe=_7(),kxe=T7(),w7=S7(),$xe=[Oxe.default,Pxe.default,(0,Dxe.default)(),kxe.default,w7.metadataVocabulary,w7.contentVocabulary];LS.default=$xe});var I7=_(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.DiscrError=void 0;var C7;(function(e){e.Tag="tag",e.Mapping="mapping"})(C7||(b1.DiscrError=C7={}))});var N7=_(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});var ql=Ue(),MS=I7(),R7=e1(),Lxe=y0(),Mxe=bt(),Fxe={message:({params:{discrError:e,tagName:t}})=>e===MS.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ql._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Bxe={keyword:"discriminator",type:"object",schemaType:"object",error:Fxe,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,ql._)`${r}${(0,ql.getProperty)(o)}`);t.if((0,ql._)`typeof ${l} == "string"`,()=>c(),()=>e.error(!1,{discrError:MS.DiscrError.Tag,tag:l,tagName:o})),e.ok(u);function c(){let h=d();t.if(!1);for(let p in h)t.elseIf((0,ql._)`${l} === ${p}`),t.assign(u,f(h[p]));t.else(),e.error(!1,{discrError:MS.DiscrError.Mapping,tag:l,tagName:o}),t.endIf()}function f(h){let p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(m,ql.Name),p}function d(){var h;let p={},m=g(i),y=!0;for(let x=0;x<a.length;x++){let T=a[x];if(T?.$ref&&!(0,Mxe.schemaHasRulesButRef)(T,s.self.RULES)){let w=T.$ref;if(T=R7.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,w),T instanceof R7.SchemaEnv&&(T=T.schema),T===void 0)throw new Lxe.default(s.opts.uriResolver,s.baseId,w)}let S=(h=T?.properties)===null||h===void 0?void 0:h[o];if(typeof S!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(m||g(T)),v(S,x)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return p;function g({required:x}){return Array.isArray(x)&&x.includes(o)}function v(x,T){if(x.const)E(x.const,T);else if(x.enum)for(let S of x.enum)E(S,T);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function E(x,T){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${o}" values must be unique strings`);p[x]=T}}}};FS.default=Bxe});var O7=_((urt,qxe)=>{qxe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var qS=_((Yt,BS)=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.MissingRefError=Yt.ValidationError=Yt.CodeGen=Yt.Name=Yt.nil=Yt.stringify=Yt.str=Yt._=Yt.KeywordCxt=Yt.Ajv=void 0;var jxe=C9(),Uxe=A7(),Hxe=N7(),P7=O7(),zxe=["/properties"],x1="http://json-schema.org/draft-07/schema",jl=class extends jxe.default{_addVocabularies(){super._addVocabularies(),Uxe.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Hxe.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(P7,zxe):P7;this.addMetaSchema(t,x1,!1),this.refs["http://json-schema.org/schema"]=x1}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(x1)?x1:void 0)}};Yt.Ajv=jl;BS.exports=Yt=jl;BS.exports.Ajv=jl;Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=jl;var Vxe=g0();Object.defineProperty(Yt,"KeywordCxt",{enumerable:!0,get:function(){return Vxe.KeywordCxt}});var Ul=Ue();Object.defineProperty(Yt,"_",{enumerable:!0,get:function(){return Ul._}});Object.defineProperty(Yt,"str",{enumerable:!0,get:function(){return Ul.str}});Object.defineProperty(Yt,"stringify",{enumerable:!0,get:function(){return Ul.stringify}});Object.defineProperty(Yt,"nil",{enumerable:!0,get:function(){return Ul.nil}});Object.defineProperty(Yt,"Name",{enumerable:!0,get:function(){return Ul.Name}});Object.defineProperty(Yt,"CodeGen",{enumerable:!0,get:function(){return Ul.CodeGen}});var Gxe=Qg();Object.defineProperty(Yt,"ValidationError",{enumerable:!0,get:function(){return Gxe.default}});var Wxe=y0();Object.defineProperty(Yt,"MissingRefError",{enumerable:!0,get:function(){return Wxe.default}})});var k7=_((crt,D7)=>{"use strict";var Kxe={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};D7.exports={HEX:Kxe}});var U7=_((lrt,j7)=>{"use strict";var{HEX:Yxe}=k7();function F7(e){if(q7(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[r]=t;return r?{host:Jxe(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function jS(e){let t="",r=!0;for(let n of e){if(n!=="0"&&r===!0&&(r=!1),Yxe[n]===void 0)return;r||(t+=n)}return t}function Xxe(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,o=!1;function u(){if(i.length){if(s===!1){let l=jS(i.join(""));if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}for(let l=0;l<e.length;l++){let c=e[l];if(!(c==="["||c==="]"))if(c===":"){if(a===!0&&(o=!0),!u())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(a=!0);continue}else if(c==="%"){if(!u())break;s=!0}else{i.push(c);continue}}return i.length&&(s?r.zone=i.join(""):o?n.push(i.join("")):n.push(jS(i.join("")))),r.address=n.join(""),r}function B7(e,t={}){if(q7(e,":")<2)return{host:e,isIPV6:!1};let r=Xxe(e);if(r.error)return{host:e,isIPV6:!1};{let n=r.address,i=r.address;return r.zone&&(n+="%"+r.zone,i+="%25"+r.zone),{host:n,escapedHost:i,isIPV6:!0}}}function Jxe(e,t){let r="",n=!0,i=e.length;for(let s=0;s<i;s++){let a=e[s];a==="0"&&n?(s+1<=i&&e[s+1]===t||s+1===i)&&(r+=a,n=!1):(a===t?n=!0:n=!1,r+=a)}return r}function q7(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}var $7=/^\.\.?\//u,L7=/^\/\.(?:\/|$)/u,M7=/^\/\.\.(?:\/|$)/u,Qxe=/^\/?(?:.|\n)*?(?=\/|$)/u;function Zxe(e){let t=[];for(;e.length;)if(e.match($7))e=e.replace($7,"");else if(e.match(L7))e=e.replace(L7,"/");else if(e.match(M7))e=e.replace(M7,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(Qxe);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function eEe(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function tEe(e,t){let r=[];if(e.userinfo!==void 0&&(r.push(e.userinfo),r.push("@")),e.host!==void 0){let n=unescape(e.host),i=F7(n);if(i.isIPV4)n=i.host;else{let s=B7(i.host,{isIPV4:!1});s.isIPV6===!0?n=`[${s.escapedHost}]`:n=e.host}r.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}j7.exports={recomposeAuthority:tEe,normalizeComponentEncoding:eEe,removeDotSegments:Zxe,normalizeIPv4:F7,normalizeIPv6:B7,stringToHexStripped:jS}});var K7=_((frt,W7)=>{"use strict";var rEe=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,nEe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function H7(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function z7(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function V7(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function iEe(e){return e.secure=H7(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function sEe(e){if((e.port===(H7(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function aEe(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(nEe);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=US[i];e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function oEe(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=US[i];s&&(e=s.serialize(e,t));let a=e,o=e.nss;return a.path=`${n||t.nid}:${o}`,t.skipEscape=!0,a}function uEe(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!rEe.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function cEe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var G7={scheme:"http",domainHost:!0,parse:z7,serialize:V7},lEe={scheme:"https",domainHost:G7.domainHost,parse:z7,serialize:V7},E1={scheme:"ws",domainHost:!0,parse:iEe,serialize:sEe},fEe={scheme:"wss",domainHost:E1.domainHost,parse:E1.parse,serialize:E1.serialize},dEe={scheme:"urn",parse:aEe,serialize:oEe,skipNormalize:!0},pEe={scheme:"urn:uuid",parse:uEe,serialize:cEe,skipNormalize:!0},US={http:G7,https:lEe,ws:E1,wss:fEe,urn:dEe,"urn:uuid":pEe};W7.exports=US});var zS=_((drt,v1)=>{"use strict";var{normalizeIPv6:hEe,normalizeIPv4:mEe,removeDotSegments:P0,recomposeAuthority:gEe,normalizeComponentEncoding:_1}=U7(),Y7=K7();function yEe(e,t){return typeof e=="string"?e=Ls(Aa(e,t),t):typeof e=="object"&&(e=Aa(Ls(e,t),t)),e}function bEe(e,t,r){let n=Object.assign({scheme:"null"},r),i=X7(Aa(e,n),Aa(t,n),n,!0);return Ls(i,{...n,skipEscape:!0})}function X7(e,t,r,n){let i={};return n||(e=Aa(Ls(e,r),r),t=Aa(Ls(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=P0(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=P0(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=P0(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=P0(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function xEe(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ls(_1(Aa(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ls(_1(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ls(_1(Aa(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ls(_1(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Ls(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=Y7[(n.scheme||r.scheme||"").toLowerCase()];s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&(i.push(r.scheme),i.push(":"));let a=gEe(r,n);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=P0(o)),a===void 0&&(o=o.replace(/^\/\//u,"/%2F")),i.push(o)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}var EEe=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function _Ee(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||EEe[t])return!0;return!1}var vEe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Aa(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let s=e.match(vEe);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host){let o=mEe(n.host);o.isIPV4===!1?n.host=hEe(o.host,{isIPV4:!1}).host.toLowerCase():n.host=o.host}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&!n.path&&n.query===void 0?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=Y7[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&_Ee(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(o){n.error=n.error||"Host's domain name can not be converted to ASCII: "+o}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.userinfo!==void 0&&(n.userinfo=unescape(n.userinfo)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path!==void 0&&n.path.length&&(n.path=escape(unescape(n.path))),n.fragment!==void 0&&n.fragment.length&&(n.fragment=encodeURI(decodeURI(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var HS={normalize:yEe,resolve:bEe,resolveComponents:X7,equal:xEe,serialize:Ls,parse:Aa};v1.exports=HS;v1.exports.default=HS;v1.exports.fastUri=HS});var T1=_(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.formatNames=Fs.fastFormats=Fs.fullFormats=void 0;function Ms(e,t){return{validate:e,compare:t}}Fs.fullFormats={date:Ms(eM,KS),time:Ms(GS(!0),YS),"date-time":Ms(J7(!0),rM),"iso-time":Ms(GS(),tM),"iso-date-time":Ms(J7(),nM),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:IEe,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:$Ee,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:REe,int32:{type:"number",validate:PEe},int64:{type:"number",validate:DEe},float:{type:"number",validate:Z7},double:{type:"number",validate:Z7},password:!0,binary:!0};Fs.fastFormats={...Fs.fullFormats,date:Ms(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,KS),time:Ms(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,YS),"date-time":Ms(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,rM),"iso-time":Ms(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,tM),"iso-date-time":Ms(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,nM),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Fs.formatNames=Object.keys(Fs.fullFormats);function TEe(e){return e%4===0&&(e%100!==0||e%400===0)}var SEe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,wEe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function eM(e){let t=SEe.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&TEe(r)?29:wEe[n])}function KS(e,t){if(e&&t)return e>t?1:e<t?-1:0}var VS=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function GS(e){return function(r){let n=VS.exec(r);if(!n)return!1;let i=+n[1],s=+n[2],a=+n[3],o=n[4],u=n[5]==="-"?-1:1,l=+(n[6]||0),c=+(n[7]||0);if(l>23||c>59||e&&!o)return!1;if(i<=23&&s<=59&&a<60)return!0;let f=s-c*u,d=i-l*u-(f<0?1:0);return(d===23||d===-1)&&(f===59||f===-1)&&a<61}}function YS(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function tM(e,t){if(!(e&&t))return;let r=VS.exec(e),n=VS.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var WS=/t|\s/i;function J7(e){let t=GS(e);return function(n){let i=n.split(WS);return i.length===2&&eM(i[0])&&t(i[1])}}function rM(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function nM(e,t){if(!(e&&t))return;let[r,n]=e.split(WS),[i,s]=t.split(WS),a=KS(r,i);if(a!==void 0)return a||YS(n,s)}var AEe=/\/|:/,CEe=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function IEe(e){return AEe.test(e)&&CEe.test(e)}var Q7=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function REe(e){return Q7.lastIndex=0,Q7.test(e)}var NEe=-(2**31),OEe=2**31-1;function PEe(e){return Number.isInteger(e)&&e<=OEe&&e>=NEe}function DEe(e){return Number.isInteger(e)}function Z7(){return!0}var kEe=/[^\\]\\Z/;function $Ee(e){if(kEe.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var iM=_(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.formatLimitDefinition=void 0;var LEe=qS(),is=Ue(),Oo=is.operators,S1={formatMaximum:{okStr:"<=",ok:Oo.LTE,fail:Oo.GT},formatMinimum:{okStr:">=",ok:Oo.GTE,fail:Oo.LT},formatExclusiveMaximum:{okStr:"<",ok:Oo.LT,fail:Oo.GTE},formatExclusiveMinimum:{okStr:">",ok:Oo.GT,fail:Oo.LTE}},MEe={message:({keyword:e,schemaCode:t})=>(0,is.str)`should be ${S1[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,is._)`{comparison: ${S1[e].okStr}, limit: ${t}}`};Hl.formatLimitDefinition={keyword:Object.keys(S1),type:"string",schemaType:"string",$data:!0,error:MEe,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:s}=e,{opts:a,self:o}=s;if(!a.validateFormats)return;let u=new LEe.KeywordCxt(s,o.RULES.all.format.definition,"format");u.$data?l():c();function l(){let d=t.scopeValue("formats",{ref:o.formats,code:a.code.formats}),h=t.const("fmt",(0,is._)`${d}[${u.schemaCode}]`);e.fail$data((0,is.or)((0,is._)`typeof ${h} != "object"`,(0,is._)`${h} instanceof RegExp`,(0,is._)`typeof ${h}.compare != "function"`,f(h)))}function c(){let d=u.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${i}": format "${d}" does not define "compare" function`);let p=t.scopeValue("formats",{key:d,ref:h,code:a.code.formats?(0,is._)`${a.code.formats}${(0,is.getProperty)(d)}`:void 0});e.fail$data(f(p))}function f(d){return(0,is._)`${d}.compare(${r}, ${n}) ${S1[i].fail} 0`}},dependencies:["format"]};var FEe=e=>(e.addKeyword(Hl.formatLimitDefinition),e);Hl.default=FEe});var uM=_((D0,oM)=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});var zl=T1(),BEe=iM(),XS=Ue(),sM=new XS.Name("fullFormats"),qEe=new XS.Name("fastFormats"),JS=(e,t={keywords:!0})=>{if(Array.isArray(t))return aM(e,t,zl.fullFormats,sM),e;let[r,n]=t.mode==="fast"?[zl.fastFormats,qEe]:[zl.fullFormats,sM],i=t.formats||zl.formatNames;return aM(e,i,r,n),t.keywords&&(0,BEe.default)(e),e};JS.get=(e,t="full")=>{let n=(t==="fast"?zl.fastFormats:zl.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function aM(e,t,r,n){var i,s;(i=(s=e.opts.code).formats)!==null&&i!==void 0||(s.formats=(0,XS._)`require("ajv-formats/dist/formats").${n}`);for(let a of t)e.addFormat(a,r[a])}oM.exports=D0=JS;Object.defineProperty(D0,"__esModule",{value:!0});D0.default=JS});var ZS=_((mrt,cM)=>{"use strict";var jEe=qS(),UEe=zS(),HEe=uM(),zEe=Fg()({proto:!0}),QS=class e{constructor(t){this.ajv=new jEe({...t,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:UEe}),HEe(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(r,n)=>n instanceof Date}),this._ajvSchemas={},this._ajvOptions=t||{}}addSchema(t,r){let n=t.$id||r;if(t.$id!==void 0&&t.$id[0]==="#"&&(n=r+t.$id),this.ajv.refs[n]===void 0&&this.ajv.schemas[n]===void 0){let i=zEe(t);this.convertSchemaToAjvFormat(i),this.ajv.addSchema(i,n),this._ajvSchemas[n]=t}}validate(t,r){return this.ajv.validate(t,r)}convertSchemaToAjvFormat(t){if(t!==null){t.type==="string"?(t.fjs_type="string",t.type=["string","object"]):Array.isArray(t.type)&&t.type.includes("string")&&!t.type.includes("object")&&(t.fjs_type="string",t.type.push("object"));for(let r in t)typeof t[r]=="object"&&this.convertSchemaToAjvFormat(t[r])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(t){let r=new e(t.ajvOptions);for(let[n,i]of Object.entries(t.ajvSchemas))r.ajv.addSchema(i,n);return r}};cM.exports=QS});var tw=_((grt,ew)=>{"use strict";function VEe(e,t,r,n){let i="";t.validatorSchemasIds.size>0?(i+=`const Validator = require('fast-json-stringify/lib/validator')
`,i+=`const validatorState = ${JSON.stringify(n.getState())}
`,i+=`const validator = Validator.restoreFromState(validatorState)
`):i+=`const validator = null
`;let{schema:s,...a}=r.getState();return`
'use strict'
const Serializer = require('fast-json-stringify/lib/serializer')
const serializerState = ${JSON.stringify(a)}
const serializer = Serializer.restoreFromState(serializerState)
${i}
module.exports = ${e.toString()}(validator, serializer)`}ew.exports=VEe;ew.exports.dependencies={Serializer:rT(),Validator:ZS()}});var fM=_((brt,lM)=>{"use strict";var{dependencies:GEe}=tw(),{Serializer:WEe,Validator:yrt}=GEe,KEe={mode:"standalone"},YEe=WEe.restoreFromState(KEe),XEe=null;lM.exports=function(t,r){function n(s){let a=s&&typeof s.toJSON=="function"?s.toJSON():s;if(a===null)return"{}";let o=!1,u="{";return a.statusCode!==void 0&&(!o&&(o=!0)||(u+=","),u+='"statusCode":',u+=r.asNumber(a.statusCode)),a.code!==void 0&&(!o&&(o=!0)||(u+=","),u+='"code":',u+=r.asString(a.code)),a.error!==void 0&&(!o&&(o=!0)||(u+=","),u+='"error":',u+=r.asString(a.error)),a.message!==void 0&&(!o&&(o=!0)||(u+=","),u+='"message":',u+=r.asString(a.message)),u+"}"}return n}(XEe,YEe)});var k0=_((xrt,mM)=>{"use strict";var dM=require("node:http").STATUS_CODES,JEe=Zv(),{kReplyHeaders:sc,kReplyNextErrorHandler:w1,kReplyIsRunningOnErrorHook:QEe,kReplyHasStatusCode:ZEe,kRouteContext:hM}=Or(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:e_e,FST_ERR_FAILED_ERROR_SERIALIZATION:t_e}=nn(),{getSchemaSerializer:r_e}=r0(),rw=fM(),n_e={func:s_e,toJSON(){return this.func.name.toString()+"()"}};function i_e(e,t,r){e[QEe]=!1;let n=e[hM];if(e[w1]===!1){pM(t,e,function(o,u){try{o.raw.writeHead(o.raw.statusCode,o[sc])}catch(l){o.log.warn({req:o.request,res:o,err:l},l&&l.message),o.raw.writeHead(o.raw.statusCode)}o.raw.end(u)});return}let i=e[w1]||n.errorHandler;e[w1]=Object.getPrototypeOf(i),delete e[sc]["content-type"],delete e[sc]["content-length"];let s=i.func;if(!s){e[w1]=!1,pM(t,e,r);return}let a=s(t,e.request,e);a!==void 0&&(a!==null&&typeof a.then=="function"?JEe(a,e):e.send(a))}function s_e(e,t,r){if(o_e(e,r),!r[ZEe]||r.statusCode===200){let n=e.statusCode||e.status;r.code(n>=400?n:500)}r.statusCode<500?r.log.info({res:r,err:e},e&&e.message):r.log.error({req:t,res:r,err:e},e&&e.message),r.send(e)}function pM(e,t,r){let n=t.raw,i=t.statusCode;t[sc]["content-type"]=t[sc]["content-type"]??"application/json; charset=utf-8";let s;try{let a=r_e(t[hM],i,t[sc]["content-type"]);s=a===!1?rw({error:dM[i+""],code:e.code,message:e.message,statusCode:i}):a(Object.create(e,{error:{value:dM[i+""]},message:{value:e.message},statusCode:{value:i}}))}catch(a){t.log.error({err:a,statusCode:n.statusCode},"The serializer for the given status code failed"),t.code(500),s=rw(new t_e(a.message,e.message))}typeof s!="string"&&!Buffer.isBuffer(s)&&(s=rw(new e_e(typeof s))),t[sc]["content-length"]=""+Buffer.byteLength(s),r(t,s)}function a_e(e=n_e,t){if(!t)return e;let r=Object.create(e);return r.func=t,r}function o_e(e,t){let r=t.raw,n=r.statusCode;n=n>=400?n:500,e!=null&&(e.headers!==void 0&&t.headers(e.headers),e.status>=400?n=e.status:e.statusCode>=400&&(n=e.statusCode)),r.statusCode=n}mM.exports={buildErrorHandler:a_e,handleError:i_e}});var O1=_((Ert,N1)=>{"use strict";var aw=require("node:stream").finished,u_e=require("node:stream").Readable,{kFourOhFourContext:gM,kPublicRouteContext:yM,kReplyErrorHandlerCalled:wM,kReplyHijacked:$0,kReplyStartTime:L0,kReplyEndTime:uw,kReplySerializer:Ca,kReplySerializerDefault:C1,kReplyIsError:I1,kReplyHeaders:Ht,kReplyTrailers:Pr,kReplyHasStatusCode:cw,kReplyIsRunningOnErrorHook:lw,kReplyNextErrorHandler:c_e,kDisableRequestLogging:AM,kSchemaResponse:R1,kReplyCacheSerializeFns:Po,kSchemaController:nw,kOptions:l_e,kRouteContext:Ye}=Or(),{onSendHookRunner:CM,onResponseHookRunner:f_e,preHandlerHookRunner:d_e,preSerializationHookRunner:p_e}=xo(),bM=n2()[Symbol.for("internals")],h_e=t0(),ow=h_e.now,{handleError:xM}=k0(),{getSchemaSerializer:m_e}=r0(),iw={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:g_e,FST_ERR_REP_RESPONSE_BODY_CONSUMED:y_e,FST_ERR_REP_ALREADY_SENT:IM,FST_ERR_REP_SENT_VALUE:b_e,FST_ERR_SEND_INSIDE_ONERR:x_e,FST_ERR_BAD_STATUS_CODE:E_e,FST_ERR_BAD_TRAILER_NAME:__e,FST_ERR_BAD_TRAILER_VALUE:v_e,FST_ERR_MISSING_SERIALIZATION_FN:T_e,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:S_e}=nn(),{FSTDEP010:w_e,FSTDEP013:A_e,FSTDEP019:C_e,FSTDEP020:I_e}=xa(),RM=Object.prototype.toString;function Ft(e,t,r){this.raw=e,this[Ca]=null,this[wM]=!1,this[I1]=!1,this[lw]=!1,this.request=t,this[Ht]={},this[Pr]=null,this[cw]=!1,this[L0]=void 0,this.log=r}Ft.props=[];Object.defineProperties(Ft.prototype,{[Ye]:{get(){return this.request[Ye]}},context:{get(){return C_e(),this.request[Ye]}},elapsedTime:{get(){return this[L0]===void 0?0:(this[uw]||ow())-this[L0]}},server:{get(){return this.request[Ye].server}},sent:{enumerable:!0,get(){return(this[$0]||this.raw.writableEnded)===!0},set(e){if(w_e(),e!==!0)throw new b_e;if(this.sent&&this[$0])throw new IM(this.request.url,this.request.method);this[$0]=!0}},statusCode:{get(){return this.raw.statusCode},set(e){this.code(e)}},[yM]:{get(){return this.request[yM]}}});Ft.prototype.hijack=function(){return this[$0]=!0,this};Ft.prototype.send=function(e){if(this[lw]===!0)throw new x_e;if(this.sent)return this.log.warn({err:new IM(this.request.url,this.request.method)}),this;if(e instanceof Error||this[I1]===!0)return this[I1]=!1,M0(this,e,ac),this;if(e===void 0)return ac(this,e),this;let t=this.getHeader("content-type"),r=t!==void 0;if(e!==null){if(typeof e.pipe=="function"||typeof e.getReader=="function"||RM.call(e)==="[object Response]")return ac(this,e),this;if(e?.buffer instanceof ArrayBuffer){r===!1&&(this[Ht]["content-type"]=iw.OCTET);let n=Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength);return ac(this,n),this}if(r===!1&&typeof e=="string")return this[Ht]["content-type"]=iw.PLAIN,ac(this,e),this}if(this[Ca]!==null){if(typeof e!="string")return EM(this,e),this;e=this[Ca](e)}else if(r===!1||t.indexOf("json")>-1){if(r===!1)this[Ht]["content-type"]=iw.JSON;else if(t.indexOf("charset")===-1){let n=t.trim();n.endsWith(";")?this[Ht]["content-type"]=`${n} charset=utf-8`:this[Ht]["content-type"]=`${n}; charset=utf-8`}if(typeof e!="string")return EM(this,e),this}return ac(this,e),this};Ft.prototype.getHeader=function(e){e=e.toLowerCase();let t=this.raw,r=this[Ht][e];return r===void 0&&t.hasHeader(e)&&(r=t.getHeader(e)),r};Ft.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[Ht]}};Ft.prototype.hasHeader=function(e){return e=e.toLowerCase(),this[Ht][e]!==void 0||this.raw.hasHeader(e)};Ft.prototype.removeHeader=function(e){return delete this[Ht][e.toLowerCase()],this};Ft.prototype.header=function(e,t=""){return e=e.toLowerCase(),this[Ht][e]&&e==="set-cookie"?(typeof this[Ht][e]=="string"&&(this[Ht][e]=[this[Ht][e]]),Array.isArray(t)?Array.prototype.push.apply(this[Ht][e],t):this[Ht][e].push(t)):this[Ht][e]=t,this};Ft.prototype.headers=function(e){let t=Object.keys(e);for(var r=0;r!==t.length;++r){let n=t[r];this.header(n,e[n])}return this};var R_e=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);Ft.prototype.trailer=function(e,t){if(e=e.toLowerCase(),R_e.has(e))throw new __e(e);if(typeof t!="function")throw new v_e(e,typeof t);return this[Pr]===null&&(this[Pr]={}),this[Pr][e]=t,this};Ft.prototype.hasTrailer=function(e){return this[Pr]?.[e.toLowerCase()]!==void 0};Ft.prototype.removeTrailer=function(e){return this[Pr]===null?this:(this[Pr][e.toLowerCase()]=void 0,this)};Ft.prototype.code=function(e){let t=Number(e);if(isNaN(t)||t<100||t>599)throw new E_e(e||String(e));return this.raw.statusCode=t,this[cw]=!0,this};Ft.prototype.status=Ft.prototype.code;Ft.prototype.getSerializationFunction=function(e,t){let r;return typeof e=="string"||typeof e=="number"?typeof t=="string"?r=this[Ye][R1]?.[e]?.[t]:r=this[Ye][R1]?.[e]:typeof e=="object"&&(r=this[Ye][Po]?.get(e)),r};Ft.prototype.compileSerializationSchema=function(e,t=null,r=null){let{request:n}=this,{method:i,url:s}=n;if(this[Ye][Po]?.has(e))return this[Ye][Po].get(e);let o=(this[Ye].serializerCompiler||this.server[nw].serializerCompiler||this.server[nw].setupSerializer(this.server[l_e])||this.server[nw].serializerCompiler)({schema:e,method:i,url:s,httpStatus:t,contentType:r});return this[Ye][Po]==null&&(this[Ye][Po]=new WeakMap),this[Ye][Po].set(e,o),o};Ft.prototype.serializeInput=function(e,t,r,n){let i=r,s;if(r=typeof t=="string"||typeof t=="number"?t:r,n=r&&i!==r?i:n,r!=null){if(n!=null?s=this[Ye][R1]?.[r]?.[n]:s=this[Ye][R1]?.[r],s==null)throw n?new S_e(r,n):new T_e(r)}else this[Ye][Po]?.has(t)?s=this[Ye][Po].get(t):s=this.compileSerializationSchema(t,r,n);return s(e)};Ft.prototype.serialize=function(e){return this[Ca]!==null?this[Ca](e):this[Ye]&&this[Ye][C1]?this[Ye][C1](e,this.raw.statusCode):PM(this[Ye],e,this.raw.statusCode)};Ft.prototype.serializer=function(e){return this[Ca]=e,this};Ft.prototype.type=function(e){return this[Ht]["content-type"]=e,this};Ft.prototype.redirect=function(e,t){return typeof e=="string"&&(t=e,e=this[cw]?this.raw.statusCode:302),this.header("location",t).code(e).send()};Ft.prototype.callNotFound=function(){return $_e(this),this};Ft.prototype.getResponseTime=function(){return I_e(),this.elapsedTime};Ft.prototype.then=function(e,t){if(this.sent){e();return}aw(this.raw,r=>{r&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"?t?t(r):this.log&&this.log.warn("unhandled rejection on reply.then"):e()})};function EM(e,t){e[Ye].preSerialization!==null?p_e(e[Ye].preSerialization,e.request,e,t,_M):_M(null,e.request,e,t)}function _M(e,t,r,n){if(e!=null){M0(r,e);return}try{r[Ca]!==null?n=r[Ca](n):r[Ye]&&r[Ye][C1]?n=r[Ye][C1](n,r.raw.statusCode):n=PM(r[Ye],n,r.raw.statusCode,r[Ht]["content-type"])}catch(i){N_e(i,r),M0(r,i);return}ac(r,n)}function N_e(e,t){e.serialization=t[Ye].config}function ac(e,t){e[Ye].onSend!==null?CM(e[Ye].onSend,e.request,e,t,O_e):NM(e,t)}function O_e(e,t,r,n){e!=null?M0(r,e):NM(r,n)}function sw(e,t){let r=e.raw;try{r.writeHead(t,e[Ht])}catch(n){throw n.code==="ERR_HTTP_HEADERS_SENT"&&e.log.warn(`Reply was already sent, did you forget to "return reply" in the "${e.request.raw.url}" (${e.request.raw.method}) route?`),n}}function NM(e,t){let r=e.raw,n=e.request;if(e[Pr]!==null){let a=Object.keys(e[Pr]),o="";for(let u of a)typeof e[Pr][u]=="function"&&(o+=" ",o+=u);e.header("Transfer-Encoding","chunked"),e.header("Trailer",o.trim())}let i=RM.call(t)==="[object Response]";i&&typeof t.status=="number"&&e.code(t.status);let s=r.statusCode;if(t==null){s>=200&&s!==204&&s!==304&&n.method!=="HEAD"&&e[Pr]===null&&(e[Ht]["content-length"]="0"),sw(e,s),A1(t,r,e);return}if(s>=100&&s<200||s===204){e.removeHeader("content-type"),e.removeHeader("content-length"),sw(e,s),A1(void 0,r,e),typeof t.resume=="function"&&(t.on("error",DM),t.resume());return}if(typeof t.pipe=="function"){OM(t,r,e);return}if(typeof t.getReader=="function"){TM(t,r,e);return}if(i){if(typeof t.headers=="object"&&typeof t.headers.forEach=="function")for(let[a,o]of t.headers)e.header(a,o);if(t.body!=null){if(t.bodyUsed)throw new y_e;TM(t.body,r,e)}return}if(typeof t!="string"&&!Buffer.isBuffer(t))throw new g_e(typeof t);if(e[Pr]===null){let a=e[Ht]["content-length"];(!a||n.raw.method!=="HEAD"&&Number(a)!==Buffer.byteLength(t))&&(e[Ht]["content-length"]=""+Buffer.byteLength(t))}sw(e,s),r.write(t),A1(t,r,e)}function vM(e,t,r){t.code==="ERR_STREAM_PREMATURE_CLOSE"?e[AM]||e.info({res:r},"stream closed prematurely"):e.warn({err:t},"response terminated with an error with headers already sent")}function TM(e,t,r){let n=u_e.fromWeb(e);OM(n,t,r)}function OM(e,t,r){let n=!0,i=!1;if(P_e(e,t,r),aw(e,{readable:!0,writable:!1},function(s){n=!1,s!=null&&(t.headersSent||r.request.raw.aborted===!0?(i||(i=!0,vM(r.log,s,t)),t.destroy()):M0(r,s))}),aw(t,function(s){n&&(s!=null&&t.headersSent&&!i&&(i=!0,vM(r.log,s,t)),typeof e.destroy=="function"?e.destroy():typeof e.close=="function"?e.close(DM):typeof e.abort=="function"?e.abort():r.log.warn("stream payload does not end properly"))}),t.headersSent)r.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let s in r[Ht])t.setHeader(s,r[Ht][s]);e.pipe(t)}function A1(e,t,r){if(r[Pr]===null){t.end(null,null,null);return}let n=Object.keys(r[Pr]),i={},s=0,a=!0;function o(){s===0&&(t.addTrailers(i),t.end(null,null,null))}for(let u of n){let l=function(f,d){s++,f?r.log.debug(f):i[u]=d,process.nextTick(o)};if(typeof r[Pr][u]!="function")continue;a=!1,s--;let c=r[Pr][u](r,e,l);typeof c=="object"&&typeof c.then=="function"?c.then(f=>l(null,f),l):c!=null&&(A_e(),l(null,c))}a&&t.end(null,null,null)}function P_e(e,t,r){r[Pr]!==null&&e.on("end",()=>A1(null,t,r))}function M0(e,t,r){e[Ye].onError!==null&&!e[c_e]?(e[lw]=!0,CM(e[Ye].onError,e.request,e,t,()=>xM(e,t,r))):xM(e,t,r)}function D_e(e){e[L0]=ow();let t=r=>{e[uw]=ow(),e.raw.removeListener("finish",t),e.raw.removeListener("error",t);let n=e[Ye];n&&n.onResponse!==null?f_e(n.onResponse,e.request,e,SM):SM(r,e.request,e)};e.raw.on("finish",t),e.raw.on("error",t)}function SM(e,t,r){if(r.log[AM])return;let n=r.elapsedTime;if(e!=null){r.log.error({res:r,err:e,responseTime:n},"request errored");return}r.log.info({res:r,responseTime:n},"request completed")}function k_e(e){let t=e.props.slice();function r(n,i,s){this.raw=n,this[I1]=!1,this[wM]=!1,this[$0]=!1,this[Ca]=null,this.request=i,this[Ht]={},this[Pr]=null,this[L0]=void 0,this[uw]=void 0,this.log=s;for(var a,o=0;o<t.length;o++)a=t[o],this[a.key]=a.value}return Object.setPrototypeOf(r.prototype,e.prototype),Object.setPrototypeOf(r,e),r.parent=e,r.props=t,r}function $_e(e){if(e[Ye][gM]===null){e.log.warn("Trying to send a NotFound error inside a 404 handler. Sending basic 404 response."),e.code(404).send("404 Not Found");return}e.request[Ye]=e[Ye][gM],e[Ye].preHandler!==null?d_e(e[Ye].preHandler,e.request,e,bM.preHandlerCallback):bM.preHandlerCallback(null,e.request,e)}function PM(e,t,r,n){let i=m_e(e,r,n);return i?i(t):JSON.stringify(t)}function DM(){}N1.exports=Ft;N1.exports.buildReply=k_e;N1.exports.setupResponseListeners=D_e});var $M=_((_rt,kM)=>{"use strict";kM.exports=L_e;function L_e(e){if(!e)throw new TypeError("argument req is required");var t=F_e(e.headers["x-forwarded-for"]||""),r=M_e(e),n=[r].concat(t);return n}function M_e(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}function F_e(e){for(var t=e.length,r=[],n=e.length,i=e.length-1;i>=0;i--)switch(e.charCodeAt(i)){case 32:n===t&&(n=t=i);break;case 44:n!==t&&r.push(e.substring(n,t)),n=t=i;break;default:n=i;break}return n!==t&&r.push(e.substring(n,t)),r}});var MM=_((LM,F0)=>{(function(){var e,t,r,n,i,s,a,o,u;t={},o=this,typeof F0<"u"&&F0!==null&&F0.exports?F0.exports=t:o.ipaddr=t,a=function(l,c,f,d){var h,p;if(l.length!==c.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(h=0;d>0;){if(p=f-d,p<0&&(p=0),l[h]>>p!==c[h]>>p)return!1;d-=f,h+=1}return!0},t.subnetMatch=function(l,c,f){var d,h,p,m,y;f==null&&(f="unicast");for(p in c)for(m=c[p],m[0]&&!(m[0]instanceof Array)&&(m=[m]),d=0,h=m.length;d<h;d++)if(y=m[d],l.kind()===y[0].kind()&&l.match.apply(l,y))return p;return f},t.IPv4=function(){function l(c){var f,d,h;if(c.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");for(f=0,d=c.length;f<d;f++)if(h=c[f],!(0<=h&&h<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=c}return l.prototype.kind=function(){return"ipv4"},l.prototype.toString=function(){return this.octets.join(".")},l.prototype.toNormalizedString=function(){return this.toString()},l.prototype.toByteArray=function(){return this.octets.slice(0)},l.prototype.match=function(c,f){var d;if(f===void 0&&(d=c,c=d[0],f=d[1]),c.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return a(this.octets,c.octets,8,f)},l.prototype.SpecialRanges={unspecified:[[new l([0,0,0,0]),8]],broadcast:[[new l([255,255,255,255]),32]],multicast:[[new l([224,0,0,0]),4]],linkLocal:[[new l([169,254,0,0]),16]],loopback:[[new l([127,0,0,0]),8]],carrierGradeNat:[[new l([100,64,0,0]),10]],private:[[new l([10,0,0,0]),8],[new l([172,16,0,0]),12],[new l([192,168,0,0]),16]],reserved:[[new l([192,0,0,0]),24],[new l([192,0,2,0]),24],[new l([192,88,99,0]),24],[new l([198,51,100,0]),24],[new l([203,0,113,0]),24],[new l([240,0,0,0]),4]]},l.prototype.range=function(){return t.subnetMatch(this,this.SpecialRanges)},l.prototype.toIPv4MappedAddress=function(){return t.IPv6.parse("::ffff:"+this.toString())},l.prototype.prefixLengthFromSubnetMask=function(){var c,f,d,h,p,m,y;for(y={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},c=0,p=!1,f=d=3;d>=0;f=d+=-1)if(h=this.octets[f],h in y){if(m=y[h],p&&m!==0)return null;m!==8&&(p=!0),c+=m}else return null;return 32-c},l}(),r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},t.IPv4.parser=function(l){var c,f,d,h,p;if(f=function(m){return m[0]==="0"&&m[1]!=="x"?parseInt(m,8):parseInt(m)},c=l.match(n.fourOctet))return function(){var m,y,g,v;for(g=c.slice(1,6),v=[],m=0,y=g.length;m<y;m++)d=g[m],v.push(f(d));return v}();if(c=l.match(n.longValue)){if(p=f(c[1]),p>4294967295||p<0)throw new Error("ipaddr: address outside defined range");return function(){var m,y;for(y=[],h=m=0;m<=24;h=m+=8)y.push(p>>h&255);return y}().reverse()}else return null},t.IPv6=function(){function l(c,f){var d,h,p,m,y,g;if(c.length===16)for(this.parts=[],d=h=0;h<=14;d=h+=2)this.parts.push(c[d]<<8|c[d+1]);else if(c.length===8)this.parts=c;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(g=this.parts,p=0,m=g.length;p<m;p++)if(y=g[p],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");f&&(this.zoneId=f)}return l.prototype.kind=function(){return"ipv6"},l.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},l.prototype.toRFC5952String=function(){var c,f,d,h,p;for(h=/((^|:)(0(:|$)){2,})/g,p=this.toNormalizedString(),c=0,f=-1;d=h.exec(p);)d[0].length>f&&(c=d.index,f=d[0].length);return f<0?p:p.substring(0,c)+"::"+p.substring(c+f)},l.prototype.toByteArray=function(){var c,f,d,h,p;for(c=[],p=this.parts,f=0,d=p.length;f<d;f++)h=p[f],c.push(h>>8),c.push(h&255);return c},l.prototype.toNormalizedString=function(){var c,f,d;return c=function(){var h,p,m,y;for(m=this.parts,y=[],h=0,p=m.length;h<p;h++)f=m[h],y.push(f.toString(16));return y}.call(this).join(":"),d="",this.zoneId&&(d="%"+this.zoneId),c+d},l.prototype.toFixedLengthString=function(){var c,f,d;return c=function(){var h,p,m,y;for(m=this.parts,y=[],h=0,p=m.length;h<p;h++)f=m[h],y.push(f.toString(16).padStart(4,"0"));return y}.call(this).join(":"),d="",this.zoneId&&(d="%"+this.zoneId),c+d},l.prototype.match=function(c,f){var d;if(f===void 0&&(d=c,c=d[0],f=d[1]),c.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return a(this.parts,c.parts,16,f)},l.prototype.SpecialRanges={unspecified:[new l([0,0,0,0,0,0,0,0]),128],linkLocal:[new l([65152,0,0,0,0,0,0,0]),10],multicast:[new l([65280,0,0,0,0,0,0,0]),8],loopback:[new l([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new l([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new l([0,0,0,0,0,65535,0,0]),96],rfc6145:[new l([0,0,0,0,65535,0,0,0]),96],rfc6052:[new l([100,65435,0,0,0,0,0,0]),96],"6to4":[new l([8194,0,0,0,0,0,0,0]),16],teredo:[new l([8193,0,0,0,0,0,0,0]),32],reserved:[[new l([8193,3512,0,0,0,0,0,0]),32]]},l.prototype.range=function(){return t.subnetMatch(this,this.SpecialRanges)},l.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},l.prototype.toIPv4Address=function(){var c,f,d;if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");return d=this.parts.slice(-2),c=d[0],f=d[1],new t.IPv4([c>>8,c&255,f>>8,f&255])},l.prototype.prefixLengthFromSubnetMask=function(){var c,f,d,h,p,m,y;for(y={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},c=0,p=!1,f=d=7;d>=0;f=d+=-1)if(h=this.parts[f],h in y){if(m=y[h],p&&m!==0)return null;m!==16&&(p=!0),c+=m}else return null;return 128-c},l}(),i="(?:[0-9a-f]+::?)+",u="%[0-9a-z]{1,}",s={zoneIndex:new RegExp(u,"i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?("+u+")?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+(r+"\\."+r+"\\."+r+"\\."+r)+("("+u+")?$"),"i")},e=function(l,c){var f,d,h,p,m,y;if(l.indexOf("::")!==l.lastIndexOf("::"))return null;for(y=(l.match(s.zoneIndex)||[])[0],y&&(y=y.substring(1),l=l.replace(/%.+$/,"")),f=0,d=-1;(d=l.indexOf(":",d+1))>=0;)f++;if(l.substr(0,2)==="::"&&f--,l.substr(-2,2)==="::"&&f--,f>c)return null;for(m=c-f,p=":";m--;)p+="0:";return l=l.replace("::",p),l[0]===":"&&(l=l.slice(1)),l[l.length-1]===":"&&(l=l.slice(0,-1)),c=function(){var g,v,E,x;for(E=l.split(":"),x=[],g=0,v=E.length;g<v;g++)h=E[g],x.push(parseInt(h,16));return x}(),{parts:c,zoneId:y}},t.IPv6.parser=function(l){var c,f,d,h,p,m,y;if(s.native.test(l))return e(l,8);if((h=l.match(s.transitional))&&(y=h[6]||"",c=e(h[1].slice(0,-1)+y,6),c.parts)){for(m=[parseInt(h[2]),parseInt(h[3]),parseInt(h[4]),parseInt(h[5])],f=0,d=m.length;f<d;f++)if(p=m[f],!(0<=p&&p<=255))return null;return c.parts.push(m[0]<<8|m[1]),c.parts.push(m[2]<<8|m[3]),{parts:c.parts,zoneId:c.zoneId}}return null},t.IPv4.isIPv4=t.IPv6.isIPv6=function(l){return this.parser(l)!==null},t.IPv4.isValid=function(l){var c;try{return new this(this.parser(l)),!0}catch(f){return c=f,!1}},t.IPv4.isValidFourPartDecimal=function(l){return!!(t.IPv4.isValid(l)&&l.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},t.IPv6.isValid=function(l){var c,f;if(typeof l=="string"&&l.indexOf(":")===-1)return!1;try{return c=this.parser(l),new this(c.parts,c.zoneId),!0}catch(d){return f=d,!1}},t.IPv4.parse=function(l){var c;if(c=this.parser(l),c===null)throw new Error("ipaddr: string is not formatted like ip address");return new this(c)},t.IPv6.parse=function(l){var c;if(c=this.parser(l),c.parts===null)throw new Error("ipaddr: string is not formatted like ip address");return new this(c.parts,c.zoneId)},t.IPv4.parseCIDR=function(l){var c,f,d;if((f=l.match(/^(.+)\/(\d+)$/))&&(c=parseInt(f[2]),c>=0&&c<=32))return d=[this.parse(f[1]),c],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},t.IPv4.subnetMaskFromPrefixLength=function(l){var c,f,d;if(l=parseInt(l),l<0||l>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(d=[0,0,0,0],f=0,c=Math.floor(l/8);f<c;)d[f]=255,f++;return c<4&&(d[c]=Math.pow(2,l%8)-1<<8-l%8),new this(d)},t.IPv4.broadcastAddressFromCIDR=function(l){var c,f,d,h,p,m;try{for(c=this.parseCIDR(l),h=c[0].toByteArray(),m=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),p=[],d=0;d<4;)p.push(parseInt(h[d],10)|parseInt(m[d],10)^255),d++;return new this(p)}catch(y){throw f=y,new Error("ipaddr: the address does not have IPv4 CIDR format")}},t.IPv4.networkAddressFromCIDR=function(l){var c,f,d,h,p,m;try{for(c=this.parseCIDR(l),h=c[0].toByteArray(),m=this.subnetMaskFromPrefixLength(c[1]).toByteArray(),p=[],d=0;d<4;)p.push(parseInt(h[d],10)&parseInt(m[d],10)),d++;return new this(p)}catch(y){throw f=y,new Error("ipaddr: the address does not have IPv4 CIDR format")}},t.IPv6.parseCIDR=function(l){var c,f,d;if((f=l.match(/^(.+)\/(\d+)$/))&&(c=parseInt(f[2]),c>=0&&c<=128))return d=[this.parse(f[1]),c],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},t.isValid=function(l){return t.IPv6.isValid(l)||t.IPv4.isValid(l)},t.parse=function(l){if(t.IPv6.isValid(l))return t.IPv6.parse(l);if(t.IPv4.isValid(l))return t.IPv4.parse(l);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},t.parseCIDR=function(l){var c;try{return t.IPv6.parseCIDR(l)}catch(f){c=f;try{return t.IPv4.parseCIDR(l)}catch(d){throw c=d,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},t.fromByteArray=function(l){var c;if(c=l.length,c===4)return new t.IPv4(l);if(c===16)return new t.IPv6(l);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},t.process=function(l){var c;return c=this.parse(l),c.kind()==="ipv6"&&c.isIPv4MappedAddress()?c.toIPv4Address():c}}).call(LM)});var UM=_((vrt,k1)=>{"use strict";k1.exports=V_e;k1.exports.all=qM;k1.exports.compile=jM;var B_e=$M(),BM=MM(),q_e=/^[0-9]+$/,P1=BM.isValid,D1=BM.parse,FM={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function qM(e,t){var r=B_e(e);if(!t)return r;typeof t!="function"&&(t=jM(t));for(var n=0;n<r.length-1;n++)t(r[n],n)||(r.length=n+1);return r}function jM(e){if(!e)throw new TypeError("argument is required");var t;if(typeof e=="string")t=[e];else if(Array.isArray(e))t=e.slice();else throw new TypeError("unsupported trust argument");for(var r=0;r<t.length;r++)e=t[r],Object.prototype.hasOwnProperty.call(FM,e)&&(e=FM[e],t.splice.apply(t,[r,1].concat(e)),r+=e.length-1);return U_e(j_e(t))}function j_e(e){for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=H_e(e[r]);return t}function U_e(e){var t=e.length;return t===0?G_e:t===1?K_e(e[0]):W_e(e)}function H_e(e){var t=e.lastIndexOf("/"),r=t!==-1?e.substring(0,t):e;if(!P1(r))throw new TypeError("invalid IP address: "+r);var n=D1(r);t===-1&&n.kind()==="ipv6"&&n.isIPv4MappedAddress()&&(n=n.toIPv4Address());var i=n.kind()==="ipv6"?128:32,s=t!==-1?e.substring(t+1,e.length):null;if(s===null?s=i:q_e.test(s)?s=parseInt(s,10):n.kind()==="ipv4"&&P1(s)?s=z_e(s):s=null,s<=0||s>i)throw new TypeError("invalid range on address: "+e);return[n,s]}function z_e(e){var t=D1(e),r=t.kind();return r==="ipv4"?t.prefixLengthFromSubnetMask():null}function V_e(e,t){if(!e)throw new TypeError("req argument is required");if(!t)throw new TypeError("trust argument is required");var r=qM(e,t),n=r[r.length-1];return n}function G_e(){return!1}function W_e(e){return function(r){if(!P1(r))return!1;for(var n=D1(r),i,s=n.kind(),a=0;a<e.length;a++){var o=e[a],u=o[0],l=u.kind(),c=o[1],f=n;if(s!==l){if(l==="ipv4"&&!n.isIPv4MappedAddress())continue;i||(i=l==="ipv4"?n.toIPv4Address():n.toIPv4MappedAddress()),f=i}if(f.match(u,c))return!0}return!1}}function K_e(e){var t=e[0],r=t.kind(),n=r==="ipv4",i=e[1];return function(a){if(!P1(a))return!1;var o=D1(a),u=o.kind();if(u!==r){if(n&&!o.isIPv4MappedAddress())return!1;o=n?o.toIPv4Address():o.toIPv4MappedAddress()}return o.match(t,i)}}});var B0=_((Trt,HM)=>{"use strict";var Y_e="2.0.0",X_e=Number.MAX_SAFE_INTEGER||9007199254740991,J_e=16,Q_e=250,Z_e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];HM.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:J_e,MAX_SAFE_BUILD_LENGTH:Q_e,MAX_SAFE_INTEGER:X_e,RELEASE_TYPES:Z_e,SEMVER_SPEC_VERSION:Y_e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var q0=_((Srt,zM)=>{"use strict";var eve=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};zM.exports=eve});var Vl=_((Bs,VM)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:fw,MAX_SAFE_BUILD_LENGTH:tve,MAX_LENGTH:rve}=B0(),nve=q0();Bs=VM.exports={};var ive=Bs.re=[],sve=Bs.safeRe=[],ge=Bs.src=[],ave=Bs.safeSrc=[],ye=Bs.t={},ove=0,dw="[a-zA-Z0-9-]",uve=[["\\s",1],["\\d",rve],[dw,tve]],cve=e=>{for(let[t,r]of uve)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},Me=(e,t,r)=>{let n=cve(t),i=ove++;nve(e,i,t),ye[e]=i,ge[i]=t,ave[i]=n,ive[i]=new RegExp(t,r?"g":void 0),sve[i]=new RegExp(n,r?"g":void 0)};Me("NUMERICIDENTIFIER","0|[1-9]\\d*");Me("NUMERICIDENTIFIERLOOSE","\\d+");Me("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${dw}*`);Me("MAINVERSION",`(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})\\.(${ge[ye.NUMERICIDENTIFIER]})`);Me("MAINVERSIONLOOSE",`(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})\\.(${ge[ye.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASEIDENTIFIER",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIER]})`);Me("PRERELEASEIDENTIFIERLOOSE",`(?:${ge[ye.NONNUMERICIDENTIFIER]}|${ge[ye.NUMERICIDENTIFIERLOOSE]})`);Me("PRERELEASE",`(?:-(${ge[ye.PRERELEASEIDENTIFIER]}(?:\\.${ge[ye.PRERELEASEIDENTIFIER]})*))`);Me("PRERELEASELOOSE",`(?:-?(${ge[ye.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ge[ye.PRERELEASEIDENTIFIERLOOSE]})*))`);Me("BUILDIDENTIFIER",`${dw}+`);Me("BUILD",`(?:\\+(${ge[ye.BUILDIDENTIFIER]}(?:\\.${ge[ye.BUILDIDENTIFIER]})*))`);Me("FULLPLAIN",`v?${ge[ye.MAINVERSION]}${ge[ye.PRERELEASE]}?${ge[ye.BUILD]}?`);Me("FULL",`^${ge[ye.FULLPLAIN]}$`);Me("LOOSEPLAIN",`[v=\\s]*${ge[ye.MAINVERSIONLOOSE]}${ge[ye.PRERELEASELOOSE]}?${ge[ye.BUILD]}?`);Me("LOOSE",`^${ge[ye.LOOSEPLAIN]}$`);Me("GTLT","((?:<|>)?=?)");Me("XRANGEIDENTIFIERLOOSE",`${ge[ye.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Me("XRANGEIDENTIFIER",`${ge[ye.NUMERICIDENTIFIER]}|x|X|\\*`);Me("XRANGEPLAIN",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:\\.(${ge[ye.XRANGEIDENTIFIER]})(?:${ge[ye.PRERELEASE]})?${ge[ye.BUILD]}?)?)?`);Me("XRANGEPLAINLOOSE",`[v=\\s]*(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ge[ye.XRANGEIDENTIFIERLOOSE]})(?:${ge[ye.PRERELEASELOOSE]})?${ge[ye.BUILD]}?)?)?`);Me("XRANGE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAIN]}$`);Me("XRANGELOOSE",`^${ge[ye.GTLT]}\\s*${ge[ye.XRANGEPLAINLOOSE]}$`);Me("COERCEPLAIN",`(^|[^\\d])(\\d{1,${fw}})(?:\\.(\\d{1,${fw}}))?(?:\\.(\\d{1,${fw}}))?`);Me("COERCE",`${ge[ye.COERCEPLAIN]}(?:$|[^\\d])`);Me("COERCEFULL",ge[ye.COERCEPLAIN]+`(?:${ge[ye.PRERELEASE]})?(?:${ge[ye.BUILD]})?(?:$|[^\\d])`);Me("COERCERTL",ge[ye.COERCE],!0);Me("COERCERTLFULL",ge[ye.COERCEFULL],!0);Me("LONETILDE","(?:~>?)");Me("TILDETRIM",`(\\s*)${ge[ye.LONETILDE]}\\s+`,!0);Bs.tildeTrimReplace="$1~";Me("TILDE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAIN]}$`);Me("TILDELOOSE",`^${ge[ye.LONETILDE]}${ge[ye.XRANGEPLAINLOOSE]}$`);Me("LONECARET","(?:\\^)");Me("CARETTRIM",`(\\s*)${ge[ye.LONECARET]}\\s+`,!0);Bs.caretTrimReplace="$1^";Me("CARET",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAIN]}$`);Me("CARETLOOSE",`^${ge[ye.LONECARET]}${ge[ye.XRANGEPLAINLOOSE]}$`);Me("COMPARATORLOOSE",`^${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]})$|^$`);Me("COMPARATOR",`^${ge[ye.GTLT]}\\s*(${ge[ye.FULLPLAIN]})$|^$`);Me("COMPARATORTRIM",`(\\s*)${ge[ye.GTLT]}\\s*(${ge[ye.LOOSEPLAIN]}|${ge[ye.XRANGEPLAIN]})`,!0);Bs.comparatorTrimReplace="$1$2$3";Me("HYPHENRANGE",`^\\s*(${ge[ye.XRANGEPLAIN]})\\s+-\\s+(${ge[ye.XRANGEPLAIN]})\\s*$`);Me("HYPHENRANGELOOSE",`^\\s*(${ge[ye.XRANGEPLAINLOOSE]})\\s+-\\s+(${ge[ye.XRANGEPLAINLOOSE]})\\s*$`);Me("STAR","(<|>)?=?\\s*\\*");Me("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Me("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var $1=_((wrt,GM)=>{"use strict";var lve=Object.freeze({loose:!0}),fve=Object.freeze({}),dve=e=>e?typeof e!="object"?lve:e:fve;GM.exports=dve});var pw=_((Art,YM)=>{"use strict";var WM=/^[0-9]+$/,KM=(e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let r=WM.test(e),n=WM.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},pve=(e,t)=>KM(t,e);YM.exports={compareIdentifiers:KM,rcompareIdentifiers:pve}});var cn=_((Crt,JM)=>{"use strict";var L1=q0(),{MAX_LENGTH:XM,MAX_SAFE_INTEGER:M1}=B0(),{safeRe:F1,t:B1}=Vl(),hve=$1(),{compareIdentifiers:hw}=pw(),mw=class e{constructor(t,r){if(r=hve(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>XM)throw new TypeError(`version is longer than ${XM} characters`);L1("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?F1[B1.LOOSE]:F1[B1.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>M1||this.major<0)throw new TypeError("Invalid major version");if(this.minor>M1||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>M1||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<M1)return s}return i}):this.prerelease=[],this.build=n[5]?n[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(t){if(L1("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(L1("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return hw(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(L1("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return hw(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?F1[B1.PRERELEASELOOSE]:F1[B1.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);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 i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),hw(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};JM.exports=mw});var oc=_((Irt,ZM)=>{"use strict";var QM=cn(),mve=(e,t,r=!1)=>{if(e instanceof QM)return e;try{return new QM(e,t)}catch(n){if(!r)return null;throw n}};ZM.exports=mve});var tF=_((Rrt,eF)=>{"use strict";var gve=oc(),yve=(e,t)=>{let r=gve(e,t);return r?r.version:null};eF.exports=yve});var nF=_((Nrt,rF)=>{"use strict";var bve=oc(),xve=(e,t)=>{let r=bve(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};rF.exports=xve});var aF=_((Ort,sF)=>{"use strict";var iF=cn(),Eve=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new iF(e instanceof iF?e.version:e,r).inc(t,n,i).version}catch{return null}};sF.exports=Eve});var cF=_((Prt,uF)=>{"use strict";var oF=oc(),_ve=(e,t)=>{let r=oF(e,null,!0),n=oF(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,a=s?r:n,o=s?n:r,u=!!a.prerelease.length;if(!!o.prerelease.length&&!u){if(!o.patch&&!o.minor)return"major";if(o.compareMain(a)===0)return o.minor&&!o.patch?"minor":"patch"}let c=u?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};uF.exports=_ve});var fF=_((Drt,lF)=>{"use strict";var vve=cn(),Tve=(e,t)=>new vve(e,t).major;lF.exports=Tve});var pF=_((krt,dF)=>{"use strict";var Sve=cn(),wve=(e,t)=>new Sve(e,t).minor;dF.exports=wve});var mF=_(($rt,hF)=>{"use strict";var Ave=cn(),Cve=(e,t)=>new Ave(e,t).patch;hF.exports=Cve});var yF=_((Lrt,gF)=>{"use strict";var Ive=oc(),Rve=(e,t)=>{let r=Ive(e,t);return r&&r.prerelease.length?r.prerelease:null};gF.exports=Rve});var Ci=_((Mrt,xF)=>{"use strict";var bF=cn(),Nve=(e,t,r)=>new bF(e,r).compare(new bF(t,r));xF.exports=Nve});var _F=_((Frt,EF)=>{"use strict";var Ove=Ci(),Pve=(e,t,r)=>Ove(t,e,r);EF.exports=Pve});var TF=_((Brt,vF)=>{"use strict";var Dve=Ci(),kve=(e,t)=>Dve(e,t,!0);vF.exports=kve});var q1=_((qrt,wF)=>{"use strict";var SF=cn(),$ve=(e,t,r)=>{let n=new SF(e,r),i=new SF(t,r);return n.compare(i)||n.compareBuild(i)};wF.exports=$ve});var CF=_((jrt,AF)=>{"use strict";var Lve=q1(),Mve=(e,t)=>e.sort((r,n)=>Lve(r,n,t));AF.exports=Mve});var RF=_((Urt,IF)=>{"use strict";var Fve=q1(),Bve=(e,t)=>e.sort((r,n)=>Fve(n,r,t));IF.exports=Bve});var j0=_((Hrt,NF)=>{"use strict";var qve=Ci(),jve=(e,t,r)=>qve(e,t,r)>0;NF.exports=jve});var j1=_((zrt,OF)=>{"use strict";var Uve=Ci(),Hve=(e,t,r)=>Uve(e,t,r)<0;OF.exports=Hve});var gw=_((Vrt,PF)=>{"use strict";var zve=Ci(),Vve=(e,t,r)=>zve(e,t,r)===0;PF.exports=Vve});var yw=_((Grt,DF)=>{"use strict";var Gve=Ci(),Wve=(e,t,r)=>Gve(e,t,r)!==0;DF.exports=Wve});var U1=_((Wrt,kF)=>{"use strict";var Kve=Ci(),Yve=(e,t,r)=>Kve(e,t,r)>=0;kF.exports=Yve});var H1=_((Krt,$F)=>{"use strict";var Xve=Ci(),Jve=(e,t,r)=>Xve(e,t,r)<=0;$F.exports=Jve});var bw=_((Yrt,LF)=>{"use strict";var Qve=gw(),Zve=yw(),e2e=j0(),t2e=U1(),r2e=j1(),n2e=H1(),i2e=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Qve(e,r,n);case"!=":return Zve(e,r,n);case">":return e2e(e,r,n);case">=":return t2e(e,r,n);case"<":return r2e(e,r,n);case"<=":return n2e(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};LF.exports=i2e});var FF=_((Xrt,MF)=>{"use strict";var s2e=cn(),a2e=oc(),{safeRe:z1,t:V1}=Vl(),o2e=(e,t)=>{if(e instanceof s2e)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?z1[V1.COERCEFULL]:z1[V1.COERCE]);else{let u=t.includePrerelease?z1[V1.COERCERTLFULL]:z1[V1.COERCERTL],l;for(;(l=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",a=t.includePrerelease&&r[5]?`-${r[5]}`:"",o=t.includePrerelease&&r[6]?`+${r[6]}`:"";return a2e(`${n}.${i}.${s}${a}${o}`,t)};MF.exports=o2e});var qF=_((Jrt,BF)=>{"use strict";var xw=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};BF.exports=xw});var Ii=_((Qrt,zF)=>{"use strict";var u2e=/\s+/g,Ew=class e{constructor(t,r){if(r=l2e(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof _w)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(u2e," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!UF(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&y2e(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&m2e)|(this.options.loose&&g2e))+":"+t,i=jF.get(n);if(i)return i;let s=this.options.loose,a=s?On[ln.HYPHENRANGELOOSE]:On[ln.HYPHENRANGE];t=t.replace(a,C2e(this.options.includePrerelease)),Xt("hyphen replace",t),t=t.replace(On[ln.COMPARATORTRIM],d2e),Xt("comparator trim",t),t=t.replace(On[ln.TILDETRIM],p2e),Xt("tilde trim",t),t=t.replace(On[ln.CARETTRIM],h2e),Xt("caret trim",t);let o=t.split(" ").map(f=>b2e(f,this.options)).join(" ").split(/\s+/).map(f=>A2e(f,this.options));s&&(o=o.filter(f=>(Xt("loose invalid filter",f,this.options),!!f.match(On[ln.COMPARATORLOOSE])))),Xt("range list",o);let u=new Map,l=o.map(f=>new _w(f,this.options));for(let f of l){if(UF(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return jF.set(n,c),c}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>HF(n,r)&&t.set.some(i=>HF(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new f2e(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(I2e(this.set[r],t,this.options))return!0;return!1}};zF.exports=Ew;var c2e=qF(),jF=new c2e,l2e=$1(),_w=U0(),Xt=q0(),f2e=cn(),{safeRe:On,t:ln,comparatorTrimReplace:d2e,tildeTrimReplace:p2e,caretTrimReplace:h2e}=Vl(),{FLAG_INCLUDE_PRERELEASE:m2e,FLAG_LOOSE:g2e}=B0(),UF=e=>e.value==="<0.0.0-0",y2e=e=>e.value==="",HF=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},b2e=(e,t)=>(e=e.replace(On[ln.BUILD],""),Xt("comp",e,t),e=_2e(e,t),Xt("caret",e),e=x2e(e,t),Xt("tildes",e),e=T2e(e,t),Xt("xrange",e),e=w2e(e,t),Xt("stars",e),e),Pn=e=>!e||e.toLowerCase()==="x"||e==="*",x2e=(e,t)=>e.trim().split(/\s+/).map(r=>E2e(r,t)).join(" "),E2e=(e,t)=>{let r=t.loose?On[ln.TILDELOOSE]:On[ln.TILDE];return e.replace(r,(n,i,s,a,o)=>{Xt("tilde",e,n,i,s,a,o);let u;return Pn(i)?u="":Pn(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:Pn(a)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:o?(Xt("replaceTilde pr",o),u=`>=${i}.${s}.${a}-${o} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,Xt("tilde return",u),u})},_2e=(e,t)=>e.trim().split(/\s+/).map(r=>v2e(r,t)).join(" "),v2e=(e,t)=>{Xt("caret",e,t);let r=t.loose?On[ln.CARETLOOSE]:On[ln.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,a,o,u)=>{Xt("caret",e,i,s,a,o,u);let l;return Pn(s)?l="":Pn(a)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Pn(o)?s==="0"?l=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:u?(Xt("replaceCaret pr",u),s==="0"?a==="0"?l=`>=${s}.${a}.${o}-${u} <${s}.${a}.${+o+1}-0`:l=`>=${s}.${a}.${o}-${u} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${o}-${u} <${+s+1}.0.0-0`):(Xt("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${o}${n} <${s}.${a}.${+o+1}-0`:l=`>=${s}.${a}.${o}${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${o} <${+s+1}.0.0-0`),Xt("caret return",l),l})},T2e=(e,t)=>(Xt("replaceXRanges",e,t),e.split(/\s+/).map(r=>S2e(r,t)).join(" ")),S2e=(e,t)=>{e=e.trim();let r=t.loose?On[ln.XRANGELOOSE]:On[ln.XRANGE];return e.replace(r,(n,i,s,a,o,u)=>{Xt("xRange",e,n,i,s,a,o,u);let l=Pn(s),c=l||Pn(a),f=c||Pn(o),d=f;return i==="="&&d&&(i=""),u=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&d?(c&&(a=0),o=0,i===">"?(i=">=",c?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",c?s=+s+1:a=+a+1),i==="<"&&(u="-0"),n=`${i+s}.${a}.${o}${u}`):c?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),Xt("xRange return",n),n})},w2e=(e,t)=>(Xt("replaceStars",e,t),e.trim().replace(On[ln.STAR],"")),A2e=(e,t)=>(Xt("replaceGTE0",e,t),e.trim().replace(On[t.includePrerelease?ln.GTE0PRE:ln.GTE0],"")),C2e=e=>(t,r,n,i,s,a,o,u,l,c,f,d)=>(Pn(n)?r="":Pn(i)?r=`>=${n}.0.0${e?"-0":""}`:Pn(s)?r=`>=${n}.${i}.0${e?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Pn(l)?u="":Pn(c)?u=`<${+l+1}.0.0-0`:Pn(f)?u=`<${l}.${+c+1}.0-0`:d?u=`<=${l}.${c}.${f}-${d}`:e?u=`<${l}.${c}.${+f+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),I2e=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(Xt(e[n].semver),e[n].semver!==_w.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var U0=_((Zrt,XF)=>{"use strict";var H0=Symbol("SemVer ANY"),Sw=class e{static get ANY(){return H0}constructor(t,r){if(r=VF(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Tw("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===H0?this.value="":this.value=this.operator+this.semver.version,Tw("comp",this)}parse(t){let r=this.options.loose?GF[WF.COMPARATORLOOSE]:GF[WF.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new KF(n[2],this.options.loose):this.semver=H0}toString(){return this.value}test(t){if(Tw("Comparator.test",t,this.options.loose),this.semver===H0||t===H0)return!0;if(typeof t=="string")try{t=new KF(t,this.options)}catch{return!1}return vw(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new YF(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new YF(this.value,r).test(t.semver):(r=VF(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||vw(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||vw(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};XF.exports=Sw;var VF=$1(),{safeRe:GF,t:WF}=Vl(),vw=bw(),Tw=q0(),KF=cn(),YF=Ii()});var z0=_((ent,JF)=>{"use strict";var R2e=Ii(),N2e=(e,t,r)=>{try{t=new R2e(t,r)}catch{return!1}return t.test(e)};JF.exports=N2e});var ZF=_((tnt,QF)=>{"use strict";var O2e=Ii(),P2e=(e,t)=>new O2e(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));QF.exports=P2e});var tB=_((rnt,eB)=>{"use strict";var D2e=cn(),k2e=Ii(),$2e=(e,t,r)=>{let n=null,i=null,s=null;try{s=new k2e(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new D2e(n,r))}),n};eB.exports=$2e});var nB=_((nnt,rB)=>{"use strict";var L2e=cn(),M2e=Ii(),F2e=(e,t,r)=>{let n=null,i=null,s=null;try{s=new M2e(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new L2e(n,r))}),n};rB.exports=F2e});var aB=_((int,sB)=>{"use strict";var ww=cn(),B2e=Ii(),iB=j0(),q2e=(e,t)=>{e=new B2e(e,t);let r=new ww("0.0.0");if(e.test(r)||(r=new ww("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(a=>{let o=new ww(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!s||iB(o,s))&&(s=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||iB(r,s))&&(r=s)}return r&&e.test(r)?r:null};sB.exports=q2e});var uB=_((snt,oB)=>{"use strict";var j2e=Ii(),U2e=(e,t)=>{try{return new j2e(e,t).range||"*"}catch{return null}};oB.exports=U2e});var G1=_((ant,dB)=>{"use strict";var H2e=cn(),fB=U0(),{ANY:z2e}=fB,V2e=Ii(),G2e=z0(),cB=j0(),lB=j1(),W2e=H1(),K2e=U1(),Y2e=(e,t,r,n)=>{e=new H2e(e,n),t=new V2e(t,n);let i,s,a,o,u;switch(r){case">":i=cB,s=W2e,a=lB,o=">",u=">=";break;case"<":i=lB,s=K2e,a=cB,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(G2e(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let c=t.set[l],f=null,d=null;if(c.forEach(h=>{h.semver===z2e&&(h=new fB(">=0.0.0")),f=f||h,d=d||h,i(h.semver,f.semver,n)?f=h:a(h.semver,d.semver,n)&&(d=h)}),f.operator===o||f.operator===u||(!d.operator||d.operator===o)&&s(e,d.semver))return!1;if(d.operator===u&&a(e,d.semver))return!1}return!0};dB.exports=Y2e});var hB=_((ont,pB)=>{"use strict";var X2e=G1(),J2e=(e,t,r)=>X2e(e,t,">",r);pB.exports=J2e});var gB=_((unt,mB)=>{"use strict";var Q2e=G1(),Z2e=(e,t,r)=>Q2e(e,t,"<",r);mB.exports=Z2e});var xB=_((cnt,bB)=>{"use strict";var yB=Ii(),eTe=(e,t,r)=>(e=new yB(e,r),t=new yB(t,r),e.intersects(t,r));bB.exports=eTe});var _B=_((lnt,EB)=>{"use strict";var tTe=z0(),rTe=Ci();EB.exports=(e,t,r)=>{let n=[],i=null,s=null,a=e.sort((c,f)=>rTe(c,f,r));for(let c of a)tTe(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let o=[];for(let[c,f]of n)c===f?o.push(c):!f&&c===a[0]?o.push("*"):f?c===a[0]?o.push(`<=${f}`):o.push(`${c} - ${f}`):o.push(`>=${c}`);let u=o.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var CB=_((fnt,AB)=>{"use strict";var vB=Ii(),Cw=U0(),{ANY:Aw}=Cw,V0=z0(),Iw=Ci(),nTe=(e,t,r={})=>{if(e===t)return!0;e=new vB(e,r),t=new vB(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let a=sTe(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},iTe=[new Cw(">=0.0.0-0")],TB=[new Cw(">=0.0.0")],sTe=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Aw){if(t.length===1&&t[0].semver===Aw)return!0;r.includePrerelease?e=iTe:e=TB}if(t.length===1&&t[0].semver===Aw){if(r.includePrerelease)return!0;t=TB}let n=new Set,i,s;for(let h of e)h.operator===">"||h.operator===">="?i=SB(i,h,r):h.operator==="<"||h.operator==="<="?s=wB(s,h,r):n.add(h.semver);if(n.size>1)return null;let a;if(i&&s){if(a=Iw(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let h of n){if(i&&!V0(h,String(i),r)||s&&!V0(h,String(s),r))return null;for(let p of t)if(!V0(h,String(p),r))return!1;return!0}let o,u,l,c,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,d=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let h of t){if(c=c||h.operator===">"||h.operator===">=",l=l||h.operator==="<"||h.operator==="<=",i){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(o=SB(i,h,r),o===h&&o!==i)return!1}else if(i.operator===">="&&!V0(i.semver,String(h),r))return!1}if(s){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator==="<"||h.operator==="<="){if(u=wB(s,h,r),u===h&&u!==s)return!1}else if(s.operator==="<="&&!V0(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&a!==0)return!1}return!(i&&l&&!s&&a!==0||s&&c&&!i&&a!==0||d||f)},SB=(e,t,r)=>{if(!e)return t;let n=Iw(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},wB=(e,t,r)=>{if(!e)return t;let n=Iw(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};AB.exports=nTe});var Nw=_((dnt,NB)=>{"use strict";var Rw=Vl(),IB=B0(),aTe=cn(),RB=pw(),oTe=oc(),uTe=tF(),cTe=nF(),lTe=aF(),fTe=cF(),dTe=fF(),pTe=pF(),hTe=mF(),mTe=yF(),gTe=Ci(),yTe=_F(),bTe=TF(),xTe=q1(),ETe=CF(),_Te=RF(),vTe=j0(),TTe=j1(),STe=gw(),wTe=yw(),ATe=U1(),CTe=H1(),ITe=bw(),RTe=FF(),NTe=U0(),OTe=Ii(),PTe=z0(),DTe=ZF(),kTe=tB(),$Te=nB(),LTe=aB(),MTe=uB(),FTe=G1(),BTe=hB(),qTe=gB(),jTe=xB(),UTe=_B(),HTe=CB();NB.exports={parse:oTe,valid:uTe,clean:cTe,inc:lTe,diff:fTe,major:dTe,minor:pTe,patch:hTe,prerelease:mTe,compare:gTe,rcompare:yTe,compareLoose:bTe,compareBuild:xTe,sort:ETe,rsort:_Te,gt:vTe,lt:TTe,eq:STe,neq:wTe,gte:ATe,lte:CTe,cmp:ITe,coerce:RTe,Comparator:NTe,Range:OTe,satisfies:PTe,toComparators:DTe,maxSatisfying:kTe,minSatisfying:$Te,minVersion:LTe,validRange:MTe,outside:FTe,gtr:BTe,ltr:qTe,intersects:jTe,simplifyRange:UTe,subset:HTe,SemVer:aTe,re:Rw.re,src:Rw.src,tokens:Rw.t,SEMVER_SPEC_VERSION:IB.SEMVER_SPEC_VERSION,RELEASE_TYPES:IB.RELEASE_TYPES,compareIdentifiers:RB.compareIdentifiers,rcompareIdentifiers:RB.rcompareIdentifiers}});var K1=_((pnt,kw)=>{"use strict";var W1=UM(),zTe=Nw(),{FSTDEP005:VTe,FSTDEP012:GTe,FSTDEP015:WTe,FSTDEP016:KTe,FSTDEP017:YTe,FSTDEP018:XTe}=xa(),{kHasBeenDecorated:JTe,kSchemaBody:QTe,kSchemaHeaders:ZTe,kSchemaParams:eSe,kSchemaQuerystring:OB,kSchemaController:Ow,kOptions:tSe,kRequestCacheValidateFns:Do,kRouteContext:lr,kPublicRouteContext:PB,kRequestOriginalUrl:Pw}=Or(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:rSe}=nn(),DB={body:QTe,headers:ZTe,params:eSe,querystring:OB,query:OB};function Dw(e,t,r,n,i,s){this.id=e,this[lr]=s,this.params=t,this.raw=r,this.query=n,this.log=i,this.body=void 0}Dw.props=[];function nSe(e){if(typeof e=="function")return e;if(e===!0)return function(){return!0};if(typeof e=="number")return function(t,r){return r<e};if(typeof e=="string"){let t=e.split(",").map(r=>r.trim());return W1.compile(t)}return W1.compile(e)}function iSe(e,t){return t?sSe(e,t):$B(e)}function $B(e){let t=e.props.slice();function r(n,i,s,a,o,u){this.id=n,this[lr]=u,this.params=i,this.raw=s,this.query=a,this.log=o,this.body=void 0;for(var l,c=0;c<t.length;c++)l=t[c],this[l.key]=l.value}return Object.setPrototypeOf(r.prototype,e.prototype),Object.setPrototypeOf(r,e),r.props=t,r.parent=e,r}function kB(e){let t=e.lastIndexOf(",");return t===-1?e.trim():e.slice(t+1).trim()}function sSe(e,t){let r=$B(e),n=nSe(t);return r[JTe]=!0,Object.defineProperties(r.prototype,{ip:{get(){return W1(this.raw,n)}},ips:{get(){return W1.all(this.raw,n)}},hostname:{get(){return this.ip!==void 0&&this.headers["x-forwarded-host"]?kB(this.headers["x-forwarded-host"]):this.headers.host||this.headers[":authority"]}},protocol:{get(){if(this.headers["x-forwarded-proto"])return kB(this.headers["x-forwarded-proto"]);if(this.socket)return this.socket.encrypted?"https":"http"}}}),r}Object.defineProperties(Dw.prototype,{server:{get(){return this[lr].server}},url:{get(){return this.raw.url}},originalUrl:{get(){return this[Pw]||(this[Pw]=this.raw.originalUrl||this.raw.url),this[Pw]}},method:{get(){return this.raw.method}},context:{get(){return GTe(),this[lr]}},routerPath:{get(){return YTe(),this[lr].config?.url}},routeOptions:{get(){let e=this[lr],t=e._parserOptions.limit,r=e.server.initialConfig.bodyLimit,n=e.server.hasConstraintStrategy("version")?this.raw.headers["accept-version"]:void 0,i={method:e.config?.method,url:e.config?.url,bodyLimit:t||r,attachValidation:e.attachValidation,logLevel:e.logLevel,exposeHeadRoute:e.exposeHeadRoute,prefixTrailingSlash:e.prefixTrailingSlash,handler:e.handler,version:n};return Object.defineProperties(i,{config:{get:()=>e.config},schema:{get:()=>e.schema}}),Object.freeze(i)}},routerMethod:{get(){return XTe(),this[lr].config?.method}},routeConfig:{get(){return KTe(),this[lr][PB]?.config}},routeSchema:{get(){return WTe(),this[lr][PB].schema}},is404:{get(){return this[lr].config?.url===void 0}},connection:{get(){return zTe.gte(process.versions.node,"13.0.0")&&VTe(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(e){this.additionalHeaders=e}},getValidationFunction:{value:function(e){if(typeof e=="string"){let t=DB[e];return this[lr][t]}else if(typeof e=="object")return this[lr][Do]?.get(e)}},compileValidationSchema:{value:function(e,t=null){let{method:r,url:n}=this;if(this[lr][Do]?.has(e))return this[lr][Do].get(e);let s=(this[lr].validatorCompiler||this.server[Ow].validatorCompiler||this.server[Ow].setupValidator(this.server[tSe])||this.server[Ow].validatorCompiler)({schema:e,method:r,url:n,httpPart:t});return this[lr][Do]==null&&(this[lr][Do]=new WeakMap),this[lr][Do].set(e,s),s}},validateInput:{value:function(e,t,r){r=typeof t=="string"?t:r;let n=r!=null&&typeof r=="string"&&DB[r],i;if(n&&(i=this[lr][n]),i==null&&(t==null||typeof t!="object"||Array.isArray(t)))throw new rSe(r);return i==null&&(this[lr][Do]?.has(t)?i=this[lr][Do].get(t):i=this.compileValidationSchema(t,r)),i(e)}}});kw.exports=Dw;kw.exports.buildRequest=iSe});var Y1=_((hnt,LB)=>{"use strict";var{kFourOhFourContext:aSe,kReplySerializerDefault:oSe,kSchemaErrorFormatter:uSe,kErrorHandler:cSe,kChildLoggerFactory:lSe,kOptions:fSe,kReply:dSe,kRequest:pSe,kBodyLimit:hSe,kLogLevel:mSe,kContentTypeParser:gSe,kRouteByFastify:ySe,kRequestCacheValidateFns:bSe,kReplyCacheSerializeFns:xSe,kPublicRouteContext:ESe}=Or();function _Se({schema:e,handler:t,config:r,requestIdLogLabel:n,childLoggerFactory:i,errorHandler:s,bodyLimit:a,logLevel:o,logSerializers:u,attachValidation:l,validatorCompiler:c,serializerCompiler:f,replySerializer:d,schemaErrorFormatter:h,exposeHeadRoute:p,prefixTrailingSlash:m,server:y,isFastify:g}){this.schema=e,this.handler=t,this.Reply=y[dSe],this.Request=y[pSe],this.contentTypeParser=y[gSe],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=r,this.errorHandler=s||y[cSe],this.requestIdLogLabel=n||y[fSe].requestIdLogLabel,this.childLoggerFactory=i||y[lSe],this._middie=null,this._parserOptions={limit:a||y[hSe]},this.exposeHeadRoute=p,this.prefixTrailingSlash=m,this.logLevel=o||y[mSe],this.logSerializers=u,this[aSe]=null,this.attachValidation=l,this[oSe]=d,this.schemaErrorFormatter=h||y[uSe]||TSe,this[ySe]=g,this[bSe]=null,this[xSe]=null,this.validatorCompiler=c||null,this.serializerCompiler=f||null,this[ESe]=vSe(this),this.server=y}function vSe(e){return Object.create(null,{schema:{enumerable:!0,get(){return e.schema}},config:{enumerable:!0,get(){return e.config}}})}function TSe(e,t){let r="",n=", ";for(var i=0;i!==e.length;++i){let s=e[i];r+=t+(s.instancePath||"")+" "+s.message+n}return new Error(r.slice(0,-n.length))}LB.exports=_Se});var $w=_((mnt,MB)=>{"use strict";MB.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var qw=_((gnt,jB)=>{"use strict";var{kReply:Lw,kRequest:Mw,kState:SSe,kHasBeenDecorated:wSe}=Or(),{FST_ERR_DEC_ALREADY_PRESENT:FB,FST_ERR_DEC_MISSING_DEPENDENCY:ASe,FST_ERR_DEC_AFTER_START:CSe,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:ISe}=nn(),{FSTDEP006:RSe}=xa();function NSe(e,t,r,n){if(Object.prototype.hasOwnProperty.call(e,t))throw new FB(t);Fw(e,t,n),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(e,t,{get:r.getter,set:r.setter}):e[t]=r}function BB(e,t,r,n){let i=e.prototype;if(Object.prototype.hasOwnProperty.call(i,t)||J1(e,t))throw new FB(t);e[wSe]=!0,Fw(e,t,n),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(i,t,{get:r.getter,set:r.setter}):typeof r=="function"?i[t]=r:e.props.push({key:t,value:r})}function qB(e,t){typeof t=="object"&&t&&!(typeof t.getter=="function"||typeof t.setter=="function")&&RSe(e)}function OSe(e,t,r){return Bw(this,e),NSe(this,e,t,r),this}function X1(e,t){return t?t in e||e.prototype&&t in e.prototype||J1(e,t):e in this}function J1(e,t){return e.props?e.props.find(({key:r})=>r===t):!1}function PSe(e){return e&&J1(this[Mw],e)?!0:X1(this[Mw].prototype,e)}function DSe(e){return e&&J1(this[Lw],e)?!0:X1(this[Lw].prototype,e)}function Fw(e,t,r){if(r!=null){if(!Array.isArray(r))throw new ISe(t);for(var n=0;n!==r.length;++n)if(!X1(e,r[n]))throw new ASe(r[n])}}function kSe(e,t,r){return Bw(this,e),qB(e,t),BB(this[Lw],e,t,r),this}function $Se(e,t,r){return Bw(this,e),qB(e,t),BB(this[Mw],e,t,r),this}function Bw(e,t){if(e[SSe].started)throw new CSe(t)}jB.exports={add:OSe,exist:X1,existRequest:PSe,existReply:DSe,dependencies:Fw,decorateReply:kSe,decorateRequest:$Se}});var HB=_(qs=>{"use strict";var jw=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=t,this.ttl=r}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(t){if(this.items.has(t)){let r=this.items.get(t);this.items.delete(t),r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;this.items.delete(t.key),this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(this.items.has(t))return this.items.get(t).expiry}get(t){if(this.items.has(t)){let r=this.items.get(t);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return r.value}}getMany(t){let r=[];for(var n=0;n<t.length;n++)r.push(this.get(t[n]));return r}keys(){return this.items.keys()}set(t,r){if(this.items.has(t)){let i=this.items.get(t);i.value=r,i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items.set(t,n),this.size===1?this.first=n:this.last.next=n,this.last=n}},Uw=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=t,this.ttl=r}get size(){return this.items.size}bumpLru(t){if(this.last===t)return;let r=this.last,n=t.next,i=t.prev;this.first===t&&(this.first=n),t.next=null,t.prev=r,r.next=t,i!==null&&(i.next=n),n!==null&&(n.prev=i),this.last=t}clear(){this.items=new Map,this.first=null,this.last=null}delete(t){if(this.items.has(t)){let r=this.items.get(t);this.items.delete(t),r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;this.items.delete(t.key),this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(this.items.has(t))return this.items.get(t).expiry}get(t){if(this.items.has(t)){let r=this.items.get(t);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return this.bumpLru(r),r.value}}getMany(t){let r=[];for(var n=0;n<t.length;n++)r.push(this.get(t[n]));return r}keys(){return this.items.keys()}set(t,r){if(this.items.has(t)){let i=this.items.get(t);i.value=r,i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items.set(t,n),this.size===1?this.first=n:this.last.next=n,this.last=n}},G0=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=t,this.ttl=r}bumpLru(t){if(this.last===t)return;let r=this.last,n=t.next,i=t.prev;this.first===t&&(this.first=n),t.next=null,t.prev=r,r.next=t,i!==null&&(i.next=n),n!==null&&(n.prev=i),this.last=t}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];delete this.items[t],this.size--,r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;delete this.items[t.key],--this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(Object.prototype.hasOwnProperty.call(this.items,t))return this.items[t].expiry}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return this.bumpLru(r),r.value}}getMany(t){let r=[];for(var n=0;n<t.length;n++)r.push(this.get(t[n]));return r}keys(){return Object.keys(this.items)}set(t,r){if(Object.prototype.hasOwnProperty.call(this.items,t)){let i=this.items[t];i.value=r,i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==i&&this.bumpLru(i);return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items[t]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}},Q1=class{constructor(){this.records={}}initForCache(t,r){this.records[t]={[r]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(t){for(let r of Object.keys(this.records[t]))this.records[t][r]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function UB(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}var Hw=class{constructor(t,r,n){this.cacheId=t,this.statisticTtlInHours=r,this.collectionStart=new Date,this.currentTimeStamp=UB(this.collectionStart),this.records=n||new Q1,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(t){this.archiveIfNeeded(),this.currentRecord.cacheSize=t}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=UB(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},Z1=class extends G0{constructor(t,r,n,i,s){if(super(t||1e3,r||0),!n)throw new Error("Cache id is mandatory");this.hitStatistics=new Hw(n,s!==void 0?s:24,i)}getStatistics(){return this.hitStatistics.getStatistics()}set(t,r){super.set(t,r),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(t,r=!1){super.delete(t),r||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(r),r.value||this.hitStatistics.addFalsyHit(),(r.value===void 0||r.value===null||r.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),r.value}this.hitStatistics.addMiss()}},ey=class{constructor(t=1e3,r=0){if(isNaN(t)||t<0)throw new Error("Invalid max value");if(isNaN(r)||r<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=t,this.ttl=r}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];delete this.items[t],this.size--,r.prev!==null&&(r.prev.next=r.next),r.next!==null&&(r.next.prev=r.prev),this.first===r&&(this.first=r.next),this.last===r&&(this.last=r.prev)}}deleteMany(t){for(var r=0;r<t.length;r++)this.delete(t[r])}evict(){if(this.size>0){let t=this.first;delete this.items[t.key],--this.size===0?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}}expiresAt(t){if(Object.prototype.hasOwnProperty.call(this.items,t))return this.items[t].expiry}get(t){if(Object.prototype.hasOwnProperty.call(this.items,t)){let r=this.items[t];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(t);return}return r.value}}getMany(t){let r=[];for(var n=0;n<t.length;n++)r.push(this.get(t[n]));return r}keys(){return Object.keys(this.items)}set(t,r){if(Object.prototype.hasOwnProperty.call(this.items,t)){let i=this.items[t];i.value=r,i.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let n={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:r};this.items[t]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}};qs.Fifo=ey;qs.FifoMap=jw;qs.FifoObject=ey;qs.HitStatisticsRecord=Q1;qs.Lru=G0;qs.LruHitStatistics=Z1;qs.LruMap=Uw;qs.LruObject=G0;qs.LruObjectHitStatistics=Z1});var WB=_((bnt,W0)=>{"use strict";var ny=function(){};ny.prototype=Object.create(null);var ty=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,ry=/\\([\v\u0020-\u00ff])/gu,zB=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,uc={type:"",parameters:new ny};Object.freeze(uc.parameters);Object.freeze(uc);function VB(e){if(typeof e!="string")throw new TypeError("argument header is required and must be a string");let t=e.indexOf(";"),r=t!==-1?e.slice(0,t).trim():e.trim();if(zB.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new ny};if(t===-1)return n;let i,s,a;for(ty.lastIndex=t;s=ty.exec(e);){if(s.index!==t)throw new TypeError("invalid parameter format");t+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),ry.test(a)&&(a=a.replace(ry,"$1"))),n.parameters[i]=a}if(t!==e.length)throw new TypeError("invalid parameter format");return n}function GB(e){if(typeof e!="string")return uc;let t=e.indexOf(";"),r=t!==-1?e.slice(0,t).trim():e.trim();if(zB.test(r)===!1)return uc;let n={type:r.toLowerCase(),parameters:new ny};if(t===-1)return n;let i,s,a;for(ty.lastIndex=t;s=ty.exec(e);){if(s.index!==t)return uc;t+=s[0].length,i=s[1].toLowerCase(),a=s[2],a[0]==='"'&&(a=a.slice(1,a.length-1),ry.test(a)&&(a=a.replace(ry,"$1"))),n.parameters[i]=a}return t!==e.length?uc:n}W0.exports.default={parse:VB,safeParse:GB};W0.exports.parse=VB;W0.exports.safeParse=GB;W0.exports.defaultContentType=uc});var QB=_((xnt,Gl)=>{"use strict";var LSe=typeof Buffer<"u",KB=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,YB=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function XB(e,t,r){r==null&&t!==null&&typeof t=="object"&&(r=t,t=void 0),LSe&&Buffer.isBuffer(e)&&(e=e.toString()),e&&e.charCodeAt(0)===65279&&(e=e.slice(1));let n=JSON.parse(e,t);if(n===null||typeof n!="object")return n;let i=r&&r.protoAction||"error",s=r&&r.constructorAction||"error";if(i==="ignore"&&s==="ignore")return n;if(i!=="ignore"&&s!=="ignore"){if(KB.test(e)===!1&&YB.test(e)===!1)return n}else if(i!=="ignore"&&s==="ignore"){if(KB.test(e)===!1)return n}else if(YB.test(e)===!1)return n;return JB(n,{protoAction:i,constructorAction:s,safe:r&&r.safe})}function JB(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];for(;i.length;){let s=i;i=[];for(let a of s){if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(a,"__proto__")){if(n===!0)return null;if(t==="error")throw new SyntaxError("Object contains forbidden prototype property");delete a.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(a,"constructor")&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype")){if(n===!0)return null;if(r==="error")throw new SyntaxError("Object contains forbidden prototype property");delete a.constructor}for(let o in a){let u=a[o];u&&typeof u=="object"&&i.push(u)}}}return e}function zw(e,t,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return XB(e,t,r)}finally{Error.stackTraceLimit=n}}function MSe(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return XB(e,t,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=r}}Gl.exports=zw;Gl.exports.default=zw;Gl.exports.parse=zw;Gl.exports.safeParse=MSe;Gl.exports.scan=JB});var Yw=_((Ent,Y0)=>{"use strict";var{AsyncResource:FSe}=require("node:async_hooks"),{Fifo:eq}=HB(),{safeParse:tq,defaultContentType:BSe}=WB(),qSe=QB(),{kDefaultJsonParse:K0,kContentTypeParser:Wl,kBodyLimit:jSe,kRequestPayloadStream:rq,kState:Gw,kTestInternals:USe,kReplyIsError:nq,kRouteContext:HSe}=Or(),{FST_ERR_CTP_INVALID_TYPE:iq,FST_ERR_CTP_EMPTY_TYPE:zSe,FST_ERR_CTP_ALREADY_PRESENT:VSe,FST_ERR_CTP_INVALID_HANDLER:GSe,FST_ERR_CTP_INVALID_PARSE_TYPE:WSe,FST_ERR_CTP_BODY_TOO_LARGE:ZB,FST_ERR_CTP_INVALID_MEDIA_TYPE:KSe,FST_ERR_CTP_INVALID_CONTENT_LENGTH:YSe,FST_ERR_CTP_EMPTY_JSON_BODY:XSe,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Ww}=nn();function Ia(e,t,r){this[K0]=aq(t,r),this.customParsers=new Map,this.customParsers.set("application/json",new Vw(!0,!1,e,this[K0])),this.customParsers.set("text/plain",new Vw(!0,!1,e,Kw)),this.parserList=[new iy("application/json"),new iy("text/plain")],this.parserRegExpList=[],this.cache=new eq(100)}Ia.prototype.add=function(e,t,r){let n=typeof e=="string";if(!n&&!(e instanceof RegExp))throw new iq;if(n&&e.length===0)throw new zSe;if(typeof r!="function")throw new GSe;if(this.existingParser(e))throw new VSe(e);if(t.parseAs!==void 0&&t.parseAs!=="string"&&t.parseAs!=="buffer")throw new WSe(t.parseAs);let i=new Vw(t.parseAs==="string",t.parseAs==="buffer",t.bodyLimit,r);n&&e==="*"?this.customParsers.set("",i):(n?this.parserList.unshift(new iy(e)):(e.isEssence=e.source.indexOf(";")===-1,this.parserRegExpList.unshift(e)),this.customParsers.set(e.toString(),i))};Ia.prototype.hasParser=function(e){return this.customParsers.has(typeof e=="string"?e:e.toString())};Ia.prototype.existingParser=function(e){return e==="application/json"&&this.customParsers.has(e)?this.customParsers.get(e).fn!==this[K0]:e==="text/plain"&&this.customParsers.has(e)?this.customParsers.get(e).fn!==Kw:this.hasParser(e)};Ia.prototype.getParser=function(e){if(this.hasParser(e))return this.customParsers.get(e);let t=this.cache.get(e);if(t!==void 0)return t;let r=tq(e);if(r===BSe)return this.customParsers.get("");for(var n=0;n!==this.parserList.length;++n){let s=this.parserList[n];if(rwe(r,s)){let a=this.customParsers.get(s.name);return this.cache.set(e,a),a}}for(var i=0;i!==this.parserRegExpList.length;++i){let s=this.parserRegExpList[i];if(nwe(e,r.type,s)){let a=this.customParsers.get(s.toString());return this.cache.set(e,a),a}}return this.customParsers.get("")};Ia.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new eq(100)};Ia.prototype.remove=function(e){if(!(typeof e=="string"||e instanceof RegExp))throw new iq;let t=this.customParsers.delete(e.toString()),r=typeof e=="string"?this.parserList:this.parserRegExpList,n=r.findIndex(i=>i.toString()===e.toString());return n>-1&&r.splice(n,1),t||n>-1};Ia.prototype.run=function(e,t,r,n){let i=this.getParser(e);if(i===void 0){r.is404?t(r,n):n.send(new KSe(e||void 0));return}let s=new FSe("content-type-parser:run",r);if(i.asString===!0||i.asBuffer===!0)sq(r,n,n[HSe]._parserOptions,i,a);else{let o=i.fn(r,r[rq],a);o&&typeof o.then=="function"&&o.then(u=>a(null,u),a)}function a(o,u){s.runInAsyncScope(()=>{s.emitDestroy(),o?(n[nq]=!0,n.send(o)):(r.body=u,t(r,n))})}};function sq(e,t,r,n,i){let s=n.asString,a=r.limit===null?n.bodyLimit:r.limit,o=e.headers["content-length"]===void 0?NaN:Number(e.headers["content-length"]);if(o>a){t.header("connection","close"),t.send(new ZB);return}let u=0,l=s===!0?"":[],c=e[rq]||e.raw;s===!0&&c.setEncoding("utf8"),c.on("data",f),c.on("end",d),c.on("error",d),c.resume();function f(h){u+=h.length;let{receivedEncodedLength:p=0}=c;if(u>a||p>a){c.removeListener("data",f),c.removeListener("end",d),c.removeListener("error",d),t.send(new ZB);return}s===!0?l+=h:l.push(h)}function d(h){if(c.removeListener("data",f),c.removeListener("end",d),c.removeListener("error",d),h!==void 0){typeof h.statusCode=="number"&&h.statusCode>=400||(h.statusCode=400),t[nq]=!0,t.code(h.statusCode).send(h);return}if(s===!0&&(u=Buffer.byteLength(l)),!Number.isNaN(o)&&(c.receivedEncodedLength||u)!==o){t.header("connection","close"),t.send(new YSe);return}s===!1&&(l=Buffer.concat(l));let p=n.fn(e,l,i);p&&typeof p.then=="function"&&p.then(m=>i(null,m),i)}}function aq(e,t){return r;function r(n,i,s){if(i===""||i==null||Buffer.isBuffer(i)&&i.length===0)return s(new XSe,void 0);let a;try{a=qSe.parse(i,{protoAction:e,constructorAction:t})}catch(o){return o.statusCode=400,s(o,void 0)}s(null,a)}}function Kw(e,t,r){r(null,t)}function Vw(e,t,r,n){this.asString=e,this.asBuffer=t,this.bodyLimit=r,this.fn=n}function JSe(e){let t=new Ia;return t[K0]=e[K0],t.customParsers=new Map(e.customParsers.entries()),t.parserList=e.parserList.slice(),t.parserRegExpList=e.parserRegExpList.slice(),t}function QSe(e,t,r){if(this[Gw].started)throw new Ww("addContentTypeParser");return typeof t=="function"&&(r=t,t={}),t||(t={}),t.bodyLimit||(t.bodyLimit=this[jSe]),Array.isArray(e)?e.forEach(n=>this[Wl].add(n,t,r)):this[Wl].add(e,t,r),this}function ZSe(e){return this[Wl].hasParser(e)}function ewe(e){if(this[Gw].started)throw new Ww("removeContentTypeParser");if(Array.isArray(e))for(let t of e)this[Wl].remove(t);else this[Wl].remove(e)}function twe(){if(this[Gw].started)throw new Ww("removeAllContentTypeParsers");this[Wl].removeAll()}function rwe(e,t){if(t.isEssence)return e.type.indexOf(t)!==-1;if(e.type.indexOf(t.type)===-1)return!1;for(let r of t.parameterKeys)if(!(r in e.parameters)||e.parameters[r]!==t.parameters[r])return!1;return!0}function nwe(e,t,r){return r.isEssence?r.test(t):r.test(e)}function iy(e){this.name=e;let t=tq(e);if(this.isEssence=e.indexOf(";")===-1,this.isEssence===!1&&t.type===""){let r=e.split(";",1)[0];this.type=r===""?e:r}else this.type=t.type;this.parameters=t.parameters,this.parameterKeys=Object.keys(t.parameters)}iy.prototype.toString=function(){return this.name};Y0.exports=Ia;Y0.exports.helpers={buildContentTypeParser:JSe,addContentTypeParser:QSe,hasContentTypeParser:ZSe,removeContentTypeParser:ewe,removeAllContentTypeParsers:twe};Y0.exports.defaultParsers={getDefaultJsonParser:aq,defaultTextParser:Kw};Y0.exports[USe]={rawBody:sq}});var lq=_((_nt,cq)=>{"use strict";var oq=Si(),iwe=Symbol.for("json-schema-ref"),Xw=class{#e;#t;#n;#i;#s;constructor(t={}){this.#e={},this.#t={},this.#n=t.insertRefSymbol??!1,this.#i=t.allowEqualDuplicates??!0,this.#s=t.cloneSchemaWithoutRefs??!1}addSchema(t,r){t.$id!==void 0&&t.$id.charAt(0)!=="#"?r=t.$id:this.#c(t,r),this.#o(t,r)}getSchema(t,r="#"){let n=this.#e[t];if(n===void 0)throw new Error(`Cannot resolve ref "${t}${r}". Schema with id "${t}" is not found.`);return n.anchors[r]!==void 0?n.anchors[r]:uq(n.schema,r)}hasSchema(t){return this.#e[t]!==void 0}getSchemaRefs(t){let r=this.#e[t];if(r===void 0)throw new Error(`Schema with id "${t}" is not found.`);return r.refs}getSchemaDependencies(t,r={}){let n=this.#e[t];for(let i of n.refs){let s=i.schemaId;r[s]===void 0&&(r[s]=this.getSchema(s),this.getSchemaDependencies(s,r))}return r}derefSchema(t){if(this.#t[t]!==void 0)return;let r=this.#e[t];if(r===void 0)throw new Error(`Schema with id "${t}" is not found.`);!this.#s&&r.refs.length===0&&(this.#t[t]={schema:r.schema,anchors:r.anchors});let n=[];this.#r(r.schema,t,n);let i=this.getSchemaDependencies(t);for(let s in i){let a=i[s];this.#r(a,s,n)}for(let s of n){let{refSchemaId:a,refJsonPointer:o}=this.#a(s.ref,s.sourceSchemaId),u=this.getDerefSchema(a,o);if(u===null)throw new Error(`Cannot resolve ref "${s.ref}". Ref "${o}" is not found in schema "${a}".`);s.targetSchema=u,s.targetSchemaId=a}for(let s of n)this.#u(s,n)}getDerefSchema(t,r="#"){let n=this.#t[t];return n===void 0&&(this.derefSchema(t),n=this.#t[t]),n.anchors[r]!==void 0?n.anchors[r]:uq(n.schema,r)}#a(t,r){let n=t.indexOf("#");return n===-1?{refSchemaId:t,refJsonPointer:"#"}:n===0?{refSchemaId:r,refJsonPointer:t}:{refSchemaId:t.slice(0,n),refJsonPointer:t.slice(n)}}#o(t,r){let n=t.$id;n!==void 0&&typeof n=="string"&&(n.charAt(0)==="#"?this.#l(t,r,n):(this.#c(t,n),r=n));let i=t.$ref;if(i!==void 0&&typeof i=="string"){let{refSchemaId:s,refJsonPointer:a}=this.#a(i,r);this.#e[r].refs.push({schemaId:s,jsonPointer:a})}for(let s in t)typeof t[s]=="object"&&t[s]!==null&&this.#o(t[s],r)}#r(t,r,n=[]){let i=Array.isArray(t)?[...t]:{...t},s=i.$id;s!==void 0&&typeof s=="string"&&(s.charAt(0)==="#"?this.#d(i,r,s):(this.#f(i,s),r=s)),i.$ref!==void 0&&n.push({ref:i.$ref,sourceSchemaId:r,sourceSchema:i});for(let a in i){let o=i[a];typeof o=="object"&&o!==null&&(i[a]=this.#r(o,r,n))}return i}#u(t,r){let{sourceSchema:n,targetSchema:i}=t;if(n.$ref){if(this.#n&&(n[iwe]=n.$ref),delete n.$ref,i.$ref){let s=r.find(a=>a.sourceSchema===i);this.#u(s,r)}for(let s in i)if(s!=="$id"){if(n[s]!==void 0){if(oq(n[s],i[s]))continue;throw new Error(`Cannot resolve ref "${t.ref}". Property "${s}" is already exist in schema "${t.sourceSchemaId}".`)}n[s]=i[s]}t.isResolved=!0}}#c(t,r){let n=this.#e[r];if(n!==void 0){if(this.#i&&oq(t,n.schema))return;throw new Error(`There is already another schema with id "${r}".`)}this.#e[r]={schema:t,anchors:{},refs:[]}}#l(t,r,n){let{anchors:i}=this.#e[r];if(i[n]!==void 0)throw new Error(`There is already another anchor "${n}" in a schema "${r}".`);i[n]=t}#f(t,r){this.#t[r]===void 0&&(this.#t[r]={schema:t,anchors:{}})}#d(t,r,n){let{anchors:i}=this.#t[r];i[n]=t}};function uq(e,t){let r=t.split("/"),n=e;for(let i of r)if(!(i===""||i==="#")){if(typeof n!="object"||n===null)return null;n=n[i]}return n??null}cq.exports={RefResolver:Xw}});var dq=_((vnt,fq)=>{"use strict";var Jw=class e{constructor(t,r,n="#"){this.schema=t,this.schemaId=r,this.jsonPointer=n}getPropertyLocation(t){return new e(this.schema[t],this.schemaId,this.jsonPointer+"/"+t)}getSchemaRef(){return this.schemaId+this.jsonPointer}};fq.exports=Jw});var yq=_((Tnt,Zw)=>{"use strict";Zw.exports=le;Zw.exports.default=le;var swe={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},pq={enum:["array","boolean","integer","null","number","object","string"]},hq=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,awe=T1().fullFormats.uri,mq=T1().fullFormats.regex;function Ri(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:i=e}={}){let s=null,a=0,o=a;return typeof e=="number"&&!(e%1)&&!isNaN(e)&&isFinite(e)?a===o&&typeof e=="number"&&isFinite(e)&&(e<0||isNaN(e))?(Ri.errors=[{instancePath:t,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(Ri.errors=s,a===0):(Ri.errors=[{instancePath:t,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var Qw={validate:le};function Dn(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:i=e}={}){let s=null,a=0;if(a===0)if(Array.isArray(e)){if(e.length<1)return Dn.errors=[{instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var o=!0;let u=e.length;for(let l=0;l<u;l++){let c=a;Qw.validate(e[l],{instancePath:t+"/"+l,parentData:e,parentDataProperty:l,rootData:i})||(s=s===null?Qw.validate.errors:s.concat(Qw.validate.errors),a=s.length);var o=c===a;if(!o)break}}}else return Dn.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;return Dn.errors=s,a===0}var gq=C0().default;function le(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:i=e}={}){let s=null,a=0;if(!(e&&typeof e=="object"&&!Array.isArray(e))&&typeof e!="boolean")return le.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:swe.type},message:"must be object,boolean"}],!1;if(a===0&&e&&typeof e=="object"&&!Array.isArray(e)){if(e.$id!==void 0){let E=e.$id,x=a;if(a===x&&a===x)if(typeof E=="string"){if(!hq.test(E))return le.errors=[{instancePath:t+"/$id",schemaPath:"#/properties/%24id/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'}],!1}else return le.errors=[{instancePath:t+"/$id",schemaPath:"#/properties/%24id/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===a}else var o=!0;if(o){if(e.$schema!==void 0){let E=e.$schema,x=a;if(a===x&&a===x)if(typeof E=="string"){if(!awe(E))return le.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'}],!1}else return le.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===a}else var o=!0;if(o){if(e.$ref!==void 0){let E=e.$ref,x=a;if(a===x&&a===x)if(typeof E=="string"){if(!hq.test(E))return le.errors=[{instancePath:t+"/$ref",schemaPath:"#/properties/%24ref/format",keyword:"format",params:{format:"uri-reference"},message:'must match format "uri-reference"'}],!1}else return le.errors=[{instancePath:t+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===a}else var o=!0;if(o){if(e.$comment!==void 0){let E=a;if(typeof e.$comment!="string")return le.errors=[{instancePath:t+"/$comment",schemaPath:"#/properties/%24comment/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.title!==void 0){let E=a;if(typeof e.title!="string")return le.errors=[{instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.description!==void 0){let E=a;if(typeof e.description!="string")return le.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.readOnly!==void 0){let E=a;if(typeof e.readOnly!="boolean")return le.errors=[{instancePath:t+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=E===a}else var o=!0;if(o){if(e.examples!==void 0){let E=a;if(a===E&&!Array.isArray(e.examples))return le.errors=[{instancePath:t+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=E===a}else var o=!0;if(o){if(e.multipleOf!==void 0){let E=e.multipleOf,x=a;if(a===x)if(typeof E=="number"&&isFinite(E)){if(E<=0||isNaN(E))return le.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"}],!1}else return le.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=x===a}else var o=!0;if(o){if(e.maximum!==void 0){let E=e.maximum,x=a;if(!(typeof E=="number"&&isFinite(E)))return le.errors=[{instancePath:t+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=x===a}else var o=!0;if(o){if(e.exclusiveMaximum!==void 0){let E=e.exclusiveMaximum,x=a;if(!(typeof E=="number"&&isFinite(E)))return le.errors=[{instancePath:t+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=x===a}else var o=!0;if(o){if(e.minimum!==void 0){let E=e.minimum,x=a;if(!(typeof E=="number"&&isFinite(E)))return le.errors=[{instancePath:t+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=x===a}else var o=!0;if(o){if(e.exclusiveMinimum!==void 0){let E=e.exclusiveMinimum,x=a;if(!(typeof E=="number"&&isFinite(E)))return le.errors=[{instancePath:t+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=x===a}else var o=!0;if(o){if(e.maxLength!==void 0){let E=e.maxLength,x=a,T=a;if(!(typeof E=="number"&&!(E%1)&&!isNaN(E)&&isFinite(E)))return le.errors=[{instancePath:t+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(a===T&&typeof E=="number"&&isFinite(E)&&(E<0||isNaN(E)))return le.errors=[{instancePath:t+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var o=x===a}else var o=!0;if(o){if(e.minLength!==void 0){let E=a;Ri(e.minLength,{instancePath:t+"/minLength",parentData:e,parentDataProperty:"minLength",rootData:i})||(s=s===null?Ri.errors:s.concat(Ri.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.pattern!==void 0){let E=e.pattern,x=a;if(a===x&&a===x)if(typeof E=="string"){if(!mq(E))return le.errors=[{instancePath:t+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return le.errors=[{instancePath:t+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===a}else var o=!0;if(o){if(e.additionalItems!==void 0){let E=a;le(e.additionalItems,{instancePath:t+"/additionalItems",parentData:e,parentDataProperty:"additionalItems",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.items!==void 0){let E=e.items,x=a,T=a,S=!1,w=a;le(E,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var u=w===a;if(S=S||u,!S){let C=a;Dn(E,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i})||(s=s===null?Dn.errors:s.concat(Dn.errors),a=s.length);var u=C===a;S=S||u}if(S)a=T,s!==null&&(T?s.length=T:s=null);else{let C={instancePath:t+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[C]:s.push(C),a++,le.errors=s,!1}var o=x===a}else var o=!0;if(o){if(e.maxItems!==void 0){let E=e.maxItems,x=a,T=a;if(!(typeof E=="number"&&!(E%1)&&!isNaN(E)&&isFinite(E)))return le.errors=[{instancePath:t+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(a===T&&typeof E=="number"&&isFinite(E)&&(E<0||isNaN(E)))return le.errors=[{instancePath:t+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var o=x===a}else var o=!0;if(o){if(e.minItems!==void 0){let E=a;Ri(e.minItems,{instancePath:t+"/minItems",parentData:e,parentDataProperty:"minItems",rootData:i})||(s=s===null?Ri.errors:s.concat(Ri.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.uniqueItems!==void 0){let E=a;if(typeof e.uniqueItems!="boolean")return le.errors=[{instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=E===a}else var o=!0;if(o){if(e.contains!==void 0){let E=a;le(e.contains,{instancePath:t+"/contains",parentData:e,parentDataProperty:"contains",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.maxProperties!==void 0){let E=e.maxProperties,x=a,T=a;if(!(typeof E=="number"&&!(E%1)&&!isNaN(E)&&isFinite(E)))return le.errors=[{instancePath:t+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(a===T&&typeof E=="number"&&isFinite(E)&&(E<0||isNaN(E)))return le.errors=[{instancePath:t+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var o=x===a}else var o=!0;if(o){if(e.minProperties!==void 0){let E=a;Ri(e.minProperties,{instancePath:t+"/minProperties",parentData:e,parentDataProperty:"minProperties",rootData:i})||(s=s===null?Ri.errors:s.concat(Ri.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.required!==void 0){let E=e.required,x=a;if(a===a)if(Array.isArray(E)){var l=!0;let w=E.length;for(let A=0;A<w;A++){let C=a;if(typeof E[A]!="string")return le.errors=[{instancePath:t+"/required/"+A,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=C===a;if(!l)break}if(l){let A=E.length,C;if(A>1){let I={};for(;A--;){let M=E[A];if(typeof M=="string"){if(typeof I[M]=="number"){return C=I[M],le.errors=[{instancePath:t+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:A,j:C},message:"must NOT have duplicate items (items ## "+C+" and "+A+" are identical)"}],!1;break}I[M]=A}}}}}else return le.errors=[{instancePath:t+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=x===a}else var o=!0;if(o){if(e.additionalProperties!==void 0){let E=a;le(e.additionalProperties,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.definitions!==void 0){let E=e.definitions,x=a;if(a===x)if(E&&typeof E=="object"&&!Array.isArray(E))for(let S in E){let w=a;le(E[S],{instancePath:t+"/definitions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:E,parentDataProperty:S,rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var c=w===a;if(!c)break}else return le.errors=[{instancePath:t+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=x===a}else var o=!0;if(o){if(e.properties!==void 0){let E=e.properties,x=a;if(a===x)if(E&&typeof E=="object"&&!Array.isArray(E))for(let S in E){let w=a;le(E[S],{instancePath:t+"/properties/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:E,parentDataProperty:S,rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var f=w===a;if(!f)break}else return le.errors=[{instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=x===a}else var o=!0;if(o){if(e.patternProperties!==void 0){let E=e.patternProperties,x=a;if(a===x)if(E&&typeof E=="object"&&!Array.isArray(E)){for(let S in E){let w=a;if(a===w&&typeof S=="string"&&!mq(S)){let A={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:S};s===null?s=[A]:s.push(A),a++}var d=w===a;if(!d){let A={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:S},message:"property name must be valid"};return s===null?s=[A]:s.push(A),a++,le.errors=s,!1;break}}if(d)for(let S in E){let w=a;le(E[S],{instancePath:t+"/patternProperties/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:E,parentDataProperty:S,rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var h=w===a;if(!h)break}}else return le.errors=[{instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=x===a}else var o=!0;if(o){if(e.dependencies!==void 0){let E=e.dependencies,x=a;if(a===x)if(E&&typeof E=="object"&&!Array.isArray(E))for(let S in E){let w=E[S],A=a,C=a,I=!1,M=a;le(w,{instancePath:t+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:E,parentDataProperty:S,rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var p=M===a;if(I=I||p,!I){let R=a;if(a===a)if(Array.isArray(w)){var m=!0;let K=w.length;for(let z=0;z<K;z++){let G=a;if(typeof w[z]!="string"){let j={instancePath:t+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+z,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),a++}var m=G===a;if(!m)break}if(m){let z=w.length,G;if(z>1){let te={};for(;z--;){let j=w[z];if(typeof j=="string"){if(typeof te[j]=="number"){G=te[j];let ee={instancePath:t+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:z,j:G},message:"must NOT have duplicate items (items ## "+G+" and "+z+" are identical)"};s===null?s=[ee]:s.push(ee),a++;break}te[j]=z}}}}}else{let K={instancePath:t+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[K]:s.push(K),a++}var p=R===a;I=I||p}if(I)a=C,s!==null&&(C?s.length=C:s=null);else{let R={instancePath:t+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[R]:s.push(R),a++,le.errors=s,!1}var y=A===a;if(!y)break}else return le.errors=[{instancePath:t+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=x===a}else var o=!0;if(o){if(e.propertyNames!==void 0){let E=a;le(e.propertyNames,{instancePath:t+"/propertyNames",parentData:e,parentDataProperty:"propertyNames",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.enum!==void 0){let E=e.enum,x=a;if(a===x)if(Array.isArray(E)){if(E.length<1)return le.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let S=E.length,w;if(S>1){e:for(;S--;)for(w=S;w--;)if(gq(E[S],E[w])){return le.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:S,j:w},message:"must NOT have duplicate items (items ## "+w+" and "+S+" are identical)"}],!1;break e}}}}else return le.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=x===a}else var o=!0;if(o){if(e.type!==void 0){let E=e.type,x=a,T=a,S=!1,w=a;if(!(E==="array"||E==="boolean"||E==="integer"||E==="null"||E==="number"||E==="object"||E==="string")){let C={instancePath:t+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:pq.enum},message:"must be equal to one of the allowed values"};s===null?s=[C]:s.push(C),a++}var g=w===a;if(S=S||g,!S){let C=a;if(a===C)if(Array.isArray(E))if(E.length<1){let M={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};s===null?s=[M]:s.push(M),a++}else{var v=!0;let M=E.length;for(let R=0;R<M;R++){let P=E[R],k=a;if(!(P==="array"||P==="boolean"||P==="integer"||P==="null"||P==="number"||P==="object"||P==="string")){let z={instancePath:t+"/type/"+R,schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:pq.enum},message:"must be equal to one of the allowed values"};s===null?s=[z]:s.push(z),a++}var v=k===a;if(!v)break}if(v){let R=E.length,P;if(R>1){e:for(;R--;)for(P=R;P--;)if(gq(E[R],E[P])){let k={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:R,j:P},message:"must NOT have duplicate items (items ## "+P+" and "+R+" are identical)"};s===null?s=[k]:s.push(k),a++;break e}}}}else{let M={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[M]:s.push(M),a++}var g=C===a;S=S||g}if(S)a=T,s!==null&&(T?s.length=T:s=null);else{let C={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[C]:s.push(C),a++,le.errors=s,!1}var o=x===a}else var o=!0;if(o){if(e.format!==void 0){let E=a;if(typeof e.format!="string")return le.errors=[{instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.contentMediaType!==void 0){let E=a;if(typeof e.contentMediaType!="string")return le.errors=[{instancePath:t+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.contentEncoding!==void 0){let E=a;if(typeof e.contentEncoding!="string")return le.errors=[{instancePath:t+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===a}else var o=!0;if(o){if(e.if!==void 0){let E=a;le(e.if,{instancePath:t+"/if",parentData:e,parentDataProperty:"if",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.then!==void 0){let E=a;le(e.then,{instancePath:t+"/then",parentData:e,parentDataProperty:"then",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.else!==void 0){let E=a;le(e.else,{instancePath:t+"/else",parentData:e,parentDataProperty:"else",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.allOf!==void 0){let E=a;Dn(e.allOf,{instancePath:t+"/allOf",parentData:e,parentDataProperty:"allOf",rootData:i})||(s=s===null?Dn.errors:s.concat(Dn.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.anyOf!==void 0){let E=a;Dn(e.anyOf,{instancePath:t+"/anyOf",parentData:e,parentDataProperty:"anyOf",rootData:i})||(s=s===null?Dn.errors:s.concat(Dn.errors),a=s.length);var o=E===a}else var o=!0;if(o){if(e.oneOf!==void 0){let E=a;Dn(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:i})||(s=s===null?Dn.errors:s.concat(Dn.errors),a=s.length);var o=E===a}else var o=!0;if(o)if(e.not!==void 0){let E=a;le(e.not,{instancePath:t+"/not",parentData:e,parentDataProperty:"not",rootData:i})||(s=s===null?le.errors:s.concat(le.errors),a=s.length);var o=E===a}else var o=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return le.errors=s,a===0}});var nA=_((Snt,bq)=>{"use strict";var eA=class extends Error{constructor(t,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Failed to merge "${t}" keyword schemas.`,this.schemas=r}},tA=class extends Error{constructor(t,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Resolver for "${t}" keyword not found.`,this.schemas=r}},rA=class extends Error{constructor(t){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Invalid "onConflict" option: "${t}".`}};bq.exports={MergeError:eA,ResolverNotFoundError:tA,InvalidOnConflictOptionError:rA}});var _q=_((wnt,Eq)=>{"use strict";var owe=Si(),{MergeError:iA}=nA();function xq(e){let t=e[0];for(let r=1;r<e.length;r++)t=t.filter(n=>e[r].includes(n));return t}function uwe(e,t,r){let n=xq(t);if(n.length===0)throw new iA(e,t);r[e]=n}function cwe(e,t,r){for(let i=0;i<t.length;i++)Array.isArray(t[i])||(t[i]=[t[i]]);let n=xq(t);if(n.length===0)throw new iA(e,t);n.length===1?r[e]=n[0]:r[e]=n}function lwe(e,t,r){let n=[];for(let i of t)for(let s of i)n.includes(s)||n.push(s);r[e]=n}function fwe(e,t,r){r[e]=Math.min(...t)}function dwe(e,t,r){r[e]=Math.max(...t)}function pwe(e,t,r){let n=(o,u)=>u?n(u,o%u):o,i=(o,u)=>o*u/n(o,u),s=1;for(let o of t)for(;o*s%1!==0;)s*=10;let a=t[0]*s;for(let o of t)a=i(a,o*s);r[e]=a/s}function hwe(e,t,r){let n=t[0];for(let i=1;i<t.length;i++)if(!owe(t[i],n))throw new iA(e,t);r[e]=n}function mwe(){}function gwe(e,t,r){for(let n of t)if(n===!1){r[e]=!1;return}r[e]=!0}function ywe(e,t,r){for(let n of t)if(n===!0){r[e]=!0;return}r[e]=!1}Eq.exports={arraysIntersection:uwe,hybridArraysIntersection:cwe,arraysUnion:lwe,minNumber:fwe,maxNumber:dwe,commonMultiple:pwe,allEqual:hwe,booleanAnd:gwe,booleanOr:ywe,skip:mwe}});var Cq=_((Ant,Aq)=>{"use strict";var bwe=Si(),rr=_q(),oy=nA(),Sq={$id:rr.skip,type:rr.hybridArraysIntersection,enum:rr.arraysIntersection,minLength:rr.maxNumber,maxLength:rr.minNumber,minimum:rr.maxNumber,maximum:rr.minNumber,multipleOf:rr.commonMultiple,exclusiveMinimum:rr.maxNumber,exclusiveMaximum:rr.minNumber,minItems:rr.maxNumber,maxItems:rr.minNumber,maxProperties:rr.minNumber,minProperties:rr.maxNumber,const:rr.allEqual,default:rr.allEqual,format:rr.allEqual,required:rr.arraysUnion,properties:Swe,patternProperties:ay,additionalProperties:sy,items:_we,additionalItems:vwe,definitions:ay,$defs:ay,nullable:rr.booleanAnd,oneOf:vq,anyOf:vq,allOf:rr.arraysUnion,not:sy,if:wwe,then:rr.skip,else:rr.skip,dependencies:Tq,dependentRequired:Tq,dependentSchemas:ay,propertyNames:sy,uniqueItems:rr.booleanOr,contains:sy};function sy(e,t,r,n,i){r[e]=ss(t,i)}function xwe(e){let t=[[]];for(let r of e){let n=[];for(let i of t)for(let s of r)n.push([...i,s]);t=n}return t}function vq(e,t,r,n,i){if(t.length===1){r[e]=t[0];return}let s=xwe(t),a=[];for(let o of s)try{let u=ss(o,i);u!==void 0&&a.push(u)}catch(u){if(u instanceof oy.MergeError)continue;throw u}r[e]=a}function Ewe(e,t){let{items:r,additionalItems:n}=e;return Array.isArray(r)?t<r.length?r[t]:n:r!==void 0?r:n}function _we(e,t,r,n,i){let s=0;for(let o of t)Array.isArray(o)&&(s=Math.max(s,o.length));if(s===0){r[e]=ss(t,i);return}let a=[];for(let o=0;o<s;o++){let u=[];for(let l of n){let c=Ewe(l,o);c!==void 0&&u.push(c)}a[o]=ss(u,i)}r[e]=a}function vwe(e,t,r,n,i){let s=!1;for(let o of n)if(Array.isArray(o.items)){s=!0;break}if(!s){r[e]=ss(t,i);return}let a=[];for(let o of n){let u=o.additionalItems;u===void 0&&!Array.isArray(o.items)&&(u=o.items),u!==void 0&&a.push(u)}r[e]=ss(a,i)}function Twe(e,t){let{properties:r,patternProperties:n,additionalProperties:i}=e;if(r?.[t]!==void 0)return r[t];for(let s of Object.keys(n??{}))if(new RegExp(s).test(t))return n[s];return i}function Swe(e,t,r,n,i){let s={};for(let o of n){let u=o.properties??{};for(let l of Object.keys(u)){if(s[l]!==void 0)continue;let c=u[l];s[l]=[c];for(let f of n){if(o===f)continue;let d=Twe(f,l);d!==void 0&&s[l].push(d)}}}let a={};for(let o of Object.keys(s)){let u=s[o];a[o]=ss(u,i)}r[e]=a}function ay(e,t,r,n,i){let s={};for(let o of t)for(let u of Object.keys(o))s[u]===void 0&&(s[u]=[]),s[u].push(o[u]);let a={};for(let o of Object.keys(s)){let u=s[o],l=ss(u,i);a[o]=l}r[e]=a}function wwe(e,t,r,n,i){for(let s=0;s<n.length;s++){let a={if:n[s].if,then:n[s].then,else:n[s].else};if(a.if!==void 0){if(r.if===void 0){r.if=a.if,a.then!==void 0&&(r.then=a.then),a.else!==void 0&&(r.else=a.else);continue}r.then!==void 0&&(r.then=ss([r.then,a],i)),r.else!==void 0&&(r.else=ss([r.else,a],i))}}}function Tq(e,t,r){let n={};for(let i of t)for(let s of Object.keys(i)){n[s]===void 0&&(n[s]=[]);let a=n[s];for(let o of i[s])a.includes(o)||a.push(o)}r[e]=n}function ss(e,t){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={},i=!0;for(let s of e){if(s===!1)return!1;if(s!==!0){i=!1;for(let a of Object.keys(s))n[a]===void 0&&(n[a]=[]),n[a].push(s[a])}}if(i)return!0;for(let s of Object.keys(n)){let a=n[s];(t.resolvers[s]??t.defaultResolver)(s,a,r,e,t)}return r}function wq(e,t,r,n,i){let s=i.onConflict??"throw";if(t.length===1||s==="first"){r[e]=t[0];return}let a=!0;for(let o=1;o<t.length;o++)if(!bwe(t[o],t[0])){a=!1;break}if(a){r[e]=t[0];return}if(s==="throw")throw new oy.ResolverNotFoundError(e,t);if(s!=="skip")throw new oy.InvalidOnConflictOptionError(s)}function Awe(e,t={}){return t.defaultResolver===void 0&&(t.defaultResolver=wq),t.resolvers={...Sq,...t.resolvers},ss(e,t)}Aq.exports={mergeSchemas:Awe,keywordsResolvers:Sq,defaultResolver:wq,...oy}});var Rq=_((Cnt,Iq)=>{"use strict";var{mergeSchemas:Cwe}=Cq();function Iwe(e){return Cwe(e,{onConflict:"skip"})}Iq.exports=Iwe});var Fq=_((Int,Kl)=>{"use strict";var{RefResolver:Rwe}=lq(),Nwe=rT(),Owe=ZS(),cc=dq(),Nq=yq(),Pwe=Rq(),Dwe=/'/g,uy=2e4,Pq="default",kwe=["floor","ceil","round","trunc"],Dq=["default","json-stringify"],X0=0;function sA(e,t){if(!Nq(e)){t?t=`"${t}" `:t="";let r=Nq.errors[0],n=new Error(`${t}schema is invalid: data${r.instancePath} ${r.message}`);throw n.errors=sA.errors,n}}function J0(e,t){let r=t.schema.$ref,n=r.indexOf("#");n===-1&&(n=r.length);let i=r.slice(0,n)||t.schemaId,s=r.slice(n)||"#",a=e.refResolver.getSchema(i,s);if(a===null)throw new Error(`Cannot find reference "${r}"`);let o=new cc(a,i,s);return a.$ref!==void 0?J0(e,o):o}function cy(e,t){let r=e.refResolver.getSchema(t,"#");return new cc(r,t,"#")}function Oq(e,t){return e.$id&&e.$id.charAt(0)!=="#"?e.$id:t}function aA(e,t){sA(e),t=t||{};let r={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:t,refResolver:new Rwe,rootSchemaId:e.$id||`__fjs_root_${X0++}`,validatorSchemasIds:new Set,mergedSchemasIds:new Map},n=Oq(e,r.rootSchemaId);if(r.refResolver.hasSchema(n)||r.refResolver.addSchema(e,r.rootSchemaId),t.schema)for(let c in t.schema){let f=t.schema[c],d=Oq(f,c);r.refResolver.hasSchema(d)||(sA(f,c),r.refResolver.addSchema(f,c))}if(t.rounding&&!kwe.includes(t.rounding))throw new Error(`Unsupported integer rounding method ${t.rounding}`);if(t.largeArrayMechanism)if(Dq.includes(t.largeArrayMechanism))Pq=t.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${t.largeArrayMechanism}`);if(t.largeArraySize)if(typeof t.largeArraySize=="string"&&Number.isFinite(Number.parseInt(t.largeArraySize,10)))uy=Number.parseInt(t.largeArraySize,10);else if(typeof t.largeArraySize=="number"&&Number.isInteger(t.largeArraySize))uy=t.largeArraySize;else if(typeof t.largeArraySize=="bigint")uy=Number(t.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof t.largeArraySize} with value ${t.largeArraySize}`);let i=new cc(e,r.rootSchemaId),s=mi(r,i,"input"),a=`
const JSON_STR_BEGIN_OBJECT = '{'
const JSON_STR_END_OBJECT = '}'
const JSON_STR_BEGIN_ARRAY = '['
const JSON_STR_END_ARRAY = ']'
const JSON_STR_COMMA = ','
const JSON_STR_COLONS = ':'
const JSON_STR_QUOTE = '"'
const JSON_STR_EMPTY_OBJECT = JSON_STR_BEGIN_OBJECT + JSON_STR_END_OBJECT
const JSON_STR_EMPTY_ARRAY = JSON_STR_BEGIN_ARRAY + JSON_STR_END_ARRAY
const JSON_STR_EMPTY_STRING = JSON_STR_QUOTE + JSON_STR_QUOTE
const JSON_STR_NULL = 'null'
`;s==="json += anonymous0(input)"?a+=`
${r.functions.join(`
`)}
const main = anonymous0
return main
`:a+=`
function main (input) {
let json = ''
${s}
return json
}
${r.functions.join(`
`)}
return main
`;let o=new Nwe(t),u=new Owe(t.ajv);for(let c of r.validatorSchemasIds){let f=r.refResolver.getSchema(c);u.addSchema(f,c);let d=r.refResolver.getSchemaDependencies(c);for(let[h,p]of Object.entries(d))u.addSchema(p,h)}if(t.debugMode&&(t.mode="debug"),t.mode==="debug")return{validator:u,serializer:o,code:`validator
serializer
${a}`,ajv:u.ajv};let l=new Function("validator","serializer",a);return t.mode==="standalone"?tw()(l,r,o,u):l(u,o)}var $we=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Lwe=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],Mwe=["maxLength","minLength","pattern"],Fwe=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function Bwe(e){for(var t of $we)if(t in e)return"object";for(var t of Lwe)if(t in e)return"array";for(var t of Mwe)if(t in e)return"string";for(var t of Fwe)if(t in e)return"number";return e.type}function qwe(e,t,r){let n=t.schema,i=Object.keys(n.properties||{}),s=`
const propertiesKeys = ${JSON.stringify(i)}
for (const [key, value] of Object.entries(obj)) {
if (
propertiesKeys.includes(key) ||
value === undefined ||
typeof value === 'function' ||
typeof value === 'symbol'
) continue
`,a=t.getPropertyLocation("patternProperties"),o=a.schema;if(o!==void 0)for(let c in o){let f=a.getPropertyLocation(c);s+=`
if (/${c.replace(/\\*\//g,"\\/")}/.test(key)) {
${r}
json += serializer.asString(key) + JSON_STR_COLONS
${mi(e,f,"value")}
continue
}
`}let l=t.getPropertyLocation("additionalProperties").schema;if(l!==void 0)if(l===!0)s+=`
${r}
json += serializer.asString(key) + JSON_STR_COLONS + JSON.stringify(value)
`;else{let c=t.getPropertyLocation("additionalProperties");s+=`
${r}
json += serializer.asString(key) + JSON_STR_COLONS
${mi(e,c,"value")}
`}return s+=`
}
`,s}function jwe(e,t){let r=t.schema,n=t.getPropertyLocation("properties"),i=r.required||[],s=Object.keys(r.properties||{}).sort((l,c)=>{let f=i.includes(l),d=i.includes(c);return f===d?0:f?-1:1}),a=i.includes(s[0]),o=`let value
`;for(let l of i)if(!s.includes(l)){let c=JSON.stringify(l);o+=`if (obj[${c}] === undefined) throw new Error('${c.replace(/'/g,"\\'")} is required!')
`}o+=`let json = JSON_STR_BEGIN_OBJECT
`;let u="";a||(o+=`let addComma = false
`,u="!addComma && (addComma = true) || (json += JSON_STR_COMMA)");for(let l of s){let c=n.getPropertyLocation(l);c.schema.$ref&&(c=J0(e,c));let f=JSON.stringify(l),d=c.schema.default,h=i.includes(l);o+=`
value = obj[${f}]
if (value !== undefined) {
${u}
json += ${JSON.stringify(f+":")}
${mi(e,c,"value")}
}`,d!==void 0?o+=` else {
${u}
json += ${JSON.stringify(f+":"+JSON.stringify(d))}
}
`:h?o+=` else {
throw new Error('${f.replace(/'/g,"\\'")} is required!')
}
`:o+=`
`,a&&(u="json += ','")}return(r.patternProperties||r.additionalProperties)&&(o+=qwe(e,t,u)),o+=`
return json + JSON_STR_END_OBJECT
`,o}function ly(e,t,r){for(let a=0;a<r.length;a++){let o=r[a];o.schema.$ref&&(r[a]=J0(e,o))}let n=[];for(let a of r){let o=kq(e,a.schema,a.schemaId);delete o.$id,n.push(o)}let i=Pwe(n),s=new cc(i,t);return e.refResolver.addSchema(i,t),s}function kq(e,t,r){let n=Array.isArray(t)?[]:{};t.$id!==void 0&&t.$id.charAt(0)!=="#"&&(r=t.$id);let i=e.mergedSchemasIds.get(t);i&&e.mergedSchemasIds.set(n,i);for(let s in t){let a=t[s];s==="$ref"&&typeof a=="string"&&a.charAt(0)==="#"&&(a=r+a),typeof a=="object"&&a!==null&&(a=kq(e,a,r)),n[s]=a}return n}function Uwe(e){return`(${e} && typeof ${e}.toJSON === 'function')
? ${e}.toJSON()
: ${e}
`}function Hwe(e,t){let r=t.schema;if(e.functionsNamesBySchema.has(r))return e.functionsNamesBySchema.get(r);let n=Lq(e);e.functionsNamesBySchema.set(r,n);let i=t.getSchemaRef();i.startsWith(e.rootSchemaId)&&(i=i.replace(e.rootSchemaId,""));let s=`
`,a=r.nullable===!0;return s+=`
// ${i}
function ${n} (input) {
const obj = ${Uwe("input")}
${a?"":"if (obj === null) return JSON_STR_EMPTY_OBJECT"}
${jwe(e,t)}
}
`,e.functions.push(s),n}function zwe(e,t){let r=t.schema,n=t.getPropertyLocation("items");n.schema=n.schema||{},n.schema.$ref&&(n=J0(e,n));let i=n.schema;if(e.functionsNamesBySchema.has(r))return e.functionsNamesBySchema.get(r);let s=Lq(e);e.functionsNamesBySchema.set(r,s);let a=t.getSchemaRef();a.startsWith(e.rootSchemaId)&&(a=a.replace(e.rootSchemaId,""));let o=`
function ${s} (obj) {
// ${a}
`,u=r.nullable===!0;if(o+=`
${u?"":"if (obj === null) return JSON_STR_EMPTY_ARRAY"}
if (!Array.isArray(obj)) {
throw new TypeError(\`The value of '${a}' does not match schema definition.\`)
}
const arrayLength = obj.length
`,!r.additionalItems&&Array.isArray(i)&&(o+=`
if (arrayLength > ${i.length}) {
throw new Error(\`Item at ${i.length} does not match schema definition.\`)
}
`),Pq==="json-stringify"&&(o+=`if (arrayLength >= ${uy}) return JSON.stringify(obj)
`),o+=`
const arrayEnd = arrayLength - 1
let value
let json = ''
`,Array.isArray(i)){for(let l=0;l<i.length;l++){let c=i[l];o+=`value = obj[${l}]`;let f=mi(e,n.getPropertyLocation(l),"value");o+=`
if (${l} < arrayLength) {
if (${$q(c.type,`[${l}]`)}) {
${f}
if (${l} < arrayEnd) {
json += JSON_STR_COMMA
}
} else {
throw new Error(\`Item at ${l} does not match schema definition.\`)
}
}
`}r.additionalItems&&(o+=`
for (let i = ${i.length}; i < arrayLength; i++) {
json += JSON.stringify(obj[i])
if (i < arrayEnd) {
json += JSON_STR_COMMA
}
}`)}else{let l=mi(e,n,"obj[i]");o+=`
for (let i = 0; i < arrayLength; i++) {
${l}
if (i < arrayEnd) {
json += JSON_STR_COMMA
}
}`}return o+=`
return JSON_STR_BEGIN_ARRAY + json + JSON_STR_END_ARRAY
}`,e.functions.push(o),s}function $q(e,t){let r;switch(e){case"null":r="value === null";break;case"string":r=`typeof value === 'string' ||
value === null ||
value instanceof Date ||
value instanceof RegExp ||
(
typeof value === "object" &&
typeof value.toString === "function" &&
value.toString !== Object.prototype.toString
)`;break;case"integer":r="Number.isInteger(value)";break;case"number":r="Number.isFinite(value)";break;case"boolean":r="typeof value === 'boolean'";break;case"object":r="value && typeof value === 'object' && value.constructor === Object";break;case"array":r="Array.isArray(value)";break;default:Array.isArray(e)&&(r=`(${e.map(i=>$q(i,t)).join(" || ")})`)}return r}function Lq(e){return"anonymous"+e.functionsCounter++}function Vwe(e,t,r){let i=t.schema.type.sort(o=>o==="null"?-1:1),s="";i.forEach((o,u)=>{t.schema={...t.schema,type:o};let l=Mq(e,t,r),c=u===0?"if":"else if";switch(o){case"null":s+=`
${c} (${r} === null)
${l}
`;break;case"string":{s+=`
${c}(
typeof ${r} === "string" ||
${r} === null ||
${r} instanceof Date ||
${r} instanceof RegExp ||
(
typeof ${r} === "object" &&
typeof ${r}.toString === "function" &&
${r}.toString !== Object.prototype.toString
)
)
${l}
`;break}case"array":{s+=`
${c}(Array.isArray(${r}))
${l}
`;break}case"integer":{s+=`
${c}(Number.isInteger(${r}) || ${r} === null)
${l}
`;break}default:{s+=`
${c}(typeof ${r} === "${o}" || ${r} === null)
${l}
`;break}}});let a=t.getSchemaRef();return a.startsWith(e.rootSchemaId)&&(a=a.replace(e.rootSchemaId,"")),s+=`
else throw new TypeError(\`The value of '${a}' does not match schema definition.\`)
`,s}function Mq(e,t,r){let n=t.schema;switch(n.type){case"null":return"json += JSON_STR_NULL";case"string":return n.format==="date-time"?`json += serializer.asDateTime(${r})`:n.format==="date"?`json += serializer.asDate(${r})`:n.format==="time"?`json += serializer.asTime(${r})`:n.format==="unsafe"?`json += serializer.asUnsafeString(${r})`:`
if (typeof ${r} !== 'string') {
if (${r} === null) {
json += JSON_STR_EMPTY_STRING
} else if (${r} instanceof Date) {
json += JSON_STR_QUOTE + ${r}.toISOString() + JSON_STR_QUOTE
} else if (${r} instanceof RegExp) {
json += serializer.asString(${r}.source)
} else {
json += serializer.asString(${r}.toString())
}
} else {
json += serializer.asString(${r})
}
`;case"integer":return`json += serializer.asInteger(${r})`;case"number":return`json += serializer.asNumber(${r})`;case"boolean":return`json += serializer.asBoolean(${r})`;case"object":return`json += ${Hwe(e,t)}(${r})`;case"array":return`json += ${zwe(e,t)}(${r})`;case void 0:return`json += JSON.stringify(${r})`;default:throw new Error(`${n.type} unsupported`)}}function Gwe(e,t){let r=e.schema,n=r.type,i=Array.isArray(n)&&n.includes("null"),s="";return i&&(s+=`
if (${t} === null) {
json += JSON_STR_NULL
} else {
`),s+=`json += '${JSON.stringify(r.const).replace(Dwe,"\\'")}'`,i&&(s+=`
}
`),s}function Wwe(e,t,r){let n=t.schema,i=e.mergedSchemasIds.get(n);if(i){let c=cy(e,i);return mi(e,c,r)}i=`__fjs_merged_${X0++}`,e.mergedSchemasIds.set(n,i);let{allOf:s,...a}=t.schema,o=[new cc(a,t.schemaId,t.jsonPointer)],u=t.getPropertyLocation("allOf");for(let c=0;c<s.length;c++)o.push(u.getPropertyLocation(c));let l=ly(e,i,o);return mi(e,l,r)}function Kwe(e,t,r){e.validatorSchemasIds.add(t.schemaId);let i=t.schema.anyOf?"anyOf":"oneOf",{[i]:s,...a}=t.schema,o=new cc(a,t.schemaId,t.jsonPointer),u=t.getPropertyLocation(i),l="";for(let f=0;f<s.length;f++){let d=u.getPropertyLocation(f),h=d.schema,p=e.mergedSchemasIds.get(h),m=null;p?m=cy(e,p):(p=`__fjs_merged_${X0++}`,e.mergedSchemasIds.set(h,p),m=ly(e,p,[o,d]));let y=mi(e,m,r),g=d.getSchemaRef();l+=`
${f===0?"if":"else if"}(validator.validate("${g}", ${r}))
${y}
`}let c=t.getSchemaRef();return c.startsWith(e.rootSchemaId)&&(c=c.replace(e.rootSchemaId,"")),l+=`
else throw new TypeError(\`The value of '${c}' does not match schema definition.\`)
`,l}function Ywe(e,t,r){e.validatorSchemasIds.add(t.schemaId);let{if:n,then:i,else:s,...a}=t.schema,o=new cc(a,t.schemaId,t.jsonPointer),l=t.getPropertyLocation("if").getSchemaRef(),c=t.getPropertyLocation("then"),f=e.mergedSchemasIds.get(i),d=null;if(f?d=cy(e,f):(f=`__fjs_merged_${X0++}`,e.mergedSchemasIds.set(i,f),d=ly(e,f,[o,c])),!s)return`
if (validator.validate("${l}", ${r})) {
${mi(e,d,r)}
} else {
${mi(e,o,r)}
}
`;let h=t.getPropertyLocation("else"),p=e.mergedSchemasIds.get(s),m=null;return p?m=cy(e,p):(p=`__fjs_merged_${X0++}`,e.mergedSchemasIds.set(s,p),m=ly(e,p,[o,h])),`
if (validator.validate("${l}", ${r})) {
${mi(e,d,r)}
} else {
${mi(e,m,r)}
}
`}function mi(e,t,r){let n=t.schema;if(typeof n=="boolean")return`json += JSON.stringify(${r})`;if(n.$ref&&(t=J0(e,t),n=t.schema),n.allOf)return Wwe(e,t,r);if(n.anyOf||n.oneOf)return Kwe(e,t,r);if(n.if&&n.then)return Ywe(e,t,r);if(n.type===void 0){let o=Bwe(n);o&&(n.type=o)}let i="",s=n.type,a=n.nullable===!0;return a&&(i+=`
if (${r} === null) {
json += JSON_STR_NULL
} else {
`),n.const!==void 0?i+=Gwe(t,r):Array.isArray(s)?i+=Vwe(e,t,r):i+=Mq(e,t,r),a&&(i+=`
}
`),i}Kl.exports=aA;Kl.exports.default=aA;Kl.exports.build=aA;Kl.exports.validLargeArrayMechanisms=Dq;Kl.exports.restore=function({code:e,validator:t,serializer:r}){return Function.apply(null,["validator","serializer",e]).apply(null,[t,r])}});var qq=_((Rnt,oA)=>{"use strict";var Xwe=uA();function Bq(e={readMode:!0}){if(e.readMode===!0&&typeof e.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(e.readMode!==!0&&typeof e.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(e.readMode===!0)return function(){return function(n){return e.restoreFunction(n)}};let t=Xwe();return function(n,i={}){i.mode="standalone";let s=t(n,i);return function(a){let o=s(a);return e.storeFunction(a,o),new Function(o)}}}oA.exports=Bq;oA.exports.default=Bq});var uA=_((Nnt,Q0)=>{"use strict";var Jwe=Fq();function cA(){return function(t,r){let n=Object.assign({},r,{schema:t});return Qwe.bind(null,n)}}function Qwe(e,{schema:t}){return e.schema&&t.$id&&e.schema[t.$id]&&(e.schema={...e.schema},delete e.schema[t.$id]),Jwe(t,e)}Q0.exports=cA;Q0.exports.default=cA;Q0.exports.SerializerSelector=cA;Q0.exports.StandaloneSerializer=qq()});var Yl=_(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.regexpCode=xt.getEsmExportName=xt.getProperty=xt.safeStringify=xt.stringify=xt.strConcat=xt.addCodeArg=xt.str=xt._=xt.nil=xt._Code=xt.Name=xt.IDENTIFIER=xt._CodeOrName=void 0;var Z0=class{};xt._CodeOrName=Z0;xt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var lc=class extends Z0{constructor(t){if(super(),!xt.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xt.Name=lc;var Ni=class extends Z0{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof lc&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xt._Code=Ni;xt.nil=new Ni("");function jq(e,...t){let r=[e[0]],n=0;for(;n<t.length;)fA(r,t[n]),r.push(e[++n]);return new Ni(r)}xt._=jq;var lA=new Ni("+");function Uq(e,...t){let r=[ep(e[0])],n=0;for(;n<t.length;)r.push(lA),fA(r,t[n]),r.push(lA,ep(e[++n]));return Zwe(r),new Ni(r)}xt.str=Uq;function fA(e,t){t instanceof Ni?e.push(...t._items):t instanceof lc?e.push(t):e.push(rAe(t))}xt.addCodeArg=fA;function Zwe(e){let t=1;for(;t<e.length-1;){if(e[t]===lA){let r=eAe(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function eAe(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof lc||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof lc))return`"${e}${t.slice(1)}`}function tAe(e,t){return t.emptyStr()?e:e.emptyStr()?t:Uq`${e}${t}`}xt.strConcat=tAe;function rAe(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ep(Array.isArray(e)?e.join(","):e)}function nAe(e){return new Ni(ep(e))}xt.stringify=nAe;function ep(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xt.safeStringify=ep;function iAe(e){return typeof e=="string"&&xt.IDENTIFIER.test(e)?new Ni(`.${e}`):jq`[${e}]`}xt.getProperty=iAe;function sAe(e){if(typeof e=="string"&&xt.IDENTIFIER.test(e))return new Ni(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xt.getEsmExportName=sAe;function aAe(e){return new Ni(e.toString())}xt.regexpCode=aAe});var hy=_(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.ValueScope=Xn.ValueScopeName=Xn.Scope=Xn.varKinds=Xn.UsedValueState=void 0;var Yn=Yl(),dA=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},fy;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(fy||(Xn.UsedValueState=fy={}));Xn.varKinds={const:new Yn.Name("const"),let:new Yn.Name("let"),var:new Yn.Name("var")};var dy=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Yn.Name?t:this.name(t)}name(t){return new Yn.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Xn.Scope=dy;var py=class extends Yn.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Yn._)`.${new Yn.Name(r)}[${n}]`}};Xn.ValueScopeName=py;var oAe=(0,Yn._)`\n`,pA=class extends dy{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?oAe:Yn.nil}}get(){return this._scope}name(t){return new py(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,o=this._values[s];if(o){let c=o.get(a);if(c)return c}else o=this._values[s]=new Map;o.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Yn._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Yn.nil;for(let a in t){let o=t[a];if(!o)continue;let u=n[a]=n[a]||new Map;o.forEach(l=>{if(u.has(l))return;u.set(l,fy.Started);let c=r(l);if(c){let f=this.opts.es5?Xn.varKinds.var:Xn.varKinds.const;s=(0,Yn._)`${s}${f} ${l} = ${c};${this.opts._n}`}else if(c=i?.(l))s=(0,Yn._)`${s}${c}${this.opts._n}`;else throw new dA(l);u.set(l,fy.Completed)})}return s}};Xn.ValueScope=pA});var Oe=_(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.or=Ge.and=Ge.not=Ge.CodeGen=Ge.operators=Ge.varKinds=Ge.ValueScopeName=Ge.ValueScope=Ge.Scope=Ge.Name=Ge.regexpCode=Ge.stringify=Ge.getProperty=Ge.nil=Ge.strConcat=Ge.str=Ge._=void 0;var ot=Yl(),as=hy(),ko=Yl();Object.defineProperty(Ge,"_",{enumerable:!0,get:function(){return ko._}});Object.defineProperty(Ge,"str",{enumerable:!0,get:function(){return ko.str}});Object.defineProperty(Ge,"strConcat",{enumerable:!0,get:function(){return ko.strConcat}});Object.defineProperty(Ge,"nil",{enumerable:!0,get:function(){return ko.nil}});Object.defineProperty(Ge,"getProperty",{enumerable:!0,get:function(){return ko.getProperty}});Object.defineProperty(Ge,"stringify",{enumerable:!0,get:function(){return ko.stringify}});Object.defineProperty(Ge,"regexpCode",{enumerable:!0,get:function(){return ko.regexpCode}});Object.defineProperty(Ge,"Name",{enumerable:!0,get:function(){return ko.Name}});var by=hy();Object.defineProperty(Ge,"Scope",{enumerable:!0,get:function(){return by.Scope}});Object.defineProperty(Ge,"ValueScope",{enumerable:!0,get:function(){return by.ValueScope}});Object.defineProperty(Ge,"ValueScopeName",{enumerable:!0,get:function(){return by.ValueScopeName}});Object.defineProperty(Ge,"varKinds",{enumerable:!0,get:function(){return by.varKinds}});Ge.operators={GT:new ot._Code(">"),GTE:new ot._Code(">="),LT:new ot._Code("<"),LTE:new ot._Code("<="),EQ:new ot._Code("==="),NEQ:new ot._Code("!=="),NOT:new ot._Code("!"),OR:new ot._Code("||"),AND:new ot._Code("&&"),ADD:new ot._Code("+")};var Ra=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},hA=class extends Ra{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?as.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Jl(this.rhs,t,r)),this}get names(){return this.rhs instanceof ot._CodeOrName?this.rhs.names:{}}},my=class extends Ra{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ot.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Jl(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ot.Name?{}:{...this.lhs.names};return yy(t,this.rhs)}},mA=class extends my{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},gA=class extends Ra{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},yA=class extends Ra{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},bA=class extends Ra{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},xA=class extends Ra{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Jl(this.code,t,r),this}get names(){return this.code instanceof ot._CodeOrName?this.code.names:{}}},tp=class extends Ra{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(uAe(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>pc(t,r.names),{})}},Na=class extends tp{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},EA=class extends tp{},Xl=class extends Na{};Xl.kind="else";var fc=class e extends Na{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Xl(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Hq(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Jl(this.condition,t,r),this}get names(){let t=super.names;return yy(t,this.condition),this.else&&pc(t,this.else.names),t}};fc.kind="if";var dc=class extends Na{};dc.kind="for";var _A=class extends dc{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Jl(this.iteration,t,r),this}get names(){return pc(super.names,this.iteration.names)}},vA=class extends dc{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?as.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=yy(super.names,this.from);return yy(t,this.to)}},gy=class extends dc{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Jl(this.iterable,t,r),this}get names(){return pc(super.names,this.iterable.names)}},rp=class extends Na{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};rp.kind="func";var np=class extends tp{render(t){return"return "+super.render(t)}};np.kind="return";var TA=class extends Na{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&pc(t,this.catch.names),this.finally&&pc(t,this.finally.names),t}},ip=class extends Na{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};ip.kind="catch";var sp=class extends Na{render(t){return"finally"+super.render(t)}};sp.kind="finally";var SA=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
`:""},this._extScope=t,this._scope=new as.Scope({parent:t}),this._nodes=[new EA]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new hA(t,s,n)),s}const(t,r,n){return this._def(as.varKinds.const,t,r,n)}let(t,r,n){return this._def(as.varKinds.let,t,r,n)}var(t,r,n){return this._def(as.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new my(t,r,n))}add(t,r){return this._leafNode(new mA(t,Ge.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ot.nil&&this._leafNode(new xA(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ot.addCodeArg)(r,i));return r.push("}"),new ot._Code(r)}if(t,r,n){if(this._blockNode(new fc(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new fc(t))}else(){return this._elseNode(new Xl)}endIf(){return this._endBlockNode(fc,Xl)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new _A(t),r)}forRange(t,r,n,i,s=this.opts.es5?as.varKinds.var:as.varKinds.let){let a=this._scope.toName(t);return this._for(new vA(s,a,r,n),()=>i(a))}forOf(t,r,n,i=as.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ot.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ot._)`${a}.length`,o=>{this.var(s,(0,ot._)`${a}[${o}]`),n(s)})}return this._for(new gy("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?as.varKinds.var:as.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ot._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new gy("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(dc)}label(t){return this._leafNode(new gA(t))}break(t){return this._leafNode(new yA(t))}return(t){let r=new np;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(np)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new TA;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new ip(s),r(s)}return n&&(this._currNode=i.finally=new sp,this.code(n)),this._endBlockNode(ip,sp)}throw(t){return this._leafNode(new bA(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ot.nil,n,i){return this._blockNode(new rp(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(rp)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof fc))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};Ge.CodeGen=SA;function pc(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function yy(e,t){return t instanceof ot._CodeOrName?pc(e,t.names):e}function Jl(e,t,r){if(e instanceof ot.Name)return n(e);if(!i(e))return e;return new ot._Code(e._items.reduce((s,a)=>(a instanceof ot.Name&&(a=n(a)),a instanceof ot._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ot._Code&&s._items.some(a=>a instanceof ot.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function uAe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Hq(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ot._)`!${wA(e)}`}Ge.not=Hq;var cAe=zq(Ge.operators.AND);function lAe(...e){return e.reduce(cAe)}Ge.and=lAe;var fAe=zq(Ge.operators.OR);function dAe(...e){return e.reduce(fAe)}Ge.or=dAe;function zq(e){return(t,r)=>t===ot.nil?r:r===ot.nil?t:(0,ot._)`${wA(t)} ${e} ${wA(r)}`}function wA(e){return e instanceof ot.Name?e:(0,ot._)`(${e})`}});var He=_(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.checkStrictMode=Xe.getErrorPath=Xe.Type=Xe.useFunc=Xe.setEvaluated=Xe.evaluatedPropsToName=Xe.mergeEvaluated=Xe.eachItem=Xe.unescapeJsonPointer=Xe.escapeJsonPointer=Xe.escapeFragment=Xe.unescapeFragment=Xe.schemaRefOrVal=Xe.schemaHasRulesButRef=Xe.schemaHasRules=Xe.checkUnknownRules=Xe.alwaysValidSchema=Xe.toHash=void 0;var Bt=Oe(),pAe=Yl();function hAe(e){let t={};for(let r of e)t[r]=!0;return t}Xe.toHash=hAe;function mAe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Wq(e,t),!Kq(t,e.self.RULES.all))}Xe.alwaysValidSchema=mAe;function Wq(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||Jq(e,`unknown keyword: "${s}"`)}Xe.checkUnknownRules=Wq;function Kq(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Xe.schemaHasRules=Kq;function gAe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Xe.schemaHasRulesButRef=gAe;function yAe({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Bt._)`${r}`}return(0,Bt._)`${e}${t}${(0,Bt.getProperty)(n)}`}Xe.schemaRefOrVal=yAe;function bAe(e){return Yq(decodeURIComponent(e))}Xe.unescapeFragment=bAe;function xAe(e){return encodeURIComponent(CA(e))}Xe.escapeFragment=xAe;function CA(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Xe.escapeJsonPointer=CA;function Yq(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Xe.unescapeJsonPointer=Yq;function EAe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Xe.eachItem=EAe;function Vq({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,o)=>{let u=a===void 0?s:a instanceof Bt.Name?(s instanceof Bt.Name?e(i,s,a):t(i,s,a),a):s instanceof Bt.Name?(t(i,a,s),s):r(s,a);return o===Bt.Name&&!(u instanceof Bt.Name)?n(i,u):u}}Xe.mergeEvaluated={props:Vq({mergeNames:(e,t,r)=>e.if((0,Bt._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Bt._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Bt._)`${r} || {}`).code((0,Bt._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Bt._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Bt._)`${r} || {}`),IA(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Xq}),items:Vq({mergeNames:(e,t,r)=>e.if((0,Bt._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Bt._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Bt._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Bt._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Xq(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Bt._)`{}`);return t!==void 0&&IA(e,r,t),r}Xe.evaluatedPropsToName=Xq;function IA(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Bt._)`${t}${(0,Bt.getProperty)(n)}`,!0))}Xe.setEvaluated=IA;var Gq={};function _Ae(e,t){return e.scopeValue("func",{ref:t,code:Gq[t.code]||(Gq[t.code]=new pAe._Code(t.code))})}Xe.useFunc=_Ae;var AA;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(AA||(Xe.Type=AA={}));function vAe(e,t,r){if(e instanceof Bt.Name){let n=t===AA.Num;return r?n?(0,Bt._)`"[" + ${e} + "]"`:(0,Bt._)`"['" + ${e} + "']"`:n?(0,Bt._)`"/" + ${e}`:(0,Bt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Bt.getProperty)(e).toString():"/"+CA(e)}Xe.getErrorPath=vAe;function Jq(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Xe.checkStrictMode=Jq});var Oi=_(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});var fn=Oe(),TAe={data:new fn.Name("data"),valCxt:new fn.Name("valCxt"),instancePath:new fn.Name("instancePath"),parentData:new fn.Name("parentData"),parentDataProperty:new fn.Name("parentDataProperty"),rootData:new fn.Name("rootData"),dynamicAnchors:new fn.Name("dynamicAnchors"),vErrors:new fn.Name("vErrors"),errors:new fn.Name("errors"),this:new fn.Name("this"),self:new fn.Name("self"),scope:new fn.Name("scope"),json:new fn.Name("json"),jsonPos:new fn.Name("jsonPos"),jsonLen:new fn.Name("jsonLen"),jsonPart:new fn.Name("jsonPart")};RA.default=TAe});var ap=_(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.extendErrors=dn.resetErrorsCount=dn.reportExtraError=dn.reportError=dn.keyword$DataError=dn.keywordError=void 0;var ft=Oe(),xy=He(),kn=Oi();dn.keywordError={message:({keyword:e})=>(0,ft.str)`must pass "${e}" keyword validation`};dn.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ft.str)`"${e}" keyword must be ${t} ($data)`:(0,ft.str)`"${e}" keyword is invalid ($data)`};function SAe(e,t=dn.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:o}=i,u=ej(e,t,r);n??(a||o)?Qq(s,u):Zq(i,(0,ft._)`[${u}]`)}dn.reportError=SAe;function wAe(e,t=dn.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,o=ej(e,t,r);Qq(i,o),s||a||Zq(n,kn.default.vErrors)}dn.reportExtraError=wAe;function AAe(e,t){e.assign(kn.default.errors,t),e.if((0,ft._)`${kn.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ft._)`${kn.default.vErrors}.length`,t),()=>e.assign(kn.default.vErrors,null)))}dn.resetErrorsCount=AAe;function CAe({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,kn.default.errors,o=>{e.const(a,(0,ft._)`${kn.default.vErrors}[${o}]`),e.if((0,ft._)`${a}.instancePath === undefined`,()=>e.assign((0,ft._)`${a}.instancePath`,(0,ft.strConcat)(kn.default.instancePath,s.errorPath))),e.assign((0,ft._)`${a}.schemaPath`,(0,ft.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,ft._)`${a}.schema`,r),e.assign((0,ft._)`${a}.data`,n))})}dn.extendErrors=CAe;function Qq(e,t){let r=e.const("err",t);e.if((0,ft._)`${kn.default.vErrors} === null`,()=>e.assign(kn.default.vErrors,(0,ft._)`[${r}]`),(0,ft._)`${kn.default.vErrors}.push(${r})`),e.code((0,ft._)`${kn.default.errors}++`)}function Zq(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ft._)`new ${e.ValidationError}(${t})`):(r.assign((0,ft._)`${n}.errors`,t),r.return(!1))}var hc={keyword:new ft.Name("keyword"),schemaPath:new ft.Name("schemaPath"),params:new ft.Name("params"),propertyName:new ft.Name("propertyName"),message:new ft.Name("message"),schema:new ft.Name("schema"),parentSchema:new ft.Name("parentSchema")};function ej(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ft._)`{}`:IAe(e,t,r)}function IAe(e,t,r={}){let{gen:n,it:i}=e,s=[RAe(i,r),NAe(e,r)];return OAe(e,t,s),n.object(...s)}function RAe({errorPath:e},{instancePath:t}){let r=t?(0,ft.str)`${e}${(0,xy.getErrorPath)(t,xy.Type.Str)}`:e;return[kn.default.instancePath,(0,ft.strConcat)(kn.default.instancePath,r)]}function NAe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ft.str)`${t}/${e}`;return r&&(i=(0,ft.str)`${i}${(0,xy.getErrorPath)(r,xy.Type.Str)}`),[hc.schemaPath,i]}function OAe(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:o}=e,{opts:u,propertyName:l,topSchemaRef:c,schemaPath:f}=o;n.push([hc.keyword,i],[hc.params,typeof t=="function"?t(e):t||(0,ft._)`{}`]),u.messages&&n.push([hc.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([hc.schema,a],[hc.parentSchema,(0,ft._)`${c}${f}`],[kn.default.data,s]),l&&n.push([hc.propertyName,l])}});var rj=_(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.boolOrEmptySchema=Ql.topBoolOrEmptySchema=void 0;var PAe=ap(),DAe=Oe(),kAe=Oi(),$Ae={message:"boolean schema is false"};function LAe(e){let{gen:t,schema:r,validateName:n}=e;r===!1?tj(e,!1):typeof r=="object"&&r.$async===!0?t.return(kAe.default.data):(t.assign((0,DAe._)`${n}.errors`,null),t.return(!0))}Ql.topBoolOrEmptySchema=LAe;function MAe(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),tj(e)):r.var(t,!0)}Ql.boolOrEmptySchema=MAe;function tj(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,PAe.reportError)(i,$Ae,void 0,t)}});var NA=_(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.getRules=Zl.isJSONType=void 0;var FAe=["string","number","integer","boolean","null","object","array"],BAe=new Set(FAe);function qAe(e){return typeof e=="string"&&BAe.has(e)}Zl.isJSONType=qAe;function jAe(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Zl.getRules=jAe});var OA=_($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.shouldUseRule=$o.shouldUseGroup=$o.schemaHasRulesForType=void 0;function UAe({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&nj(e,n)}$o.schemaHasRulesForType=UAe;function nj(e,t){return t.rules.some(r=>ij(e,r))}$o.shouldUseGroup=nj;function ij(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}$o.shouldUseRule=ij});var op=_(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.reportTypeError=pn.checkDataTypes=pn.checkDataType=pn.coerceAndCheckDataType=pn.getJSONTypes=pn.getSchemaTypes=pn.DataType=void 0;var HAe=NA(),zAe=OA(),VAe=ap(),qe=Oe(),sj=He(),ef;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ef||(pn.DataType=ef={}));function GAe(e){let t=aj(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}pn.getSchemaTypes=GAe;function aj(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(HAe.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}pn.getJSONTypes=aj;function WAe(e,t){let{gen:r,data:n,opts:i}=e,s=KAe(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,zAe.schemaHasRulesForType)(e,t[0]));if(a){let o=DA(t,n,i.strictNumbers,ef.Wrong);r.if(o,()=>{s.length?YAe(e,t,s):kA(e)})}return a}pn.coerceAndCheckDataType=WAe;var oj=new Set(["string","number","integer","boolean","null"]);function KAe(e,t){return t?e.filter(r=>oj.has(r)||t==="array"&&r==="array"):[]}function YAe(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,qe._)`typeof ${i}`),o=n.let("coerced",(0,qe._)`undefined`);s.coerceTypes==="array"&&n.if((0,qe._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,qe._)`${i}[0]`).assign(a,(0,qe._)`typeof ${i}`).if(DA(t,i,s.strictNumbers),()=>n.assign(o,i))),n.if((0,qe._)`${o} !== undefined`);for(let l of r)(oj.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),kA(e),n.endIf(),n.if((0,qe._)`${o} !== undefined`,()=>{n.assign(i,o),XAe(e,o)});function u(l){switch(l){case"string":n.elseIf((0,qe._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,qe._)`"" + ${i}`).elseIf((0,qe._)`${i} === null`).assign(o,(0,qe._)`""`);return;case"number":n.elseIf((0,qe._)`${a} == "boolean" || ${i} === null
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(o,(0,qe._)`+${i}`);return;case"integer":n.elseIf((0,qe._)`${a} === "boolean" || ${i} === null
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,(0,qe._)`+${i}`);return;case"boolean":n.elseIf((0,qe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf((0,qe._)`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":n.elseIf((0,qe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(o,null);return;case"array":n.elseIf((0,qe._)`${a} === "string" || ${a} === "number"
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,qe._)`[${i}]`)}}}function XAe({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,qe._)`${t} !== undefined`,()=>e.assign((0,qe._)`${t}[${r}]`,n))}function PA(e,t,r,n=ef.Correct){let i=n===ef.Correct?qe.operators.EQ:qe.operators.NEQ,s;switch(e){case"null":return(0,qe._)`${t} ${i} null`;case"array":s=(0,qe._)`Array.isArray(${t})`;break;case"object":s=(0,qe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,qe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,qe._)`typeof ${t} ${i} ${e}`}return n===ef.Correct?s:(0,qe.not)(s);function a(o=qe.nil){return(0,qe.and)((0,qe._)`typeof ${t} == "number"`,o,r?(0,qe._)`isFinite(${t})`:qe.nil)}}pn.checkDataType=PA;function DA(e,t,r,n){if(e.length===1)return PA(e[0],t,r,n);let i,s=(0,sj.toHash)(e);if(s.array&&s.object){let a=(0,qe._)`typeof ${t} != "object"`;i=s.null?a:(0,qe._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=qe.nil;s.number&&delete s.integer;for(let a in s)i=(0,qe.and)(i,PA(a,t,r,n));return i}pn.checkDataTypes=DA;var JAe={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,qe._)`{type: ${e}}`:(0,qe._)`{type: ${t}}`};function kA(e){let t=QAe(e);(0,VAe.reportError)(t,JAe)}pn.reportTypeError=kA;function QAe(e){let{gen:t,data:r,schema:n}=e,i=(0,sj.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var cj=_(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.assignDefaults=void 0;var tf=Oe(),ZAe=He();function e3e(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)uj(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>uj(e,s,i.default))}Ey.assignDefaults=e3e;function uj(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let o=(0,tf._)`${s}${(0,tf.getProperty)(t)}`;if(i){(0,ZAe.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,tf._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,tf._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,tf._)`${o} = ${(0,tf.stringify)(r)}`)}});var Yr=_(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.validateUnion=Ot.validateArray=Ot.usePattern=Ot.callValidateCode=Ot.schemaProperties=Ot.allSchemaProperties=Ot.noPropertyInData=Ot.propertyInData=Ot.isOwnProperty=Ot.hasPropFunc=Ot.reportMissingProp=Ot.checkMissingProp=Ot.checkReportMissingProp=void 0;var Jt=Oe(),$A=He(),Lo=Oi(),t3e=He();function r3e(e,t){let{gen:r,data:n,it:i}=e;r.if(MA(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Jt._)`${t}`},!0),e.error()})}Ot.checkReportMissingProp=r3e;function n3e({gen:e,data:t,it:{opts:r}},n,i){return(0,Jt.or)(...n.map(s=>(0,Jt.and)(MA(e,t,s,r.ownProperties),(0,Jt._)`${i} = ${s}`)))}Ot.checkMissingProp=n3e;function i3e(e,t){e.setParams({missingProperty:t},!0),e.error()}Ot.reportMissingProp=i3e;function lj(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Jt._)`Object.prototype.hasOwnProperty`})}Ot.hasPropFunc=lj;function LA(e,t,r){return(0,Jt._)`${lj(e)}.call(${t}, ${r})`}Ot.isOwnProperty=LA;function s3e(e,t,r,n){let i=(0,Jt._)`${t}${(0,Jt.getProperty)(r)} !== undefined`;return n?(0,Jt._)`${i} && ${LA(e,t,r)}`:i}Ot.propertyInData=s3e;function MA(e,t,r,n){let i=(0,Jt._)`${t}${(0,Jt.getProperty)(r)} === undefined`;return n?(0,Jt.or)(i,(0,Jt.not)(LA(e,t,r))):i}Ot.noPropertyInData=MA;function fj(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ot.allSchemaProperties=fj;function a3e(e,t){return fj(t).filter(r=>!(0,$A.alwaysValidSchema)(e,t[r]))}Ot.schemaProperties=a3e;function o3e({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},o,u,l){let c=l?(0,Jt._)`${e}, ${t}, ${n}${i}`:t,f=[[Lo.default.instancePath,(0,Jt.strConcat)(Lo.default.instancePath,s)],[Lo.default.parentData,a.parentData],[Lo.default.parentDataProperty,a.parentDataProperty],[Lo.default.rootData,Lo.default.rootData]];a.opts.dynamicRef&&f.push([Lo.default.dynamicAnchors,Lo.default.dynamicAnchors]);let d=(0,Jt._)`${c}, ${r.object(...f)}`;return u!==Jt.nil?(0,Jt._)`${o}.call(${u}, ${d})`:(0,Jt._)`${o}(${d})`}Ot.callValidateCode=o3e;var u3e=(0,Jt._)`new RegExp`;function c3e({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Jt._)`${i.code==="new RegExp"?u3e:(0,t3e.useFunc)(e,i)}(${r}, ${n})`})}Ot.usePattern=c3e;function l3e(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let o=t.let("valid",!0);return a(()=>t.assign(o,!1)),o}return t.var(s,!0),a(()=>t.break()),s;function a(o){let u=t.const("len",(0,Jt._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:$A.Type.Num},s),t.if((0,Jt.not)(s),o)})}}Ot.validateArray=l3e;function f3e(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,$A.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let c=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},o);t.assign(a,(0,Jt._)`${a} || ${o}`),e.mergeValidEvaluated(c,o)||t.if((0,Jt.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ot.validateUnion=f3e});var hj=_(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.validateKeywordUsage=js.validSchemaType=js.funcKeywordCode=js.macroKeywordCode=void 0;var $n=Oe(),mc=Oi(),d3e=Yr(),p3e=ap();function h3e(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,o=t.macro.call(a.self,i,s,a),u=pj(r,n,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let l=r.name("valid");e.subschema({schema:o,schemaPath:$n.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}js.macroKeywordCode=h3e;function m3e(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:o,it:u}=e;y3e(u,t);let l=!o&&t.compile?t.compile.call(u.self,s,a,u):t.validate,c=pj(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)m(),t.modifying&&dj(e),y(()=>e.error());else{let g=t.async?h():p();t.modifying&&dj(e),y(()=>g3e(e,g))}}function h(){let g=n.let("ruleErrs",null);return n.try(()=>m((0,$n._)`await `),v=>n.assign(f,!1).if((0,$n._)`${v} instanceof ${u.ValidationError}`,()=>n.assign(g,(0,$n._)`${v}.errors`),()=>n.throw(v))),g}function p(){let g=(0,$n._)`${c}.errors`;return n.assign(g,null),m($n.nil),g}function m(g=t.async?(0,$n._)`await `:$n.nil){let v=u.opts.passContext?mc.default.this:mc.default.self,E=!("compile"in t&&!o||t.schema===!1);n.assign(f,(0,$n._)`${g}${(0,d3e.callValidateCode)(e,c,v,E)}`,t.modifying)}function y(g){var v;n.if((0,$n.not)((v=t.valid)!==null&&v!==void 0?v:f),g)}}js.funcKeywordCode=m3e;function dj(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,$n._)`${n.parentData}[${n.parentDataProperty}]`))}function g3e(e,t){let{gen:r}=e;r.if((0,$n._)`Array.isArray(${t})`,()=>{r.assign(mc.default.vErrors,(0,$n._)`${mc.default.vErrors} === null ? ${t} : ${mc.default.vErrors}.concat(${t})`).assign(mc.default.errors,(0,$n._)`${mc.default.vErrors}.length`),(0,p3e.extendErrors)(e)},()=>e.error())}function y3e({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function pj(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,$n.stringify)(r)})}function b3e(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}js.validSchemaType=b3e;function x3e({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a?.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}js.validateKeywordUsage=x3e});var gj=_(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.extendSubschemaMode=Mo.extendSubschemaData=Mo.getSubschema=void 0;var Us=Oe(),mj=He();function E3e(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,Us._)`${e.schemaPath}${(0,Us.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,Us._)`${e.schemaPath}${(0,Us.getProperty)(t)}${(0,Us.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,mj.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Mo.getSubschema=E3e;function _3e(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=t;if(r!==void 0){let{errorPath:l,dataPathArr:c,opts:f}=t,d=o.let("data",(0,Us._)`${t.data}${(0,Us.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Us.str)`${l}${(0,mj.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Us._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Us.Name?i:o.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Mo.extendSubschemaData=_3e;function v3e(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Mo.extendSubschemaMode=v3e});var bj=_((Vnt,yj)=>{"use strict";var Fo=yj.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};_y(t,n,i,e,"",e)};Fo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Fo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Fo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Fo.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function _y(e,t,r,n,i,s,a,o,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,o,u,l);for(var c in n){var f=n[c];if(Array.isArray(f)){if(c in Fo.arrayKeywords)for(var d=0;d<f.length;d++)_y(e,t,r,f[d],i+"/"+c+"/"+d,s,i,c,n,d)}else if(c in Fo.propsKeywords){if(f&&typeof f=="object")for(var h in f)_y(e,t,r,f[h],i+"/"+c+"/"+T3e(h),s,i,c,n,h)}else(c in Fo.keywords||e.allKeys&&!(c in Fo.skipKeywords))&&_y(e,t,r,f,i+"/"+c,s,i,c,n)}r(n,i,s,a,o,u,l)}}function T3e(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var up=_(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getSchemaRefs=Jn.resolveUrl=Jn.normalizeId=Jn._getFullPath=Jn.getFullPath=Jn.inlineRef=void 0;var S3e=He(),w3e=Si(),A3e=bj(),C3e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function I3e(e,t=!0){return typeof e=="boolean"?!0:t===!0?!FA(e):t?xj(e)<=t:!1}Jn.inlineRef=I3e;var R3e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function FA(e){for(let t in e){if(R3e.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(FA)||typeof r=="object"&&FA(r))return!0}return!1}function xj(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!C3e.has(r)&&(typeof e[r]=="object"&&(0,S3e.eachItem)(e[r],n=>t+=xj(n)),t===1/0))return 1/0}return t}function Ej(e,t="",r){r!==!1&&(t=rf(t));let n=e.parse(t);return _j(e,n)}Jn.getFullPath=Ej;function _j(e,t){return e.serialize(t).split("#")[0]+"#"}Jn._getFullPath=_j;var N3e=/#\/?$/;function rf(e){return e?e.replace(N3e,""):""}Jn.normalizeId=rf;function O3e(e,t,r){return r=rf(r),e.resolve(t,r)}Jn.resolveUrl=O3e;var P3e=/^[a-z_][-a-z0-9._]*$/i;function D3e(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=rf(e[r]||t),s={"":i},a=Ej(n,i,!1),o={},u=new Set;return A3e(e,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=a+d,y=s[p];typeof f[r]=="string"&&(y=g.call(this,f[r])),v.call(this,f.$anchor),v.call(this,f.$dynamicAnchor),s[d]=y;function g(E){let x=this.opts.uriResolver.resolve;if(E=rf(y?x(y,E):E),u.has(E))throw c(E);u.add(E);let T=this.refs[E];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,E):E!==rf(m)&&(E[0]==="#"?(l(f,o[E],E),o[E]=f):this.refs[E]=m),E}function v(E){if(typeof E=="string"){if(!P3e.test(E))throw new Error(`invalid anchor "${E}"`);g.call(this,`#${E}`)}}}),o;function l(f,d,h){if(d!==void 0&&!w3e(f,d))throw c(h)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Jn.getSchemaRefs=D3e});var nf=_(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.getData=Bo.KeywordCxt=Bo.validateFunctionCode=void 0;var Aj=rj(),vj=op(),qA=OA(),vy=op(),k3e=cj(),lp=hj(),BA=gj(),Ie=Oe(),De=Oi(),$3e=up(),Oa=He(),cp=ap();function L3e(e){if(Rj(e)&&(Nj(e),Ij(e))){B3e(e);return}Cj(e,()=>(0,Aj.topBoolOrEmptySchema)(e))}Bo.validateFunctionCode=L3e;function Cj({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,Ie._)`${De.default.data}, ${De.default.valCxt}`,n.$async,()=>{e.code((0,Ie._)`"use strict"; ${Tj(r,i)}`),F3e(e,i),e.code(s)}):e.func(t,(0,Ie._)`${De.default.data}, ${M3e(i)}`,n.$async,()=>e.code(Tj(r,i)).code(s))}function M3e(e){return(0,Ie._)`{${De.default.instancePath}="", ${De.default.parentData}, ${De.default.parentDataProperty}, ${De.default.rootData}=${De.default.data}${e.dynamicRef?(0,Ie._)`, ${De.default.dynamicAnchors}={}`:Ie.nil}}={}`}function F3e(e,t){e.if(De.default.valCxt,()=>{e.var(De.default.instancePath,(0,Ie._)`${De.default.valCxt}.${De.default.instancePath}`),e.var(De.default.parentData,(0,Ie._)`${De.default.valCxt}.${De.default.parentData}`),e.var(De.default.parentDataProperty,(0,Ie._)`${De.default.valCxt}.${De.default.parentDataProperty}`),e.var(De.default.rootData,(0,Ie._)`${De.default.valCxt}.${De.default.rootData}`),t.dynamicRef&&e.var(De.default.dynamicAnchors,(0,Ie._)`${De.default.valCxt}.${De.default.dynamicAnchors}`)},()=>{e.var(De.default.instancePath,(0,Ie._)`""`),e.var(De.default.parentData,(0,Ie._)`undefined`),e.var(De.default.parentDataProperty,(0,Ie._)`undefined`),e.var(De.default.rootData,De.default.data),t.dynamicRef&&e.var(De.default.dynamicAnchors,(0,Ie._)`{}`)})}function B3e(e){let{schema:t,opts:r,gen:n}=e;Cj(e,()=>{r.$comment&&t.$comment&&Pj(e),z3e(e),n.let(De.default.vErrors,null),n.let(De.default.errors,0),r.unevaluated&&q3e(e),Oj(e),W3e(e)})}function q3e(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Ie._)`${r}.evaluated`),t.if((0,Ie._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Ie._)`${e.evaluated}.props`,(0,Ie._)`undefined`)),t.if((0,Ie._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Ie._)`${e.evaluated}.items`,(0,Ie._)`undefined`))}function Tj(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Ie._)`/*# sourceURL=${r} */`:Ie.nil}function j3e(e,t){if(Rj(e)&&(Nj(e),Ij(e))){U3e(e,t);return}(0,Aj.boolOrEmptySchema)(e,t)}function Ij({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function Rj(e){return typeof e.schema!="boolean"}function U3e(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Pj(e),V3e(e),G3e(e);let s=n.const("_errs",De.default.errors);Oj(e,s),n.var(t,(0,Ie._)`${s} === ${De.default.errors}`)}function Nj(e){(0,Oa.checkUnknownRules)(e),H3e(e)}function Oj(e,t){if(e.opts.jtd)return Sj(e,[],!1,t);let r=(0,vj.getSchemaTypes)(e.schema),n=(0,vj.coerceAndCheckDataType)(e,r);Sj(e,r,!n,t)}function H3e(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Oa.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function z3e(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Oa.checkStrictMode)(e,"default is ignored in the schema root")}function V3e(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,$3e.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function G3e(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Pj({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,Ie._)`${De.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,Ie.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,Ie._)`${De.default.self}.opts.$comment(${s}, ${a}, ${o}.schema)`)}}function W3e(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,Ie._)`${De.default.errors} === 0`,()=>t.return(De.default.data),()=>t.throw((0,Ie._)`new ${i}(${De.default.vErrors})`)):(t.assign((0,Ie._)`${n}.errors`,De.default.vErrors),s.unevaluated&&K3e(e),t.return((0,Ie._)`${De.default.errors} === 0`))}function K3e({gen:e,evaluated:t,props:r,items:n}){r instanceof Ie.Name&&e.assign((0,Ie._)`${t}.props`,r),n instanceof Ie.Name&&e.assign((0,Ie._)`${t}.items`,n)}function Sj(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:o,opts:u,self:l}=e,{RULES:c}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Oa.schemaHasRulesButRef)(s,c))){i.block(()=>kj(e,"$ref",c.all.$ref.definition));return}u.jtd||Y3e(e,t),i.block(()=>{for(let d of c.rules)f(d);f(c.post)});function f(d){(0,qA.shouldUseGroup)(s,d)&&(d.type?(i.if((0,vy.checkDataType)(d.type,a,u.strictNumbers)),wj(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,vy.reportTypeError)(e)),i.endIf()):wj(e,d),o||i.if((0,Ie._)`${De.default.errors} === ${n||0}`))}}function wj(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,k3e.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,qA.shouldUseRule)(n,s)&&kj(e,s.keyword,s.definition,t.type)})}function Y3e(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(X3e(e,t),e.opts.allowUnionTypes||J3e(e,t),Q3e(e,e.dataTypes))}function X3e(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Dj(e.dataTypes,r)||jA(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),eCe(e,t)}}function J3e(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&jA(e,"use allowUnionTypes to allow union type keyword")}function Q3e(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,qA.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>Z3e(t,a))&&jA(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function Z3e(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Dj(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function eCe(e,t){let r=[];for(let n of e.dataTypes)Dj(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function jA(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Oa.checkStrictMode)(e,t,e.opts.strictTypes)}var Ty=class{constructor(t,r,n){if((0,lp.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Oa.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",$j(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,lp.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",De.default.errors))}result(t,r,n){this.failResult((0,Ie.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Ie.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Ie._)`${r} !== undefined && (${(0,Ie.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?cp.reportExtraError:cp.reportError)(this,this.def.error,r)}$dataError(){(0,cp.reportError)(this,this.def.$dataError||cp.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,cp.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Ie.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Ie.nil,r=Ie.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,Ie.or)((0,Ie._)`${i} === undefined`,r)),t!==Ie.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Ie.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,Ie.or)(a(),o());function a(){if(n.length){if(!(r instanceof Ie.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,Ie._)`${(0,vy.checkDataTypes)(u,r,s.opts.strictNumbers,vy.DataType.Wrong)}`}return Ie.nil}function o(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Ie._)`!${u}(${r})`}return Ie.nil}}subschema(t,r){let n=(0,BA.getSubschema)(this.it,t);(0,BA.extendSubschemaData)(n,this.it,t),(0,BA.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return j3e(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Oa.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Oa.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,Ie.Name)),!0}};Bo.KeywordCxt=Ty;function kj(e,t,r,n){let i=new Ty(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,lp.funcKeywordCode)(i,r):"macro"in r?(0,lp.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,lp.funcKeywordCode)(i,r)}var tCe=/^\/(?:[^~]|~0|~1)*$/,rCe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $j(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return De.default.rootData;if(e[0]==="/"){if(!tCe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=De.default.rootData}else{let l=rCe.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let c=+l[1];if(i=l[2],i==="#"){if(c>=t)throw new Error(u("property/index",c));return n[t-c]}if(c>t)throw new Error(u("data",c));if(s=r[t-c],!i)return s}let a=s,o=i.split("/");for(let l of o)l&&(s=(0,Ie._)`${s}${(0,Ie.getProperty)((0,Oa.unescapeJsonPointer)(l))}`,a=(0,Ie._)`${a} && ${s}`);return a;function u(l,c){return`Cannot access ${l} ${c} levels up, current level is ${t}`}}Bo.getData=$j});var fp=_(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});var UA=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};HA.default=UA});var Pa=_(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});var zA=up(),VA=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,zA.resolveUrl)(t,r,n),this.missingSchema=(0,zA.normalizeId)((0,zA.getFullPath)(t,this.missingRef))}};GA.default=VA});var yc=_(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.resolveSchema=Pi.getCompilingSchema=Pi.resolveRef=Pi.compileSchema=Pi.SchemaEnv=void 0;var os=Oe(),nCe=fp(),gc=Oi(),us=up(),Lj=He(),iCe=nf(),sf=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,us.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Pi.SchemaEnv=sf;function KA(e){let t=Mj.call(this,e);if(t)return t;let r=(0,us.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new os.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o;e.$async&&(o=a.scopeValue("Error",{ref:nCe.default,code:(0,os._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:gc.default.data,parentData:gc.default.parentData,parentDataProperty:gc.default.parentDataProperty,dataNames:[gc.default.data],dataPathArr:[os.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,os.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:os.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,os._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(e),(0,iCe.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();c=`${a.scopeRefs(gc.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,e));let h=new Function(`${gc.default.self}`,`${gc.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof os.Name?void 0:p,items:m instanceof os.Name?void 0:m,dynamicProps:p instanceof os.Name,dynamicItems:m instanceof os.Name},h.source&&(h.source.evaluated=(0,os.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(e)}}Pi.compileSchema=KA;function sCe(e,t,r){var n;r=(0,us.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=uCe.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;a&&(s=new sf({schema:a,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=aCe.call(this,s)}Pi.resolveRef=sCe;function aCe(e){return(0,us.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:KA.call(this,e)}function Mj(e){for(let t of this._compilations)if(oCe(t,e))return t}Pi.getCompilingSchema=Mj;function oCe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function uCe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Sy.call(this,e,t)}function Sy(e,t){let r=this.opts.uriResolver.parse(t),n=(0,us._getFullPath)(this.opts.uriResolver,r),i=(0,us.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return WA.call(this,r,e);let s=(0,us.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let o=Sy.call(this,e,a);return typeof o?.schema!="object"?void 0:WA.call(this,r,o)}if(typeof a?.schema=="object"){if(a.validate||KA.call(this,a),s===(0,us.normalizeId)(t)){let{schema:o}=a,{schemaId:u}=this.opts,l=o[u];return l&&(i=(0,us.resolveUrl)(this.opts.uriResolver,i,l)),new sf({schema:o,schemaId:u,root:e,baseId:i})}return WA.call(this,r,a)}}Pi.resolveSchema=Sy;var cCe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function WA(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,Lj.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!cCe.has(o)&&l&&(t=(0,us.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,Lj.schemaHasRulesButRef)(r,this.RULES)){let o=(0,us.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=Sy.call(this,n,o)}let{schemaId:a}=this.opts;if(s=s||new sf({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var Fj=_((Jnt,lCe)=>{lCe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var XA=_((Qnt,Uj)=>{"use strict";var fCe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),qj=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function YA(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var dCe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Bj(e){return e.length=0,!0}function pCe(e,t,r){if(e.length){let n=YA(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function hCe(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,o=pCe;for(let u=0;u<e.length;u++){let l=e[u];if(!(l==="["||l==="]"))if(l===":"){if(s===!0&&(a=!0),!o(i,n,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!o(i,n,r))break;o=Bj}else{i.push(l);continue}}return i.length&&(o===Bj?r.zone=i.join(""):a?n.push(i.join("")):n.push(YA(i))),r.address=n.join(""),r}function jj(e){if(mCe(e,":")<2)return{host:e,isIPV6:!1};let t=hCe(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function mCe(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function gCe(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(i===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function yCe(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function bCe(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!qj(r)){let n=jj(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Uj.exports={nonSimpleDomain:dCe,recomposeAuthority:bCe,normalizeComponentEncoding:yCe,removeDotSegments:gCe,isIPv4:qj,isUUID:fCe,normalizeIPv6:jj,stringArrayToHexStripped:YA}});var Wj=_((Znt,Gj)=>{"use strict";var{isUUID:xCe}=XA(),ECe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,_Ce=["http","https","ws","wss","urn","urn:uuid"];function vCe(e){return _Ce.indexOf(e)!==-1}function JA(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Hj(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function zj(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function TCe(e){return e.secure=JA(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function SCe(e){if((e.port===(JA(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function wCe(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(ECe);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=QA(i);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function ACe(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=QA(i);s&&(e=s.serialize(e,t));let a=e,o=e.nss;return a.path=`${n||t.nid}:${o}`,t.skipEscape=!0,a}function CCe(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!xCe(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function ICe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Vj={scheme:"http",domainHost:!0,parse:Hj,serialize:zj},RCe={scheme:"https",domainHost:Vj.domainHost,parse:Hj,serialize:zj},wy={scheme:"ws",domainHost:!0,parse:TCe,serialize:SCe},NCe={scheme:"wss",domainHost:wy.domainHost,parse:wy.parse,serialize:wy.serialize},OCe={scheme:"urn",parse:wCe,serialize:ACe,skipNormalize:!0},PCe={scheme:"urn:uuid",parse:CCe,serialize:ICe,skipNormalize:!0},Ay={http:Vj,https:RCe,ws:wy,wss:NCe,urn:OCe,"urn:uuid":PCe};Object.setPrototypeOf(Ay,null);function QA(e){return e&&(Ay[e]||Ay[e.toLowerCase()])||void 0}Gj.exports={wsIsSecure:JA,SCHEMES:Ay,isValidSchemeName:vCe,getSchemeHandler:QA}});var Xj=_((eit,Iy)=>{"use strict";var{normalizeIPv6:DCe,removeDotSegments:dp,recomposeAuthority:kCe,normalizeComponentEncoding:Cy,isIPv4:$Ce,nonSimpleDomain:LCe}=XA(),{SCHEMES:MCe,getSchemeHandler:Kj}=Wj();function FCe(e,t){return typeof e=="string"?e=Hs(Da(e,t),t):typeof e=="object"&&(e=Da(Hs(e,t),t)),e}function BCe(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=Yj(Da(e,n),Da(t,n),n,!0);return n.skipEscape=!0,Hs(i,n)}function Yj(e,t,r,n){let i={};return n||(e=Da(Hs(e,r),r),t=Da(Hs(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=dp(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=dp(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=dp(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=dp(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function qCe(e,t,r){return typeof e=="string"?(e=unescape(e),e=Hs(Cy(Da(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Hs(Cy(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Hs(Cy(Da(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Hs(Cy(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Hs(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=Kj(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let a=kCe(r);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=dp(o)),a===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),i.push(o)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var jCe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Da(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(jCe);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if($Ce(n.host)===!1){let u=DCe(n.host);n.host=u.host.toLowerCase(),i=u.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=Kj(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&i===!1&&LCe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(o){n.error=n.error||"Host's domain name can not be converted to ASCII: "+o}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var ZA={SCHEMES:MCe,normalize:FCe,resolve:BCe,resolveComponent:Yj,equal:qCe,serialize:Hs,parse:Da};Iy.exports=ZA;Iy.exports.default=ZA;Iy.exports.fastUri=ZA});var Qj=_(e3=>{"use strict";Object.defineProperty(e3,"__esModule",{value:!0});var Jj=Xj();Jj.code='require("ajv/dist/runtime/uri").default';e3.default=Jj});var n3=_(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.CodeGen=Xr.Name=Xr.nil=Xr.stringify=Xr.str=Xr._=Xr.KeywordCxt=void 0;var UCe=nf();Object.defineProperty(Xr,"KeywordCxt",{enumerable:!0,get:function(){return UCe.KeywordCxt}});var af=Oe();Object.defineProperty(Xr,"_",{enumerable:!0,get:function(){return af._}});Object.defineProperty(Xr,"str",{enumerable:!0,get:function(){return af.str}});Object.defineProperty(Xr,"stringify",{enumerable:!0,get:function(){return af.stringify}});Object.defineProperty(Xr,"nil",{enumerable:!0,get:function(){return af.nil}});Object.defineProperty(Xr,"Name",{enumerable:!0,get:function(){return af.Name}});Object.defineProperty(Xr,"CodeGen",{enumerable:!0,get:function(){return af.CodeGen}});var HCe=fp(),nU=Pa(),zCe=NA(),pp=yc(),VCe=Oe(),hp=up(),Ry=op(),r3=He(),Zj=Fj(),GCe=Qj(),iU=(e,t)=>new RegExp(e,t);iU.code="new RegExp";var WCe=["removeAdditional","useDefaults","coerceTypes"],KCe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),YCe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},XCe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},eU=200;function JCe(e){var t,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v,E,x,T,S,w,A,C;let I=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,P=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:iU,k=(i=e.uriResolver)!==null&&i!==void 0?i:GCe.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:I)!==null&&a!==void 0?a:!0,strictNumbers:(u=(o=e.strictNumbers)!==null&&o!==void 0?o:I)!==null&&u!==void 0?u:!0,strictTypes:(c=(l=e.strictTypes)!==null&&l!==void 0?l:I)!==null&&c!==void 0?c:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:I)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=e.strictRequired)!==null&&h!==void 0?h:I)!==null&&p!==void 0?p:!1,code:e.code?{...e.code,optimize:R,regExp:P}:{optimize:R,regExp:P},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:eU,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:eU,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=e.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(C=e.int32range)!==null&&C!==void 0?C:!0,uriResolver:k}}var mp=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...JCe(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new VCe.ValueScope({scope:{},prefixes:KCe,es5:r,lines:n}),this.logger=n4e(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,zCe.getRules)(),tU.call(this,YCe,t,"NOT SUPPORTED"),tU.call(this,XCe,t,"DEPRECATED","warn"),this._metaOpts=t4e.call(this),t.formats&&ZCe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&e4e.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),QCe.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=Zj;n==="id"&&(i={...Zj},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(c,f){await s.call(this,c.$schema);let d=this._addSchema(c,f);return d.validate||a.call(this,d)}async function s(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof nU.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,c)}}function o({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function u(c){let f=await l.call(this,c);this.refs[c]||await s.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,r)}async function l(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,hp.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=rU.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new pp.SchemaEnv({schema:{},schemaId:n});if(r=pp.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=rU.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,hp.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(s4e.call(this,n,r),!r)return(0,r3.eachItem)(n,s=>t3.call(this,s)),this;o4e.call(this,r);let i={...r,type:(0,Ry.getJSONTypes)(r.type),schemaType:(0,Ry.getJSONTypes)(r.schemaType)};return(0,r3.eachItem)(n,i.type.length===0?s=>t3.call(this,s,i):s=>i.type.forEach(a=>t3.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let o of s)a=a[o];for(let o in n){let u=n[o];if(typeof u!="object")continue;let{$data:l}=u.definition,c=a[o];l&&c&&(a[o]=sU(c))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof t=="object")a=t[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,hp.normalizeId)(a||n);let l=hp.getSchemaRefs.call(this,t,n);return u=new pp.SchemaEnv({schema:t,schemaId:o,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):pp.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{pp.compileSchema.call(this,t)}finally{this.opts=r}}};mp.ValidationError=HCe.default;mp.MissingRefError=nU.default;Xr.default=mp;function tU(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}function rU(e){return e=(0,hp.normalizeId)(e),this.schemas[e]||this.refs[e]}function QCe(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function ZCe(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function e4e(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function t4e(){let e={...this.opts};for(let t of WCe)delete e[t];return e}var r4e={log(){},warn(){},error(){}};function n4e(e){if(e===!1)return r4e;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var i4e=/^[a-z_$][a-z0-9_$:-]*$/i;function s4e(e,t){let{RULES:r}=this;if((0,r3.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!i4e.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function t3(e,t,r){var n;let i=t?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,Ry.getJSONTypes)(t.type),schemaType:(0,Ry.getJSONTypes)(t.schemaType)}};t.before?a4e.call(this,a,o,t.before):a.rules.push(o),s.all[e]=o,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}function a4e(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function o4e(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=sU(t)),e.validateSchema=this.compile(t,!0))}var u4e={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function sU(e){return{anyOf:[e,u4e]}}});var aU=_(i3=>{"use strict";Object.defineProperty(i3,"__esModule",{value:!0});var c4e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};i3.default=c4e});var s3=_(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.callRef=bc.getValidate=void 0;var l4e=Pa(),oU=Yr(),Qn=Oe(),of=Oi(),uU=yc(),Ny=He(),f4e={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:o,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let c=uU.resolveRef.call(u,l,i,r);if(c===void 0)throw new l4e.default(n.opts.uriResolver,i,r);if(c instanceof uU.SchemaEnv)return d(c);return h(c);function f(){if(s===l)return Oy(e,a,s,s.$async);let p=t.scopeValue("root",{ref:l});return Oy(e,(0,Qn._)`${p}.validate`,l,l.$async)}function d(p){let m=cU(e,p);Oy(e,m,p,p.$async)}function h(p){let m=t.scopeValue("schema",o.code.source===!0?{ref:p,code:(0,Qn.stringify)(p)}:{ref:p}),y=t.name("valid"),g=e.subschema({schema:p,dataTypes:[],schemaPath:Qn.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function cU(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Qn._)`${r.scopeValue("wrapper",{ref:t})}.validate`}bc.getValidate=cU;function Oy(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:o,opts:u}=s,l=u.passContext?of.default.this:Qn.nil;n?c():f();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,Qn._)`await ${(0,oU.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},m=>{i.if((0,Qn._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),a||i.assign(p,!1)}),e.ok(p)}function f(){e.result((0,oU.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}function d(p){let m=(0,Qn._)`${p}.errors`;i.assign(of.default.vErrors,(0,Qn._)`${of.default.vErrors} === null ? ${m} : ${of.default.vErrors}.concat(${m})`),i.assign(of.default.errors,(0,Qn._)`${of.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let y=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=Ny.mergeEvaluated.props(i,y.props,s.props));else{let g=i.var("props",(0,Qn._)`${p}.evaluated.props`);s.props=Ny.mergeEvaluated.props(i,g,s.props,Qn.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=Ny.mergeEvaluated.items(i,y.items,s.items));else{let g=i.var("items",(0,Qn._)`${p}.evaluated.items`);s.items=Ny.mergeEvaluated.items(i,g,s.items,Qn.Name)}}}bc.callRef=Oy;bc.default=f4e});var lU=_(a3=>{"use strict";Object.defineProperty(a3,"__esModule",{value:!0});var d4e=aU(),p4e=s3(),h4e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",d4e.default,p4e.default];a3.default=h4e});var fU=_(o3=>{"use strict";Object.defineProperty(o3,"__esModule",{value:!0});var Py=Oe(),qo=Py.operators,Dy={maximum:{okStr:"<=",ok:qo.LTE,fail:qo.GT},minimum:{okStr:">=",ok:qo.GTE,fail:qo.LT},exclusiveMaximum:{okStr:"<",ok:qo.LT,fail:qo.GTE},exclusiveMinimum:{okStr:">",ok:qo.GT,fail:qo.LTE}},m4e={message:({keyword:e,schemaCode:t})=>(0,Py.str)`must be ${Dy[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Py._)`{comparison: ${Dy[e].okStr}, limit: ${t}}`},g4e={keyword:Object.keys(Dy),type:"number",schemaType:"number",$data:!0,error:m4e,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Py._)`${r} ${Dy[t].fail} ${n} || isNaN(${r})`)}};o3.default=g4e});var dU=_(u3=>{"use strict";Object.defineProperty(u3,"__esModule",{value:!0});var gp=Oe(),y4e={message:({schemaCode:e})=>(0,gp.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,gp._)`{multipleOf: ${e}}`},b4e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:y4e,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),o=s?(0,gp._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,gp._)`${a} !== parseInt(${a})`;e.fail$data((0,gp._)`(${n} === 0 || (${a} = ${r}/${n}, ${o}))`)}};u3.default=b4e});var hU=_(c3=>{"use strict";Object.defineProperty(c3,"__esModule",{value:!0});function pU(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}c3.default=pU;pU.code='require("ajv/dist/runtime/ucs2length").default'});var mU=_(l3=>{"use strict";Object.defineProperty(l3,"__esModule",{value:!0});var xc=Oe(),x4e=He(),E4e=hU(),_4e={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,xc.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,xc._)`{limit: ${e}}`},v4e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_4e,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?xc.operators.GT:xc.operators.LT,a=i.opts.unicode===!1?(0,xc._)`${r}.length`:(0,xc._)`${(0,x4e.useFunc)(e.gen,E4e.default)}(${r})`;e.fail$data((0,xc._)`${a} ${s} ${n}`)}};l3.default=v4e});var gU=_(f3=>{"use strict";Object.defineProperty(f3,"__esModule",{value:!0});var T4e=Yr(),ky=Oe(),S4e={message:({schemaCode:e})=>(0,ky.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,ky._)`{pattern: ${e}}`},w4e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:S4e,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",o=r?(0,ky._)`(new RegExp(${i}, ${a}))`:(0,T4e.usePattern)(e,n);e.fail$data((0,ky._)`!${o}.test(${t})`)}};f3.default=w4e});var yU=_(d3=>{"use strict";Object.defineProperty(d3,"__esModule",{value:!0});var yp=Oe(),A4e={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,yp.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,yp._)`{limit: ${e}}`},C4e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:A4e,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?yp.operators.GT:yp.operators.LT;e.fail$data((0,yp._)`Object.keys(${r}).length ${i} ${n}`)}};d3.default=C4e});var bU=_(p3=>{"use strict";Object.defineProperty(p3,"__esModule",{value:!0});var bp=Yr(),xp=Oe(),I4e=He(),R4e={message:({params:{missingProperty:e}})=>(0,xp.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,xp._)`{missingProperty: ${e}}`},N4e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:R4e,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:o}=a;if(!s&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?l():c(),o.strictRequired){let h=e.parentSchema.properties,{definedProperties:p}=e.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let y=a.schemaEnv.baseId+a.errSchemaPath,g=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,I4e.checkStrictMode)(a,g,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(xp.nil,f);else for(let h of r)(0,bp.checkReportMissingProp)(e,h)}function c(){let h=t.let("missing");if(u||s){let p=t.let("valid",!0);e.block$data(p,()=>d(h,p)),e.ok(p)}else t.if((0,bp.checkMissingProp)(e,r,h)),(0,bp.reportMissingProp)(e,h),t.else()}function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,bp.noPropertyInData)(t,i,h,o.ownProperties),()=>e.error())})}function d(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,bp.propertyInData)(t,i,h,o.ownProperties)),t.if((0,xp.not)(p),()=>{e.error(),t.break()})},xp.nil)}}};p3.default=N4e});var xU=_(h3=>{"use strict";Object.defineProperty(h3,"__esModule",{value:!0});var Ep=Oe(),O4e={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ep.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ep._)`{limit: ${e}}`},P4e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:O4e,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Ep.operators.GT:Ep.operators.LT;e.fail$data((0,Ep._)`${r}.length ${i} ${n}`)}};h3.default=P4e});var $y=_(m3=>{"use strict";Object.defineProperty(m3,"__esModule",{value:!0});var EU=Si();EU.code='require("ajv/dist/runtime/equal").default';m3.default=EU});var _U=_(y3=>{"use strict";Object.defineProperty(y3,"__esModule",{value:!0});var g3=op(),Jr=Oe(),D4e=He(),k4e=$y(),$4e={message:({params:{i:e,j:t}})=>(0,Jr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Jr._)`{i: ${e}, j: ${t}}`},L4e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:$4e,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:o}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,g3.getSchemaTypes)(s.items):[];e.block$data(u,c,(0,Jr._)`${a} === false`),e.ok(u);function c(){let p=t.let("i",(0,Jr._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(u,!0),t.if((0,Jr._)`${p} > 1`,()=>(f()?d:h)(p,m))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function d(p,m){let y=t.name("item"),g=(0,g3.checkDataTypes)(l,y,o.opts.strictNumbers,g3.DataType.Wrong),v=t.const("indices",(0,Jr._)`{}`);t.for((0,Jr._)`;${p}--;`,()=>{t.let(y,(0,Jr._)`${r}[${p}]`),t.if(g,(0,Jr._)`continue`),l.length>1&&t.if((0,Jr._)`typeof ${y} == "string"`,(0,Jr._)`${y} += "_"`),t.if((0,Jr._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(m,(0,Jr._)`${v}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Jr._)`${v}[${y}] = ${p}`)})}function h(p,m){let y=(0,D4e.useFunc)(t,k4e.default),g=t.name("outer");t.label(g).for((0,Jr._)`;${p}--;`,()=>t.for((0,Jr._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Jr._)`${y}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(g)})))}}};y3.default=L4e});var vU=_(x3=>{"use strict";Object.defineProperty(x3,"__esModule",{value:!0});var b3=Oe(),M4e=He(),F4e=$y(),B4e={message:"must be equal to constant",params:({schemaCode:e})=>(0,b3._)`{allowedValue: ${e}}`},q4e={keyword:"const",$data:!0,error:B4e,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,b3._)`!${(0,M4e.useFunc)(t,F4e.default)}(${r}, ${i})`):e.fail((0,b3._)`${s} !== ${r}`)}};x3.default=q4e});var TU=_(E3=>{"use strict";Object.defineProperty(E3,"__esModule",{value:!0});var _p=Oe(),j4e=He(),U4e=$y(),H4e={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,_p._)`{allowedValues: ${e}}`},z4e={keyword:"enum",schemaType:"array",$data:!0,error:H4e,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,u,l=()=>u??(u=(0,j4e.useFunc)(t,U4e.default)),c;if(o||n)c=t.let("valid"),e.block$data(c,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);c=(0,_p.or)(...i.map((p,m)=>d(h,m)))}e.pass(c);function f(){t.assign(c,!1),t.forOf("v",s,h=>t.if((0,_p._)`${l()}(${r}, ${h})`,()=>t.assign(c,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,_p._)`${l()}(${r}, ${h}[${p}])`:(0,_p._)`${r} === ${m}`}}};E3.default=z4e});var SU=_(_3=>{"use strict";Object.defineProperty(_3,"__esModule",{value:!0});var V4e=fU(),G4e=dU(),W4e=mU(),K4e=gU(),Y4e=yU(),X4e=bU(),J4e=xU(),Q4e=_U(),Z4e=vU(),e6e=TU(),t6e=[V4e.default,G4e.default,W4e.default,K4e.default,Y4e.default,X4e.default,J4e.default,Q4e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Z4e.default,e6e.default];_3.default=t6e});var T3=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.validateAdditionalItems=void 0;var Ec=Oe(),v3=He(),r6e={message:({params:{len:e}})=>(0,Ec.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ec._)`{limit: ${e}}`},n6e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:r6e,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,v3.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}wU(e,n)}};function wU(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let o=r.const("len",(0,Ec._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ec._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,v3.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Ec._)`${o} <= ${t.length}`);r.if((0,Ec.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,o,c=>{e.subschema({keyword:s,dataProp:c,dataPropType:v3.Type.Num},l),a.allErrors||r.if((0,Ec.not)(l),()=>r.break())})}}vp.validateAdditionalItems=wU;vp.default=n6e});var S3=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.validateTuple=void 0;var AU=Oe(),Ly=He(),i6e=Yr(),s6e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return CU(e,"additionalItems",t);r.items=!0,!(0,Ly.alwaysValidSchema)(r,t)&&e.ok((0,i6e.validateArray)(e))}};function CU(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:o}=e;c(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=Ly.mergeEvaluated.items(n,r.length,o.items));let u=n.name("valid"),l=n.const("len",(0,AU._)`${s}.length`);r.forEach((f,d)=>{(0,Ly.alwaysValidSchema)(o,f)||(n.if((0,AU._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function c(f){let{opts:d,errSchemaPath:h}=o,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[t]===!1);if(d.strictTuples&&!m){let y=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Ly.checkStrictMode)(o,y,d.strictTuples)}}}Tp.validateTuple=CU;Tp.default=s6e});var IU=_(w3=>{"use strict";Object.defineProperty(w3,"__esModule",{value:!0});var a6e=S3(),o6e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,a6e.validateTuple)(e,"items")};w3.default=o6e});var NU=_(A3=>{"use strict";Object.defineProperty(A3,"__esModule",{value:!0});var RU=Oe(),u6e=He(),c6e=Yr(),l6e=T3(),f6e={message:({params:{len:e}})=>(0,RU.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,RU._)`{limit: ${e}}`},d6e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:f6e,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,u6e.alwaysValidSchema)(n,t)&&(i?(0,l6e.validateAdditionalItems)(e,i):e.ok((0,c6e.validateArray)(e)))}};A3.default=d6e});var OU=_(C3=>{"use strict";Object.defineProperty(C3,"__esModule",{value:!0});var Di=Oe(),My=He(),p6e={message:({params:{min:e,max:t}})=>t===void 0?(0,Di.str)`must contain at least ${e} valid item(s)`:(0,Di.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Di._)`{minContains: ${e}}`:(0,Di._)`{minContains: ${e}, maxContains: ${t}}`},h6e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:p6e,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,o,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,o=l):a=1;let c=t.const("len",(0,Di._)`${i}.length`);if(e.setParams({min:a,max:o}),o===void 0&&a===0){(0,My.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,My.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,My.alwaysValidSchema)(s,r)){let m=(0,Di._)`${c} >= ${a}`;o!==void 0&&(m=(0,Di._)`${m} && ${c} <= ${o}`),e.pass(m);return}s.items=!0;let f=t.name("valid");o===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),o!==void 0&&t.if((0,Di._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let m=t.name("_valid"),y=t.let("count",0);h(m,()=>t.if(m,()=>p(y)))}function h(m,y){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:My.Type.Num,compositeRule:!0},m),y()})}function p(m){t.code((0,Di._)`${m}++`),o===void 0?t.if((0,Di._)`${m} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Di._)`${m} > ${o}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Di._)`${m} >= ${a}`,()=>t.assign(f,!0)))}}};C3.default=h6e});var kU=_(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.validateSchemaDeps=zs.validatePropertyDeps=zs.error=void 0;var I3=Oe(),m6e=He(),Sp=Yr();zs.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,I3.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,I3._)`{property: ${e},
missingProperty: ${n},
depsCount: ${t},
deps: ${r}}`};var g6e={keyword:"dependencies",type:"object",schemaType:"object",error:zs.error,code(e){let[t,r]=y6e(e);PU(e,t),DU(e,r)}};function y6e({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function PU(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let o=t[a];if(o.length===0)continue;let u=(0,Sp.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of o)(0,Sp.checkReportMissingProp)(e,l)}):(r.if((0,I3._)`${u} && (${(0,Sp.checkMissingProp)(e,o,s)})`),(0,Sp.reportMissingProp)(e,s),r.else())}}zs.validatePropertyDeps=PU;function DU(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let o in t)(0,m6e.alwaysValidSchema)(s,t[o])||(r.if((0,Sp.propertyInData)(r,n,o,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:o},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}zs.validateSchemaDeps=DU;zs.default=g6e});var LU=_(R3=>{"use strict";Object.defineProperty(R3,"__esModule",{value:!0});var $U=Oe(),b6e=He(),x6e={message:"property name must be valid",params:({params:e})=>(0,$U._)`{propertyName: ${e.propertyName}}`},E6e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:x6e,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,b6e.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,$U.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};R3.default=E6e});var O3=_(N3=>{"use strict";Object.defineProperty(N3,"__esModule",{value:!0});var Fy=Yr(),cs=Oe(),_6e=Oi(),By=He(),v6e={message:"must NOT have additional properties",params:({params:e})=>(0,cs._)`{additionalProperty: ${e.additionalProperty}}`},T6e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:v6e,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,By.alwaysValidSchema)(a,r))return;let l=(0,Fy.allSchemaProperties)(n.properties),c=(0,Fy.allSchemaProperties)(n.patternProperties);f(),e.ok((0,cs._)`${s} === ${_6e.default.errors}`);function f(){t.forIn("key",i,y=>{!l.length&&!c.length?p(y):t.if(d(y),()=>p(y))})}function d(y){let g;if(l.length>8){let v=(0,By.schemaRefOrVal)(a,n.properties,"properties");g=(0,Fy.isOwnProperty)(t,v,y)}else l.length?g=(0,cs.or)(...l.map(v=>(0,cs._)`${y} === ${v}`)):g=cs.nil;return c.length&&(g=(0,cs.or)(g,...c.map(v=>(0,cs._)`${(0,Fy.usePattern)(e,v)}.test(${y})`))),(0,cs.not)(g)}function h(y){t.code((0,cs._)`delete ${i}[${y}]`)}function p(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,By.alwaysValidSchema)(a,r)){let g=t.name("valid");u.removeAdditional==="failing"?(m(y,g,!1),t.if((0,cs.not)(g),()=>{e.reset(),h(y)})):(m(y,g),o||t.if((0,cs.not)(g),()=>t.break()))}}function m(y,g,v){let E={keyword:"additionalProperties",dataProp:y,dataPropType:By.Type.Str};v===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,g)}}};N3.default=T6e});var BU=_(D3=>{"use strict";Object.defineProperty(D3,"__esModule",{value:!0});var S6e=nf(),MU=Yr(),P3=He(),FU=O3(),w6e={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&FU.default.code(new S6e.KeywordCxt(s,FU.default,"additionalProperties"));let a=(0,MU.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=P3.mergeEvaluated.props(t,(0,P3.toHash)(a),s.props));let o=a.filter(f=>!(0,P3.alwaysValidSchema)(s,r[f]));if(o.length===0)return;let u=t.name("valid");for(let f of o)l(f)?c(f):(t.if((0,MU.propertyInData)(t,i,f,s.opts.ownProperties)),c(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function c(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};D3.default=w6e});var HU=_(k3=>{"use strict";Object.defineProperty(k3,"__esModule",{value:!0});var qU=Yr(),qy=Oe(),jU=He(),UU=He(),A6e={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,o=(0,qU.allSchemaProperties)(r),u=o.filter(m=>(0,jU.alwaysValidSchema)(s,r[m]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,c=t.name("valid");s.props!==!0&&!(s.props instanceof qy.Name)&&(s.props=(0,UU.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let m of o)l&&h(m),s.allErrors?p(m):(t.var(c,!0),p(m),t.if(c))}function h(m){for(let y in l)new RegExp(m).test(y)&&(0,jU.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",n,y=>{t.if((0,qy._)`${(0,qU.usePattern)(e,m)}.test(${y})`,()=>{let g=u.includes(m);g||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:UU.Type.Str},c),s.opts.unevaluated&&f!==!0?t.assign((0,qy._)`${f}[${y}]`,!0):!g&&!s.allErrors&&t.if((0,qy.not)(c),()=>t.break())})})}}};k3.default=A6e});var zU=_($3=>{"use strict";Object.defineProperty($3,"__esModule",{value:!0});var C6e=He(),I6e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,C6e.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};$3.default=I6e});var VU=_(L3=>{"use strict";Object.defineProperty(L3,"__esModule",{value:!0});var R6e=Yr(),N6e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:R6e.validateUnion,error:{message:"must match a schema in anyOf"}};L3.default=N6e});var GU=_(M3=>{"use strict";Object.defineProperty(M3,"__esModule",{value:!0});var jy=Oe(),O6e=He(),P6e={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,jy._)`{passingSchemas: ${e.passing}}`},D6e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:P6e,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((c,f)=>{let d;(0,O6e.alwaysValidSchema)(i,c)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,jy._)`${u} && ${a}`).assign(a,!1).assign(o,(0,jy._)`[${o}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(o,f),d&&e.mergeEvaluated(d,jy.Name)})})}}};M3.default=D6e});var WU=_(F3=>{"use strict";Object.defineProperty(F3,"__esModule",{value:!0});var k6e=He(),$6e={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,k6e.alwaysValidSchema)(n,s))return;let o=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(o)})}};F3.default=$6e});var XU=_(B3=>{"use strict";Object.defineProperty(B3,"__esModule",{value:!0});var Uy=Oe(),YU=He(),L6e={message:({params:e})=>(0,Uy.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Uy._)`{failingKeyword: ${e.ifClause}}`},M6e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:L6e,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,YU.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=KU(n,"then"),s=KU(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),i&&s){let c=t.let("ifClause");e.setParams({ifClause:c}),t.if(o,l("then",c),l("else",c))}else i?t.if(o,l("then")):t.if((0,Uy.not)(o),l("else"));e.pass(a,()=>e.error(!0));function u(){let c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(c)}function l(c,f){return()=>{let d=e.subschema({keyword:c},o);t.assign(a,o),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Uy._)`${c}`):e.setParams({ifClause:c})}}}};function KU(e,t){let r=e.schema[t];return r!==void 0&&!(0,YU.alwaysValidSchema)(e,r)}B3.default=M6e});var JU=_(q3=>{"use strict";Object.defineProperty(q3,"__esModule",{value:!0});var F6e=He(),B6e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,F6e.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};q3.default=B6e});var QU=_(j3=>{"use strict";Object.defineProperty(j3,"__esModule",{value:!0});var q6e=T3(),j6e=IU(),U6e=S3(),H6e=NU(),z6e=OU(),V6e=kU(),G6e=LU(),W6e=O3(),K6e=BU(),Y6e=HU(),X6e=zU(),J6e=VU(),Q6e=GU(),Z6e=WU(),eIe=XU(),tIe=JU();function rIe(e=!1){let t=[X6e.default,J6e.default,Q6e.default,Z6e.default,eIe.default,tIe.default,G6e.default,W6e.default,V6e.default,K6e.default,Y6e.default];return e?t.push(j6e.default,H6e.default):t.push(q6e.default,U6e.default),t.push(z6e.default),t}j3.default=rIe});var ZU=_(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});var fr=Oe(),nIe={message:({schemaCode:e})=>(0,fr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,fr._)`{format: ${e}}`},iIe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:nIe,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:o}=e,{opts:u,errSchemaPath:l,schemaEnv:c,self:f}=o;if(!u.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),m=r.const("fDef",(0,fr._)`${p}[${a}]`),y=r.let("fType"),g=r.let("format");r.if((0,fr._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,fr._)`${m}.type || "string"`).assign(g,(0,fr._)`${m}.validate`),()=>r.assign(y,(0,fr._)`"string"`).assign(g,m)),e.fail$data((0,fr.or)(v(),E()));function v(){return u.strictSchema===!1?fr.nil:(0,fr._)`${a} && !${g}`}function E(){let x=c.$async?(0,fr._)`(${m}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,fr._)`${g}(${n})`,T=(0,fr._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,fr._)`${g} && ${g} !== true && ${y} === ${t} && !${T}`}}function h(){let p=f.formats[s];if(!p){v();return}if(p===!0)return;let[m,y,g]=E(p);m===t&&e.pass(x());function v(){if(u.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function E(T){let S=T instanceof RegExp?(0,fr.regexpCode)(T):u.code.formats?(0,fr._)`${u.code.formats}${(0,fr.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:T,code:S});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,fr._)`${w}.validate`]:["string",T,w]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!c.$async)throw new Error("async format in sync schema");return(0,fr._)`await ${g}(${n})`}return typeof y=="function"?(0,fr._)`${g}(${n})`:(0,fr._)`${g}.test(${n})`}}}};U3.default=iIe});var eH=_(H3=>{"use strict";Object.defineProperty(H3,"__esModule",{value:!0});var sIe=ZU(),aIe=[sIe.default];H3.default=aIe});var tH=_(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.contentVocabulary=uf.metadataVocabulary=void 0;uf.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];uf.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var nH=_(z3=>{"use strict";Object.defineProperty(z3,"__esModule",{value:!0});var oIe=lU(),uIe=SU(),cIe=QU(),lIe=eH(),rH=tH(),fIe=[oIe.default,uIe.default,(0,cIe.default)(),lIe.default,rH.metadataVocabulary,rH.contentVocabulary];z3.default=fIe});var V3=_(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.DiscrError=void 0;var iH;(function(e){e.Tag="tag",e.Mapping="mapping"})(iH||(Hy.DiscrError=iH={}))});var aH=_(W3=>{"use strict";Object.defineProperty(W3,"__esModule",{value:!0});var cf=Oe(),G3=V3(),sH=yc(),dIe=Pa(),pIe=He(),hIe={message:({params:{discrError:e,tagName:t}})=>e===G3.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,cf._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},mIe={keyword:"discriminator",type:"object",schemaType:"object",error:hIe,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,cf._)`${r}${(0,cf.getProperty)(o)}`);t.if((0,cf._)`typeof ${l} == "string"`,()=>c(),()=>e.error(!1,{discrError:G3.DiscrError.Tag,tag:l,tagName:o})),e.ok(u);function c(){let h=d();t.if(!1);for(let p in h)t.elseIf((0,cf._)`${l} === ${p}`),t.assign(u,f(h[p]));t.else(),e.error(!1,{discrError:G3.DiscrError.Mapping,tag:l,tagName:o}),t.endIf()}function f(h){let p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(m,cf.Name),p}function d(){var h;let p={},m=g(i),y=!0;for(let x=0;x<a.length;x++){let T=a[x];if(T?.$ref&&!(0,pIe.schemaHasRulesButRef)(T,s.self.RULES)){let w=T.$ref;if(T=sH.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,w),T instanceof sH.SchemaEnv&&(T=T.schema),T===void 0)throw new dIe.default(s.opts.uriResolver,s.baseId,w)}let S=(h=T?.properties)===null||h===void 0?void 0:h[o];if(typeof S!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(m||g(T)),v(S,x)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return p;function g({required:x}){return Array.isArray(x)&&x.includes(o)}function v(x,T){if(x.const)E(x.const,T);else if(x.enum)for(let S of x.enum)E(S,T);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function E(x,T){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${o}" values must be unique strings`);p[x]=T}}}};W3.default=mIe});var oH=_((Uit,gIe)=>{gIe.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var cH=_((Qt,K3)=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.MissingRefError=Qt.ValidationError=Qt.CodeGen=Qt.Name=Qt.nil=Qt.stringify=Qt.str=Qt._=Qt.KeywordCxt=Qt.Ajv=void 0;var yIe=n3(),bIe=nH(),xIe=aH(),uH=oH(),EIe=["/properties"],zy="http://json-schema.org/draft-07/schema",lf=class extends yIe.default{_addVocabularies(){super._addVocabularies(),bIe.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xIe.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(uH,EIe):uH;this.addMetaSchema(t,zy,!1),this.refs["http://json-schema.org/schema"]=zy}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(zy)?zy:void 0)}};Qt.Ajv=lf;K3.exports=Qt=lf;K3.exports.Ajv=lf;Object.defineProperty(Qt,"__esModule",{value:!0});Qt.default=lf;var _Ie=nf();Object.defineProperty(Qt,"KeywordCxt",{enumerable:!0,get:function(){return _Ie.KeywordCxt}});var ff=Oe();Object.defineProperty(Qt,"_",{enumerable:!0,get:function(){return ff._}});Object.defineProperty(Qt,"str",{enumerable:!0,get:function(){return ff.str}});Object.defineProperty(Qt,"stringify",{enumerable:!0,get:function(){return ff.stringify}});Object.defineProperty(Qt,"nil",{enumerable:!0,get:function(){return ff.nil}});Object.defineProperty(Qt,"Name",{enumerable:!0,get:function(){return ff.Name}});Object.defineProperty(Qt,"CodeGen",{enumerable:!0,get:function(){return ff.CodeGen}});var vIe=fp();Object.defineProperty(Qt,"ValidationError",{enumerable:!0,get:function(){return vIe.default}});var TIe=Pa();Object.defineProperty(Qt,"MissingRefError",{enumerable:!0,get:function(){return TIe.default}})});var ka=_(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.checkMetadata=void 0;var SIe=He(),wIe={keyword:"metadata",schemaType:"object",code(e){lH(e);let{gen:t,schema:r,it:n}=e;if((0,SIe.alwaysValidSchema)(n,r))return;let i=t.name("valid");e.subschema({keyword:"metadata",jtdMetadata:!0},i),e.ok(i)}};function lH({it:e,keyword:t},r){if(e.jtdMetadata!==r)throw new Error(`JTD: "${t}" cannot be used in this schema location`)}wp.checkMetadata=lH;wp.default=wIe});var Vy=_(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.hasRef=void 0;var fH=yc(),Ap=Oe(),AIe=Pa(),dH=Oi(),pH=s3(),CIe=ka(),IIe={keyword:"ref",schemaType:"string",code(e){(0,CIe.checkMetadata)(e);let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{schemaEnv:{root:a}}=s,o=t.name("valid");i.nullable?(t.var(o,(0,Ap._)`${r} === null`),t.if((0,Ap.not)(o),u)):(t.var(o,!1),u()),e.ok(o);function u(){var f;let d=(f=a.schema.definitions)===null||f===void 0?void 0:f[n];if(!d)throw new AIe.default(s.opts.uriResolver,"",n,`No definition ${n}`);Y3(d)||!s.opts.inlineRefs?l(d):c(d)}function l(f){let d=fH.compileSchema.call(s.self,new fH.SchemaEnv({schema:f,root:a,schemaPath:`/definitions/${n}`})),h=(0,pH.getValidate)(e,d),p=t.const("_errs",dH.default.errors);(0,pH.callRef)(e,h,d,d.$async),t.assign(o,(0,Ap._)`${p} === ${dH.default.errors}`)}function c(f){let d=t.scopeValue("schema",s.opts.code.source===!0?{ref:f,code:(0,Ap.stringify)(f)}:{ref:f});e.subschema({schema:f,dataTypes:[],schemaPath:Ap.nil,topSchemaRef:d,errSchemaPath:`/definitions/${n}`},o)}}};function Y3(e){for(let t in e){let r;if(t==="ref"||typeof(r=e[t])=="object"&&Y3(r))return!0}return!1}Cp.hasRef=Y3;Cp.default=IIe});var J3=_(X3=>{"use strict";Object.defineProperty(X3,"__esModule",{value:!0});var RIe=/t|\s/i,NIe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,OIe=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,PIe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function mH(e,t){let r=e.split(RIe);return r.length===2&&hH(r[0])&&DIe(r[1])||t&&r.length===1&&hH(r[0])}X3.default=mH;function hH(e){let t=NIe.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&(i<=PIe[n]||n===2&&i===29&&(r%100===0?r%400===0:r%4===0))}function DIe(e){let t=OIe.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3],s=+(t[4]||0),a=+(t[5]||0);return r<=23&&n<=59&&i<=59||r-s===23&&n-a===59&&i===60}mH.code='require("ajv/dist/runtime/timestamp").default'});var df=_(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.typeErrorParams=jo.typeErrorMessage=jo.typeError=void 0;var kIe=Oe();function $Ie(e){return{message:t=>gH(t,e),params:t=>yH(t,e)}}jo.typeError=$Ie;function gH({parentSchema:e},t){return e?.nullable?`must be ${t} or null`:`must be ${t}`}jo.typeErrorMessage=gH;function yH({parentSchema:e},t){return(0,kIe._)`{type: ${t}, nullable: ${!!e?.nullable}}`}jo.typeErrorParams=yH});var Q3=_(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.intRange=void 0;var gi=Oe(),LIe=J3(),MIe=He(),FIe=ka(),bH=df();pf.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var BIe={message:e=>(0,bH.typeErrorMessage)(e,e.schema),params:e=>(0,bH.typeErrorParams)(e,e.schema)};function qIe(e){let{gen:t,data:r,it:n}=e,{timestamp:i,allowDate:s}=n.opts;if(i==="date")return(0,gi._)`${r} instanceof Date `;let a=(0,MIe.useFunc)(t,LIe.default),o=s?(0,gi._)`, true`:gi.nil,u=(0,gi._)`typeof ${r} == "string" && ${a}(${r}${o})`;return i==="string"?u:(0,gi.or)((0,gi._)`${r} instanceof Date`,u)}var jIe={keyword:"type",schemaType:"string",error:BIe,code(e){(0,FIe.checkMetadata)(e);let{data:t,schema:r,parentSchema:n,it:i}=e,s;switch(r){case"boolean":case"string":s=(0,gi._)`typeof ${t} == ${r}`;break;case"timestamp":{s=qIe(e);break}case"float32":case"float64":s=(0,gi._)`typeof ${t} == "number"`;break;default:{let a=r;if(s=(0,gi._)`typeof ${t} == "number" && isFinite(${t}) && !(${t} % 1)`,!i.opts.int32range&&(a==="int32"||a==="uint32"))a==="uint32"&&(s=(0,gi._)`${s} && ${t} >= 0`);else{let[o,u]=pf.intRange[a];s=(0,gi._)`${s} && ${t} >= ${o} && ${t} <= ${u}`}}}e.pass(n.nullable?(0,gi.or)((0,gi._)`${t} === null`,s):s)}};pf.default=jIe});var mf=_(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.checkNullableObject=hf.checkNullable=void 0;var Gy=Oe();function xH({gen:e,data:t,parentSchema:r},n=Gy.nil){let i=e.name("valid");return r.nullable?(e.let(i,(0,Gy._)`${t} === null`),n=(0,Gy.not)(i)):e.let(i,!1),[i,n]}hf.checkNullable=xH;function UIe(e,t){let[r,n]=xH(e,t);return[r,(0,Gy._)`${n} && typeof ${e.data} == "object" && !Array.isArray(${e.data})`]}hf.checkNullableObject=UIe});var EH=_(Z3=>{"use strict";Object.defineProperty(Z3,"__esModule",{value:!0});var Uo=Oe(),HIe=ka(),zIe=mf(),VIe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Uo._)`{allowedValues: ${e}}`},GIe={keyword:"enum",schemaType:"array",error:VIe,code(e){(0,HIe.checkMetadata)(e);let{gen:t,data:r,schema:n,schemaValue:i,parentSchema:s,it:a}=e;if(n.length===0)throw new Error("enum must have non-empty array");if(n.length!==new Set(n).size)throw new Error("enum items must be unique");let o,u=(0,Uo._)`typeof ${r} == "string"`;if(n.length>=a.opts.loopEnum){let c;[o,c]=(0,zIe.checkNullable)(e,u),t.if(c,l)}else{if(!Array.isArray(n))throw new Error("ajv implementation error");o=(0,Uo.and)(u,(0,Uo.or)(...n.map(c=>(0,Uo._)`${r} === ${c}`))),s.nullable&&(o=(0,Uo.or)((0,Uo._)`${r} === null`,o))}e.pass(o);function l(){t.forOf("v",i,c=>t.if((0,Uo._)`${o} = ${r} === ${c}`,()=>t.break()))}}};Z3.default=GIe});var vH=_(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});var WIe=He(),KIe=Yr(),_H=Oe(),YIe=ka(),XIe=mf(),JIe=df(),QIe={keyword:"elements",schemaType:"object",error:(0,JIe.typeError)("array"),code(e){(0,YIe.checkMetadata)(e);let{gen:t,data:r,schema:n,it:i}=e;if((0,WIe.alwaysValidSchema)(i,n))return;let[s]=(0,XIe.checkNullable)(e);t.if((0,_H.not)(s),()=>t.if((0,_H._)`Array.isArray(${r})`,()=>t.assign(s,(0,KIe.validateArray)(e)),()=>e.error())),e.ok(s)}};eC.default=QIe});var rC=_(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.validateProperties=Ho.error=void 0;var tC=Yr(),TH=He(),$a=Oe(),ZIe=ka(),eRe=mf(),SH=df(),gf;(function(e){e.Additional="additional",e.Missing="missing"})(gf||(gf={}));Ho.error={message:e=>{let{params:t}=e;return t.propError?t.propError===gf.Additional?"must NOT have additional properties":`must have property '${t.missingProperty}'`:(0,SH.typeErrorMessage)(e,"object")},params:e=>{let{params:t}=e;return t.propError?t.propError===gf.Additional?(0,$a._)`{error: ${t.propError}, additionalProperty: ${t.additionalProperty}}`:(0,$a._)`{error: ${t.propError}, missingProperty: ${t.missingProperty}}`:(0,SH.typeErrorParams)(e,"object")}};var tRe={keyword:"properties",schemaType:"object",error:Ho.error,code:wH};function wH(e){(0,ZIe.checkMetadata)(e);let{gen:t,data:r,parentSchema:n,it:i}=e,{additionalProperties:s,nullable:a}=n;if(i.jtdDiscriminator&&a)throw new Error("JTD: nullable inside discriminator mapping");if(h())throw new Error("JTD: properties and optionalProperties have common members");let[o,u]=p("properties"),[l,c]=p("optionalProperties");if(u.length===0&&c.length===0&&s)return;let[f,d]=i.jtdDiscriminator===void 0?(0,eRe.checkNullableObject)(e,r):[t.let("valid",!1),!0];t.if(d,()=>t.assign(f,!0).block(()=>{m(u,"properties",!0),m(c,"optionalProperties"),s||g()})),e.pass(f);function h(){let E=n.properties,x=n.optionalProperties;if(!(E&&x))return!1;for(let T in E)if(Object.prototype.hasOwnProperty.call(x,T))return!0;return!1}function p(E){let x=n[E],T=x?(0,tC.allSchemaProperties)(x):[];if(i.jtdDiscriminator&&T.some(w=>w===i.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${E}`);let S=T.filter(w=>!(0,TH.alwaysValidSchema)(i,x[w]));return[T,S]}function m(E,x,T){let S=t.var("valid");for(let A of E)t.if((0,tC.propertyInData)(t,r,A,i.opts.ownProperties),()=>y(A,x,S),()=>w(A)),e.ok(S);function w(A){T?(t.assign(S,!1),e.error(!1,{propError:gf.Missing,missingProperty:A},{schemaPath:A})):t.assign(S,!0)}}function y(E,x,T){e.subschema({keyword:x,schemaProp:E,dataProp:E},T)}function g(){t.forIn("key",r,E=>{let x=v(E,o,"properties",i.jtdDiscriminator),T=v(E,l,"optionalProperties"),S=x===!0?T:T===!0?x:(0,$a.and)(x,T);t.if(S,()=>{i.opts.removeAdditional?t.code((0,$a._)`delete ${r}[${E}]`):(e.error(!1,{propError:gf.Additional,additionalProperty:E},{instancePath:E,parentSchema:!0}),i.opts.allErrors||t.break())})})}function v(E,x,T,S){let w;if(x.length>8){let A=(0,TH.schemaRefOrVal)(i,n[T],T);w=(0,$a.not)((0,tC.isOwnProperty)(t,A,E)),S!==void 0&&(w=(0,$a.and)(w,(0,$a._)`${E} !== ${S}`))}else if(x.length||S!==void 0){let A=S===void 0?x:[S].concat(x);w=(0,$a.and)(...A.map(C=>(0,$a._)`${E} !== ${C}`))}else w=!0;return w}}Ho.validateProperties=wH;Ho.default=tRe});var CH=_(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});var AH=rC(),rRe={keyword:"optionalProperties",schemaType:"object",error:AH.error,code(e){e.parentSchema.properties||(0,AH.validateProperties)(e)}};nC.default=rRe});var RH=_(iC=>{"use strict";Object.defineProperty(iC,"__esModule",{value:!0});var _c=Oe(),nRe=ka(),iRe=mf(),IH=df(),Wy=V3(),sRe={message:e=>{let{schema:t,params:r}=e;return r.discrError?r.discrError===Wy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in mapping`:(0,IH.typeErrorMessage)(e,"object")},params:e=>{let{schema:t,params:r}=e;return r.discrError?(0,_c._)`{error: ${r.discrError}, tag: ${t}, tagValue: ${r.tag}}`:(0,IH.typeErrorParams)(e,"object")}},aRe={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:sRe,code(e){(0,nRe.checkMetadata)(e);let{gen:t,data:r,schema:n,parentSchema:i}=e,[s,a]=(0,iRe.checkNullableObject)(e,r);t.if(a),o(),t.elseIf((0,_c.not)(s)),e.error(),t.endIf(),e.ok(s);function o(){let c=t.const("tag",(0,_c._)`${r}${(0,_c.getProperty)(n)}`);t.if((0,_c._)`${c} === undefined`),e.error(!1,{discrError:Wy.DiscrError.Tag,tag:c}),t.elseIf((0,_c._)`typeof ${c} == "string"`),u(c),t.else(),e.error(!1,{discrError:Wy.DiscrError.Tag,tag:c},{instancePath:n}),t.endIf()}function u(c){t.if(!1);for(let f in i.mapping)t.elseIf((0,_c._)`${c} === ${f}`),t.assign(s,l(f));t.else(),e.error(!1,{discrError:Wy.DiscrError.Mapping,tag:c},{instancePath:n,schemaPath:"mapping",parentSchema:!0}),t.endIf()}function l(c){let f=t.name("valid");return e.subschema({keyword:"mapping",schemaProp:c,jtdDiscriminator:n},f),f}}};iC.default=aRe});var OH=_(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});var NH=He(),Ky=Oe(),oRe=ka(),uRe=mf(),cRe=df(),lRe={keyword:"values",schemaType:"object",error:(0,cRe.typeError)("object"),code(e){(0,oRe.checkMetadata)(e);let{gen:t,data:r,schema:n,it:i}=e,[s,a]=(0,uRe.checkNullableObject)(e,r);(0,NH.alwaysValidSchema)(i,n)?t.if((0,Ky.not)((0,Ky.or)(a,s)),()=>e.error()):(t.if(a),t.assign(s,o()),t.elseIf((0,Ky.not)(s)),e.error(),t.endIf()),e.ok(s);function o(){let u=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return l(()=>t.assign(c,!1)),c}return t.var(u,!0),l(()=>t.break()),u;function l(c){t.forIn("key",r,f=>{e.subschema({keyword:"values",dataProp:f,dataPropType:NH.Type.Str},u),t.if((0,Ky.not)(u),c)})}}}};sC.default=lRe});var PH=_(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});var fRe=Yr(),dRe={keyword:"union",schemaType:"array",trackErrors:!0,code:fRe.validateUnion,error:{message:"must match a schema in union"}};aC.default=dRe});var DH=_(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});var pRe=Vy(),hRe=Q3(),mRe=EH(),gRe=vH(),yRe=rC(),bRe=CH(),xRe=RH(),ERe=OH(),_Re=PH(),vRe=ka(),TRe=["definitions",pRe.default,hRe.default,mRe.default,gRe.default,yRe.default,bRe.default,xRe.default,ERe.default,_Re.default,vRe.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];oC.default=TRe});var MH=_(uC=>{"use strict";Object.defineProperty(uC,"__esModule",{value:!0});var La=e=>{let t={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return e&&(t.definitions={values:{ref:"schema"}}),t},SRe=e=>({optionalProperties:La(e)}),wRe=e=>({properties:{ref:{type:"string"}},optionalProperties:La(e)}),ARe=e=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:La(e)}),CRe=e=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:La(e)}),IRe=e=>({properties:{elements:{ref:"schema"}},optionalProperties:La(e)}),$H=e=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...La(e)}}),LH=e=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...La(e)}}),RRe=e=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[$H(!1),LH(!1)]}}}},optionalProperties:La(e)}),NRe=e=>({properties:{values:{ref:"schema"}},optionalProperties:La(e)}),kH=e=>({metadata:{union:[SRe,wRe,ARe,CRe,IRe,$H,LH,RRe,NRe].map(t=>t(e))}}),ORe={definitions:{schema:kH(!1)},...kH(!0)};uC.default=ORe});var cC=_(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.jtdForms=void 0;Yy.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var BH=_(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});var lC=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,PRe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function FH(e){return lC.lastIndex=0,'"'+(lC.test(e)?e.replace(lC,t=>{let r=PRe[t];return typeof r=="string"?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}):e)+'"'}fC.default=FH;FH.code='require("ajv/dist/runtime/quote").default'});var VH=_(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});var DRe=cC(),jH=yc(),nt=Oe(),kRe=Pa(),zt=Oi(),$Re=Yr(),LRe=Vy(),MRe=He(),FRe=BH(),BRe={elements:jRe,values:URe,discriminator:HRe,properties:qH,optionalProperties:qH,enum:Ip,type:zRe,ref:GRe};function UH(e,t){let r=jH.getCompilingSchema.call(this,e);if(r)return r;let{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new nt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o=a.scopeName("serialize"),u={self:this,gen:a,schema:e.schema,schemaEnv:e,definitions:t,data:zt.default.data},l;try{this._compilations.add(e),e.serializeName=o,a.func(o,zt.default.data,!1,()=>{a.let(zt.default.json,(0,nt.str)``),Rp(u),a.return(zt.default.json)}),a.optimize(this.opts.code.optimize);let c=a.toString();l=`${a.scopeRefs(zt.default.scope)}return ${c}`;let d=new Function(`${zt.default.scope}`,l)(this.scope.get());this.scope.value(o,{ref:d}),e.serialize=d}catch(c){throw l&&this.logger.error("Error compiling serializer, function code:",l),delete e.serialize,delete e.serializeName,c}finally{this._compilations.delete(e)}return e}pC.default=UH;function Rp(e){let t;for(let r of DRe.jtdForms)if(r in e.schema){t=r;break}qRe(e,t?BRe[t]:KRe)}function qRe(e,t){let{gen:r,schema:n,data:i}=e;if(!n.nullable)return t(e);r.if((0,nt._)`${i} === undefined || ${i} === null`,()=>r.add(zt.default.json,(0,nt._)`"null"`),()=>t(e))}function jRe(e){let{gen:t,schema:r,data:n}=e;t.add(zt.default.json,(0,nt.str)`[`);let i=t.let("first",!0);t.forOf("el",n,s=>{dC(e,i),Rp({...e,schema:r.elements,data:s})}),t.add(zt.default.json,(0,nt.str)`]`)}function URe(e){let{gen:t,schema:r,data:n}=e;t.add(zt.default.json,(0,nt.str)`{`);let i=t.let("first",!0);t.forIn("key",n,s=>HH(e,s,r.values,i)),t.add(zt.default.json,(0,nt.str)`}`)}function HH(e,t,r,n){let{gen:i,data:s}=e;dC(e,n),Ip({...e,data:t}),i.add(zt.default.json,(0,nt.str)`:`);let a=i.const("value",(0,nt._)`${s}${(0,nt.getProperty)(t)}`);Rp({...e,schema:r,data:a})}function HRe(e){let{gen:t,schema:r,data:n}=e,{discriminator:i}=r;t.add(zt.default.json,(0,nt.str)`{${JSON.stringify(i)}:`);let s=t.const("tag",(0,nt._)`${n}${(0,nt.getProperty)(i)}`);Ip({...e,data:s}),t.if(!1);for(let a in r.mapping){t.elseIf((0,nt._)`${s} === ${a}`);let o=r.mapping[a];zH({...e,schema:o},i)}t.endIf(),t.add(zt.default.json,(0,nt.str)`}`)}function qH(e){let{gen:t}=e;t.add(zt.default.json,(0,nt.str)`{`),zH(e),t.add(zt.default.json,(0,nt.str)`}`)}function zH(e,t){let{gen:r,schema:n,data:i}=e,{properties:s,optionalProperties:a}=n,o=d(s),u=d(a),l=h(o.concat(u)),c=!t,f;for(let g of o)c?c=!1:r.add(zt.default.json,(0,nt.str)`,`),m(g,s[g],p(g));c&&(f=r.let("first",!0));for(let g of u){let v=p(g);r.if((0,nt.and)((0,nt._)`${v} !== undefined`,(0,$Re.isOwnProperty)(r,i,g)),()=>{dC(e,f),m(g,a[g],v)})}n.additionalProperties&&r.forIn("key",i,g=>r.if(y(g,l),()=>HH(e,g,{},f)));function d(g){return g?Object.keys(g):[]}function h(g){if(t&&g.push(t),new Set(g).size!==g.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return g}function p(g){return r.const("value",(0,nt._)`${i}${(0,nt.getProperty)(g)}`)}function m(g,v,E){r.add(zt.default.json,(0,nt.str)`${JSON.stringify(g)}:`),Rp({...e,schema:v,data:E})}function y(g,v){return v.length?(0,nt.and)(...v.map(E=>(0,nt._)`${g} !== ${E}`)):!0}}function zRe(e){let{gen:t,schema:r,data:n}=e;switch(r.type){case"boolean":t.add(zt.default.json,(0,nt._)`${n} ? "true" : "false"`);break;case"string":Ip(e);break;case"timestamp":t.if((0,nt._)`${n} instanceof Date`,()=>t.add(zt.default.json,(0,nt._)`'"' + ${n}.toISOString() + '"'`),()=>Ip(e));break;default:VRe(e)}}function Ip({gen:e,data:t}){e.add(zt.default.json,(0,nt._)`${(0,MRe.useFunc)(e,FRe.default)}(${t})`)}function VRe({gen:e,data:t}){e.add(zt.default.json,(0,nt._)`"" + ${t}`)}function GRe(e){let{gen:t,self:r,data:n,definitions:i,schema:s,schemaEnv:a}=e,{ref:o}=s,u=i[o];if(!u)throw new kRe.default(r.opts.uriResolver,"",o,`No definition ${o}`);if(!(0,LRe.hasRef)(u))return Rp({...e,schema:u});let{root:l}=a,c=UH.call(r,new jH.SchemaEnv({schema:u,root:l}),i);t.add(zt.default.json,(0,nt._)`${WRe(t,c)}(${n})`)}function WRe(e,t){return t.serialize?e.scopeValue("serialize",{ref:t.serialize}):(0,nt._)`${e.scopeValue("wrapper",{ref:t})}.serialize`}function KRe({gen:e,data:t}){e.add(zt.default.json,(0,nt._)`JSON.stringify(${t})`)}function dC({gen:e},t){t?e.if(t,()=>e.assign(t,!1),()=>e.add(zt.default.json,(0,nt.str)`,`)):e.add(zt.default.json,(0,nt.str)`,`)}});var WH=_(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.parseJsonString=Vo.parseJsonNumber=Vo.parseJson=void 0;var YRe=/position\s(\d+)(?: \(line \d+ column \d+\))?$/;function Ma(e,t){let r;Ma.message=void 0;let n;t&&(e=e.slice(t));try{return Ma.position=t+e.length,JSON.parse(e)}catch(i){if(n=YRe.exec(i.message),!n){Ma.message="unexpected end";return}r=+n[1];let s=e[r];e=e.slice(0,r),Ma.position=t+r;try{return JSON.parse(e)}catch{Ma.message=`unexpected token ${s}`;return}}}Vo.parseJson=Ma;Ma.message=void 0;Ma.position=0;Ma.code='require("ajv/dist/runtime/parseJson").parseJson';function Fa(e,t,r){let n="",i;if(Fa.message=void 0,e[t]==="-"&&(n+="-",t++),e[t]==="0")n+="0",t++;else if(!s(r)){a();return}if(r)return Fa.position=t,+n;if(e[t]==="."&&(n+=".",t++,!s())){a();return}if(i=e[t],(i==="e"||i==="E")&&(n+="e",t++,i=e[t],(i==="+"||i==="-")&&(n+=i,t++),!s())){a();return}return Fa.position=t,+n;function s(o){let u=!1;for(;i=e[t],i>="0"&&i<="9"&&(o===void 0||o-- >0);)u=!0,n+=i,t++;return u}function a(){Fa.position=t,Fa.message=t<e.length?`unexpected token ${e[t]}`:"unexpected end"}}Vo.parseJsonNumber=Fa;Fa.message=void 0;Fa.position=0;Fa.code='require("ajv/dist/runtime/parseJson").parseJsonNumber';var GH={b:"\b",f:"\f",n:`
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},XRe=97,JRe=48;function zo(e,t){let r="",n;for(zo.message=void 0;n=e[t++],n!=='"';)if(n==="\\")if(n=e[t],n in GH)r+=GH[n],t++;else if(n==="u"){t++;let s=4,a=0;for(;s--;){if(a<<=4,n=e[t],n===void 0){i("unexpected end");return}if(n=n.toLowerCase(),n>="a"&&n<="f")a+=n.charCodeAt(0)-XRe+10;else if(n>="0"&&n<="9")a+=n.charCodeAt(0)-JRe;else{i(`unexpected token ${n}`);return}t++}r+=String.fromCharCode(a)}else{i(`unexpected token ${n}`);return}else if(n===void 0){i("unexpected end");return}else if(n.charCodeAt(0)>=32)r+=n;else{i(`unexpected token ${n}`);return}return zo.position=t,r;function i(s){zo.position=t,zo.message=s}}Vo.parseJsonString=zo;zo.message=void 0;zo.position=0;zo.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var iz=_(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0});var QRe=cC(),JH=yc(),Ne=Oe(),ZRe=Pa(),et=Oi(),eNe=Yr(),tNe=Vy(),rNe=Q3(),gC=WH(),QH=He(),nNe=J3(),iNe={elements:uNe,values:cNe,discriminator:fNe,properties:KH,optionalProperties:KH,enum:pNe,type:dNe,ref:hNe};function ZH(e,t){let r=JH.getCompilingSchema.call(this,e);if(r)return r;let{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new Ne.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o=a.scopeName("parse"),u={self:this,gen:a,schema:e.schema,schemaEnv:e,definitions:t,data:et.default.data,parseName:o,char:a.name("c")},l;try{this._compilations.add(e),e.parseName=o,sNe(u),a.optimize(this.opts.code.optimize);let c=a.toString();l=`${a.scopeRefs(et.default.scope)}return ${c}`;let d=new Function(`${et.default.scope}`,l)(this.scope.get());this.scope.value(o,{ref:d}),e.parse=d}catch(c){throw l&&this.logger.error("Error compiling parser, function code:",l),delete e.parse,delete e.parseName,c}finally{this._compilations.delete(e)}return e}_C.default=ZH;var mC=(0,Ne._)`undefined`;function sNe(e){let{gen:t,parseName:r,char:n}=e;t.func(r,(0,Ne._)`${et.default.json}, ${et.default.jsonPos}, ${et.default.jsonPart}`,!1,()=>{t.let(et.default.data),t.let(n),t.assign((0,Ne._)`${r}.message`,mC),t.assign((0,Ne._)`${r}.position`,mC),t.assign(et.default.jsonPos,(0,Ne._)`${et.default.jsonPos} || 0`),t.const(et.default.jsonLen,(0,Ne._)`${et.default.json}.length`),Xy(e),EC(e),t.if(et.default.jsonPart,()=>{t.assign((0,Ne._)`${r}.position`,et.default.jsonPos),t.return(et.default.data)}),t.if((0,Ne._)`${et.default.jsonPos} === ${et.default.jsonLen}`,()=>t.return(et.default.data)),yf(e)})}function Xy(e){let t;for(let r of QRe.jtdForms)if(r in e.schema){t=r;break}t?oNe(e,iNe[t]):bC(e)}var aNe=XH(!0,XH(!1,yf));function oNe(e,t){let{gen:r,schema:n,data:i}=e;if(!n.nullable)return t(e);Np(e,"null",t,()=>r.assign(i,null))}function uNe(e){let{gen:t,schema:r,data:n}=e;Vs(e,"[");let i=t.let("i",0);t.assign(n,(0,Ne._)`[]`),yC(e,"]",()=>{let s=t.let("el");Xy({...e,schema:r.elements,data:s}),t.assign((0,Ne._)`${n}[${i}++]`,s)})}function cNe(e){let{gen:t,schema:r,data:n}=e;Vs(e,"{"),t.assign(n,(0,Ne._)`{}`),yC(e,"}",()=>lNe(e,r.values))}function yC(e,t,r){ez(e,t,r),Vs(e,t)}function ez(e,t,r){let{gen:n}=e;n.for((0,Ne._)`;${et.default.jsonPos}<${et.default.jsonLen} && ${Jy(1)}!==${t};`,()=>{r(),Np(e,",",()=>n.break(),i)});function i(){Np(e,t,()=>{},yf)}}function lNe(e,t){let{gen:r}=e,n=r.let("key");vc({...e,data:n}),Vs(e,":"),rz(e,n,t)}function fNe(e){let{gen:t,data:r,schema:n}=e,{discriminator:i,mapping:s}=n;Vs(e,"{"),t.assign(r,(0,Ne._)`{}`);let a=t.const("pos",et.default.jsonPos),o=t.let("value"),u=t.let("tag");ez(e,"}",()=>{let l=t.let("key");vc({...e,data:l}),Vs(e,":"),t.if((0,Ne._)`${l} === ${i}`,()=>{vc({...e,data:u}),t.assign((0,Ne._)`${r}[${l}]`,u),t.break()},()=>bC({...e,data:o}))}),t.assign(et.default.jsonPos,a),t.if((0,Ne._)`${u} === undefined`),Ba(e,(0,Ne.str)`discriminator tag not found`);for(let l in s)t.elseIf((0,Ne._)`${u} === ${l}`),tz({...e,schema:s[l]},i);t.else(),Ba(e,(0,Ne.str)`discriminator value not in schema`),t.endIf()}function KH(e){let{gen:t,data:r}=e;Vs(e,"{"),t.assign(r,(0,Ne._)`{}`),tz(e)}function tz(e,t){let{gen:r,schema:n,data:i}=e,{properties:s,optionalProperties:a,additionalProperties:o}=n;if(yC(e,"}",()=>{let u=r.let("key");if(vc({...e,data:u}),Vs(e,":"),r.if(!1),YH(e,u,s),YH(e,u,a),t){r.elseIf((0,Ne._)`${u} === ${t}`);let l=r.let("tag");vc({...e,data:l})}r.else(),o?bC({...e,data:(0,Ne._)`${i}[${u}]`}):Ba(e,(0,Ne.str)`property ${u} not allowed`),r.endIf()}),s){let u=(0,eNe.hasPropFunc)(r),l=(0,Ne.and)(...Object.keys(s).map(c=>(0,Ne._)`${u}.call(${i}, ${c})`));r.if((0,Ne.not)(l),()=>Ba(e,(0,Ne.str)`missing required properties`))}}function YH(e,t,r={}){let{gen:n}=e;for(let i in r)n.elseIf((0,Ne._)`${t} === ${i}`),rz(e,t,r[i])}function rz(e,t,r){Xy({...e,schema:r,data:(0,Ne._)`${e.data}[${t}]`})}function dNe(e){let{gen:t,schema:r,data:n,self:i}=e;switch(r.type){case"boolean":aNe(e);break;case"string":vc(e);break;case"timestamp":{vc(e);let s=(0,QH.useFunc)(t,nNe.default),{allowDate:a,parseDate:o}=i.opts,u=a?(0,Ne._)`!${s}(${n}, true)`:(0,Ne._)`!${s}(${n})`,l=o?(0,Ne.or)(u,(0,Ne._)`(${n} = new Date(${n}), false)`,(0,Ne._)`isNaN(${n}.valueOf())`):u;t.if(l,()=>Ba(e,(0,Ne.str)`invalid timestamp`));break}case"float32":case"float64":hC(e);break;default:{let s=r.type;if(!i.opts.int32range&&(s==="int32"||s==="uint32"))hC(e,16),s==="uint32"&&t.if((0,Ne._)`${n} < 0`,()=>Ba(e,(0,Ne.str)`integer out of range`));else{let[a,o,u]=rNe.intRange[s];hC(e,u),t.if((0,Ne._)`${n} < ${a} || ${n} > ${o}`,()=>Ba(e,(0,Ne.str)`integer out of range`))}}}}function vc(e){Vs(e,'"'),xC(e,gC.parseJsonString)}function pNe(e){let{gen:t,data:r,schema:n}=e,i=n.enum;Vs(e,'"'),t.if(!1);for(let s of i){let a=JSON.stringify(s).slice(1);t.elseIf((0,Ne._)`${Jy(a.length)} === ${a}`),t.assign(r,(0,Ne.str)`${s}`),t.add(et.default.jsonPos,a.length)}t.else(),yf(e),t.endIf()}function hC(e,t){let{gen:r}=e;EC(e),r.if((0,Ne._)`"-0123456789".indexOf(${Jy(1)}) < 0`,()=>yf(e),()=>xC(e,gC.parseJsonNumber,t))}function XH(e,t){return r=>{let{gen:n,data:i}=r;Np(r,`${e}`,()=>t(r),()=>n.assign(i,e))}}function hNe(e){let{gen:t,self:r,definitions:n,schema:i,schemaEnv:s}=e,{ref:a}=i,o=n[a];if(!o)throw new ZRe.default(r.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,tNe.hasRef)(o))return Xy({...e,schema:o});let{root:u}=s,l=ZH.call(r,new JH.SchemaEnv({schema:o,root:u}),n);nz(e,mNe(t,l),!0)}function mNe(e,t){return t.parse?e.scopeValue("parse",{ref:t.parse}):(0,Ne._)`${e.scopeValue("wrapper",{ref:t})}.parse`}function bC(e){xC(e,gC.parseJson)}function xC(e,t,r){nz(e,(0,QH.useFunc)(e.gen,t),r)}function nz(e,t,r){let{gen:n,data:i}=e;n.assign(i,(0,Ne._)`${t}(${et.default.json}, ${et.default.jsonPos}${r?(0,Ne._)`, ${r}`:Ne.nil})`),n.assign(et.default.jsonPos,(0,Ne._)`${t}.position`),n.if((0,Ne._)`${i} === undefined`,()=>Ba(e,(0,Ne._)`${t}.message`))}function Vs(e,t){Np(e,t,yf)}function Np(e,t,r,n){let{gen:i}=e,s=t.length;EC(e),i.if((0,Ne._)`${Jy(s)} === ${t}`,()=>{i.add(et.default.jsonPos,s),n?.(e)},()=>r(e))}function EC({gen:e,char:t}){e.code((0,Ne._)`while((${t}=${et.default.json}[${et.default.jsonPos}],${t}===" "||${t}==="\\n"||${t}==="\\r"||${t}==="\\t"))${et.default.jsonPos}++;`)}function Jy(e){return e===1?(0,Ne._)`${et.default.json}[${et.default.jsonPos}]`:(0,Ne._)`${et.default.json}.slice(${et.default.jsonPos}, ${et.default.jsonPos}+${e})`}function yf(e){Ba(e,(0,Ne._)`"unexpected token " + ${et.default.json}[${et.default.jsonPos}]`)}function Ba({gen:e,parseName:t},r){e.assign((0,Ne._)`${t}.message`,r),e.assign((0,Ne._)`${t}.position`,et.default.jsonPos),e.return(mC)}});var SC=_((Zt,TC)=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.MissingRefError=Zt.ValidationError=Zt.CodeGen=Zt.Name=Zt.nil=Zt.stringify=Zt.str=Zt._=Zt.KeywordCxt=Zt.Ajv=void 0;var gNe=n3(),yNe=DH(),bNe=MH(),xNe=VH(),ENe=iz(),vC="JTD-meta-schema",bf=class extends gNe.default{constructor(t={}){super({...t,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(yNe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(bNe.default,vC,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(vC)?vC:void 0)}compileSerializer(t){let r=this._addSchema(t);return r.serialize||this._compileSerializer(r)}compileParser(t){let r=this._addSchema(t);return r.parse||this._compileParser(r)}_compileSerializer(t){if(xNe.default.call(this,t,t.schema.definitions||{}),!t.serialize)throw new Error("ajv implementation error");return t.serialize}_compileParser(t){if(ENe.default.call(this,t,t.schema.definitions||{}),!t.parse)throw new Error("ajv implementation error");return t.parse}};Zt.Ajv=bf;TC.exports=Zt=bf;TC.exports.Ajv=bf;Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=bf;var _Ne=nf();Object.defineProperty(Zt,"KeywordCxt",{enumerable:!0,get:function(){return _Ne.KeywordCxt}});var xf=Oe();Object.defineProperty(Zt,"_",{enumerable:!0,get:function(){return xf._}});Object.defineProperty(Zt,"str",{enumerable:!0,get:function(){return xf.str}});Object.defineProperty(Zt,"stringify",{enumerable:!0,get:function(){return xf.stringify}});Object.defineProperty(Zt,"nil",{enumerable:!0,get:function(){return xf.nil}});Object.defineProperty(Zt,"Name",{enumerable:!0,get:function(){return xf.Name}});Object.defineProperty(Zt,"CodeGen",{enumerable:!0,get:function(){return xf.CodeGen}});var vNe=fp();Object.defineProperty(Zt,"ValidationError",{enumerable:!0,get:function(){return vNe.default}});var TNe=Pa();Object.defineProperty(Zt,"MissingRefError",{enumerable:!0,get:function(){return TNe.default}})});var wC=_((cst,sz)=>{"use strict";var SNe=zS();sz.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:SNe,addUsedSchema:!1,allErrors:!1})});var fz=_(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.formatNames=Gs.fastFormats=Gs.fullFormats=void 0;function Ef(e,t){return{validate:e,compare:t}}Gs.fullFormats={date:Ef(uz,IC),time:Ef(cz,RC),"date-time":Ef(INe,lz),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:ONe,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:FNe,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:PNe,int32:{type:"number",validate:$Ne},int64:{type:"number",validate:LNe},float:{type:"number",validate:oz},double:{type:"number",validate:oz},password:!0,binary:!0};Gs.fastFormats={...Gs.fullFormats,date:Ef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,IC),time:Ef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,RC),"date-time":Ef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,lz),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Gs.formatNames=Object.keys(Gs.fullFormats);function wNe(e){return e%4===0&&(e%100!==0||e%400===0)}var ANe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,CNe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function uz(e){let t=ANe.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&wNe(r)?29:CNe[n])}function IC(e,t){if(e&&t)return e>t?1:e<t?-1:0}var AC=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function cz(e,t){let r=AC.exec(e);if(!r)return!1;let n=+r[1],i=+r[2],s=+r[3],a=r[5];return(n<=23&&i<=59&&s<=59||n===23&&i===59&&s===60)&&(!t||a!=="")}function RC(e,t){if(!(e&&t))return;let r=AC.exec(e),n=AC.exec(t);if(r&&n)return e=r[1]+r[2]+r[3]+(r[4]||""),t=n[1]+n[2]+n[3]+(n[4]||""),e>t?1:e<t?-1:0}var CC=/t|\s/i;function INe(e){let t=e.split(CC);return t.length===2&&uz(t[0])&&cz(t[1],!0)}function lz(e,t){if(!(e&&t))return;let[r,n]=e.split(CC),[i,s]=t.split(CC),a=IC(r,i);if(a!==void 0)return a||RC(n,s)}var RNe=/\/|:/,NNe=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function ONe(e){return RNe.test(e)&&NNe.test(e)}var az=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function PNe(e){return az.lastIndex=0,az.test(e)}var DNe=-(2**31),kNe=2**31-1;function $Ne(e){return Number.isInteger(e)&&e<=kNe&&e>=DNe}function LNe(e){return Number.isInteger(e)}function oz(){return!0}var MNe=/[^\\]\\Z/;function FNe(e){if(MNe.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Dp=_(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.regexpCode=Et.getEsmExportName=Et.getProperty=Et.safeStringify=Et.stringify=Et.strConcat=Et.addCodeArg=Et.str=Et._=Et.nil=Et._Code=Et.Name=Et.IDENTIFIER=Et._CodeOrName=void 0;var Op=class{};Et._CodeOrName=Op;Et.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Tc=class extends Op{constructor(t){if(super(),!Et.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Et.Name=Tc;var ki=class extends Op{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof Tc&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Et._Code=ki;Et.nil=new ki("");function dz(e,...t){let r=[e[0]],n=0;for(;n<t.length;)OC(r,t[n]),r.push(e[++n]);return new ki(r)}Et._=dz;var NC=new ki("+");function pz(e,...t){let r=[Pp(e[0])],n=0;for(;n<t.length;)r.push(NC),OC(r,t[n]),r.push(NC,Pp(e[++n]));return BNe(r),new ki(r)}Et.str=pz;function OC(e,t){t instanceof ki?e.push(...t._items):t instanceof Tc?e.push(t):e.push(UNe(t))}Et.addCodeArg=OC;function BNe(e){let t=1;for(;t<e.length-1;){if(e[t]===NC){let r=qNe(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function qNe(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Tc||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Tc))return`"${e}${t.slice(1)}`}function jNe(e,t){return t.emptyStr()?e:e.emptyStr()?t:pz`${e}${t}`}Et.strConcat=jNe;function UNe(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Pp(Array.isArray(e)?e.join(","):e)}function HNe(e){return new ki(Pp(e))}Et.stringify=HNe;function Pp(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Et.safeStringify=Pp;function zNe(e){return typeof e=="string"&&Et.IDENTIFIER.test(e)?new ki(`.${e}`):dz`[${e}]`}Et.getProperty=zNe;function VNe(e){if(typeof e=="string"&&Et.IDENTIFIER.test(e))return new ki(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Et.getEsmExportName=VNe;function GNe(e){return new ki(e.toString())}Et.regexpCode=GNe});var kC=_(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.ValueScope=ei.ValueScopeName=ei.Scope=ei.varKinds=ei.UsedValueState=void 0;var Zn=Dp(),PC=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Qy;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Qy||(ei.UsedValueState=Qy={}));ei.varKinds={const:new Zn.Name("const"),let:new Zn.Name("let"),var:new Zn.Name("var")};var Zy=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Zn.Name?t:this.name(t)}name(t){return new Zn.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};ei.Scope=Zy;var eb=class extends Zn.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Zn._)`.${new Zn.Name(r)}[${n}]`}};ei.ValueScopeName=eb;var WNe=(0,Zn._)`\n`,DC=class extends Zy{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?WNe:Zn.nil}}get(){return this._scope}name(t){return new eb(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:s}=i,a=(n=r.key)!==null&&n!==void 0?n:r.ref,o=this._values[s];if(o){let c=o.get(a);if(c)return c}else o=this._values[s]=new Map;o.set(a,i);let u=this._scope[s]||(this._scope[s]=[]),l=u.length;return u[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Zn._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let s=Zn.nil;for(let a in t){let o=t[a];if(!o)continue;let u=n[a]=n[a]||new Map;o.forEach(l=>{if(u.has(l))return;u.set(l,Qy.Started);let c=r(l);if(c){let f=this.opts.es5?ei.varKinds.var:ei.varKinds.const;s=(0,Zn._)`${s}${f} ${l} = ${c};${this.opts._n}`}else if(c=i?.(l))s=(0,Zn._)`${s}${c}${this.opts._n}`;else throw new PC(l);u.set(l,Qy.Completed)})}return s}};ei.ValueScope=DC});var ze=_(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.or=We.and=We.not=We.CodeGen=We.operators=We.varKinds=We.ValueScopeName=We.ValueScope=We.Scope=We.Name=We.regexpCode=We.stringify=We.getProperty=We.nil=We.strConcat=We.str=We._=void 0;var ut=Dp(),ls=kC(),Go=Dp();Object.defineProperty(We,"_",{enumerable:!0,get:function(){return Go._}});Object.defineProperty(We,"str",{enumerable:!0,get:function(){return Go.str}});Object.defineProperty(We,"strConcat",{enumerable:!0,get:function(){return Go.strConcat}});Object.defineProperty(We,"nil",{enumerable:!0,get:function(){return Go.nil}});Object.defineProperty(We,"getProperty",{enumerable:!0,get:function(){return Go.getProperty}});Object.defineProperty(We,"stringify",{enumerable:!0,get:function(){return Go.stringify}});Object.defineProperty(We,"regexpCode",{enumerable:!0,get:function(){return Go.regexpCode}});Object.defineProperty(We,"Name",{enumerable:!0,get:function(){return Go.Name}});var ib=kC();Object.defineProperty(We,"Scope",{enumerable:!0,get:function(){return ib.Scope}});Object.defineProperty(We,"ValueScope",{enumerable:!0,get:function(){return ib.ValueScope}});Object.defineProperty(We,"ValueScopeName",{enumerable:!0,get:function(){return ib.ValueScopeName}});Object.defineProperty(We,"varKinds",{enumerable:!0,get:function(){return ib.varKinds}});We.operators={GT:new ut._Code(">"),GTE:new ut._Code(">="),LT:new ut._Code("<"),LTE:new ut._Code("<="),EQ:new ut._Code("==="),NEQ:new ut._Code("!=="),NOT:new ut._Code("!"),OR:new ut._Code("||"),AND:new ut._Code("&&"),ADD:new ut._Code("+")};var qa=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},$C=class extends qa{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?ls.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=vf(this.rhs,t,r)),this}get names(){return this.rhs instanceof ut._CodeOrName?this.rhs.names:{}}},tb=class extends qa{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ut.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=vf(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ut.Name?{}:{...this.lhs.names};return nb(t,this.rhs)}},LC=class extends tb{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},MC=class extends qa{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},FC=class extends qa{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},BC=class extends qa{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},qC=class extends qa{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=vf(this.code,t,r),this}get names(){return this.code instanceof ut._CodeOrName?this.code.names:{}}},kp=class extends qa{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(t,r)||(KNe(t,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Ac(t,r.names),{})}},ja=class extends kp{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},jC=class extends kp{},_f=class extends ja{};_f.kind="else";var Sc=class e extends ja{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new _f(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(hz(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=vf(this.condition,t,r),this}get names(){let t=super.names;return nb(t,this.condition),this.else&&Ac(t,this.else.names),t}};Sc.kind="if";var wc=class extends ja{};wc.kind="for";var UC=class extends wc{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=vf(this.iteration,t,r),this}get names(){return Ac(super.names,this.iteration.names)}},HC=class extends wc{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?ls.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(t)}get names(){let t=nb(super.names,this.from);return nb(t,this.to)}},rb=class extends wc{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=vf(this.iterable,t,r),this}get names(){return Ac(super.names,this.iterable.names)}},$p=class extends ja{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};$p.kind="func";var Lp=class extends kp{render(t){return"return "+super.render(t)}};Lp.kind="return";var zC=class extends ja{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Ac(t,this.catch.names),this.finally&&Ac(t,this.finally.names),t}},Mp=class extends ja{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Mp.kind="catch";var Fp=class extends ja{render(t){return"finally"+super.render(t)}};Fp.kind="finally";var VC=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
`:""},this._extScope=t,this._scope=new ls.Scope({parent:t}),this._nodes=[new jC]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new $C(t,s,n)),s}const(t,r,n){return this._def(ls.varKinds.const,t,r,n)}let(t,r,n){return this._def(ls.varKinds.let,t,r,n)}var(t,r,n){return this._def(ls.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new tb(t,r,n))}add(t,r){return this._leafNode(new LC(t,We.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ut.nil&&this._leafNode(new qC(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ut.addCodeArg)(r,i));return r.push("}"),new ut._Code(r)}if(t,r,n){if(this._blockNode(new Sc(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Sc(t))}else(){return this._elseNode(new _f)}endIf(){return this._endBlockNode(Sc,_f)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new UC(t),r)}forRange(t,r,n,i,s=this.opts.es5?ls.varKinds.var:ls.varKinds.let){let a=this._scope.toName(t);return this._for(new HC(s,a,r,n),()=>i(a))}forOf(t,r,n,i=ls.varKinds.const){let s=this._scope.toName(t);if(this.opts.es5){let a=r instanceof ut.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ut._)`${a}.length`,o=>{this.var(s,(0,ut._)`${a}[${o}]`),n(s)})}return this._for(new rb("of",i,s,r),()=>n(s))}forIn(t,r,n,i=this.opts.es5?ls.varKinds.var:ls.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ut._)`Object.keys(${r})`,n);let s=this._scope.toName(t);return this._for(new rb("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(wc)}label(t){return this._leafNode(new MC(t))}break(t){return this._leafNode(new FC(t))}return(t){let r=new Lp;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Lp)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new zC;if(this._blockNode(i),this.code(t),r){let s=this.name("e");this._currNode=i.catch=new Mp(s),r(s)}return n&&(this._currNode=i.finally=new Fp,this.code(n)),this._endBlockNode(Mp,Fp)}throw(t){return this._leafNode(new BC(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ut.nil,n,i){return this._blockNode(new $p(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode($p)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Sc))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};We.CodeGen=VC;function Ac(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function nb(e,t){return t instanceof ut._CodeOrName?Ac(e,t.names):e}function vf(e,t,r){if(e instanceof ut.Name)return n(e);if(!i(e))return e;return new ut._Code(e._items.reduce((s,a)=>(a instanceof ut.Name&&(a=n(a)),a instanceof ut._Code?s.push(...a._items):s.push(a),s),[]));function n(s){let a=r[s.str];return a===void 0||t[s.str]!==1?s:(delete t[s.str],a)}function i(s){return s instanceof ut._Code&&s._items.some(a=>a instanceof ut.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function KNe(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function hz(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ut._)`!${GC(e)}`}We.not=hz;var YNe=mz(We.operators.AND);function XNe(...e){return e.reduce(YNe)}We.and=XNe;var JNe=mz(We.operators.OR);function QNe(...e){return e.reduce(JNe)}We.or=QNe;function mz(e){return(t,r)=>t===ut.nil?r:r===ut.nil?t:(0,ut._)`${GC(t)} ${e} ${GC(r)}`}function GC(e){return e instanceof ut.Name?e:(0,ut._)`(${e})`}});var _t=_(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.checkStrictMode=Je.getErrorPath=Je.Type=Je.useFunc=Je.setEvaluated=Je.evaluatedPropsToName=Je.mergeEvaluated=Je.eachItem=Je.unescapeJsonPointer=Je.escapeJsonPointer=Je.escapeFragment=Je.unescapeFragment=Je.schemaRefOrVal=Je.schemaHasRulesButRef=Je.schemaHasRules=Je.checkUnknownRules=Je.alwaysValidSchema=Je.toHash=void 0;var qt=ze(),ZNe=Dp();function eOe(e){let t={};for(let r of e)t[r]=!0;return t}Je.toHash=eOe;function tOe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(bz(e,t),!xz(t,e.self.RULES.all))}Je.alwaysValidSchema=tOe;function bz(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let s in t)i[s]||vz(e,`unknown keyword: "${s}"`)}Je.checkUnknownRules=bz;function xz(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Je.schemaHasRules=xz;function rOe(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Je.schemaHasRulesButRef=rOe;function nOe({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,qt._)`${r}`}return(0,qt._)`${e}${t}${(0,qt.getProperty)(n)}`}Je.schemaRefOrVal=nOe;function iOe(e){return Ez(decodeURIComponent(e))}Je.unescapeFragment=iOe;function sOe(e){return encodeURIComponent(KC(e))}Je.escapeFragment=sOe;function KC(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Je.escapeJsonPointer=KC;function Ez(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Je.unescapeJsonPointer=Ez;function aOe(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Je.eachItem=aOe;function gz({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,s,a,o)=>{let u=a===void 0?s:a instanceof qt.Name?(s instanceof qt.Name?e(i,s,a):t(i,s,a),a):s instanceof qt.Name?(t(i,a,s),s):r(s,a);return o===qt.Name&&!(u instanceof qt.Name)?n(i,u):u}}Je.mergeEvaluated={props:gz({mergeNames:(e,t,r)=>e.if((0,qt._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,qt._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,qt._)`${r} || {}`).code((0,qt._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,qt._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,qt._)`${r} || {}`),YC(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:_z}),items:gz({mergeNames:(e,t,r)=>e.if((0,qt._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,qt._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,qt._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,qt._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function _z(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,qt._)`{}`);return t!==void 0&&YC(e,r,t),r}Je.evaluatedPropsToName=_z;function YC(e,t,r){Object.keys(r).forEach(n=>e.assign((0,qt._)`${t}${(0,qt.getProperty)(n)}`,!0))}Je.setEvaluated=YC;var yz={};function oOe(e,t){return e.scopeValue("func",{ref:t,code:yz[t.code]||(yz[t.code]=new ZNe._Code(t.code))})}Je.useFunc=oOe;var WC;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(WC||(Je.Type=WC={}));function uOe(e,t,r){if(e instanceof qt.Name){let n=t===WC.Num;return r?n?(0,qt._)`"[" + ${e} + "]"`:(0,qt._)`"['" + ${e} + "']"`:n?(0,qt._)`"/" + ${e}`:(0,qt._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,qt.getProperty)(e).toString():"/"+KC(e)}Je.getErrorPath=uOe;function vz(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Je.checkStrictMode=vz});var Ua=_(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});var hn=ze(),cOe={data:new hn.Name("data"),valCxt:new hn.Name("valCxt"),instancePath:new hn.Name("instancePath"),parentData:new hn.Name("parentData"),parentDataProperty:new hn.Name("parentDataProperty"),rootData:new hn.Name("rootData"),dynamicAnchors:new hn.Name("dynamicAnchors"),vErrors:new hn.Name("vErrors"),errors:new hn.Name("errors"),this:new hn.Name("this"),self:new hn.Name("self"),scope:new hn.Name("scope"),json:new hn.Name("json"),jsonPos:new hn.Name("jsonPos"),jsonLen:new hn.Name("jsonLen"),jsonPart:new hn.Name("jsonPart")};XC.default=cOe});var Bp=_(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.extendErrors=mn.resetErrorsCount=mn.reportExtraError=mn.reportError=mn.keyword$DataError=mn.keywordError=void 0;var dt=ze(),sb=_t(),Ln=Ua();mn.keywordError={message:({keyword:e})=>(0,dt.str)`must pass "${e}" keyword validation`};mn.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,dt.str)`"${e}" keyword must be ${t} ($data)`:(0,dt.str)`"${e}" keyword is invalid ($data)`};function lOe(e,t=mn.keywordError,r,n){let{it:i}=e,{gen:s,compositeRule:a,allErrors:o}=i,u=wz(e,t,r);n??(a||o)?Tz(s,u):Sz(i,(0,dt._)`[${u}]`)}mn.reportError=lOe;function fOe(e,t=mn.keywordError,r){let{it:n}=e,{gen:i,compositeRule:s,allErrors:a}=n,o=wz(e,t,r);Tz(i,o),s||a||Sz(n,Ln.default.vErrors)}mn.reportExtraError=fOe;function dOe(e,t){e.assign(Ln.default.errors,t),e.if((0,dt._)`${Ln.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,dt._)`${Ln.default.vErrors}.length`,t),()=>e.assign(Ln.default.vErrors,null)))}mn.resetErrorsCount=dOe;function pOe({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,Ln.default.errors,o=>{e.const(a,(0,dt._)`${Ln.default.vErrors}[${o}]`),e.if((0,dt._)`${a}.instancePath === undefined`,()=>e.assign((0,dt._)`${a}.instancePath`,(0,dt.strConcat)(Ln.default.instancePath,s.errorPath))),e.assign((0,dt._)`${a}.schemaPath`,(0,dt.str)`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign((0,dt._)`${a}.schema`,r),e.assign((0,dt._)`${a}.data`,n))})}mn.extendErrors=pOe;function Tz(e,t){let r=e.const("err",t);e.if((0,dt._)`${Ln.default.vErrors} === null`,()=>e.assign(Ln.default.vErrors,(0,dt._)`[${r}]`),(0,dt._)`${Ln.default.vErrors}.push(${r})`),e.code((0,dt._)`${Ln.default.errors}++`)}function Sz(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,dt._)`new ${e.ValidationError}(${t})`):(r.assign((0,dt._)`${n}.errors`,t),r.return(!1))}var Cc={keyword:new dt.Name("keyword"),schemaPath:new dt.Name("schemaPath"),params:new dt.Name("params"),propertyName:new dt.Name("propertyName"),message:new dt.Name("message"),schema:new dt.Name("schema"),parentSchema:new dt.Name("parentSchema")};function wz(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,dt._)`{}`:hOe(e,t,r)}function hOe(e,t,r={}){let{gen:n,it:i}=e,s=[mOe(i,r),gOe(e,r)];return yOe(e,t,s),n.object(...s)}function mOe({errorPath:e},{instancePath:t}){let r=t?(0,dt.str)`${e}${(0,sb.getErrorPath)(t,sb.Type.Str)}`:e;return[Ln.default.instancePath,(0,dt.strConcat)(Ln.default.instancePath,r)]}function gOe({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,dt.str)`${t}/${e}`;return r&&(i=(0,dt.str)`${i}${(0,sb.getErrorPath)(r,sb.Type.Str)}`),[Cc.schemaPath,i]}function yOe(e,{params:t,message:r},n){let{keyword:i,data:s,schemaValue:a,it:o}=e,{opts:u,propertyName:l,topSchemaRef:c,schemaPath:f}=o;n.push([Cc.keyword,i],[Cc.params,typeof t=="function"?t(e):t||(0,dt._)`{}`]),u.messages&&n.push([Cc.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Cc.schema,a],[Cc.parentSchema,(0,dt._)`${c}${f}`],[Ln.default.data,s]),l&&n.push([Cc.propertyName,l])}});var Cz=_(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.boolOrEmptySchema=Tf.topBoolOrEmptySchema=void 0;var bOe=Bp(),xOe=ze(),EOe=Ua(),_Oe={message:"boolean schema is false"};function vOe(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Az(e,!1):typeof r=="object"&&r.$async===!0?t.return(EOe.default.data):(t.assign((0,xOe._)`${n}.errors`,null),t.return(!0))}Tf.topBoolOrEmptySchema=vOe;function TOe(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Az(e)):r.var(t,!0)}Tf.boolOrEmptySchema=TOe;function Az(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,bOe.reportError)(i,_Oe,void 0,t)}});var JC=_(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.getRules=Sf.isJSONType=void 0;var SOe=["string","number","integer","boolean","null","object","array"],wOe=new Set(SOe);function AOe(e){return typeof e=="string"&&wOe.has(e)}Sf.isJSONType=AOe;function COe(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Sf.getRules=COe});var QC=_(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.shouldUseRule=Wo.shouldUseGroup=Wo.schemaHasRulesForType=void 0;function IOe({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Iz(e,n)}Wo.schemaHasRulesForType=IOe;function Iz(e,t){return t.rules.some(r=>Rz(e,r))}Wo.shouldUseGroup=Iz;function Rz(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Wo.shouldUseRule=Rz});var qp=_(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.reportTypeError=gn.checkDataTypes=gn.checkDataType=gn.coerceAndCheckDataType=gn.getJSONTypes=gn.getSchemaTypes=gn.DataType=void 0;var ROe=JC(),NOe=QC(),OOe=Bp(),je=ze(),Nz=_t(),wf;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(wf||(gn.DataType=wf={}));function POe(e){let t=Oz(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}gn.getSchemaTypes=POe;function Oz(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(ROe.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}gn.getJSONTypes=Oz;function DOe(e,t){let{gen:r,data:n,opts:i}=e,s=kOe(t,i.coerceTypes),a=t.length>0&&!(s.length===0&&t.length===1&&(0,NOe.schemaHasRulesForType)(e,t[0]));if(a){let o=e4(t,n,i.strictNumbers,wf.Wrong);r.if(o,()=>{s.length?$Oe(e,t,s):t4(e)})}return a}gn.coerceAndCheckDataType=DOe;var Pz=new Set(["string","number","integer","boolean","null"]);function kOe(e,t){return t?e.filter(r=>Pz.has(r)||t==="array"&&r==="array"):[]}function $Oe(e,t,r){let{gen:n,data:i,opts:s}=e,a=n.let("dataType",(0,je._)`typeof ${i}`),o=n.let("coerced",(0,je._)`undefined`);s.coerceTypes==="array"&&n.if((0,je._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,je._)`${i}[0]`).assign(a,(0,je._)`typeof ${i}`).if(e4(t,i,s.strictNumbers),()=>n.assign(o,i))),n.if((0,je._)`${o} !== undefined`);for(let l of r)(Pz.has(l)||l==="array"&&s.coerceTypes==="array")&&u(l);n.else(),t4(e),n.endIf(),n.if((0,je._)`${o} !== undefined`,()=>{n.assign(i,o),LOe(e,o)});function u(l){switch(l){case"string":n.elseIf((0,je._)`${a} == "number" || ${a} == "boolean"`).assign(o,(0,je._)`"" + ${i}`).elseIf((0,je._)`${i} === null`).assign(o,(0,je._)`""`);return;case"number":n.elseIf((0,je._)`${a} == "boolean" || ${i} === null
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(o,(0,je._)`+${i}`);return;case"integer":n.elseIf((0,je._)`${a} === "boolean" || ${i} === null
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(o,(0,je._)`+${i}`);return;case"boolean":n.elseIf((0,je._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(o,!1).elseIf((0,je._)`${i} === "true" || ${i} === 1`).assign(o,!0);return;case"null":n.elseIf((0,je._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(o,null);return;case"array":n.elseIf((0,je._)`${a} === "string" || ${a} === "number"
|| ${a} === "boolean" || ${i} === null`).assign(o,(0,je._)`[${i}]`)}}}function LOe({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,je._)`${t} !== undefined`,()=>e.assign((0,je._)`${t}[${r}]`,n))}function ZC(e,t,r,n=wf.Correct){let i=n===wf.Correct?je.operators.EQ:je.operators.NEQ,s;switch(e){case"null":return(0,je._)`${t} ${i} null`;case"array":s=(0,je._)`Array.isArray(${t})`;break;case"object":s=(0,je._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a((0,je._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return(0,je._)`typeof ${t} ${i} ${e}`}return n===wf.Correct?s:(0,je.not)(s);function a(o=je.nil){return(0,je.and)((0,je._)`typeof ${t} == "number"`,o,r?(0,je._)`isFinite(${t})`:je.nil)}}gn.checkDataType=ZC;function e4(e,t,r,n){if(e.length===1)return ZC(e[0],t,r,n);let i,s=(0,Nz.toHash)(e);if(s.array&&s.object){let a=(0,je._)`typeof ${t} != "object"`;i=s.null?a:(0,je._)`!${t} || ${a}`,delete s.null,delete s.array,delete s.object}else i=je.nil;s.number&&delete s.integer;for(let a in s)i=(0,je.and)(i,ZC(a,t,r,n));return i}gn.checkDataTypes=e4;var MOe={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,je._)`{type: ${e}}`:(0,je._)`{type: ${t}}`};function t4(e){let t=FOe(e);(0,OOe.reportError)(t,MOe)}gn.reportTypeError=t4;function FOe(e){let{gen:t,data:r,schema:n}=e,i=(0,Nz.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var kz=_(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});ab.assignDefaults=void 0;var Af=ze(),BOe=_t();function qOe(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)Dz(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>Dz(e,s,i.default))}ab.assignDefaults=qOe;function Dz(e,t,r){let{gen:n,compositeRule:i,data:s,opts:a}=e;if(r===void 0)return;let o=(0,Af._)`${s}${(0,Af.getProperty)(t)}`;if(i){(0,BOe.checkStrictMode)(e,`default is ignored for: ${o}`);return}let u=(0,Af._)`${o} === undefined`;a.useDefaults==="empty"&&(u=(0,Af._)`${u} || ${o} === null || ${o} === ""`),n.if(u,(0,Af._)`${o} = ${(0,Af.stringify)(r)}`)}});var $i=_(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.validateUnion=Pt.validateArray=Pt.usePattern=Pt.callValidateCode=Pt.schemaProperties=Pt.allSchemaProperties=Pt.noPropertyInData=Pt.propertyInData=Pt.isOwnProperty=Pt.hasPropFunc=Pt.reportMissingProp=Pt.checkMissingProp=Pt.checkReportMissingProp=void 0;var er=ze(),r4=_t(),Ko=Ua(),jOe=_t();function UOe(e,t){let{gen:r,data:n,it:i}=e;r.if(i4(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,er._)`${t}`},!0),e.error()})}Pt.checkReportMissingProp=UOe;function HOe({gen:e,data:t,it:{opts:r}},n,i){return(0,er.or)(...n.map(s=>(0,er.and)(i4(e,t,s,r.ownProperties),(0,er._)`${i} = ${s}`)))}Pt.checkMissingProp=HOe;function zOe(e,t){e.setParams({missingProperty:t},!0),e.error()}Pt.reportMissingProp=zOe;function $z(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,er._)`Object.prototype.hasOwnProperty`})}Pt.hasPropFunc=$z;function n4(e,t,r){return(0,er._)`${$z(e)}.call(${t}, ${r})`}Pt.isOwnProperty=n4;function VOe(e,t,r,n){let i=(0,er._)`${t}${(0,er.getProperty)(r)} !== undefined`;return n?(0,er._)`${i} && ${n4(e,t,r)}`:i}Pt.propertyInData=VOe;function i4(e,t,r,n){let i=(0,er._)`${t}${(0,er.getProperty)(r)} === undefined`;return n?(0,er.or)(i,(0,er.not)(n4(e,t,r))):i}Pt.noPropertyInData=i4;function Lz(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Pt.allSchemaProperties=Lz;function GOe(e,t){return Lz(t).filter(r=>!(0,r4.alwaysValidSchema)(e,t[r]))}Pt.schemaProperties=GOe;function WOe({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:a},o,u,l){let c=l?(0,er._)`${e}, ${t}, ${n}${i}`:t,f=[[Ko.default.instancePath,(0,er.strConcat)(Ko.default.instancePath,s)],[Ko.default.parentData,a.parentData],[Ko.default.parentDataProperty,a.parentDataProperty],[Ko.default.rootData,Ko.default.rootData]];a.opts.dynamicRef&&f.push([Ko.default.dynamicAnchors,Ko.default.dynamicAnchors]);let d=(0,er._)`${c}, ${r.object(...f)}`;return u!==er.nil?(0,er._)`${o}.call(${u}, ${d})`:(0,er._)`${o}(${d})`}Pt.callValidateCode=WOe;var KOe=(0,er._)`new RegExp`;function YOe({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,er._)`${i.code==="new RegExp"?KOe:(0,jOe.useFunc)(e,i)}(${r}, ${n})`})}Pt.usePattern=YOe;function XOe(e){let{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){let o=t.let("valid",!0);return a(()=>t.assign(o,!1)),o}return t.var(s,!0),a(()=>t.break()),s;function a(o){let u=t.const("len",(0,er._)`${r}.length`);t.forRange("i",0,u,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:r4.Type.Num},s),t.if((0,er.not)(s),o)})}}Pt.validateArray=XOe;function JOe(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,r4.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),o=t.name("_valid");t.block(()=>r.forEach((u,l)=>{let c=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},o);t.assign(a,(0,er._)`${a} || ${o}`),e.mergeValidEvaluated(c,o)||t.if((0,er.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Pt.validateUnion=JOe});var Bz=_(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.validateKeywordUsage=Ws.validSchemaType=Ws.funcKeywordCode=Ws.macroKeywordCode=void 0;var Mn=ze(),Ic=Ua(),QOe=$i(),ZOe=Bp();function ePe(e,t){let{gen:r,keyword:n,schema:i,parentSchema:s,it:a}=e,o=t.macro.call(a.self,i,s,a),u=Fz(r,n,o);a.opts.validateSchema!==!1&&a.self.validateSchema(o,!0);let l=r.name("valid");e.subschema({schema:o,schemaPath:Mn.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Ws.macroKeywordCode=ePe;function tPe(e,t){var r;let{gen:n,keyword:i,schema:s,parentSchema:a,$data:o,it:u}=e;nPe(u,t);let l=!o&&t.compile?t.compile.call(u.self,s,a,u):t.validate,c=Fz(n,i,l),f=n.let("valid");e.block$data(f,d),e.ok((r=t.valid)!==null&&r!==void 0?r:f);function d(){if(t.errors===!1)m(),t.modifying&&Mz(e),y(()=>e.error());else{let g=t.async?h():p();t.modifying&&Mz(e),y(()=>rPe(e,g))}}function h(){let g=n.let("ruleErrs",null);return n.try(()=>m((0,Mn._)`await `),v=>n.assign(f,!1).if((0,Mn._)`${v} instanceof ${u.ValidationError}`,()=>n.assign(g,(0,Mn._)`${v}.errors`),()=>n.throw(v))),g}function p(){let g=(0,Mn._)`${c}.errors`;return n.assign(g,null),m(Mn.nil),g}function m(g=t.async?(0,Mn._)`await `:Mn.nil){let v=u.opts.passContext?Ic.default.this:Ic.default.self,E=!("compile"in t&&!o||t.schema===!1);n.assign(f,(0,Mn._)`${g}${(0,QOe.callValidateCode)(e,c,v,E)}`,t.modifying)}function y(g){var v;n.if((0,Mn.not)((v=t.valid)!==null&&v!==void 0?v:f),g)}}Ws.funcKeywordCode=tPe;function Mz(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Mn._)`${n.parentData}[${n.parentDataProperty}]`))}function rPe(e,t){let{gen:r}=e;r.if((0,Mn._)`Array.isArray(${t})`,()=>{r.assign(Ic.default.vErrors,(0,Mn._)`${Ic.default.vErrors} === null ? ${t} : ${Ic.default.vErrors}.concat(${t})`).assign(Ic.default.errors,(0,Mn._)`${Ic.default.vErrors}.length`),(0,ZOe.extendErrors)(e)},()=>e.error())}function nPe({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function Fz(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Mn.stringify)(r)})}function iPe(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Ws.validSchemaType=iPe;function sPe({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");let a=i.dependencies;if(a?.some(o=>!Object.prototype.hasOwnProperty.call(e,o)))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){let u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Ws.validateKeywordUsage=sPe});var jz=_(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.extendSubschemaMode=Yo.extendSubschemaData=Yo.getSubschema=void 0;var Ks=ze(),qz=_t();function aPe(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:a}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let o=e.schema[t];return r===void 0?{schema:o,schemaPath:(0,Ks._)`${e.schemaPath}${(0,Ks.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,Ks._)`${e.schemaPath}${(0,Ks.getProperty)(t)}${(0,Ks.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,qz.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:a,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Yo.getSubschema=aPe;function oPe(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:a}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:o}=t;if(r!==void 0){let{errorPath:l,dataPathArr:c,opts:f}=t,d=o.let("data",(0,Ks._)`${t.data}${(0,Ks.getProperty)(r)}`,!0);u(d),e.errorPath=(0,Ks.str)`${l}${(0,qz.getErrorPath)(r,n,f.jsPropertySyntax)}`,e.parentDataProperty=(0,Ks._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){let l=i instanceof Ks.Name?i:o.let("data",i,!0);u(l),a!==void 0&&(e.propertyName=a)}s&&(e.dataTypes=s);function u(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Yo.extendSubschemaData=oPe;function uPe(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Yo.extendSubschemaMode=uPe});var Hz=_((wst,Uz)=>{"use strict";var Xo=Uz.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};ob(t,n,i,e,"",e)};Xo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Xo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Xo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Xo.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function ob(e,t,r,n,i,s,a,o,u,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,a,o,u,l);for(var c in n){var f=n[c];if(Array.isArray(f)){if(c in Xo.arrayKeywords)for(var d=0;d<f.length;d++)ob(e,t,r,f[d],i+"/"+c+"/"+d,s,i,c,n,d)}else if(c in Xo.propsKeywords){if(f&&typeof f=="object")for(var h in f)ob(e,t,r,f[h],i+"/"+c+"/"+cPe(h),s,i,c,n,h)}else(c in Xo.keywords||e.allKeys&&!(c in Xo.skipKeywords))&&ob(e,t,r,f,i+"/"+c,s,i,c,n)}r(n,i,s,a,o,u,l)}}function cPe(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var jp=_(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.getSchemaRefs=ti.resolveUrl=ti.normalizeId=ti._getFullPath=ti.getFullPath=ti.inlineRef=void 0;var lPe=_t(),fPe=Si(),dPe=Hz(),pPe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function hPe(e,t=!0){return typeof e=="boolean"?!0:t===!0?!s4(e):t?zz(e)<=t:!1}ti.inlineRef=hPe;var mPe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s4(e){for(let t in e){if(mPe.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(s4)||typeof r=="object"&&s4(r))return!0}return!1}function zz(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!pPe.has(r)&&(typeof e[r]=="object"&&(0,lPe.eachItem)(e[r],n=>t+=zz(n)),t===1/0))return 1/0}return t}function Vz(e,t="",r){r!==!1&&(t=Cf(t));let n=e.parse(t);return Gz(e,n)}ti.getFullPath=Vz;function Gz(e,t){return e.serialize(t).split("#")[0]+"#"}ti._getFullPath=Gz;var gPe=/#\/?$/;function Cf(e){return e?e.replace(gPe,""):""}ti.normalizeId=Cf;function yPe(e,t,r){return r=Cf(r),e.resolve(t,r)}ti.resolveUrl=yPe;var bPe=/^[a-z_][-a-z0-9._]*$/i;function xPe(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Cf(e[r]||t),s={"":i},a=Vz(n,i,!1),o={},u=new Set;return dPe(e,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=a+d,y=s[p];typeof f[r]=="string"&&(y=g.call(this,f[r])),v.call(this,f.$anchor),v.call(this,f.$dynamicAnchor),s[d]=y;function g(E){let x=this.opts.uriResolver.resolve;if(E=Cf(y?x(y,E):E),u.has(E))throw c(E);u.add(E);let T=this.refs[E];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,E):E!==Cf(m)&&(E[0]==="#"?(l(f,o[E],E),o[E]=f):this.refs[E]=m),E}function v(E){if(typeof E=="string"){if(!bPe.test(E))throw new Error(`invalid anchor "${E}"`);g.call(this,`#${E}`)}}}),o;function l(f,d,h){if(d!==void 0&&!fPe(f,d))throw c(h)}function c(f){return new Error(`reference "${f}" resolves to more than one schema`)}}ti.getSchemaRefs=xPe});var zp=_(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.getData=Jo.KeywordCxt=Jo.validateFunctionCode=void 0;var Jz=Cz(),Wz=qp(),o4=QC(),ub=qp(),EPe=kz(),Hp=Bz(),a4=jz(),Re=ze(),ke=Ua(),_Pe=jp(),Ha=_t(),Up=Bp();function vPe(e){if(eV(e)&&(tV(e),Zz(e))){wPe(e);return}Qz(e,()=>(0,Jz.topBoolOrEmptySchema)(e))}Jo.validateFunctionCode=vPe;function Qz({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,Re._)`${ke.default.data}, ${ke.default.valCxt}`,n.$async,()=>{e.code((0,Re._)`"use strict"; ${Kz(r,i)}`),SPe(e,i),e.code(s)}):e.func(t,(0,Re._)`${ke.default.data}, ${TPe(i)}`,n.$async,()=>e.code(Kz(r,i)).code(s))}function TPe(e){return(0,Re._)`{${ke.default.instancePath}="", ${ke.default.parentData}, ${ke.default.parentDataProperty}, ${ke.default.rootData}=${ke.default.data}${e.dynamicRef?(0,Re._)`, ${ke.default.dynamicAnchors}={}`:Re.nil}}={}`}function SPe(e,t){e.if(ke.default.valCxt,()=>{e.var(ke.default.instancePath,(0,Re._)`${ke.default.valCxt}.${ke.default.instancePath}`),e.var(ke.default.parentData,(0,Re._)`${ke.default.valCxt}.${ke.default.parentData}`),e.var(ke.default.parentDataProperty,(0,Re._)`${ke.default.valCxt}.${ke.default.parentDataProperty}`),e.var(ke.default.rootData,(0,Re._)`${ke.default.valCxt}.${ke.default.rootData}`),t.dynamicRef&&e.var(ke.default.dynamicAnchors,(0,Re._)`${ke.default.valCxt}.${ke.default.dynamicAnchors}`)},()=>{e.var(ke.default.instancePath,(0,Re._)`""`),e.var(ke.default.parentData,(0,Re._)`undefined`),e.var(ke.default.parentDataProperty,(0,Re._)`undefined`),e.var(ke.default.rootData,ke.default.data),t.dynamicRef&&e.var(ke.default.dynamicAnchors,(0,Re._)`{}`)})}function wPe(e){let{schema:t,opts:r,gen:n}=e;Qz(e,()=>{r.$comment&&t.$comment&&nV(e),NPe(e),n.let(ke.default.vErrors,null),n.let(ke.default.errors,0),r.unevaluated&&APe(e),rV(e),DPe(e)})}function APe(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Re._)`${r}.evaluated`),t.if((0,Re._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Re._)`${e.evaluated}.props`,(0,Re._)`undefined`)),t.if((0,Re._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Re._)`${e.evaluated}.items`,(0,Re._)`undefined`))}function Kz(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Re._)`/*# sourceURL=${r} */`:Re.nil}function CPe(e,t){if(eV(e)&&(tV(e),Zz(e))){IPe(e,t);return}(0,Jz.boolOrEmptySchema)(e,t)}function Zz({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function eV(e){return typeof e.schema!="boolean"}function IPe(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&nV(e),OPe(e),PPe(e);let s=n.const("_errs",ke.default.errors);rV(e,s),n.var(t,(0,Re._)`${s} === ${ke.default.errors}`)}function tV(e){(0,Ha.checkUnknownRules)(e),RPe(e)}function rV(e,t){if(e.opts.jtd)return Yz(e,[],!1,t);let r=(0,Wz.getSchemaTypes)(e.schema),n=(0,Wz.coerceAndCheckDataType)(e,r);Yz(e,r,!n,t)}function RPe(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ha.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function NPe(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ha.checkStrictMode)(e,"default is ignored in the schema root")}function OPe(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,_Pe.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function PPe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function nV({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)e.code((0,Re._)`${ke.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let a=(0,Re.str)`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code((0,Re._)`${ke.default.self}.opts.$comment(${s}, ${a}, ${o}.schema)`)}}function DPe(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,Re._)`${ke.default.errors} === 0`,()=>t.return(ke.default.data),()=>t.throw((0,Re._)`new ${i}(${ke.default.vErrors})`)):(t.assign((0,Re._)`${n}.errors`,ke.default.vErrors),s.unevaluated&&kPe(e),t.return((0,Re._)`${ke.default.errors} === 0`))}function kPe({gen:e,evaluated:t,props:r,items:n}){r instanceof Re.Name&&e.assign((0,Re._)`${t}.props`,r),n instanceof Re.Name&&e.assign((0,Re._)`${t}.items`,n)}function Yz(e,t,r,n){let{gen:i,schema:s,data:a,allErrors:o,opts:u,self:l}=e,{RULES:c}=l;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ha.schemaHasRulesButRef)(s,c))){i.block(()=>sV(e,"$ref",c.all.$ref.definition));return}u.jtd||$Pe(e,t),i.block(()=>{for(let d of c.rules)f(d);f(c.post)});function f(d){(0,o4.shouldUseGroup)(s,d)&&(d.type?(i.if((0,ub.checkDataType)(d.type,a,u.strictNumbers)),Xz(e,d),t.length===1&&t[0]===d.type&&r&&(i.else(),(0,ub.reportTypeError)(e)),i.endIf()):Xz(e,d),o||i.if((0,Re._)`${ke.default.errors} === ${n||0}`))}}function Xz(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,EPe.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)(0,o4.shouldUseRule)(n,s)&&sV(e,s.keyword,s.definition,t.type)})}function $Pe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(LPe(e,t),e.opts.allowUnionTypes||MPe(e,t),FPe(e,e.dataTypes))}function LPe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{iV(e.dataTypes,r)||u4(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),qPe(e,t)}}function MPe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&u4(e,"use allowUnionTypes to allow union type keyword")}function FPe(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,o4.shouldUseRule)(e.schema,i)){let{type:s}=i.definition;s.length&&!s.some(a=>BPe(t,a))&&u4(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function BPe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function iV(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function qPe(e,t){let r=[];for(let n of e.dataTypes)iV(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function u4(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ha.checkStrictMode)(e,t,e.opts.strictTypes)}var cb=class{constructor(t,r,n){if((0,Hp.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ha.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",aV(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Hp.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ke.default.errors))}result(t,r,n){this.failResult((0,Re.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Re.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Re._)`${r} !== undefined && (${(0,Re.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Up.reportExtraError:Up.reportError)(this,this.def.error,r)}$dataError(){(0,Up.reportError)(this,this.def.$dataError||Up.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Up.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Re.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Re.nil,r=Re.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:a}=this;n.if((0,Re.or)((0,Re._)`${i} === undefined`,r)),t!==Re.nil&&n.assign(t,!0),(s.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Re.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,Re.or)(a(),o());function a(){if(n.length){if(!(r instanceof Re.Name))throw new Error("ajv implementation error");let u=Array.isArray(n)?n:[n];return(0,Re._)`${(0,ub.checkDataTypes)(u,r,s.opts.strictNumbers,ub.DataType.Wrong)}`}return Re.nil}function o(){if(i.validateSchema){let u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Re._)`!${u}(${r})`}return Re.nil}}subschema(t,r){let n=(0,a4.getSubschema)(this.it,t);(0,a4.extendSubschemaData)(n,this.it,t),(0,a4.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return CPe(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ha.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ha.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,Re.Name)),!0}};Jo.KeywordCxt=cb;function sV(e,t,r,n){let i=new cb(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Hp.funcKeywordCode)(i,r):"macro"in r?(0,Hp.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Hp.funcKeywordCode)(i,r)}var jPe=/^\/(?:[^~]|~0|~1)*$/,UPe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function aV(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ke.default.rootData;if(e[0]==="/"){if(!jPe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ke.default.rootData}else{let l=UPe.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let c=+l[1];if(i=l[2],i==="#"){if(c>=t)throw new Error(u("property/index",c));return n[t-c]}if(c>t)throw new Error(u("data",c));if(s=r[t-c],!i)return s}let a=s,o=i.split("/");for(let l of o)l&&(s=(0,Re._)`${s}${(0,Re.getProperty)((0,Ha.unescapeJsonPointer)(l))}`,a=(0,Re._)`${a} && ${s}`);return a;function u(l,c){return`Cannot access ${l} ${c} levels up, current level is ${t}`}}Jo.getData=aV});var lb=_(l4=>{"use strict";Object.defineProperty(l4,"__esModule",{value:!0});var c4=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};l4.default=c4});var Vp=_(p4=>{"use strict";Object.defineProperty(p4,"__esModule",{value:!0});var f4=jp(),d4=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,f4.resolveUrl)(t,r,n),this.missingSchema=(0,f4.normalizeId)((0,f4.getFullPath)(t,this.missingRef))}};p4.default=d4});var db=_(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.resolveSchema=Li.getCompilingSchema=Li.resolveRef=Li.compileSchema=Li.SchemaEnv=void 0;var fs=ze(),HPe=lb(),Rc=Ua(),ds=jp(),oV=_t(),zPe=zp(),If=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,ds.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Li.SchemaEnv=If;function m4(e){let t=uV.call(this,e);if(t)return t;let r=(0,ds.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,a=new fs.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),o;e.$async&&(o=a.scopeValue("Error",{ref:HPe.default,code:(0,fs._)`require("ajv/dist/runtime/validation_error").default`}));let u=a.scopeName("validate");e.validateName=u;let l={gen:a,allErrors:this.opts.allErrors,data:Rc.default.data,parentData:Rc.default.parentData,parentDataProperty:Rc.default.parentDataProperty,dataNames:[Rc.default.data],dataPathArr:[fs.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fs.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:o,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fs.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fs._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(e),(0,zPe.validateFunctionCode)(l),a.optimize(this.opts.code.optimize);let f=a.toString();c=`${a.scopeRefs(Rc.default.scope)}return ${f}`,this.opts.code.process&&(c=this.opts.code.process(c,e));let h=new Function(`${Rc.default.self}`,`${Rc.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:u,validateCode:f,scopeValues:a._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof fs.Name?void 0:p,items:m instanceof fs.Name?void 0:m,dynamicProps:p instanceof fs.Name,dynamicItems:m instanceof fs.Name},h.source&&(h.source.evaluated=(0,fs.stringify)(h.evaluated))}return e.validate=h,e}catch(f){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),f}finally{this._compilations.delete(e)}}Li.compileSchema=m4;function VPe(e,t,r){var n;r=(0,ds.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let s=KPe.call(this,e,r);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:o}=this.opts;a&&(s=new If({schema:a,schemaId:o,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=GPe.call(this,s)}Li.resolveRef=VPe;function GPe(e){return(0,ds.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:m4.call(this,e)}function uV(e){for(let t of this._compilations)if(WPe(t,e))return t}Li.getCompilingSchema=uV;function WPe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function KPe(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||fb.call(this,e,t)}function fb(e,t){let r=this.opts.uriResolver.parse(t),n=(0,ds._getFullPath)(this.opts.uriResolver,r),i=(0,ds.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return h4.call(this,r,e);let s=(0,ds.normalizeId)(n),a=this.refs[s]||this.schemas[s];if(typeof a=="string"){let o=fb.call(this,e,a);return typeof o?.schema!="object"?void 0:h4.call(this,r,o)}if(typeof a?.schema=="object"){if(a.validate||m4.call(this,a),s===(0,ds.normalizeId)(t)){let{schema:o}=a,{schemaId:u}=this.opts,l=o[u];return l&&(i=(0,ds.resolveUrl)(this.opts.uriResolver,i,l)),new If({schema:o,schemaId:u,root:e,baseId:i})}return h4.call(this,r,a)}}Li.resolveSchema=fb;var YPe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h4(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let o of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,oV.unescapeFragment)(o)];if(u===void 0)return;r=u;let l=typeof r=="object"&&r[this.opts.schemaId];!YPe.has(o)&&l&&(t=(0,ds.resolveUrl)(this.opts.uriResolver,t,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,oV.schemaHasRulesButRef)(r,this.RULES)){let o=(0,ds.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=fb.call(this,n,o)}let{schemaId:a}=this.opts;if(s=s||new If({schema:r,schemaId:a,root:n,baseId:t}),s.schema!==s.root.schema)return s}});var cV=_((Ost,XPe)=>{XPe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var y4=_((Pst,pV)=>{"use strict";var JPe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),fV=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function g4(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var QPe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function lV(e){return e.length=0,!0}function ZPe(e,t,r){if(e.length){let n=g4(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function e8e(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,a=!1,o=ZPe;for(let u=0;u<e.length;u++){let l=e[u];if(!(l==="["||l==="]"))if(l===":"){if(s===!0&&(a=!0),!o(i,n,r))break;if(++t>7){r.error=!0;break}u>0&&e[u-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!o(i,n,r))break;o=lV}else{i.push(l);continue}}return i.length&&(o===lV?r.zone=i.join(""):a?n.push(i.join("")):n.push(g4(i))),r.address=n.join(""),r}function dV(e){if(t8e(e,":")<2)return{host:e,isIPV6:!1};let t=e8e(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function t8e(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function r8e(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(i===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function n8e(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function i8e(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!fV(r)){let n=dV(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}pV.exports={nonSimpleDomain:QPe,recomposeAuthority:i8e,normalizeComponentEncoding:n8e,removeDotSegments:r8e,isIPv4:fV,isUUID:JPe,normalizeIPv6:dV,stringArrayToHexStripped:g4}});var bV=_((Dst,yV)=>{"use strict";var{isUUID:s8e}=y4(),a8e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o8e=["http","https","ws","wss","urn","urn:uuid"];function u8e(e){return o8e.indexOf(e)!==-1}function b4(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function hV(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function mV(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function c8e(e){return e.secure=b4(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function l8e(e){if((e.port===(b4(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function f8e(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(a8e);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,s=x4(i);e.path=void 0,s&&(e=s.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function d8e(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,s=x4(i);s&&(e=s.serialize(e,t));let a=e,o=e.nss;return a.path=`${n||t.nid}:${o}`,t.skipEscape=!0,a}function p8e(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!s8e(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function h8e(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var gV={scheme:"http",domainHost:!0,parse:hV,serialize:mV},m8e={scheme:"https",domainHost:gV.domainHost,parse:hV,serialize:mV},pb={scheme:"ws",domainHost:!0,parse:c8e,serialize:l8e},g8e={scheme:"wss",domainHost:pb.domainHost,parse:pb.parse,serialize:pb.serialize},y8e={scheme:"urn",parse:f8e,serialize:d8e,skipNormalize:!0},b8e={scheme:"urn:uuid",parse:p8e,serialize:h8e,skipNormalize:!0},hb={http:gV,https:m8e,ws:pb,wss:g8e,urn:y8e,"urn:uuid":b8e};Object.setPrototypeOf(hb,null);function x4(e){return e&&(hb[e]||hb[e.toLowerCase()])||void 0}yV.exports={wsIsSecure:b4,SCHEMES:hb,isValidSchemeName:u8e,getSchemeHandler:x4}});var _V=_((kst,gb)=>{"use strict";var{normalizeIPv6:x8e,removeDotSegments:Gp,recomposeAuthority:E8e,normalizeComponentEncoding:mb,isIPv4:_8e,nonSimpleDomain:v8e}=y4(),{SCHEMES:T8e,getSchemeHandler:xV}=bV();function S8e(e,t){return typeof e=="string"?e=Ys(za(e,t),t):typeof e=="object"&&(e=za(Ys(e,t),t)),e}function w8e(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=EV(za(e,n),za(t,n),n,!0);return n.skipEscape=!0,Ys(i,n)}function EV(e,t,r,n){let i={};return n||(e=za(Ys(e,r),r),t=za(Ys(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Gp(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Gp(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=Gp(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Gp(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function A8e(e,t,r){return typeof e=="string"?(e=unescape(e),e=Ys(mb(za(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ys(mb(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Ys(mb(za(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ys(mb(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Ys(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],s=xV(n.scheme||r.scheme);s&&s.serialize&&s.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let a=E8e(r);if(a!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(a),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let o=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(o=Gp(o)),a===void 0&&o[0]==="/"&&o[1]==="/"&&(o="/%2F"+o.slice(2)),i.push(o)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var C8e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function za(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(C8e);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host)if(_8e(n.host)===!1){let u=x8e(n.host);n.host=u.host.toLowerCase(),i=u.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=xV(r.scheme||n.scheme);if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&i===!1&&v8e(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(o){n.error=n.error||"Host's domain name can not be converted to ASCII: "+o}(!a||a&&!a.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=unescape(n.host))),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var E4={SCHEMES:T8e,normalize:S8e,resolve:w8e,resolveComponent:EV,equal:A8e,serialize:Ys,parse:za};gb.exports=E4;gb.exports.default=E4;gb.exports.fastUri=E4});var TV=_(_4=>{"use strict";Object.defineProperty(_4,"__esModule",{value:!0});var vV=_V();vV.code='require("ajv/dist/runtime/uri").default';_4.default=vV});var OV=_(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.CodeGen=Qr.Name=Qr.nil=Qr.stringify=Qr.str=Qr._=Qr.KeywordCxt=void 0;var I8e=zp();Object.defineProperty(Qr,"KeywordCxt",{enumerable:!0,get:function(){return I8e.KeywordCxt}});var Rf=ze();Object.defineProperty(Qr,"_",{enumerable:!0,get:function(){return Rf._}});Object.defineProperty(Qr,"str",{enumerable:!0,get:function(){return Rf.str}});Object.defineProperty(Qr,"stringify",{enumerable:!0,get:function(){return Rf.stringify}});Object.defineProperty(Qr,"nil",{enumerable:!0,get:function(){return Rf.nil}});Object.defineProperty(Qr,"Name",{enumerable:!0,get:function(){return Rf.Name}});Object.defineProperty(Qr,"CodeGen",{enumerable:!0,get:function(){return Rf.CodeGen}});var R8e=lb(),IV=Vp(),N8e=JC(),Wp=db(),O8e=ze(),Kp=jp(),yb=qp(),T4=_t(),SV=cV(),P8e=TV(),RV=(e,t)=>new RegExp(e,t);RV.code="new RegExp";var D8e=["removeAdditional","useDefaults","coerceTypes"],k8e=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$8e={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},L8e={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},wV=200;function M8e(e){var t,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v,E,x,T,S,w,A,C;let I=e.strict,M=(t=e.code)===null||t===void 0?void 0:t.optimize,R=M===!0||M===void 0?1:M||0,P=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:RV,k=(i=e.uriResolver)!==null&&i!==void 0?i:P8e.default;return{strictSchema:(a=(s=e.strictSchema)!==null&&s!==void 0?s:I)!==null&&a!==void 0?a:!0,strictNumbers:(u=(o=e.strictNumbers)!==null&&o!==void 0?o:I)!==null&&u!==void 0?u:!0,strictTypes:(c=(l=e.strictTypes)!==null&&l!==void 0?l:I)!==null&&c!==void 0?c:"log",strictTuples:(d=(f=e.strictTuples)!==null&&f!==void 0?f:I)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=e.strictRequired)!==null&&h!==void 0?h:I)!==null&&p!==void 0?p:!1,code:e.code?{...e.code,optimize:R,regExp:P}:{optimize:R,regExp:P},loopRequired:(m=e.loopRequired)!==null&&m!==void 0?m:wV,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:wV,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(T=e.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=e.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(C=e.int32range)!==null&&C!==void 0?C:!0,uriResolver:k}}var Yp=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...M8e(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new O8e.ValueScope({scope:{},prefixes:k8e,es5:r,lines:n}),this.logger=H8e(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,N8e.getRules)(),AV.call(this,$8e,t,"NOT SUPPORTED"),AV.call(this,L8e,t,"DEPRECATED","warn"),this._metaOpts=j8e.call(this),t.formats&&B8e.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&q8e.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),F8e.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=SV;n==="id"&&(i={...SV},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(c,f){await s.call(this,c.$schema);let d=this._addSchema(c,f);return d.validate||a.call(this,d)}async function s(c){c&&!this.getSchema(c)&&await i.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(f){if(!(f instanceof IV.default))throw f;return o.call(this,f),await u.call(this,f.missingSchema),a.call(this,c)}}function o({missingSchema:c,missingRef:f}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${f} cannot be resolved`)}async function u(c){let f=await l.call(this,c);this.refs[c]||await s.call(this,f.$schema),this.refs[c]||this.addSchema(f,c,r)}async function l(c){let f=this._loading[c];if(f)return f;try{return await(this._loading[c]=n(c))}finally{delete this._loading[c]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,n,i);return this}let s;if(typeof t=="object"){let{schemaId:a}=this.opts;if(s=t[a],s!==void 0&&typeof s!="string")throw new Error(`schema ${a} must be string`)}return r=(0,Kp.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let s="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(s);else throw new Error(s)}return i}getSchema(t){let r;for(;typeof(r=CV.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Wp.SchemaEnv({schema:{},schemaId:n});if(r=Wp.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=CV.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Kp.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(V8e.call(this,n,r),!r)return(0,T4.eachItem)(n,s=>v4.call(this,s)),this;W8e.call(this,r);let i={...r,type:(0,yb.getJSONTypes)(r.type),schemaType:(0,yb.getJSONTypes)(r.schemaType)};return(0,T4.eachItem)(n,i.type.length===0?s=>v4.call(this,s,i):s=>i.type.forEach(a=>v4.call(this,s,i,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let s=i.split("/").slice(1),a=t;for(let o of s)a=a[o];for(let o in n){let u=n[o];if(typeof u!="object")continue;let{$data:l}=u.definition,c=a[o];l&&c&&(a[o]=NV(c))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof t=="object")a=t[o];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(t);if(u!==void 0)return u;n=(0,Kp.normalizeId)(a||n);let l=Kp.getSchemaRefs.call(this,t,n);return u=new Wp.SchemaEnv({schema:t,schemaId:o,meta:r,baseId:n,localRefs:l}),this._cache.set(u.schema,u),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=u),i&&this.validateSchema(t,!0),u}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Wp.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Wp.compileSchema.call(this,t)}finally{this.opts=r}}};Yp.ValidationError=R8e.default;Yp.MissingRefError=IV.default;Qr.default=Yp;function AV(e,t,r,n="error"){for(let i in e){let s=i;s in t&&this.logger[n](`${r}: option ${i}. ${e[s]}`)}}function CV(e){return e=(0,Kp.normalizeId)(e),this.schemas[e]||this.refs[e]}function F8e(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function B8e(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function q8e(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function j8e(){let e={...this.opts};for(let t of D8e)delete e[t];return e}var U8e={log(){},warn(){},error(){}};function H8e(e){if(e===!1)return U8e;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var z8e=/^[a-z_$][a-z0-9_$:-]*$/i;function V8e(e,t){let{RULES:r}=this;if((0,T4.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!z8e.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function v4(e,t,r){var n;let i=t?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,a=i?s.post:s.rules.find(({type:u})=>u===r);if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;let o={keyword:e,definition:{...t,type:(0,yb.getJSONTypes)(t.type),schemaType:(0,yb.getJSONTypes)(t.schemaType)}};t.before?G8e.call(this,a,o,t.before):a.rules.push(o),s.all[e]=o,(n=t.implements)===null||n===void 0||n.forEach(u=>this.addKeyword(u))}function G8e(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function W8e(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=NV(t)),e.validateSchema=this.compile(t,!0))}var K8e={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function NV(e){return{anyOf:[e,K8e]}}});var PV=_(S4=>{"use strict";Object.defineProperty(S4,"__esModule",{value:!0});var Y8e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};S4.default=Y8e});var LV=_(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.callRef=Nc.getValidate=void 0;var X8e=Vp(),DV=$i(),ri=ze(),Nf=Ua(),kV=db(),bb=_t(),J8e={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:a,opts:o,self:u}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let c=kV.resolveRef.call(u,l,i,r);if(c===void 0)throw new X8e.default(n.opts.uriResolver,i,r);if(c instanceof kV.SchemaEnv)return d(c);return h(c);function f(){if(s===l)return xb(e,a,s,s.$async);let p=t.scopeValue("root",{ref:l});return xb(e,(0,ri._)`${p}.validate`,l,l.$async)}function d(p){let m=$V(e,p);xb(e,m,p,p.$async)}function h(p){let m=t.scopeValue("schema",o.code.source===!0?{ref:p,code:(0,ri.stringify)(p)}:{ref:p}),y=t.name("valid"),g=e.subschema({schema:p,dataTypes:[],schemaPath:ri.nil,topSchemaRef:m,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function $V(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ri._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Nc.getValidate=$V;function xb(e,t,r,n){let{gen:i,it:s}=e,{allErrors:a,schemaEnv:o,opts:u}=s,l=u.passContext?Nf.default.this:ri.nil;n?c():f();function c(){if(!o.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,ri._)`await ${(0,DV.callValidateCode)(e,t,l)}`),h(t),a||i.assign(p,!0)},m=>{i.if((0,ri._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),a||i.assign(p,!1)}),e.ok(p)}function f(){e.result((0,DV.callValidateCode)(e,t,l),()=>h(t),()=>d(t))}function d(p){let m=(0,ri._)`${p}.errors`;i.assign(Nf.default.vErrors,(0,ri._)`${Nf.default.vErrors} === null ? ${m} : ${Nf.default.vErrors}.concat(${m})`),i.assign(Nf.default.errors,(0,ri._)`${Nf.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let y=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(s.props=bb.mergeEvaluated.props(i,y.props,s.props));else{let g=i.var("props",(0,ri._)`${p}.evaluated.props`);s.props=bb.mergeEvaluated.props(i,g,s.props,ri.Name)}if(s.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(s.items=bb.mergeEvaluated.items(i,y.items,s.items));else{let g=i.var("items",(0,ri._)`${p}.evaluated.items`);s.items=bb.mergeEvaluated.items(i,g,s.items,ri.Name)}}}Nc.callRef=xb;Nc.default=J8e});var MV=_(w4=>{"use strict";Object.defineProperty(w4,"__esModule",{value:!0});var Q8e=PV(),Z8e=LV(),eDe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Q8e.default,Z8e.default];w4.default=eDe});var FV=_(A4=>{"use strict";Object.defineProperty(A4,"__esModule",{value:!0});var Eb=ze(),Qo=Eb.operators,_b={maximum:{okStr:"<=",ok:Qo.LTE,fail:Qo.GT},minimum:{okStr:">=",ok:Qo.GTE,fail:Qo.LT},exclusiveMaximum:{okStr:"<",ok:Qo.LT,fail:Qo.GTE},exclusiveMinimum:{okStr:">",ok:Qo.GT,fail:Qo.LTE}},tDe={message:({keyword:e,schemaCode:t})=>(0,Eb.str)`must be ${_b[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Eb._)`{comparison: ${_b[e].okStr}, limit: ${t}}`},rDe={keyword:Object.keys(_b),type:"number",schemaType:"number",$data:!0,error:tDe,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Eb._)`${r} ${_b[t].fail} ${n} || isNaN(${r})`)}};A4.default=rDe});var BV=_(C4=>{"use strict";Object.defineProperty(C4,"__esModule",{value:!0});var Xp=ze(),nDe={message:({schemaCode:e})=>(0,Xp.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Xp._)`{multipleOf: ${e}}`},iDe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:nDe,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,a=t.let("res"),o=s?(0,Xp._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:(0,Xp._)`${a} !== parseInt(${a})`;e.fail$data((0,Xp._)`(${n} === 0 || (${a} = ${r}/${n}, ${o}))`)}};C4.default=iDe});var jV=_(I4=>{"use strict";Object.defineProperty(I4,"__esModule",{value:!0});function qV(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}I4.default=qV;qV.code='require("ajv/dist/runtime/ucs2length").default'});var UV=_(R4=>{"use strict";Object.defineProperty(R4,"__esModule",{value:!0});var Oc=ze(),sDe=_t(),aDe=jV(),oDe={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Oc.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Oc._)`{limit: ${e}}`},uDe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:oDe,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?Oc.operators.GT:Oc.operators.LT,a=i.opts.unicode===!1?(0,Oc._)`${r}.length`:(0,Oc._)`${(0,sDe.useFunc)(e.gen,aDe.default)}(${r})`;e.fail$data((0,Oc._)`${a} ${s} ${n}`)}};R4.default=uDe});var HV=_(N4=>{"use strict";Object.defineProperty(N4,"__esModule",{value:!0});var cDe=$i(),vb=ze(),lDe={message:({schemaCode:e})=>(0,vb.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,vb._)`{pattern: ${e}}`},fDe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:lDe,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"",o=r?(0,vb._)`(new RegExp(${i}, ${a}))`:(0,cDe.usePattern)(e,n);e.fail$data((0,vb._)`!${o}.test(${t})`)}};N4.default=fDe});var zV=_(O4=>{"use strict";Object.defineProperty(O4,"__esModule",{value:!0});var Jp=ze(),dDe={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Jp.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Jp._)`{limit: ${e}}`},pDe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:dDe,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Jp.operators.GT:Jp.operators.LT;e.fail$data((0,Jp._)`Object.keys(${r}).length ${i} ${n}`)}};O4.default=pDe});var VV=_(P4=>{"use strict";Object.defineProperty(P4,"__esModule",{value:!0});var Qp=$i(),Zp=ze(),hDe=_t(),mDe={message:({params:{missingProperty:e}})=>(0,Zp.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Zp._)`{missingProperty: ${e}}`},gDe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:mDe,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:a}=e,{opts:o}=a;if(!s&&r.length===0)return;let u=r.length>=o.loopRequired;if(a.allErrors?l():c(),o.strictRequired){let h=e.parentSchema.properties,{definedProperties:p}=e.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let y=a.schemaEnv.baseId+a.errSchemaPath,g=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,hDe.checkStrictMode)(a,g,a.opts.strictRequired)}}function l(){if(u||s)e.block$data(Zp.nil,f);else for(let h of r)(0,Qp.checkReportMissingProp)(e,h)}function c(){let h=t.let("missing");if(u||s){let p=t.let("valid",!0);e.block$data(p,()=>d(h,p)),e.ok(p)}else t.if((0,Qp.checkMissingProp)(e,r,h)),(0,Qp.reportMissingProp)(e,h),t.else()}function f(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,Qp.noPropertyInData)(t,i,h,o.ownProperties),()=>e.error())})}function d(h,p){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(p,(0,Qp.propertyInData)(t,i,h,o.ownProperties)),t.if((0,Zp.not)(p),()=>{e.error(),t.break()})},Zp.nil)}}};P4.default=gDe});var GV=_(D4=>{"use strict";Object.defineProperty(D4,"__esModule",{value:!0});var eh=ze(),yDe={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,eh.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,eh._)`{limit: ${e}}`},bDe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:yDe,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?eh.operators.GT:eh.operators.LT;e.fail$data((0,eh._)`${r}.length ${i} ${n}`)}};D4.default=bDe});var Tb=_(k4=>{"use strict";Object.defineProperty(k4,"__esModule",{value:!0});var WV=Si();WV.code='require("ajv/dist/runtime/equal").default';k4.default=WV});var KV=_(L4=>{"use strict";Object.defineProperty(L4,"__esModule",{value:!0});var $4=qp(),Zr=ze(),xDe=_t(),EDe=Tb(),_De={message:({params:{i:e,j:t}})=>(0,Zr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Zr._)`{i: ${e}, j: ${t}}`},vDe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:_De,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:a,it:o}=e;if(!n&&!i)return;let u=t.let("valid"),l=s.items?(0,$4.getSchemaTypes)(s.items):[];e.block$data(u,c,(0,Zr._)`${a} === false`),e.ok(u);function c(){let p=t.let("i",(0,Zr._)`${r}.length`),m=t.let("j");e.setParams({i:p,j:m}),t.assign(u,!0),t.if((0,Zr._)`${p} > 1`,()=>(f()?d:h)(p,m))}function f(){return l.length>0&&!l.some(p=>p==="object"||p==="array")}function d(p,m){let y=t.name("item"),g=(0,$4.checkDataTypes)(l,y,o.opts.strictNumbers,$4.DataType.Wrong),v=t.const("indices",(0,Zr._)`{}`);t.for((0,Zr._)`;${p}--;`,()=>{t.let(y,(0,Zr._)`${r}[${p}]`),t.if(g,(0,Zr._)`continue`),l.length>1&&t.if((0,Zr._)`typeof ${y} == "string"`,(0,Zr._)`${y} += "_"`),t.if((0,Zr._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(m,(0,Zr._)`${v}[${y}]`),e.error(),t.assign(u,!1).break()}).code((0,Zr._)`${v}[${y}] = ${p}`)})}function h(p,m){let y=(0,xDe.useFunc)(t,EDe.default),g=t.name("outer");t.label(g).for((0,Zr._)`;${p}--;`,()=>t.for((0,Zr._)`${m} = ${p}; ${m}--;`,()=>t.if((0,Zr._)`${y}(${r}[${p}], ${r}[${m}])`,()=>{e.error(),t.assign(u,!1).break(g)})))}}};L4.default=vDe});var YV=_(F4=>{"use strict";Object.defineProperty(F4,"__esModule",{value:!0});var M4=ze(),TDe=_t(),SDe=Tb(),wDe={message:"must be equal to constant",params:({schemaCode:e})=>(0,M4._)`{allowedValue: ${e}}`},ADe={keyword:"const",$data:!0,error:wDe,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,M4._)`!${(0,TDe.useFunc)(t,SDe.default)}(${r}, ${i})`):e.fail((0,M4._)`${s} !== ${r}`)}};F4.default=ADe});var XV=_(B4=>{"use strict";Object.defineProperty(B4,"__esModule",{value:!0});var th=ze(),CDe=_t(),IDe=Tb(),RDe={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,th._)`{allowedValues: ${e}}`},NDe={keyword:"enum",schemaType:"array",$data:!0,error:RDe,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:a}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let o=i.length>=a.opts.loopEnum,u,l=()=>u??(u=(0,CDe.useFunc)(t,IDe.default)),c;if(o||n)c=t.let("valid"),e.block$data(c,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",s);c=(0,th.or)(...i.map((p,m)=>d(h,m)))}e.pass(c);function f(){t.assign(c,!1),t.forOf("v",s,h=>t.if((0,th._)`${l()}(${r}, ${h})`,()=>t.assign(c,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,th._)`${l()}(${r}, ${h}[${p}])`:(0,th._)`${r} === ${m}`}}};B4.default=NDe});var JV=_(q4=>{"use strict";Object.defineProperty(q4,"__esModule",{value:!0});var ODe=FV(),PDe=BV(),DDe=UV(),kDe=HV(),$De=zV(),LDe=VV(),MDe=GV(),FDe=KV(),BDe=YV(),qDe=XV(),jDe=[ODe.default,PDe.default,DDe.default,kDe.default,$De.default,LDe.default,MDe.default,FDe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},BDe.default,qDe.default];q4.default=jDe});var U4=_(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.validateAdditionalItems=void 0;var Pc=ze(),j4=_t(),UDe={message:({params:{len:e}})=>(0,Pc.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Pc._)`{limit: ${e}}`},HDe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UDe,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,j4.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}QV(e,n)}};function QV(e,t){let{gen:r,schema:n,data:i,keyword:s,it:a}=e;a.items=!0;let o=r.const("len",(0,Pc._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Pc._)`${o} <= ${t.length}`);else if(typeof n=="object"&&!(0,j4.alwaysValidSchema)(a,n)){let l=r.var("valid",(0,Pc._)`${o} <= ${t.length}`);r.if((0,Pc.not)(l),()=>u(l)),e.ok(l)}function u(l){r.forRange("i",t.length,o,c=>{e.subschema({keyword:s,dataProp:c,dataPropType:j4.Type.Num},l),a.allErrors||r.if((0,Pc.not)(l),()=>r.break())})}}rh.validateAdditionalItems=QV;rh.default=HDe});var H4=_(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.validateTuple=void 0;var ZV=ze(),Sb=_t(),zDe=$i(),VDe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eG(e,"additionalItems",t);r.items=!0,!(0,Sb.alwaysValidSchema)(r,t)&&e.ok((0,zDe.validateArray)(e))}};function eG(e,t,r=e.schema){let{gen:n,parentSchema:i,data:s,keyword:a,it:o}=e;c(i),o.opts.unevaluated&&r.length&&o.items!==!0&&(o.items=Sb.mergeEvaluated.items(n,r.length,o.items));let u=n.name("valid"),l=n.const("len",(0,ZV._)`${s}.length`);r.forEach((f,d)=>{(0,Sb.alwaysValidSchema)(o,f)||(n.if((0,ZV._)`${l} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},u)),e.ok(u))});function c(f){let{opts:d,errSchemaPath:h}=o,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[t]===!1);if(d.strictTuples&&!m){let y=`"${a}" is ${p}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Sb.checkStrictMode)(o,y,d.strictTuples)}}}nh.validateTuple=eG;nh.default=VDe});var tG=_(z4=>{"use strict";Object.defineProperty(z4,"__esModule",{value:!0});var GDe=H4(),WDe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,GDe.validateTuple)(e,"items")};z4.default=WDe});var nG=_(V4=>{"use strict";Object.defineProperty(V4,"__esModule",{value:!0});var rG=ze(),KDe=_t(),YDe=$i(),XDe=U4(),JDe={message:({params:{len:e}})=>(0,rG.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rG._)`{limit: ${e}}`},QDe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:JDe,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,KDe.alwaysValidSchema)(n,t)&&(i?(0,XDe.validateAdditionalItems)(e,i):e.ok((0,YDe.validateArray)(e)))}};V4.default=QDe});var iG=_(G4=>{"use strict";Object.defineProperty(G4,"__esModule",{value:!0});var Mi=ze(),wb=_t(),ZDe={message:({params:{min:e,max:t}})=>t===void 0?(0,Mi.str)`must contain at least ${e} valid item(s)`:(0,Mi.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Mi._)`{minContains: ${e}}`:(0,Mi._)`{minContains: ${e}, maxContains: ${t}}`},e5e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:ZDe,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e,a,o,{minContains:u,maxContains:l}=n;s.opts.next?(a=u===void 0?1:u,o=l):a=1;let c=t.const("len",(0,Mi._)`${i}.length`);if(e.setParams({min:a,max:o}),o===void 0&&a===0){(0,wb.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(o!==void 0&&a>o){(0,wb.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,wb.alwaysValidSchema)(s,r)){let m=(0,Mi._)`${c} >= ${a}`;o!==void 0&&(m=(0,Mi._)`${m} && ${c} <= ${o}`),e.pass(m);return}s.items=!0;let f=t.name("valid");o===void 0&&a===1?h(f,()=>t.if(f,()=>t.break())):a===0?(t.let(f,!0),o!==void 0&&t.if((0,Mi._)`${i}.length > 0`,d)):(t.let(f,!1),d()),e.result(f,()=>e.reset());function d(){let m=t.name("_valid"),y=t.let("count",0);h(m,()=>t.if(m,()=>p(y)))}function h(m,y){t.forRange("i",0,c,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:wb.Type.Num,compositeRule:!0},m),y()})}function p(m){t.code((0,Mi._)`${m}++`),o===void 0?t.if((0,Mi._)`${m} >= ${a}`,()=>t.assign(f,!0).break()):(t.if((0,Mi._)`${m} > ${o}`,()=>t.assign(f,!1).break()),a===1?t.assign(f,!0):t.if((0,Mi._)`${m} >= ${a}`,()=>t.assign(f,!0)))}}};G4.default=e5e});var oG=_(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.validateSchemaDeps=Xs.validatePropertyDeps=Xs.error=void 0;var W4=ze(),t5e=_t(),ih=$i();Xs.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,W4.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,W4._)`{property: ${e},
missingProperty: ${n},
depsCount: ${t},
deps: ${r}}`};var r5e={keyword:"dependencies",type:"object",schemaType:"object",error:Xs.error,code(e){let[t,r]=n5e(e);sG(e,t),aG(e,r)}};function n5e({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function sG(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let s=r.let("missing");for(let a in t){let o=t[a];if(o.length===0)continue;let u=(0,ih.propertyInData)(r,n,a,i.opts.ownProperties);e.setParams({property:a,depsCount:o.length,deps:o.join(", ")}),i.allErrors?r.if(u,()=>{for(let l of o)(0,ih.checkReportMissingProp)(e,l)}):(r.if((0,W4._)`${u} && (${(0,ih.checkMissingProp)(e,o,s)})`),(0,ih.reportMissingProp)(e,s),r.else())}}Xs.validatePropertyDeps=sG;function aG(e,t=e.schema){let{gen:r,data:n,keyword:i,it:s}=e,a=r.name("valid");for(let o in t)(0,t5e.alwaysValidSchema)(s,t[o])||(r.if((0,ih.propertyInData)(r,n,o,s.opts.ownProperties),()=>{let u=e.subschema({keyword:i,schemaProp:o},a);e.mergeValidEvaluated(u,a)},()=>r.var(a,!0)),e.ok(a))}Xs.validateSchemaDeps=aG;Xs.default=r5e});var cG=_(K4=>{"use strict";Object.defineProperty(K4,"__esModule",{value:!0});var uG=ze(),i5e=_t(),s5e={message:"property name must be valid",params:({params:e})=>(0,uG._)`{propertyName: ${e.propertyName}}`},a5e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:s5e,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,i5e.alwaysValidSchema)(i,r))return;let s=t.name("valid");t.forIn("key",n,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},s),t.if((0,uG.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};K4.default=a5e});var X4=_(Y4=>{"use strict";Object.defineProperty(Y4,"__esModule",{value:!0});var Ab=$i(),ps=ze(),o5e=Ua(),Cb=_t(),u5e={message:"must NOT have additional properties",params:({params:e})=>(0,ps._)`{additionalProperty: ${e.additionalProperty}}`},c5e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:u5e,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:a}=e;if(!s)throw new Error("ajv implementation error");let{allErrors:o,opts:u}=a;if(a.props=!0,u.removeAdditional!=="all"&&(0,Cb.alwaysValidSchema)(a,r))return;let l=(0,Ab.allSchemaProperties)(n.properties),c=(0,Ab.allSchemaProperties)(n.patternProperties);f(),e.ok((0,ps._)`${s} === ${o5e.default.errors}`);function f(){t.forIn("key",i,y=>{!l.length&&!c.length?p(y):t.if(d(y),()=>p(y))})}function d(y){let g;if(l.length>8){let v=(0,Cb.schemaRefOrVal)(a,n.properties,"properties");g=(0,Ab.isOwnProperty)(t,v,y)}else l.length?g=(0,ps.or)(...l.map(v=>(0,ps._)`${y} === ${v}`)):g=ps.nil;return c.length&&(g=(0,ps.or)(g,...c.map(v=>(0,ps._)`${(0,Ab.usePattern)(e,v)}.test(${y})`))),(0,ps.not)(g)}function h(y){t.code((0,ps._)`delete ${i}[${y}]`)}function p(y){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){h(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),o||t.break();return}if(typeof r=="object"&&!(0,Cb.alwaysValidSchema)(a,r)){let g=t.name("valid");u.removeAdditional==="failing"?(m(y,g,!1),t.if((0,ps.not)(g),()=>{e.reset(),h(y)})):(m(y,g),o||t.if((0,ps.not)(g),()=>t.break()))}}function m(y,g,v){let E={keyword:"additionalProperties",dataProp:y,dataPropType:Cb.Type.Str};v===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,g)}}};Y4.default=c5e});var dG=_(Q4=>{"use strict";Object.defineProperty(Q4,"__esModule",{value:!0});var l5e=zp(),lG=$i(),J4=_t(),fG=X4(),f5e={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&fG.default.code(new l5e.KeywordCxt(s,fG.default,"additionalProperties"));let a=(0,lG.allSchemaProperties)(r);for(let f of a)s.definedProperties.add(f);s.opts.unevaluated&&a.length&&s.props!==!0&&(s.props=J4.mergeEvaluated.props(t,(0,J4.toHash)(a),s.props));let o=a.filter(f=>!(0,J4.alwaysValidSchema)(s,r[f]));if(o.length===0)return;let u=t.name("valid");for(let f of o)l(f)?c(f):(t.if((0,lG.propertyInData)(t,i,f,s.opts.ownProperties)),c(f),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(u);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function c(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}}};Q4.default=f5e});var gG=_(Z4=>{"use strict";Object.defineProperty(Z4,"__esModule",{value:!0});var pG=$i(),Ib=ze(),hG=_t(),mG=_t(),d5e={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:a}=s,o=(0,pG.allSchemaProperties)(r),u=o.filter(m=>(0,hG.alwaysValidSchema)(s,r[m]));if(o.length===0||u.length===o.length&&(!s.opts.unevaluated||s.props===!0))return;let l=a.strictSchema&&!a.allowMatchingProperties&&i.properties,c=t.name("valid");s.props!==!0&&!(s.props instanceof Ib.Name)&&(s.props=(0,mG.evaluatedPropsToName)(t,s.props));let{props:f}=s;d();function d(){for(let m of o)l&&h(m),s.allErrors?p(m):(t.var(c,!0),p(m),t.if(c))}function h(m){for(let y in l)new RegExp(m).test(y)&&(0,hG.checkStrictMode)(s,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){t.forIn("key",n,y=>{t.if((0,Ib._)`${(0,pG.usePattern)(e,m)}.test(${y})`,()=>{let g=u.includes(m);g||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:mG.Type.Str},c),s.opts.unevaluated&&f!==!0?t.assign((0,Ib._)`${f}[${y}]`,!0):!g&&!s.allErrors&&t.if((0,Ib.not)(c),()=>t.break())})})}}};Z4.default=d5e});var yG=_(e6=>{"use strict";Object.defineProperty(e6,"__esModule",{value:!0});var p5e=_t(),h5e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,p5e.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};e6.default=h5e});var bG=_(t6=>{"use strict";Object.defineProperty(t6,"__esModule",{value:!0});var m5e=$i(),g5e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:m5e.validateUnion,error:{message:"must match a schema in anyOf"}};t6.default=g5e});var xG=_(r6=>{"use strict";Object.defineProperty(r6,"__esModule",{value:!0});var Rb=ze(),y5e=_t(),b5e={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Rb._)`{passingSchemas: ${e.passing}}`},x5e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:b5e,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,a=t.let("valid",!1),o=t.let("passing",null),u=t.name("_valid");e.setParams({passing:o}),t.block(l),e.result(a,()=>e.reset(),()=>e.error(!0));function l(){s.forEach((c,f)=>{let d;(0,y5e.alwaysValidSchema)(i,c)?t.var(u,!0):d=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&t.if((0,Rb._)`${u} && ${a}`).assign(a,!1).assign(o,(0,Rb._)`[${o}, ${f}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(o,f),d&&e.mergeEvaluated(d,Rb.Name)})})}}};r6.default=x5e});var EG=_(n6=>{"use strict";Object.defineProperty(n6,"__esModule",{value:!0});var E5e=_t(),_5e={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((s,a)=>{if((0,E5e.alwaysValidSchema)(n,s))return;let o=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(o)})}};n6.default=_5e});var TG=_(i6=>{"use strict";Object.defineProperty(i6,"__esModule",{value:!0});var Nb=ze(),vG=_t(),v5e={message:({params:e})=>(0,Nb.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Nb._)`{failingKeyword: ${e.ifClause}}`},T5e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:v5e,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,vG.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=_G(n,"then"),s=_G(n,"else");if(!i&&!s)return;let a=t.let("valid",!0),o=t.name("_valid");if(u(),e.reset(),i&&s){let c=t.let("ifClause");e.setParams({ifClause:c}),t.if(o,l("then",c),l("else",c))}else i?t.if(o,l("then")):t.if((0,Nb.not)(o),l("else"));e.pass(a,()=>e.error(!0));function u(){let c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);e.mergeEvaluated(c)}function l(c,f){return()=>{let d=e.subschema({keyword:c},o);t.assign(a,o),e.mergeValidEvaluated(d,a),f?t.assign(f,(0,Nb._)`${c}`):e.setParams({ifClause:c})}}}};function _G(e,t){let r=e.schema[t];return r!==void 0&&!(0,vG.alwaysValidSchema)(e,r)}i6.default=T5e});var SG=_(s6=>{"use strict";Object.defineProperty(s6,"__esModule",{value:!0});var S5e=_t(),w5e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,S5e.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};s6.default=w5e});var wG=_(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});var A5e=U4(),C5e=tG(),I5e=H4(),R5e=nG(),N5e=iG(),O5e=oG(),P5e=cG(),D5e=X4(),k5e=dG(),$5e=gG(),L5e=yG(),M5e=bG(),F5e=xG(),B5e=EG(),q5e=TG(),j5e=SG();function U5e(e=!1){let t=[L5e.default,M5e.default,F5e.default,B5e.default,q5e.default,j5e.default,P5e.default,D5e.default,O5e.default,k5e.default,$5e.default];return e?t.push(C5e.default,R5e.default):t.push(A5e.default,I5e.default),t.push(N5e.default),t}a6.default=U5e});var AG=_(o6=>{"use strict";Object.defineProperty(o6,"__esModule",{value:!0});var dr=ze(),H5e={message:({schemaCode:e})=>(0,dr.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,dr._)`{format: ${e}}`},z5e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:H5e,code(e,t){let{gen:r,data:n,$data:i,schema:s,schemaCode:a,it:o}=e,{opts:u,errSchemaPath:l,schemaEnv:c,self:f}=o;if(!u.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),m=r.const("fDef",(0,dr._)`${p}[${a}]`),y=r.let("fType"),g=r.let("format");r.if((0,dr._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(y,(0,dr._)`${m}.type || "string"`).assign(g,(0,dr._)`${m}.validate`),()=>r.assign(y,(0,dr._)`"string"`).assign(g,m)),e.fail$data((0,dr.or)(v(),E()));function v(){return u.strictSchema===!1?dr.nil:(0,dr._)`${a} && !${g}`}function E(){let x=c.$async?(0,dr._)`(${m}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,dr._)`${g}(${n})`,T=(0,dr._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,dr._)`${g} && ${g} !== true && ${y} === ${t} && !${T}`}}function h(){let p=f.formats[s];if(!p){v();return}if(p===!0)return;let[m,y,g]=E(p);m===t&&e.pass(x());function v(){if(u.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function E(T){let S=T instanceof RegExp?(0,dr.regexpCode)(T):u.code.formats?(0,dr._)`${u.code.formats}${(0,dr.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:T,code:S});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,dr._)`${w}.validate`]:["string",T,w]}function x(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!c.$async)throw new Error("async format in sync schema");return(0,dr._)`await ${g}(${n})`}return typeof y=="function"?(0,dr._)`${g}(${n})`:(0,dr._)`${g}.test(${n})`}}}};o6.default=z5e});var CG=_(u6=>{"use strict";Object.defineProperty(u6,"__esModule",{value:!0});var V5e=AG(),G5e=[V5e.default];u6.default=G5e});var IG=_(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.contentVocabulary=Of.metadataVocabulary=void 0;Of.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Of.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var NG=_(c6=>{"use strict";Object.defineProperty(c6,"__esModule",{value:!0});var W5e=MV(),K5e=JV(),Y5e=wG(),X5e=CG(),RG=IG(),J5e=[W5e.default,K5e.default,(0,Y5e.default)(),X5e.default,RG.metadataVocabulary,RG.contentVocabulary];c6.default=J5e});var PG=_(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.DiscrError=void 0;var OG;(function(e){e.Tag="tag",e.Mapping="mapping"})(OG||(Ob.DiscrError=OG={}))});var kG=_(f6=>{"use strict";Object.defineProperty(f6,"__esModule",{value:!0});var Pf=ze(),l6=PG(),DG=db(),Q5e=Vp(),Z5e=_t(),eke={message:({params:{discrError:e,tagName:t}})=>e===l6.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Pf._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},tke={keyword:"discriminator",type:"object",schemaType:"object",error:eke,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:a}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let u=t.let("valid",!1),l=t.const("tag",(0,Pf._)`${r}${(0,Pf.getProperty)(o)}`);t.if((0,Pf._)`typeof ${l} == "string"`,()=>c(),()=>e.error(!1,{discrError:l6.DiscrError.Tag,tag:l,tagName:o})),e.ok(u);function c(){let h=d();t.if(!1);for(let p in h)t.elseIf((0,Pf._)`${l} === ${p}`),t.assign(u,f(h[p]));t.else(),e.error(!1,{discrError:l6.DiscrError.Mapping,tag:l,tagName:o}),t.endIf()}function f(h){let p=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:h},p);return e.mergeEvaluated(m,Pf.Name),p}function d(){var h;let p={},m=g(i),y=!0;for(let x=0;x<a.length;x++){let T=a[x];if(T?.$ref&&!(0,Z5e.schemaHasRulesButRef)(T,s.self.RULES)){let w=T.$ref;if(T=DG.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,w),T instanceof DG.SchemaEnv&&(T=T.schema),T===void 0)throw new Q5e.default(s.opts.uriResolver,s.baseId,w)}let S=(h=T?.properties)===null||h===void 0?void 0:h[o];if(typeof S!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(m||g(T)),v(S,x)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return p;function g({required:x}){return Array.isArray(x)&&x.includes(o)}function v(x,T){if(x.const)E(x.const,T);else if(x.enum)for(let S of x.enum)E(S,T);else throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`)}function E(x,T){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${o}" values must be unique strings`);p[x]=T}}}};f6.default=tke});var $G=_((vat,rke)=>{rke.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var MG=_((tr,d6)=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.MissingRefError=tr.ValidationError=tr.CodeGen=tr.Name=tr.nil=tr.stringify=tr.str=tr._=tr.KeywordCxt=tr.Ajv=void 0;var nke=OV(),ike=NG(),ske=kG(),LG=$G(),ake=["/properties"],Pb="http://json-schema.org/draft-07/schema",Df=class extends nke.default{_addVocabularies(){super._addVocabularies(),ike.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(ske.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(LG,ake):LG;this.addMetaSchema(t,Pb,!1),this.refs["http://json-schema.org/schema"]=Pb}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Pb)?Pb:void 0)}};tr.Ajv=Df;d6.exports=tr=Df;d6.exports.Ajv=Df;Object.defineProperty(tr,"__esModule",{value:!0});tr.default=Df;var oke=zp();Object.defineProperty(tr,"KeywordCxt",{enumerable:!0,get:function(){return oke.KeywordCxt}});var kf=ze();Object.defineProperty(tr,"_",{enumerable:!0,get:function(){return kf._}});Object.defineProperty(tr,"str",{enumerable:!0,get:function(){return kf.str}});Object.defineProperty(tr,"stringify",{enumerable:!0,get:function(){return kf.stringify}});Object.defineProperty(tr,"nil",{enumerable:!0,get:function(){return kf.nil}});Object.defineProperty(tr,"Name",{enumerable:!0,get:function(){return kf.Name}});Object.defineProperty(tr,"CodeGen",{enumerable:!0,get:function(){return kf.CodeGen}});var uke=lb();Object.defineProperty(tr,"ValidationError",{enumerable:!0,get:function(){return uke.default}});var cke=Vp();Object.defineProperty(tr,"MissingRefError",{enumerable:!0,get:function(){return cke.default}})});var FG=_($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.formatLimitDefinition=void 0;var lke=MG(),hs=ze(),Zo=hs.operators,Db={formatMaximum:{okStr:"<=",ok:Zo.LTE,fail:Zo.GT},formatMinimum:{okStr:">=",ok:Zo.GTE,fail:Zo.LT},formatExclusiveMaximum:{okStr:"<",ok:Zo.LT,fail:Zo.GTE},formatExclusiveMinimum:{okStr:">",ok:Zo.GT,fail:Zo.LTE}},fke={message:({keyword:e,schemaCode:t})=>hs.str`should be ${Db[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>hs._`{comparison: ${Db[e].okStr}, limit: ${t}}`};$f.formatLimitDefinition={keyword:Object.keys(Db),type:"string",schemaType:"string",$data:!0,error:fke,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:s}=e,{opts:a,self:o}=s;if(!a.validateFormats)return;let u=new lke.KeywordCxt(s,o.RULES.all.format.definition,"format");u.$data?l():c();function l(){let d=t.scopeValue("formats",{ref:o.formats,code:a.code.formats}),h=t.const("fmt",hs._`${d}[${u.schemaCode}]`);e.fail$data(hs.or(hs._`typeof ${h} != "object"`,hs._`${h} instanceof RegExp`,hs._`typeof ${h}.compare != "function"`,f(h)))}function c(){let d=u.schema,h=o.formats[d];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${i}": format "${d}" does not define "compare" function`);let p=t.scopeValue("formats",{key:d,ref:h,code:a.code.formats?hs._`${a.code.formats}${hs.getProperty(d)}`:void 0});e.fail$data(f(p))}function f(d){return hs._`${d}.compare(${r}, ${n}) ${Db[i].fail} 0`}},dependencies:["format"]};var dke=e=>(e.addKeyword($f.formatLimitDefinition),e);$f.default=dke});var UG=_((sh,jG)=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var Lf=fz(),pke=FG(),p6=ze(),BG=new p6.Name("fullFormats"),hke=new p6.Name("fastFormats"),h6=(e,t={keywords:!0})=>{if(Array.isArray(t))return qG(e,t,Lf.fullFormats,BG),e;let[r,n]=t.mode==="fast"?[Lf.fastFormats,hke]:[Lf.fullFormats,BG],i=t.formats||Lf.formatNames;return qG(e,i,r,n),t.keywords&&pke.default(e),e};h6.get=(e,t="full")=>{let n=(t==="fast"?Lf.fastFormats:Lf.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function qG(e,t,r,n){var i,s;(i=(s=e.opts.code).formats)!==null&&i!==void 0||(s.formats=p6._`require("ajv-formats/dist/formats").${n}`);for(let a of t)e.addFormat(a,r[a])}jG.exports=sh=h6;Object.defineProperty(sh,"__esModule",{value:!0});sh.default=h6});var VG=_((Sat,zG)=>{"use strict";var mke=cH().default,gke=SC(),HG=wC(),m6=class{constructor(t,r){r.mode==="JTD"?this.ajv=new gke(Object.assign({},HG,r.customOptions)):this.ajv=new mke(Object.assign({},HG,r.customOptions));let n=!0;if(r.plugins&&r.plugins.length>0)for(let s of r.plugins)Array.isArray(s)?(n=n&&s[0].name!=="formatsPlugin",s[0](this.ajv,s[1])):(n=n&&s.name!=="formatsPlugin",s(this.ajv));n&&UG()(this.ajv),r.onCreate?.(this.ajv);let i=Object.values(t);for(let s of i)this.ajv.addSchema(s)}buildValidatorFunction({schema:t}){if(t.$id){let r=this.ajv.getSchema(t.$id);if(r)return r}return this.ajv.compile(t)}};zG.exports=m6});var WG=_((wat,GG)=>{"use strict";var yke=SC(),bke=wC(),g6=class{constructor(t,r){this.ajv=new yke(Object.assign({},bke,r))}buildSerializerFunction({schema:t}){return this.ajv.compileSerializer(t)}};GG.exports=g6});var XG=_((oh,YG)=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var ah=hy(),ms=Yl();function KG(e,t){if(!e.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:r}=e.scope.opts;return typeof t=="function"?i(t.source):t!==void 0?s(t,n):s(e.schemas,o=>o.meta?void 0:e.compile(o.schema));function n(o){let u=e.getSchema(o);if(!u)throw new Error(`moduleCode: no schema with id ${o}`);return u}function i(o){let u={},l=o?.validateName,c=a(u,o);return e.opts.code.esm?`"use strict";${r}export const validate = ${l};${r}export default ${l};${r}${c}`:`"use strict";${r}module.exports = ${l};${r}module.exports.default = ${l};${r}${c}`}function s(o,u){var l;let c={},f=(0,ms._)`"use strict";`;for(let d in o){let h=u(o[d]);if(h){let p=a(c,h.source),m=e.opts.code.esm?(0,ms._)`export const ${(0,ms.getEsmExportName)(d)}`:(0,ms._)`exports${(0,ms.getProperty)(d)}`;f=(0,ms._)`${f}${r}${m} = ${(l=h.source)===null||l===void 0?void 0:l.validateName};${r}${p}`}}return`${f}`}function a(o,u){if(!u)throw new Error('moduleCode: function does not have "source" property');if(d(u.validateName)===ah.UsedValueState.Completed)return ms.nil;h(u.validateName,ah.UsedValueState.Started);let l=e.scope.scopeCode(u.scopeValues,o,f),c=new ms._Code(`${l}${r}${u.validateCode}`);return u.evaluated?(0,ms._)`${c}${u.validateName}.evaluated = ${u.evaluated};${r}`:c;function f(p){var m;let y=(m=p.value)===null||m===void 0?void 0:m.ref;if(p.prefix==="validate"&&typeof y=="function")return a(o,y.source);if((p.prefix==="root"||p.prefix==="wrapper")&&typeof y=="object"){let{validate:g,validateName:v}=y;if(!v)throw new Error("ajv internal error");let E=e.opts.code.es5?ah.varKinds.var:ah.varKinds.const,x=(0,ms._)`${E} ${p} = {validate: ${v}};`;if(d(v)===ah.UsedValueState.Started)return x;let T=a(o,g?.source);return(0,ms._)`${x}${r}${T}`}}function d(p){var m;return(m=o[p.prefix])===null||m===void 0?void 0:m.get(p)}function h(p,m){let{prefix:y}=p;(o[y]=o[y]||new Map).set(p,m)}}}YG.exports=oh=KG;Object.defineProperty(oh,"__esModule",{value:!0});oh.default=KG});var ZG=_((Aat,QG)=>{"use strict";var JG=y6(),xke=XG().default;function Eke(e={readMode:!0}){if(e.readMode===!0&&!e.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(e.readMode!==!0&&!e.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(e.readMode===!0)return function(){return function(n){return e.restoreFunction(n)}};let t=JG();return function(n,i={}){(!i.customOptions||!i.customOptions.code)&&(i.customOptions=Object.assign({},i.customOptions,{code:{source:!0}}));let s=t(n,i);return function(a){let o=s(a),u=xke(s[JG.AjvReference].ajv,o);return e.storeFunction(a,u),o}}}QG.exports=Eke});var y6=_((Cat,Mf)=>{"use strict";var tW=Symbol.for("fastify.ajv-compiler.reference"),_ke=VG(),vke=WG();function b6(e){let t=new Map,r=new Map;return e&&e.jtdSerializer===!0?function(i,s){let a=eW({},s);if(r.has(a))return r.get(a);let o=new vke(i,s),u=o.buildSerializerFunction.bind(o);return r.set(a,u),u}:function(i,s){let a=eW(i,s.customOptions);if(t.has(a))return t.get(a);let o=new _ke(i,s),u=o.buildValidatorFunction.bind(o);return t.set(a,u),s.customOptions.code!==void 0&&(u[tW]=o),u}}function eW(e,t){let r=JSON.stringify(e),n=JSON.stringify(t);return`${r}${n}`}Mf.exports=b6;Mf.exports.default=b6;Mf.exports.AjvCompiler=b6;Mf.exports.AjvReference=tW;Mf.exports.StandaloneValidator=ZG()});var x6=_((Iat,rW)=>{"use strict";var{buildSchemas:Tke}=r0(),Ske=uA(),wke=y6();function Ake(e,t){if(e)return new Ff(e,t);let r=Object.assign({buildValidator:null,buildSerializer:null},t?.compilersFactory);r.buildValidator||(r.buildValidator=wke()),r.buildSerializer||(r.buildSerializer=Ske());let n={bucket:t&&t.bucket||Tke,compilersFactory:r,isCustomValidatorCompiler:typeof t?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof t?.compilersFactory?.buildValidator=="function"};return new Ff(void 0,n)}var Ff=class{constructor(t,r){this.opts=r||t?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,t?(this.schemaBucket=this.opts.bucket(t.getSchemas()),this.validatorCompiler=t.getValidatorCompiler(),this.serializerCompiler=t.getSerializerCompiler(),this.isCustomValidatorCompiler=t.isCustomValidatorCompiler,this.isCustomSerializerCompiler=t.isCustomSerializerCompiler,this.parent=t):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(t){return this.addedSchemas=!0,this.schemaBucket.add(t)}getSchema(t){return this.schemaBucket.getSchema(t)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(t){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>t}),this.validatorCompiler=t,this.isCustomValidatorCompiler=!0}setSerializerCompiler(t){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>t}),this.serializerCompiler=t,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(t){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),t.ajv))}setupSerializer(t){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),t.serializerOpts))}};Ff.buildSchemaController=Ake;rW.exports=Ff});var w6=_((Rat,S6)=>{"use strict";var E6=Nw(),v6=require("node:assert"),T6=Symbol.for("registered-plugin"),{kTestInternals:Cke}=Or(),{exist:Ike,existReply:Rke,existRequest:Nke}=qw(),{FST_ERR_PLUGIN_VERSION_MISMATCH:Oke,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Pke}=nn(),{FSTWRN002:Dke}=xa();function uh(e){return e[Symbol.for("plugin-meta")]}function nW(e){let t=iW(e);if(t)return t;let r=require.cache;if(r){let n=Object.keys(r);for(let i=0;i<n.length;i++){let s=n[i];if(r[s].exports===e)return s}}return e.name?e.name:null}function kke(e){return e.toString().split(`
`).slice(0,2).map(t=>t.trim()).join(" -- ")}function iW(e){return e[Symbol.for("fastify.display-name")]}function sW(e){return!!e[Symbol.for("skip-override")]}function aW(e){let t=uh(e);if(!t)return;let r=t.dependencies;r&&(v6(Array.isArray(r),"The dependencies should be an array of strings"),r.forEach(n=>{v6(this[T6].indexOf(n)>-1,`The dependency '${n}' of plugin '${t.name}' is not registered`)}))}function oW(e){let t=uh(e);if(!t)return;let{decorators:r,name:n}=t;r&&(r.fastify&&_6(this,"Fastify",r.fastify,n),r.reply&&_6(this,"Reply",r.reply,n),r.request&&_6(this,"Request",r.request,n))}var $ke={Fastify:Ike,Request:Nke,Reply:Rke};function _6(e,t,r,n){v6(Array.isArray(r),"The decorators should be an array of strings"),r.forEach(i=>{let s=typeof n=="string"?` required by '${n}'`:"";if(!$ke[t].call(e,i))throw new Pke(i,s,t)})}function Lke(e){let t=uh(e);if(!t)return;let r=t.fastify,n=/-rc.+$/.test(this.version);if(!(n===!0&&E6.gt(this.version,E6.coerce(r))===!0)&&r&&E6.satisfies(this.version,r,{includePrerelease:n})===!1)throw new Oke(t.name,r,this.version)}function Mke(e){let t=uh(e);if(!t)return;let r=t.name;if(r)return this[T6].push(r),r}function Fke(e,t){e.constructor.name==="AsyncFunction"&&e.length===3&&Dke(t||"anonymous")}function Bke(e){let t=Mke.call(this,e)||nW(e);return Fke.call(this,e,t),Lke.call(this,e),oW.call(this,e),aW.call(this,e),sW(e)}S6.exports={getPluginName:nW,getFuncPreview:kke,kRegisteredPlugins:T6,getDisplayName:iW,registerPlugin:Bke};S6.exports[Cke]={shouldSkipOverride:sW,getMeta:uh,checkDecorators:oW,checkDependencies:aW}});var kb=_((Nat,uW)=>{"use strict";function qke(e,t){let r=t||Uke();return e?Hke(e,r):r}function jke(e,t){return e.genReqId(t)}function Uke(){let t=0;return function(){return t=t+1&2147483647,`req-${t.toString(36)}`}}function Hke(e,t){return function(r){return r.headers[e]||t(r)}}uW.exports={getGenReqId:jke,reqIdGenFactory:qke}});var dW=_((Oat,fW)=>{"use strict";var cW=12,zke=0,A6=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function Vke(e){var t=e.indexOf("%");if(t===-1)return e;for(var r=e.length,n="",i=0,s=0,a=t,o=cW;t>-1&&t<r;){var u=lW(e[t+1],4),l=lW(e[t+2],0),c=u|l,f=A6[c];if(o=A6[256+o+f],s=s<<6|c&A6[364+f],o===cW)n+=e.slice(i,a),n+=s<=65535?String.fromCharCode(s):String.fromCharCode(55232+(s>>10),56320+(s&1023)),s=0,i=t+3,t=a=e.indexOf("%",i);else{if(o===zke)return null;if(t+=3,t<r&&e.charCodeAt(t)===37)continue;return null}}return n+e.slice(i)}var Gke={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};function lW(e,t){var r=Gke[e];return r===void 0?255:r<<t}fW.exports=Vke});var yW=_((Pat,gW)=>{"use strict";var pW=dW(),hW=/\+/g,mW=function(){};mW.prototype=Object.create(null);function Wke(e){let t=new mW;if(typeof e!="string")return t;let r=e.length,n="",i="",s=-1,a=-1,o=!1,u=!1,l=!1,c=!1,f=!1,d=0;for(let h=0;h<r+1;h++)if(d=h!==r?e.charCodeAt(h):38,d===38){if(f=a>s,f||(a=h),n=e.slice(s+1,a),f||n.length>0){l&&(n=n.replace(hW," ")),o&&(n=pW(n)||n),f&&(i=e.slice(a+1,h),c&&(i=i.replace(hW," ")),u&&(i=pW(i)||i));let p=t[n];p===void 0?t[n]=i:p.pop?p.push(i):t[n]=[p,i]}i="",s=h,a=h,o=!1,u=!1,l=!1,c=!1}else d===61?a<=s?a=h:u=!0:d===43?a>s?c=!0:l=!0:d===37&&(a>s?u=!0:o=!0);return t}gW.exports=Wke});var xW=_((Dat,bW)=>{var Js=Array.from({length:256},(e,t)=>"%"+((t<16?"0":"")+t.toString(16)).toUpperCase()),Kke=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function Yke(e){let t=e.length;if(t===0)return"";let r="",n=0,i=0;e:for(;i<t;i++){let s=e.charCodeAt(i);for(;s<128;){if(Kke[s]!==1&&(n<i&&(r+=e.slice(n,i)),n=i+1,r+=Js[s]),++i===t)break e;s=e.charCodeAt(i)}if(n<i&&(r+=e.slice(n,i)),s<2048){n=i+1,r+=Js[192|s>>6]+Js[128|s&63];continue}if(s<55296||s>=57344){n=i+1,r+=Js[224|s>>12]+Js[128|s>>6&63]+Js[128|s&63];continue}if(++i,i>=t)throw new Error("URI malformed");let a=e.charCodeAt(i)&1023;n=i+1,s=65536+((s&1023)<<10|a),r+=Js[240|s>>18]+Js[128|s>>12&63]+Js[128|s>>6&63]+Js[128|s&63]}return n===0?e:n<t?r+e.slice(n):r}bW.exports={encodeString:Yke}});var vW=_((kat,_W)=>{"use strict";var{encodeString:C6}=xW();function EW(e){let t=typeof e;return t==="string"?C6(e):t==="bigint"?e.toString():t==="boolean"?e?"true":"false":t==="number"&&Number.isFinite(e)?e<1e21?""+e:C6(""+e):""}function Xke(e){let t="";if(e===null||typeof e!="object")return t;let r="&",n=Object.keys(e),i=n.length,s=0;for(let a=0;a<i;a++){let o=n[a],u=e[o],l=C6(o)+"=";if(a&&(t+=r),Array.isArray(u)){s=u.length;for(let c=0;c<s;c++)c&&(t+=r),t+=l,t+=EW(u[c])}else t+=l,t+=EW(u)}return t}_W.exports=Xke});var AW=_(($at,ch)=>{"use strict";var TW=yW(),SW=vW(),wW={parse:TW,stringify:SW};ch.exports=wW;ch.exports.default=wW;ch.exports.parse=TW;ch.exports.stringify=SW});var IW=_(CW=>{"use strict";Object.defineProperty(CW,"__esModule",{value:!0})});var RW=_(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.types=void 0;var Jke;(function(e){e[e.ROOT=0]="ROOT",e[e.GROUP=1]="GROUP",e[e.POSITION=2]="POSITION",e[e.SET=3]="SET",e[e.RANGE=4]="RANGE",e[e.REPETITION=5]="REPETITION",e[e.REFERENCE=6]="REFERENCE",e[e.CHAR=7]="CHAR"})(Jke=lh.types||(lh.types={}))});var OW=_(NW=>{"use strict";Object.defineProperty(NW,"__esModule",{value:!0})});var Ga=_(Va=>{"use strict";var Qke=Va&&Va.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),I6=Va&&Va.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Qke(t,e,r)};Object.defineProperty(Va,"__esModule",{value:!0});I6(IW(),Va);I6(RW(),Va);I6(OW(),Va)});var $b=_(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.anyChar=yn.notWhitespace=yn.whitespace=yn.notInts=yn.ints=yn.notWords=yn.words=void 0;var St=Ga(),PW=()=>[{type:St.types.RANGE,from:48,to:57}],DW=()=>[{type:St.types.CHAR,value:95},{type:St.types.RANGE,from:97,to:122},{type:St.types.RANGE,from:65,to:90},{type:St.types.RANGE,from:48,to:57}],kW=()=>[{type:St.types.CHAR,value:9},{type:St.types.CHAR,value:10},{type:St.types.CHAR,value:11},{type:St.types.CHAR,value:12},{type:St.types.CHAR,value:13},{type:St.types.CHAR,value:32},{type:St.types.CHAR,value:160},{type:St.types.CHAR,value:5760},{type:St.types.RANGE,from:8192,to:8202},{type:St.types.CHAR,value:8232},{type:St.types.CHAR,value:8233},{type:St.types.CHAR,value:8239},{type:St.types.CHAR,value:8287},{type:St.types.CHAR,value:12288},{type:St.types.CHAR,value:65279}],Zke=()=>[{type:St.types.CHAR,value:10},{type:St.types.CHAR,value:13},{type:St.types.CHAR,value:8232},{type:St.types.CHAR,value:8233}];yn.words=()=>({type:St.types.SET,set:DW(),not:!1});yn.notWords=()=>({type:St.types.SET,set:DW(),not:!0});yn.ints=()=>({type:St.types.SET,set:PW(),not:!1});yn.notInts=()=>({type:St.types.SET,set:PW(),not:!0});yn.whitespace=()=>({type:St.types.SET,set:kW(),not:!1});yn.notWhitespace=()=>({type:St.types.SET,set:kW(),not:!0});yn.anyChar=()=>({type:St.types.SET,set:Zke(),not:!0})});var LW=_(Fi=>{"use strict";var e$e=Fi&&Fi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),t$e=Fi&&Fi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r$e=Fi&&Fi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&e$e(t,e,r);return t$e(t,e),t};Object.defineProperty(Fi,"__esModule",{value:!0});Fi.tokenizeClass=Fi.strToChars=void 0;var $W=Ga(),Bf=r$e($b()),n$e="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";Fi.strToChars=e=>{let t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return e.replace(t,(r,n,i,s,a,o,u)=>{if(i)return r;let l=n?8:s?parseInt(s,16):a?parseInt(a,16):o?n$e.indexOf(o):{0:0,t:9,n:10,v:11,f:12,r:13}[u],c=String.fromCharCode(l);return/[[\]{}^$.|?*+()]/.test(c)?`\\${c}`:c})};Fi.tokenizeClass=(e,t)=>{var r,n,i,s,a,o,u;let l=[],c,f,d=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(((?:\\)])|(((?:\\)?([^\]])))))|(\])|(?:\\)?([^])/g;for(;(c=d.exec(e))!==null;){let h=(u=(o=(a=(s=(i=(n=(r=c[1]&&Bf.words())!==null&&r!==void 0?r:c[2]&&Bf.ints())!==null&&n!==void 0?n:c[3]&&Bf.whitespace())!==null&&i!==void 0?i:c[4]&&Bf.notWords())!==null&&s!==void 0?s:c[5]&&Bf.notInts())!==null&&a!==void 0?a:c[6]&&Bf.notWhitespace())!==null&&o!==void 0?o:c[7]&&{type:$W.types.RANGE,from:(c[8]||c[9]).charCodeAt(0),to:(f=c[10]).charCodeAt(f.length-1)})!==null&&u!==void 0?u:(f=c[16])&&{type:$W.types.CHAR,value:f.charCodeAt(0)};if(h)l.push(h);else return[l,d.lastIndex]}throw new SyntaxError(`Invalid regular expression: /${t}/: Unterminated character class`)}});var R6=_(Qs=>{"use strict";var i$e=Qs&&Qs.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),s$e=Qs&&Qs.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),FW=Qs&&Qs.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&i$e(t,e,r);return s$e(t,e),t};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.tokenizer=void 0;var MW=FW(LW()),en=Ga(),Dc=FW($b());Qs.tokenizer=e=>{let t=0,r,n={type:en.types.ROOT,stack:[]},i=n,s=n.stack,a=[],o=[],u=0,l=f=>{throw new SyntaxError(`Invalid regular expression: /${e}/: Nothing to repeat at column ${f-1}`)},c=MW.strToChars(e);for(;t<c.length;)switch(r=c[t++]){case"\\":if(t===c.length)throw new SyntaxError(`Invalid regular expression: /${e}/: \\ at end of pattern`);switch(r=c[t++]){case"b":s.push({type:en.types.POSITION,value:"b"});break;case"B":s.push({type:en.types.POSITION,value:"B"});break;case"w":s.push(Dc.words());break;case"W":s.push(Dc.notWords());break;case"d":s.push(Dc.ints());break;case"D":s.push(Dc.notInts());break;case"s":s.push(Dc.whitespace());break;case"S":s.push(Dc.notWhitespace());break;default:if(/\d/.test(r)){let f=r;for(;t<c.length&&/\d/.test(c[t]);)f+=c[t++];let d=parseInt(f,10),h={type:en.types.REFERENCE,value:d};s.push(h),o.push({reference:h,stack:s,index:s.length-1})}else s.push({type:en.types.CHAR,value:r.charCodeAt(0)})}break;case"^":s.push({type:en.types.POSITION,value:"^"});break;case"$":s.push({type:en.types.POSITION,value:"$"});break;case"[":{let f;c[t]==="^"?(f=!0,t++):f=!1;let d=MW.tokenizeClass(c.slice(t),e);t+=d[1],s.push({type:en.types.SET,set:d[0],not:f});break}case".":s.push(Dc.anyChar());break;case"(":{let f={type:en.types.GROUP,stack:[],remember:!0};if(c[t]==="?"){if(r=c[t+1],t+=2,r==="=")f.followedBy=!0;else if(r==="!")f.notFollowedBy=!0;else if(r!==":")throw new SyntaxError(`Invalid regular expression: /${e}/: Invalid group, character '${r}' after '?' at column ${t-1}`);f.remember=!1}else u+=1;s.push(f),a.push(i),i=f,s=f.stack;break}case")":if(a.length===0)throw new SyntaxError(`Invalid regular expression: /${e}/: Unmatched ) at column ${t-1}`);i=a.pop(),s=i.options?i.options[i.options.length-1]:i.stack;break;case"|":{i.options||(i.options=[i.stack],delete i.stack);let f=[];i.options.push(f),s=f;break}case"{":{let f=/^(\d+)(,(\d+)?)?\}/.exec(c.slice(t)),d,h;f!==null?(s.length===0&&l(t),d=parseInt(f[1],10),h=f[2]?f[3]?parseInt(f[3],10):1/0:d,t+=f[0].length,s.push({type:en.types.REPETITION,min:d,max:h,value:s.pop()})):s.push({type:en.types.CHAR,value:123});break}case"?":s.length===0&&l(t),s.push({type:en.types.REPETITION,min:0,max:1,value:s.pop()});break;case"+":s.length===0&&l(t),s.push({type:en.types.REPETITION,min:1,max:1/0,value:s.pop()});break;case"*":s.length===0&&l(t),s.push({type:en.types.REPETITION,min:0,max:1/0,value:s.pop()});break;default:s.push({type:en.types.CHAR,value:r.charCodeAt(0)})}if(a.length!==0)throw new SyntaxError(`Invalid regular expression: /${e}/: Unterminated group`);return a$e(o,u),n};function a$e(e,t){for(let r of e.reverse())if(t<r.reference.value){r.reference.type=en.types.CHAR;let n=r.reference.value.toString();if(r.reference.value=parseInt(n,8),!/^[0-7]+$/.test(n)){let i=0;for(;n[i]!=="8"&&n[i]!=="9";)i+=1;if(i===0?(r.reference.value=n.charCodeAt(0),i+=1):r.reference.value=parseInt(n.slice(0,i),8),n.length>i){let s=r.stack.splice(r.index+1);for(let a of n.slice(i))r.stack.push({type:en.types.CHAR,value:a.charCodeAt(0)});r.stack.push(...s)}}}}});var qW=_(bn=>{"use strict";var o$e=bn&&bn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),u$e=bn&&bn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c$e=bn&&bn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&o$e(t,e,r);return u$e(t,e),t};Object.defineProperty(bn,"__esModule",{value:!0});bn.NOTANYCHAR=bn.WHITESPACE=bn.WORDS=bn.INTS=void 0;var Lb=c$e($b()),BW=Ga();function Mb(e){let t={},r=0;for(let n of e)n.type===BW.types.CHAR&&(t[n.value]=!0),n.type===BW.types.RANGE&&(t[`${n.from}-${n.to}`]=!0),r+=1;return{lookup:()=>Object.assign({},t),len:r}}bn.INTS=Mb(Lb.ints().set);bn.WORDS=Mb(Lb.words().set);bn.WHITESPACE=Mb(Lb.whitespace().set);bn.NOTANYCHAR=Mb(Lb.anyChar().set)});var UW=_(Bi=>{"use strict";var l$e=Bi&&Bi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),f$e=Bi&&Bi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d$e=Bi&&Bi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&l$e(t,e,r);return f$e(t,e),t};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.writeSetTokens=Bi.setChar=void 0;var jb=Ga(),Fb=d$e(qW());function qb(e){return e===94?"\\^":e===92?"\\\\":e===93?"\\]":e===45?"\\-":String.fromCharCode(e)}Bi.setChar=qb;function Bb(e,{lookup:t,len:r}){if(r!==e.length)return!1;let n=t();for(let i of e){if(i.type===jb.types.SET)return!1;let s=i.type===jb.types.CHAR?i.value:`${i.from}-${i.to}`;if(n[s])n[s]=!1;else return!1}return!0}function jW(e,t=!1){if(Bb(e.set,Fb.INTS))return e.not?"\\D":"\\d";if(Bb(e.set,Fb.WORDS))return e.not?"\\W":"\\w";if(e.not&&Bb(e.set,Fb.NOTANYCHAR))return".";if(Bb(e.set,Fb.WHITESPACE))return e.not?"\\S":"\\s";let r="";for(let i=0;i<e.set.length;i++){let s=e.set[i];r+=p$e(s)}let n=`${e.not?"^":""}${r}`;return t?n:`[${n}]`}Bi.writeSetTokens=jW;function p$e(e){return e.type===jb.types.CHAR?qb(e.value):e.type===jb.types.RANGE?`${qb(e.from)}-${qb(e.to)}`:jW(e,!0)}});var O6=_(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.reconstruct=void 0;var eu=Ga(),N6=UW(),HW=e=>e.map(qf.reconstruct).join(""),zW=e=>{if("options"in e)return e.options.map(HW).join("|");if("stack"in e)return HW(e.stack);throw new Error("options or stack must be Root or Group token")};qf.reconstruct=e=>{switch(e.type){case eu.types.ROOT:return zW(e);case eu.types.CHAR:{let t=String.fromCharCode(e.value);return(/[[\\{}$^.|?*+()]/.test(t)?"\\":"")+t}case eu.types.POSITION:return e.value==="^"||e.value==="$"?e.value:`\\${e.value}`;case eu.types.REFERENCE:return`\\${e.value}`;case eu.types.SET:return N6.writeSetTokens(e);case eu.types.GROUP:return`(${e.remember?"":e.followedBy?"?=":e.notFollowedBy?"?!":"?:"}${zW(e)})`;case eu.types.REPETITION:{let{min:t,max:r}=e,n;return t===0&&r===1?n="?":t===1&&r===1/0?n="+":t===0&&r===1/0?n="*":r===1/0?n=`{${t},}`:t===r?n=`{${t}}`:n=`{${t},${r}}`,`${qf.reconstruct(e.value)}${n}`}case eu.types.RANGE:return`${N6.setChar(e.from)}-${N6.setChar(e.to)}`;default:throw new Error(`Invalid token type ${e}`)}}});var WW=_((qi,Ub)=>{"use strict";var h$e=qi&&qi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),P6=qi&&qi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&h$e(t,e,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.types=void 0;var VW=Ga();Object.defineProperty(qi,"types",{enumerable:!0,get:function(){return VW.types}});P6(R6(),qi);P6(O6(),qi);var GW=R6(),m$e=O6();P6(Ga(),qi);qi.default=GW.tokenizer;Ub.exports=GW.tokenizer;Ub.exports.types=VW.types;Ub.exports.reconstruct=m$e.reconstruct});var YW=_((Gat,Hb)=>{"use strict";var KW=WW(),g$e=KW.types;function D6(e,t){t||(t={});let r=t.limit===void 0?25:t.limit;y$e(e)?e=e.source:typeof e!="string"&&(e=String(e));try{e=KW(e)}catch{return!1}let n=0;return function i(s,a){let o,u,l;if(s.type===g$e.REPETITION&&(a++,n++,a>1||n>r))return!1;if(s.options){for(o=0,l=s.options.length;o<l;o++)if(u=i({stack:s.options[o]},a),!u)return!1}let c=s.stack||s.value&&s.value.stack;if(!c)return!0;for(o=0;o<c.length;o++)if(u=i(c[o],a),!u)return!1;return!0}(e,0)}function y$e(e){return{}.toString.call(e)==="[object RegExp]"}Hb.exports=D6;Hb.exports.default=D6;Hb.exports.safeRegex=D6});var zb=_((Wat,XW)=>{"use strict";XW.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let e={};return{get:t=>e[t]||null,set:(t,r)=>{e[t]=r}}},deriveConstraint:e=>e.method,mustMatchWhenDerived:!0}});var nK=_((Kat,rK)=>{"use strict";var JW=Si(),QW=zb(),ZW=Symbol("treeData");function eK(e,t=""){let r="",n=Object.keys(e);for(let i=0;i<n.length;i++){let s=n[i],a=e[s],o=i===n.length-1,u=o?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ",l=o?" ":"\u2502 ",f=(a[ZW]||"").split(`
`).join(`
`+t+l);r+=t+u+s+f+`
`,r+=eK(a,t+l)}return r}function b$e(e){let t=e.name||"";return t=t.replace("bound","").trim(),t=(t||"anonymous")+"()",t}function tK(e){return Array.isArray(e)?e.map(t=>tK(t)):typeof e=="symbol"?e.toString():typeof e=="function"?b$e(e):e}function x$e(e,t){if(!t.includeMeta)return{};let r=t.buildPrettyMeta(e),n={},i=t.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(r));for(let s of i){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let a=s.toString(),o=r[s];if(o!=null){let u=JSON.stringify(tK(o));n[a]=u}}return n}function E$e(e){let t="";for(let[r,n]of Object.entries(e))t+=`
\u2022 (${r}) ${n}`;return t}function _$e(e){let t={...e.opts.constraints},r=t[QW.name];return delete t[QW.name],{...e,method:r,opts:{constraints:t}}}function v$e(e){let t=` (${e.method})`,r=e.opts.constraints||{};return Object.keys(r).length!==0&&(t+=" "+JSON.stringify(r)),t+=E$e(e.metaData),t}function T$e(e){return e.reduce((t,r)=>{for(let n of t)if(JW(r.opts.constraints,n.opts.constraints)&&JW(r.metaData,n.metaData))return n.method+=", "+r.method,t;return t.push(r),t},[])}function S$e(e,t,r){let n=e.routes;return r.method===void 0&&(n=n.map(_$e)),n=n.map(i=>(i.metaData=x$e(i,r),i)),r.method===void 0&&(n=T$e(n)),n.map(v$e).join(`
${t}`)}function Vb(e,t,r,n){if((e.isLeafNode||n.commonPrefix!==!1)&&(r=r||"(empty root node)",t=t[r]={},e.isLeafNode&&(t[ZW]=S$e(e,r,n)),r=""),e.staticChildren)for(let i of Object.values(e.staticChildren))Vb(i,t,r+i.prefix,n);if(e.parametricChildren)for(let i of Object.values(e.parametricChildren)){let s=Array.from(i.nodePaths).join("|");Vb(i,t,r+s,n)}e.wildcardChild&&Vb(e.wildcardChild,t,"*",n)}function w$e(e,t){let r={};return Vb(e,r,e.prefix,t),eK(r)}rK.exports={prettyPrintTree:w$e}});var sK=_((Yat,iK)=>{"use strict";var A$e=zb(),k6=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(t){return t===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(t)}addHandler(t,r){let n=r.params,i=r.opts.constraints||{},s={params:n,constraints:i,handler:r.handler,store:r.store||null,_createParamsObject:this._compileCreateParamsObject(n)},a=Object.keys(i);a.length===0&&(this.unconstrainedHandler=s);for(let u of a)this.constraints.includes(u)||(u==="version"?this.constraints.unshift(u):this.constraints.push(u));let o=a.includes(A$e.name);if(!o&&this.handlers.length>=31)throw new Error("find-my-way supports a maximum of 31 route handlers per node when there are constraints, limit reached");this.handlers.push(s),this.handlers.sort((u,l)=>Object.keys(u.constraints).length-Object.keys(l.constraints).length),o||this._compileGetHandlerMatchingConstraints(t,i)}_compileCreateParamsObject(t){let r=[];for(let n=0;n<t.length;n++)r.push(`'${t[n]}': paramsArray[${n}]`);return new Function("paramsArray",`return {${r.join(",")}}`)}_getHandlerMatchingConstraints(){return null}_buildConstraintStore(t,r){for(let n=0;n<this.handlers.length;n++){let s=this.handlers[n].constraints[r];if(s!==void 0){let a=t.get(s)||0;a|=1<<n,t.set(s,a)}}}_constrainedIndexBitmask(t){let r=0;for(let n=0;n<this.handlers.length;n++)this.handlers[n].constraints[t]!==void 0&&(r|=1<<n);return~r}_compileGetHandlerMatchingConstraints(t){this.constrainedHandlerStores={};for(let n of this.constraints){let i=t.newStoreForConstraint(n);this.constrainedHandlerStores[n]=i,this._buildConstraintStore(i,n)}let r=[];r.push(`
let candidates = ${(1<<this.handlers.length)-1}
let mask, matches
`);for(let n of this.constraints){r.push(`
mask = ${this._constrainedIndexBitmask(n)}
value = derivedConstraints.${n}
`);let s=t.strategies[n].mustMatchWhenDerived?"matches":"(matches | mask)";r.push(`
if (value === undefined) {
candidates &= mask
} else {
matches = this.constrainedHandlerStores.${n}.get(value) || 0
candidates &= ${s}
}
if (candidates === 0) return null;
`)}for(let n in t.strategies)t.strategies[n].mustMatchWhenDerived&&!this.constraints.includes(n)&&r.push(`if (derivedConstraints.${n} !== undefined) return null`);r.push("return this.handlers[Math.floor(Math.log2(candidates))]"),this._getHandlerMatchingConstraints=new Function("derivedConstraints",r.join(`
`))}};iK.exports=k6});var oK=_((Xat,aK)=>{"use strict";var C$e=sK(),Jb={STATIC:0,PARAMETRIC:1,WILDCARD:2},Gb=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(t,r){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new C$e),this.isLeafNode=!0,this.routes.push(t),this.handlerStorage.addHandler(r,t)}},Wb=class extends Gb{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(t,r){let n=this.staticChildren[t.charAt(r)];return n===void 0||!n.matchPrefix(t,r)?null:n}getStaticChild(t,r=0){if(t.length===r)return this;let n=this.findStaticMatchingChild(t,r);return n?n.getStaticChild(t,r+n.prefix.length):null}createStaticChild(t){if(t.length===0)return this;let r=this.staticChildren[t.charAt(0)];if(r){let i=1;for(;i<r.prefix.length;i++)if(t.charCodeAt(i)!==r.prefix.charCodeAt(i)){r=r.split(this,i);break}return r.createStaticChild(t.slice(i))}let n=t.charAt(0);return this.staticChildren[n]=new Kb(t),this.staticChildren[n]}},Kb=class e extends Wb{constructor(t){super(),this.prefix=t,this.wildcardChild=null,this.parametricChildren=[],this.kind=Jb.STATIC,this._compilePrefixMatch()}getParametricChild(t){let r=t&&t.source,n=this.parametricChildren.find(i=>(i.regex&&i.regex.source)===r);return n||null}createParametricChild(t,r,n){let i=this.getParametricChild(t);return i?(i.nodePaths.add(n),i):(i=new Yb(t,r,n),this.parametricChildren.push(i),this.parametricChildren.sort((s,a)=>s.isRegex?a.isRegex?s.staticSuffix===null?1:a.staticSuffix===null?-1:a.staticSuffix.endsWith(s.staticSuffix)?1:s.staticSuffix.endsWith(a.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new Xb,this.wildcardChild}split(t,r){let n=this.prefix.slice(0,r),i=this.prefix.slice(r);this.prefix=i,this._compilePrefixMatch();let s=new e(n);return s.staticChildren[i.charAt(0)]=this,t.staticChildren[n.charAt(0)]=s,s}getNextNode(t,r,n,i){let s=this.findStaticMatchingChild(t,r),a=0;if(s===null){if(this.parametricChildren.length===0)return this.wildcardChild;s=this.parametricChildren[0],a=1}this.wildcardChild!==null&&n.push({paramsCount:i,brotherPathIndex:r,brotherNode:this.wildcardChild});for(let o=this.parametricChildren.length-1;o>=a;o--)n.push({paramsCount:i,brotherPathIndex:r,brotherNode:this.parametricChildren[o]});return s}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let t=[];for(let r=1;r<this.prefix.length;r++){let n=this.prefix.charCodeAt(r);t.push(`path.charCodeAt(i + ${r}) === ${n}`)}this.matchPrefix=new Function("path","i",`return ${t.join(" && ")}`)}},Yb=class extends Wb{constructor(t,r,n){super(),this.isRegex=!!t,this.regex=t||null,this.staticSuffix=r||null,this.kind=Jb.PARAMETRIC,this.nodePaths=new Set([n])}getNextNode(t,r){return this.findStaticMatchingChild(t,r)}},Xb=class extends Gb{constructor(){super(),this.kind=Jb.WILDCARD}getNextNode(){return null}};aK.exports={StaticNode:Kb,ParametricNode:Yb,WildcardNode:Xb,NODE_TYPES:Jb}});var cK=_((Jat,uK)=>{"use strict";var I$e=require("node:assert");function fh(){if(!(this instanceof fh))return new fh;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}fh.prototype.set=function(e,t){if(typeof e!="string")throw new TypeError("Version should be a string");let[r,n,i]=e.split(".");if(isNaN(r))throw new TypeError("Major version must be a numeric value");return r=Number(r),n=Number(n)||0,i=Number(i)||0,r>=this.maxMajor&&(this.maxMajor=r,this.store.x=t,this.store["*"]=t,this.store["x.x"]=t,this.store["x.x.x"]=t),n>=(this.maxMinors[r]||0)&&(this.maxMinors[r]=n,this.store[`${r}.x`]=t,this.store[`${r}.x.x`]=t),i>=(this.maxPatches[`${r}.${n}`]||0)&&(this.maxPatches[`${r}.${n}`]=i,this.store[`${r}.${n}.x`]=t),this.store[`${r}.${n}.${i}`]=t,this};fh.prototype.get=function(e){return this.store[e]};uK.exports={name:"version",mustMatchWhenDerived:!0,storage:fh,validate(e){I$e(typeof e=="string","Version should be a string")}}});var fK=_((Qat,lK)=>{"use strict";var R$e=require("node:assert");function N$e(){let e={},t=[];return{get:r=>{let n=e[r];if(n)return n;for(let i of t)if(i.host.test(r))return i.value},set:(r,n)=>{r instanceof RegExp?t.push({host:r,value:n}):e[r]=n}}}lK.exports={name:"host",mustMatchWhenDerived:!1,storage:N$e,validate(e){R$e(typeof e=="string"||Object.prototype.toString.call(e)==="[object RegExp]","Host should be a string or a RegExp")}}});var pK=_((Zat,dK)=>{"use strict";var O$e=cK(),P$e=fK(),$6=require("node:assert"),L6=class{constructor(t){if(this.strategies={version:O$e,host:P$e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,t)for(let r of Object.values(t))this.addConstraintStrategy(r)}isStrategyUsed(t){return this.strategiesInUse.has(t)||this.asyncStrategiesInUse.has(t)}hasConstraintStrategy(t){let r=this.strategies[t];return r!==void 0?r.isCustom||this.isStrategyUsed(t):!1}addConstraintStrategy(t){if($6(typeof t.name=="string"&&t.name!=="","strategy.name is required."),$6(t.storage&&typeof t.storage=="function","strategy.storage function is required."),$6(t.deriveConstraint&&typeof t.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[t.name]&&this.strategies[t.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${t.name}.`);if(this.isStrategyUsed(t.name))throw new Error(`There already exists a route with ${t.name} constraint.`);t.isCustom=!0,t.isAsync=t.deriveConstraint.length===3,this.strategies[t.name]=t,t.mustMatchWhenDerived&&this.noteUsage({[t.name]:t})}deriveConstraints(t,r,n){let i=this.deriveSyncConstraints(t,r);if(n===void 0)return i;this.deriveAsyncConstraints(i,t,r,n)}deriveSyncConstraints(t,r){}noteUsage(t){if(t){let r=this.strategiesInUse.size;for(let n in t)this.strategies[n].isAsync?this.asyncStrategiesInUse.add(n):this.strategiesInUse.add(n);r!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(t){if(!this.strategies[t])throw new Error(`No strategy registered for constraint key ${t}`);return this.strategies[t].storage()}validateConstraints(t){for(let r in t){let n=t[r];if(typeof n>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let i=this.strategies[r];if(!i)throw new Error(`No strategy registered for constraint key ${r}`);i.validate&&i.validate(n)}}deriveAsyncConstraints(t,r,n,i){let s=this.asyncStrategiesInUse.size;if(s===0){i(null,t);return}t=t||{};for(let a of this.asyncStrategiesInUse)this.strategies[a].deriveConstraint(r,n,(u,l)=>{if(u!==null){i(u);return}t[a]=l,--s===0&&i(null,t)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let t=["return {"];for(let r of this.strategiesInUse){let n=this.strategies[r];n.isCustom?t.push(` ${n.name}: this.strategies.${r}.deriveConstraint(req, ctx),`):r==="version"?t.push(" version: req.headers['accept-version'],"):t.push(" host: req.headers.host || req.headers[':authority'],")}t.push("}"),this.deriveSyncConstraints=new Function("req","ctx",t.join(`
`)).bind(this)}};dK.exports=L6});var mK=_((eot,hK)=>{"use strict";var D$e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];hK.exports=D$e});var bK=_((tot,yK)=>{"use strict";function gK(e,t){return e===50?t===53?"%":t===51?"#":t===52?"$":t===54?"&":t===66||t===98?"+":t===67||t===99?",":t===70||t===102?"/":null:e===51?t===65||t===97?":":t===66||t===98?";":t===68||t===100?"=":t===70||t===102?"?":null:e===52&&t===48?"@":null}function k$e(e,t){let r=!1,n=!1,i="";for(let a=1;a<e.length;a++){let o=e.charCodeAt(a);if(o===37){let u=e.charCodeAt(a+1),l=e.charCodeAt(a+2);gK(u,l)===null?r=!0:(n=!0,u===50&&l===53&&(r=!0,e=e.slice(0,a+1)+"25"+e.slice(a+1),a+=2),a+=2)}else if(o===63||o===35||o===59&&t){i=e.slice(a+1),e=e.slice(0,a);break}}return{path:r?decodeURI(e):e,querystring:i,shouldDecodeParam:n}}function $$e(e){let t=e.indexOf("%");if(t===-1)return e;let r="",n=t;for(let i=t;i<e.length;i++)if(e.charCodeAt(i)===37){let s=e.charCodeAt(i+1),a=e.charCodeAt(i+2),o=gK(s,a);r+=e.slice(n,i)+o,n=i+3}return e.slice(0,t)+r+e.slice(n)}yK.exports={safeDecodeURI:k$e,safeDecodeURIComponent:$$e}});var j6=_((rot,AK)=>{"use strict";var pr=require("node:assert"),L$e=AW(),Qb=YW(),F6=Si(),{prettyPrintTree:M$e}=nK(),{StaticNode:xK,NODE_TYPES:EK}=oK(),F$e=pK(),jf=mK(),M6=zb(),{safeDecodeURI:B$e,safeDecodeURIComponent:_K}=bK(),vK=/^https?:\/\/.*?\//,kc=/(\/:[^/()]*?)\?(\/?)/;if(!Qb(vK))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!Qb(kc))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function nr(e){if(!(this instanceof nr))return new nr(e);e=e||{},this._opts=e,e.defaultRoute?(pr(typeof e.defaultRoute=="function","The default route must be a function"),this.defaultRoute=e.defaultRoute):this.defaultRoute=null,e.onBadUrl?(pr(typeof e.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=e.onBadUrl):this.onBadUrl=null,e.buildPrettyMeta?(pr(typeof e.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=e.buildPrettyMeta):this.buildPrettyMeta=q$e,e.querystringParser?(pr(typeof e.querystringParser=="function","querystringParser must be a function"),this.querystringParser=e.querystringParser):this.querystringParser=t=>t===""?{}:L$e.parse(t),this.caseSensitive=e.caseSensitive===void 0?!0:e.caseSensitive,this.ignoreTrailingSlash=e.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=e.ignoreDuplicateSlashes||!1,this.maxParamLength=e.maxParamLength||100,this.allowUnsafeRegex=e.allowUnsafeRegex||!1,this.constrainer=new F$e(e.constraints),this.useSemicolonDelimiter=e.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}nr.prototype.on=function(t,r,n,i,s){typeof n=="function"&&(i!==void 0&&(s=i),i=n,n={}),pr(typeof r=="string","Path should be a string"),pr(r.length>0,"The path could not be empty"),pr(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),pr(typeof i=="function","Handler should be a function");let a=r.match(kc);if(a){pr(r.length===a.index+a[0].length,"Optional Parameter needs to be the last parameter of the path");let l=r.replace(kc,"$1$2"),c=r.replace(kc,"$2")||"/";this.on(t,l,n,i,s),this.on(t,c,n,i,s);return}let o=r;this.ignoreDuplicateSlashes&&(r=B6(r)),this.ignoreTrailingSlash&&(r=q6(r));let u=Array.isArray(t)?t:[t];for(let l of u)pr(typeof l=="string","Method should be a string"),pr(jf.includes(l),`Method '${l}' is not an http method.`),this._on(l,r,n,i,s,o)};nr.prototype._on=function(t,r,n,i,s){let a={};n.constraints!==void 0&&(pr(typeof n.constraints=="object"&&n.constraints!==null,"Constraints should be an object"),Object.keys(n.constraints).length!==0&&(a=n.constraints)),this.constrainer.validateConstraints(a),this.constrainer.noteUsage(a),this.trees[t]===void 0&&(this.trees[t]=new xK("/"));let o=r;if(o==="*"&&this.trees[t].prefix.length!==0){let d=this.trees[t];this.trees[t]=new xK(""),this.trees[t].staticChildren["/"]=d}let u=this.trees[t],l=u.prefix.length,c=[];for(let d=0;d<=o.length;d++){if(o.charCodeAt(d)===58&&o.charCodeAt(d+1)===58){d++;continue}let h=o.charCodeAt(d)===58&&o.charCodeAt(d+1)!==58,p=o.charCodeAt(d)===42;if(h||p||d===o.length&&d!==l){let m=o.slice(l,d);this.caseSensitive||(m=m.toLowerCase()),m=m.split("::").join(":"),m=m.split("%").join("%25"),u=u.createStaticChild(m)}if(h){let m=!1,y=!0,g="",v=[],E=d+1;for(let x=E;;x++){let T=o.charCodeAt(x),S=T===40,w=T===45||T===46,A=T===47||x===o.length;if(S||w||A){let C=o.slice(E,x);if(c.push(C),m=m||S||w,S){let R=wK(o,x),P=o.slice(x,R+1);this.allowUnsafeRegex||pr(Qb(new RegExp(P)),`The regex '${P}' is not safe!`),v.push(SK(P)),x=R+1,y=!0}else v.push(y?"(.*?)":`(${g}|(?:(?!${g}).)*)`),y=!1;let I=x;for(;x<o.length;x++){let R=o.charCodeAt(x);if(R===47)break;if(R===58)if(o.charCodeAt(x+1)===58)x++;else break}let M=o.slice(I,x);if(M&&(M=M.split("::").join(":"),M=M.split("%").join("%25"),v.push(g=TK(M))),E=x+1,A||o.charCodeAt(x)===47||x===o.length){let R=m?"()"+M:M,P=o.slice(d,x);o=o.slice(0,d+1)+R+o.slice(x),d+=R.length;let k=m?new RegExp("^"+v.join("")+"$"):null;u=u.createParametricChild(k,M||null,P),l=d+1;break}}}}else if(p&&(c.push("*"),u=u.createWildcardChild(),l=d+1,d!==o.length-1))throw new Error("Wildcard must be the last character in the route")}this.caseSensitive||(o=o.toLowerCase()),o==="*"&&(o="/*");for(let d of this.routes){let h=d.opts.constraints||{};if(d.method===t&&d.pattern===o&&F6(h,a))throw new Error(`Method '${t}' already declared for route '${o}' with constraints '${JSON.stringify(a)}'`)}let f={method:t,path:r,pattern:o,params:c,opts:n,handler:i,store:s};this.routes.push(f),u.addRoute(f,this.constrainer)};nr.prototype.hasRoute=function(t,r,n){return this.findRoute(t,r,n)!==null};nr.prototype.findRoute=function(t,r,n={}){if(this.trees[t]===void 0)return null;let i=r,s=this.trees[t],a=s.prefix.length,o=[];for(let u=0;u<=i.length;u++){if(i.charCodeAt(u)===58&&i.charCodeAt(u+1)===58){u++;continue}let l=i.charCodeAt(u)===58&&i.charCodeAt(u+1)!==58,c=i.charCodeAt(u)===42;if(l||c||u===i.length&&u!==a){let f=i.slice(a,u);if(this.caseSensitive||(f=f.toLowerCase()),f=f.split("::").join(":"),f=f.split("%").join("%25"),s=s.getStaticChild(f),s===null)return null}if(l){let f=!1,d=!0,h="",p=[],m=u+1;for(let y=m;;y++){let g=i.charCodeAt(y),v=g===40,E=g===45||g===46,x=g===47||y===i.length;if(v||E||x){let T=i.slice(m,y);if(o.push(T),f=f||v||E,v){let A=wK(i,y),C=i.slice(y,A+1);this.allowUnsafeRegex||pr(Qb(new RegExp(C)),`The regex '${C}' is not safe!`),p.push(SK(C)),y=A+1,d=!1}else p.push(d?"(.*?)":`(${h}|(?:(?!${h}).)*)`),d=!1;let S=y;for(;y<i.length;y++){let A=i.charCodeAt(y);if(A===47)break;if(A===58)if(i.charCodeAt(y+1)===58)y++;else break}let w=i.slice(S,y);if(w&&(w=w.split("::").join(":"),w=w.split("%").join("%25"),p.push(h=TK(w))),m=y+1,x||i.charCodeAt(y)===47||y===i.length){let A=f?"()"+w:w,C=i.slice(u,y);i=i.slice(0,u+1)+A+i.slice(y),u+=A.length;let I=f?new RegExp("^"+p.join("")+"$"):null;if(s=s.getParametricChild(I,w||null,C),s===null)return null;a=u+1;break}}}}else if(c&&(o.push("*"),s=s.getWildcardChild(),a=u+1,u!==i.length-1))throw new Error("Wildcard must be the last character in the route")}this.caseSensitive||(i=i.toLowerCase());for(let u of this.routes){let l=u.opts.constraints||{};if(u.method===t&&u.pattern===i&&F6(l,n))return{handler:u.handler,store:u.store,params:u.params}}return null};nr.prototype.hasConstraintStrategy=function(e){return this.constrainer.hasConstraintStrategy(e)};nr.prototype.addConstraintStrategy=function(e){this.constrainer.addConstraintStrategy(e),this._rebuild(this.routes)};nr.prototype.reset=function(){this.trees={},this.routes=[]};nr.prototype.off=function(t,r,n){pr(typeof r=="string","Path should be a string"),pr(r.length>0,"The path could not be empty"),pr(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),pr(typeof n>"u"||typeof n=="object"&&!Array.isArray(n)&&n!==null,"Constraints should be an object or undefined.");let i=r.match(kc);if(i){pr(r.length===i.index+i[0].length,"Optional Parameter needs to be the last parameter of the path");let a=r.replace(kc,"$1$2"),o=r.replace(kc,"$2");this.off(t,a,n),this.off(t,o,n);return}this.ignoreDuplicateSlashes&&(r=B6(r)),this.ignoreTrailingSlash&&(r=q6(r));let s=Array.isArray(t)?t:[t];for(let a of s)this._off(a,r,n)};nr.prototype._off=function(t,r,n){pr(typeof t=="string","Method should be a string"),pr(jf.includes(t),`Method '${t}' is not an http method.`);function i(u){return t!==u.method||r!==u.path}function s(u){return i(u)||!F6(n,u.opts.constraints||{})}let a=n?s:i,o=this.routes.filter(a);this._rebuild(o)};nr.prototype.lookup=function(t,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i===void 0){let s=this.constrainer.deriveConstraints(t,n),a=this.find(t.method,t.url,s);return this.callHandler(a,t,r,n)}this.constrainer.deriveConstraints(t,n,(s,a)=>{if(s!==null){i(s);return}try{let o=this.find(t.method,t.url,a),u=this.callHandler(o,t,r,n);i(null,u)}catch(o){i(o)}})};nr.prototype.callHandler=function(t,r,n,i){return t===null?this._defaultRoute(r,n,i):i===void 0?t.handler(r,n,t.params,t.store,t.searchParams):t.handler.call(i,r,n,t.params,t.store,t.searchParams)};nr.prototype.find=function(t,r,n){let i=this.trees[t];if(i===void 0)return null;r.charCodeAt(0)!==47&&(r=r.replace(vK,"/")),this.ignoreDuplicateSlashes&&(r=B6(r));let s,a,o;try{s=B$e(r,this.useSemicolonDelimiter),r=s.path,a=s.querystring,o=s.shouldDecodeParam}catch{return this._onBadUrl(r)}this.ignoreTrailingSlash&&(r=q6(r));let u=r;this.caseSensitive===!1&&(r=r.toLowerCase());let l=this.maxParamLength,c=i.prefix.length,f=[],d=r.length,h=[];for(;;){if(c===d&&i.isLeafNode){let g=i.handlerStorage.getMatchingHandler(n);if(g!==null)return{handler:g.handler,store:g.store,params:g._createParamsObject(f),searchParams:this.querystringParser(a)}}let p=i.getNextNode(r,c,h,f.length);if(p===null){if(h.length===0)return null;let g=h.pop();c=g.brotherPathIndex,f.splice(g.paramsCount),p=g.brotherNode}if(i=p,i.kind===EK.STATIC){c+=i.prefix.length;continue}if(i.kind===EK.WILDCARD){let g=u.slice(c);o&&(g=_K(g)),f.push(g),c=d;continue}let m=u.indexOf("/",c);m===-1&&(m=d);let y=u.slice(c,m);if(o&&(y=_K(y)),i.isRegex){let g=i.regex.exec(y);if(g===null)continue;for(let v=1;v<g.length;v++){let E=g[v];if(E.length>l)return null;f.push(E)}}else{if(y.length>l)return null;f.push(y)}c=m}};nr.prototype._rebuild=function(e){this.reset();for(let t of e){let{method:r,path:n,opts:i,handler:s,store:a}=t;this._on(r,n,i,s,a)}};nr.prototype._defaultRoute=function(e,t,r){if(this.defaultRoute!==null)return r===void 0?this.defaultRoute(e,t):this.defaultRoute.call(r,e,t);t.statusCode=404,t.end()};nr.prototype._onBadUrl=function(e){if(this.onBadUrl===null)return null;let t=this.onBadUrl;return{handler:(r,n,i)=>t(e,r,n),params:{},store:null}};nr.prototype.prettyPrint=function(e={}){let t=e.method;e.buildPrettyMeta=this.buildPrettyMeta.bind(this);let r=null;if(t===void 0){let{version:n,host:i,...s}=this.constrainer.strategies;s[M6.name]=M6;let a=new nr({...this._opts,constraints:s}),o=this.routes.map(u=>{let l={...u.opts.constraints,[M6.name]:u.method};return{...u,method:"MERGED",opts:{constraints:l}}});a._rebuild(o),r=a.trees.MERGED}else r=this.trees[t];return r==null?"(empty tree)":M$e(r,e)};for(let e in jf){if(!jf.hasOwnProperty(e))continue;let t=jf[e],r=t.toLowerCase();nr.prototype[r]=function(n,i,s){return this.on(t,n,i,s)}}nr.prototype.all=function(e,t,r){this.on(jf,e,t,r)};AK.exports=nr;function TK(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function B6(e){return e.replace(/\/\/+/g,"/")}function q6(e){return e.length>1&&e.charCodeAt(e.length-1)===47?e.slice(0,-1):e}function SK(e){return e.charCodeAt(1)===94&&(e=e.slice(0,1)+e.slice(2)),e.charCodeAt(e.length-2)===36&&(e=e.slice(0,e.length-2)+e.slice(e.length-1)),e}function wK(e,t){let r=1;for(;t<e.length;){if(t++,e[t]==="\\"){t++;continue}if(e[t]===")"?r--:e[t]==="("&&r++,!r)return t}throw new TypeError('Invalid regexp expression in "'+e+'"')}function q$e(e){return e?e.store?Object.assign({},e.store):{}:{}}});var IK=_((not,CK)=>{"use strict";function U6(e,t,r,n){if(r===void 0)return t.header("content-length","0"),n(null,null);if(typeof r.resume=="function")return r.on("error",s=>{t.log.error({err:s},"Error on Stream found for HEAD route")}),r.resume(),n(null,null);let i=""+Buffer.byteLength(r);t.header("content-length",i),n(null,null)}function j$e(e){return e==null?U6:Array.isArray(e)?[...e,U6]:[e,U6]}CK.exports={parseHeadOnSendHandlers:j$e}});var VK=_((iot,zK)=>{"use strict";var U$e=j6(),H$e=Y1(),RK=n2(),{onRequestAbortHookRunner:z$e,lifecycleHooks:NK,preParsingHookRunner:V$e,onTimeoutHookRunner:G$e,onRequestHookRunner:W$e}=xo(),{supportedMethods:K$e}=$w(),{normalizeSchema:Y$e}=r0(),{parseHeadOnSendHandlers:X$e}=IK(),{FSTDEP007:J$e,FSTDEP008:Q$e,FSTDEP014:OK}=xa(),{compileSchemasForValidation:Z$e,compileSchemasForSerialization:eLe}=Qv(),{FST_ERR_SCH_VALIDATION_BUILD:tLe,FST_ERR_SCH_SERIALIZATION_BUILD:rLe,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:nLe,FST_ERR_DUPLICATED_ROUTE:iLe,FST_ERR_INVALID_URL:sLe,FST_ERR_HOOK_INVALID_HANDLER:PK,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:aLe,FST_ERR_ROUTE_DUPLICATED_HANDLER:oLe,FST_ERR_ROUTE_HANDLER_NOT_FN:DK,FST_ERR_ROUTE_MISSING_HANDLER:uLe,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:cLe,FST_ERR_ROUTE_METHOD_INVALID:lLe,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:fLe,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:dLe,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:H6}=nn(),{kRoutePrefix:pLe,kLogLevel:hLe,kLogSerializers:kK,kHooks:$K,kSchemaController:mLe,kOptions:LK,kReplySerializerDefault:z6,kReplyIsError:gLe,kRequestPayloadStream:yLe,kDisableRequestLogging:bLe,kSchemaErrorFormatter:xLe,kErrorHandler:MK,kHasBeenDecorated:FK,kRequestAcceptVersion:V6,kRouteByFastify:G6,kRouteContext:BK}=Or(),{buildErrorHandler:ELe}=k0(),{createChildLogger:_Le}=t0(),{getGenReqId:vLe}=kb();function TLe(e){let t=U$e(e.config),r,n,i,s,a,o,u,l,c,f,d,h,p,m=!1;return{setup(A,C){r=C.avvio,n=C.fourOhFour,i=C.logger,s=C.hasLogger,a=C.setupResponseListeners,o=C.throwIfAlreadyStarted,h=C.validateHTTPVersion,d=A.exposeHeadRoutes,u=A.disableRequestLogging,l=A.ignoreTrailingSlash,c=A.ignoreDuplicateSlashes,f=Object.prototype.hasOwnProperty.call(A,"return503OnClosing")?A.return503OnClosing:!0,p=C.keepAliveConnections},routing:t.lookup.bind(t),route:S,hasRoute:x,prepareRoute:E,getDefaultRoute:function(){return OK(),t.defaultRoute},setDefaultRoute:function(A){if(OK(),typeof A!="function")throw new nLe;t.defaultRoute=A},routeHandler:w,closeRoutes:()=>{m=!0},printRoutes:t.prettyPrint.bind(t),addConstraintStrategy:y,hasConstraintStrategy:g,isAsyncConstraint:v,findRoute:T};function y(A){return o("Cannot add constraint strategy!"),t.addConstraintStrategy(A)}function g(A){return t.hasConstraintStrategy(A)}function v(){return t.constrainer.asyncStrategiesInUse.size>0}function E({method:A,url:C,options:I,handler:M,isFastify:R}){if(typeof C!="string")throw new sLe(typeof C);if(!M&&typeof I=="function")M=I,I={};else if(M&&typeof M=="function"){if(Object.prototype.toString.call(I)!=="[object Object]")throw new aLe(A,C);if(I.handler)throw typeof I.handler=="function"?new oLe(A,C):new DK(A,C)}return I=Object.assign({},I,{method:A,url:C,path:C,handler:M||I&&I.handler}),S.call(this,{options:I,isFastify:R})}function x({options:A}){return T(A)!==null}function T(A){let C=t.find(A.method,A.url||"",A.constraints);return C?{handler:C.handler,params:C.params,searchParams:C.searchParams}:null}function S({options:A,isFastify:C}){let I={...A},{exposeHeadRoute:M}=I,P=M!=null?M:d,k=I.method==="GET"||Array.isArray(I.method)&&I.method.includes("GET"),K=I.method==="HEAD"||Array.isArray(I.method)&&I.method.includes("HEAD"),z=P&&k?{...A}:null;o("Cannot add route!");let G=I.url||I.path||"";if(Array.isArray(I.method))for(var te=0;te<I.method.length;++te)I.method[te]=qK(I.method[te]),jK(I.method[te],G,I.schema);else I.method=qK(I.method),jK(I.method,G,I.schema);if(!I.handler)throw new uLe(I.method,G);if(I.errorHandler!==void 0&&typeof I.errorHandler!="function")throw new DK(I.method,G);HK(I.bodyLimit);let j=this[pLe];if(G==="/"&&j.length>0&&I.method!=="HEAD")switch(I.prefixTrailingSlash){case"slash":ee.call(this,{path:G,isFastify:C});break;case"no-slash":ee.call(this,{path:"",isFastify:C});break;case"both":default:ee.call(this,{path:"",isFastify:C}),l!==!0&&(c!==!0||!j.endsWith("/"))&&ee.call(this,{path:G,prefixing:!0,isFastify:C})}else G[0]==="/"&&j.endsWith("/")?ee.call(this,{path:G.slice(1),isFastify:C}):ee.call(this,{path:G,isFastify:C});return this;function ee({path:re,prefixing:Z=!1,isFastify:se=!1}){let Se=j+re;if(I.url=Se,I.path=Se,I.routePath=re,I.prefix=j,I.logLevel=I.logLevel||this[hLe],(this[kK]||I.logSerializers)&&(I.logSerializers=Object.assign(Object.create(this[kK]),I.logSerializers)),I.attachValidation==null&&(I.attachValidation=!1),Z===!1)for(let $ of this[$K].onRoute)$.call(this,I);for(let $ of NK)if(I&&$ in I){if(Array.isArray(I[$]))for(let B of I[$]){if(typeof B!="function")throw new PK($,Object.prototype.toString.call(B));if($==="onSend"||$==="preSerialization"||$==="onError"||$==="preParsing"){if(B.constructor.name==="AsyncFunction"&&B.length===4)throw new H6}else if($==="onRequestAbort"){if(B.constructor.name==="AsyncFunction"&&B.length!==1)throw new H6}else if(B.constructor.name==="AsyncFunction"&&B.length===3)throw new H6}else if(I[$]!==void 0&&typeof I[$]!="function")throw new PK($,Object.prototype.toString.call(I[$]))}let ve=I.constraints||{},_e={...I.config,url:Se,method:I.method},be=new H$e({schema:I.schema,handler:I.handler.bind(this),config:_e,errorHandler:I.errorHandler,childLoggerFactory:I.childLoggerFactory,bodyLimit:I.bodyLimit,logLevel:I.logLevel,logSerializers:I.logSerializers,attachValidation:I.attachValidation,schemaErrorFormatter:I.schemaErrorFormatter,replySerializer:this[z6],validatorCompiler:I.validatorCompiler,serializerCompiler:I.serializerCompiler,exposeHeadRoute:P,prefixTrailingSlash:I.prefixTrailingSlash||"both",server:this,isFastify:se});I.version&&(Q$e(),ve.version=I.version);let he=t.findRoute("HEAD",I.url,ve),O=he!==null;K&&O&&!be[G6]&&he.store[G6]&&t.off("HEAD",I.url,ve);try{t.on(I.method,I.url,{constraints:ve},w,be)}catch($){if(!be[G6])throw $.message.includes(`Method '${I.method}' already declared for route '${I.url}'`)?new iLe(I.method,I.url):$}if(this.after(($,B)=>{be.errorHandler=I.errorHandler?ELe(this[MK],I.errorHandler):this[MK],be._parserOptions.limit=I.bodyLimit||null,be.logLevel=I.logLevel,be.logSerializers=I.logSerializers,be.attachValidation=I.attachValidation,be[z6]=this[z6],be.schemaErrorFormatter=I.schemaErrorFormatter||this[xLe]||be.schemaErrorFormatter,r.once("preReady",()=>{for(let N of NK){let L=this[$K][N].concat(I[N]||[]).map(q=>q.bind(this));be[N]=L.length?L:null}for(;!be.Request[FK]&&be.Request.parent;)be.Request=be.Request.parent;for(;!be.Reply[FK]&&be.Reply.parent;)be.Reply=be.Reply.parent;if(n.setContext(this,be),I.schema){be.schema=Y$e(be.schema,this.initialConfig);let N=this[mLe];!I.validatorCompiler&&(I.schema.body||I.schema.headers||I.schema.querystring||I.schema.params)&&N.setupValidator(this[LK]);try{let L=typeof I?.validatorCompiler=="function"||N.isCustomValidatorCompiler;Z$e(be,I.validatorCompiler||N.validatorCompiler,L)}catch(L){throw new tLe(I.method,Se,L.message)}I.schema.response&&!I.serializerCompiler&&N.setupSerializer(this[LK]);try{eLe(be,I.serializerCompiler||N.serializerCompiler)}catch(L){throw new rLe(I.method,Se,L.message)}}}),B($)}),P&&k&&!K&&!O){let $=X$e(z.onSend);E.call(this,{method:"HEAD",url:re,options:{...z,onSend:$},isFastify:!0})}else O&&M&&J$e()}}function w(A,C,I,M,R){let P=vLe(M.server,A),k={level:M.logLevel};M.logSerializers&&(k.serializers=M.logSerializers);let K=_Le(M,i,A,P,k);if(K[bLe]=u,!h(A.httpVersion)){K.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let j='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',ee={"Content-Type":"application/json","Content-Length":j.length};C.writeHead(505,ee),C.end(j);return}if(m===!0&&(A.httpVersionMajor!==2&&C.setHeader("Connection","close"),f)){let j={"Content-Type":"application/json","Content-Length":"80"};C.writeHead(503,j),C.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),K.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(A.headers.connection||"")==="keep-alive"&&p.has(A.socket)===!1&&(p.add(A.socket),A.socket.on("close",ALe.bind({keepAliveConnections:p,socket:A.socket}))),A.headers[V6]!==void 0&&(A.headers["accept-version"]=A.headers[V6],A.headers[V6]=void 0);let G=new M.Request(P,I,A,R,K,M),te=new M.Reply(C,G,K);u===!1&&K.info({req:G},"incoming request"),(s===!0||M.onResponse!==null)&&a(te),M.onRequest!==null?W$e(M.onRequest,G,te,UK):UK(null,G,te),M.onRequestAbort!==null&&A.on("close",()=>{A.aborted&&z$e(M.onRequestAbort,G,SLe.bind(null,te))}),M.onTimeout!==null&&(G.raw.socket._meta||G.raw.socket.on("timeout",wLe),G.raw.socket._meta={context:M,request:G,reply:te})}}function SLe(e,t){t&&e.log.error({err:t},"onRequestAborted hook failed")}function wLe(){let{context:e,request:t,reply:r}=this._meta;G$e(e.onTimeout,t,r,CLe)}function qK(e){if(typeof e!="string")throw new lLe;if(e=e.toUpperCase(),K$e.indexOf(e)===-1)throw new cLe(e);return e}function jK(e,t,r){if((e==="GET"||e==="HEAD")&&r&&r.body)throw new fLe(e,t)}function HK(e){if(e!==void 0&&(!Number.isInteger(e)||e<=0))throw new dLe(e)}function UK(e,t,r){if(r.sent!==!0){if(e!=null){r[gLe]=!0,r.send(e);return}t[yLe]=t.raw,t[BK].preParsing!==null?V$e(t[BK].preParsing,t,r,RK):RK(null,t,r)}}function ALe(){this.keepAliveConnections.delete(this.socket)}function CLe(){}zK.exports={buildRouting:TLe,validateBodyLimitOption:HK}});var QK=_((sot,JK)=>{"use strict";var ILe=j6(),GK=O1(),WK=K1(),RLe=Y1(),{kRoutePrefix:NLe,kCanSetNotFoundHandler:dh,kFourOhFourLevelInstance:ph,kFourOhFourContext:Zs,kHooks:OLe,kErrorHandler:KK}=Or(),{lifecycleHooks:PLe}=xo(),{buildErrorHandler:DLe}=k0(),{FST_ERR_NOT_FOUND:kLe}=nn(),{createChildLogger:YK}=t0(),{getGenReqId:XK}=kb();function $Le(e){let{logger:t}=e,r=ILe({onBadUrl:a(),defaultRoute:c}),n=null;return{router:r,setNotFoundHandler:u,setContext:o,arrange404:i};function i(f){f[ph]=f,f[dh]=!0,r.onBadUrl=r.onBadUrl.bind(f),r.defaultRoute=r.defaultRoute.bind(f)}function s(f,d){let{url:h,method:p}=f.raw,m=`Route ${p}:${h} not found`;f.log.info(m),d.code(404).send({message:m,error:"Not Found",statusCode:404})}function a(){return function(d,h,p){let m=this[ph][Zs],y=XK(m.server,h),g=YK(m,t,h,y),v=new WK(y,null,h,null,g,m),E=new GK(p,v,g);n(v,E)}}function o(f,d){let h=Object.assign({},f[Zs]);h.onSend=d.onSend,d[Zs]=h}function u(f,d,h,p){this[dh]===void 0&&(this[dh]=!0),this[Zs]===void 0&&(this[Zs]=null);let m=this,y=this[NLe]||"/";if(this[dh]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${y}'`);typeof f=="object"&&(f.preHandler&&(Array.isArray(f.preHandler)?f.preHandler=f.preHandler.map(g=>g.bind(m)):f.preHandler=f.preHandler.bind(m)),f.preValidation&&(Array.isArray(f.preValidation)?f.preValidation=f.preValidation.map(g=>g.bind(m)):f.preValidation=f.preValidation.bind(m))),typeof f=="function"&&(d=f,f=void 0),f=f||{},d?(this[ph][dh]=!1,d=d.bind(this),n=d):(d=s,n=s),this.after((g,v)=>{l.call(this,y,f,d,h,p),v(g)})}function l(f,d,h,p,m){let y=new RLe({schema:d.schema,handler:h,config:d.config||{},server:this});if(p.once("preReady",()=>{let g=this[Zs];for(let v of PLe){let E=this[OLe][v].concat(d[v]||[]).map(x=>x.bind(this));g[v]=E.length?E:null}g.errorHandler=d.errorHandler?DLe(this[KK],d.errorHandler):this[KK]}),this[Zs]!==null&&f==="/"){Object.assign(this[Zs],y);return}this[ph][Zs]=y,r.all(f+(f.endsWith("/")?"*":"/*"),m,y),r.all(f,m,y)}function c(f,d){let h=this[ph][Zs],p=XK(h.server,f),m=YK(h,t,f,p);m.info({req:f},"incoming request");let y=new WK(p,null,f,null,m,h),g=new GK(d,y,m);y.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),y.log.warn(r.prettyPrint()),g.code(404).send(new kLe)}}JK.exports=$Le});var eY=_((aot,Zb)=>{"use strict";Zb.exports=vt;Zb.exports.default=vt;var ZK={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},LLe=Object.prototype.hasOwnProperty,MLe=new RegExp("idle","u");function vt(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:i=e}={}){let s=null,a=0;if(a===0)if(e&&typeof e=="object"&&!Array.isArray(e)){e.connectionTimeout===void 0&&(e.connectionTimeout=0),e.keepAliveTimeout===void 0&&(e.keepAliveTimeout=72e3),e.maxRequestsPerSocket===void 0&&(e.maxRequestsPerSocket=0),e.requestTimeout===void 0&&(e.requestTimeout=0),e.bodyLimit===void 0&&(e.bodyLimit=1048576),e.caseSensitive===void 0&&(e.caseSensitive=!0),e.allowUnsafeRegex===void 0&&(e.allowUnsafeRegex=!1),e.ignoreTrailingSlash===void 0&&(e.ignoreTrailingSlash=!1),e.ignoreDuplicateSlashes===void 0&&(e.ignoreDuplicateSlashes=!1),e.disableRequestLogging===void 0&&(e.disableRequestLogging=!1),e.jsonShorthand===void 0&&(e.jsonShorthand=!0),e.maxParamLength===void 0&&(e.maxParamLength=100),e.onProtoPoisoning===void 0&&(e.onProtoPoisoning="error"),e.onConstructorPoisoning===void 0&&(e.onConstructorPoisoning="error"),e.pluginTimeout===void 0&&(e.pluginTimeout=1e4),e.requestIdHeader===void 0&&(e.requestIdHeader="request-id"),e.requestIdLogLabel===void 0&&(e.requestIdLogLabel="reqId"),e.http2SessionTimeout===void 0&&(e.http2SessionTimeout=72e3),e.exposeHeadRoutes===void 0&&(e.exposeHeadRoutes=!0),e.useSemicolonDelimiter===void 0&&(e.useSemicolonDelimiter=!0);let p=a;for(let m in e)LLe.call(ZK.properties,m)||delete e[m];if(p===a){let m=e.connectionTimeout,y=a;if(!(typeof m=="number"&&!(m%1)&&!isNaN(m)&&isFinite(m))){let g=typeof m,v;if(v===void 0)if(g==="boolean"||m===null||g==="string"&&m&&m==+m&&!(m%1))v=+m;else return vt.errors=[{instancePath:t+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;v!==void 0&&(m=v,e!==void 0&&(e.connectionTimeout=v))}var o=y===a;if(o){let g=e.keepAliveTimeout,v=a;if(!(typeof g=="number"&&!(g%1)&&!isNaN(g)&&isFinite(g))){let x=typeof g,T;if(T===void 0)if(x==="boolean"||g===null||x==="string"&&g&&g==+g&&!(g%1))T=+g;else return vt.errors=[{instancePath:t+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;T!==void 0&&(g=T,e!==void 0&&(e.keepAliveTimeout=T))}var o=v===a;if(o){if(e.forceCloseConnections!==void 0){let x=e.forceCloseConnections,T=a,S=a,w=!1,A=null,C=a;if(typeof x!="string"){let R=typeof x,P;if(P===void 0)if(R=="number"||R=="boolean")P=""+x;else if(x===null)P="";else{let k={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[k]:s.push(k),a++}P!==void 0&&(x=P,e!==void 0&&(e.forceCloseConnections=P))}if(a===C&&typeof x=="string"&&!MLe.test(x)){let R={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};s===null?s=[R]:s.push(R),a++}var u=C===a;u&&(w=!0,A=0);let I=a;if(typeof x!="boolean"){let R;if(R===void 0)if(x==="false"||x===0||x===null)R=!1;else if(x==="true"||x===1)R=!0;else{let P={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[P]:s.push(P),a++}R!==void 0&&(x=R,e!==void 0&&(e.forceCloseConnections=R))}var u=I===a;if(u&&w?(w=!1,A=[A,1]):u&&(w=!0,A=1),w)a=S,s!==null&&(S?s.length=S:s=null);else{let R={instancePath:t+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[R]:s.push(R),a++,vt.errors=s,!1}var o=T===a}else var o=!0;if(o){let x=e.maxRequestsPerSocket,T=a;if(!(typeof x=="number"&&!(x%1)&&!isNaN(x)&&isFinite(x))&&x!==null){let w=typeof x,A;if(A===void 0)if(w==="boolean"||x===null||w==="string"&&x&&x==+x&&!(x%1))A=+x;else if(x===""||x===0||x===!1)A=null;else return vt.errors=[{instancePath:t+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;A!==void 0&&(x=A,e!==void 0&&(e.maxRequestsPerSocket=A))}var o=T===a;if(o){let w=e.requestTimeout,A=a;if(!(typeof w=="number"&&!(w%1)&&!isNaN(w)&&isFinite(w))){let I=typeof w,M;if(M===void 0)if(I==="boolean"||w===null||I==="string"&&w&&w==+w&&!(w%1))M=+w;else return vt.errors=[{instancePath:t+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;M!==void 0&&(w=M,e!==void 0&&(e.requestTimeout=M))}var o=A===a;if(o){let I=e.bodyLimit,M=a;if(!(typeof I=="number"&&!(I%1)&&!isNaN(I)&&isFinite(I))){let P=typeof I,k;if(k===void 0)if(P==="boolean"||I===null||P==="string"&&I&&I==+I&&!(I%1))k=+I;else return vt.errors=[{instancePath:t+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;k!==void 0&&(I=k,e!==void 0&&(e.bodyLimit=k))}var o=M===a;if(o){let P=e.caseSensitive,k=a;if(typeof P!="boolean"){let z;if(z===void 0)if(P==="false"||P===0||P===null)z=!1;else if(P==="true"||P===1)z=!0;else return vt.errors=[{instancePath:t+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;z!==void 0&&(P=z,e!==void 0&&(e.caseSensitive=z))}var o=k===a;if(o){let z=e.allowUnsafeRegex,G=a;if(typeof z!="boolean"){let j;if(j===void 0)if(z==="false"||z===0||z===null)j=!1;else if(z==="true"||z===1)j=!0;else return vt.errors=[{instancePath:t+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;j!==void 0&&(z=j,e!==void 0&&(e.allowUnsafeRegex=j))}var o=G===a;if(o){if(e.http2!==void 0){let j=e.http2,ee=a;if(typeof j!="boolean"){let Z;if(Z===void 0)if(j==="false"||j===0||j===null)Z=!1;else if(j==="true"||j===1)Z=!0;else return vt.errors=[{instancePath:t+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Z!==void 0&&(j=Z,e!==void 0&&(e.http2=Z))}var o=ee===a}else var o=!0;if(o){if(e.https!==void 0){let j=e.https,ee=a,re=a,Z=!0,se=a,Se=a,ve=a,_e=a,be=!1,he=null,O=a;if(typeof j!="boolean"){let N;if(N===void 0)if(j==="false"||j===0||j===null)N=!1;else if(j==="true"||j===1)N=!0;else{let L={};s===null?s=[L]:s.push(L),a++}N!==void 0&&(j=N,e!==void 0&&(e.https=N))}var l=O===a;l&&(be=!0,he=0);let $=a;if(j!==null){let N;if(N===void 0)if(j===""||j===0||j===!1)N=null;else{let L={};s===null?s=[L]:s.push(L),a++}N!==void 0&&(j=N,e!==void 0&&(e.https=N))}var l=$===a;if(l&&be)be=!1,he=[he,1];else{l&&(be=!0,he=1);let N=a;if(a===N)if(j&&typeof j=="object"&&!Array.isArray(j)){let q;if(j.allowHTTP1===void 0&&(q="allowHTTP1")){let W={};s===null?s=[W]:s.push(W),a++}else{let W=a;for(let H in j)H!=="allowHTTP1"&&delete j[H];if(W===a&&j.allowHTTP1!==void 0){let H=j.allowHTTP1;if(typeof H!="boolean"){let V;if(V===void 0)if(H==="false"||H===0||H===null)V=!1;else if(H==="true"||H===1)V=!0;else{let Y={};s===null?s=[Y]:s.push(Y),a++}V!==void 0&&(H=V,j!==void 0&&(j.allowHTTP1=V))}}}}else{let q={};s===null?s=[q]:s.push(q),a++}var l=N===a;l&&be?(be=!1,he=[he,2]):l&&(be=!0,he=2)}if(be)a=_e,s!==null&&(_e?s.length=_e:s=null);else{let N={};s===null?s=[N]:s.push(N),a++}var c=ve===a;if(c){let N={};s===null?s=[N]:s.push(N),a++}else a=Se,s!==null&&(Se?s.length=Se:s=null);var f=se===a;if(a=re,s!==null&&(re?s.length=re:s=null),f){let N=a;e.https=!0;var f=N===a;Z=f}if(!Z){let N={instancePath:t+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return s===null?s=[N]:s.push(N),a++,vt.errors=s,!1}var o=ee===a}else var o=!0;if(o){let j=e.ignoreTrailingSlash,ee=a;if(typeof j!="boolean"){let Z;if(Z===void 0)if(j==="false"||j===0||j===null)Z=!1;else if(j==="true"||j===1)Z=!0;else return vt.errors=[{instancePath:t+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Z!==void 0&&(j=Z,e!==void 0&&(e.ignoreTrailingSlash=Z))}var o=ee===a;if(o){let Z=e.ignoreDuplicateSlashes,se=a;if(typeof Z!="boolean"){let ve;if(ve===void 0)if(Z==="false"||Z===0||Z===null)ve=!1;else if(Z==="true"||Z===1)ve=!0;else return vt.errors=[{instancePath:t+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ve!==void 0&&(Z=ve,e!==void 0&&(e.ignoreDuplicateSlashes=ve))}var o=se===a;if(o){let ve=e.disableRequestLogging,_e=a;if(typeof ve!="boolean"){let he;if(he===void 0)if(ve==="false"||ve===0||ve===null)he=!1;else if(ve==="true"||ve===1)he=!0;else return vt.errors=[{instancePath:t+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;he!==void 0&&(ve=he,e!==void 0&&(e.disableRequestLogging=he))}var o=_e===a;if(o){let he=e.jsonShorthand,O=a;if(typeof he!="boolean"){let B;if(B===void 0)if(he==="false"||he===0||he===null)B=!1;else if(he==="true"||he===1)B=!0;else return vt.errors=[{instancePath:t+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;B!==void 0&&(he=B,e!==void 0&&(e.jsonShorthand=B))}var o=O===a;if(o){let B=e.maxParamLength,N=a;if(!(typeof B=="number"&&!(B%1)&&!isNaN(B)&&isFinite(B))){let q=typeof B,W;if(W===void 0)if(q==="boolean"||B===null||q==="string"&&B&&B==+B&&!(B%1))W=+B;else return vt.errors=[{instancePath:t+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;W!==void 0&&(B=W,e!==void 0&&(e.maxParamLength=W))}var o=N===a;if(o){let q=e.onProtoPoisoning,W=a;if(typeof q!="string"){let V=typeof q,Y;if(Y===void 0)if(V=="number"||V=="boolean")Y=""+q;else if(q===null)Y="";else return vt.errors=[{instancePath:t+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Y!==void 0&&(q=Y,e!==void 0&&(e.onProtoPoisoning=Y))}var o=W===a;if(o){let V=e.onConstructorPoisoning,Y=a;if(typeof V!="string"){let ne=typeof V,me;if(me===void 0)if(ne=="number"||ne=="boolean")me=""+V;else if(V===null)me="";else return vt.errors=[{instancePath:t+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;me!==void 0&&(V=me,e!==void 0&&(e.onConstructorPoisoning=me))}var o=Y===a;if(o){let ne=e.pluginTimeout,me=a;if(!(typeof ne=="number"&&!(ne%1)&&!isNaN(ne)&&isFinite(ne))){let $e=typeof ne,Ze;if(Ze===void 0)if($e==="boolean"||ne===null||$e==="string"&&ne&&ne==+ne&&!(ne%1))Ze=+ne;else return vt.errors=[{instancePath:t+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Ze!==void 0&&(ne=Ze,e!==void 0&&(e.pluginTimeout=Ze))}var o=me===a;if(o){let $e=e.requestIdHeader,Ze=a,It=a,Fe=!1,mt=a;if($e!==!1){let Wt={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:ZK.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};s===null?s=[Wt]:s.push(Wt),a++}var d=mt===a;if(Fe=Fe||d,!Fe){let Wt=a;if(typeof $e!="string"){let go=typeof $e,rt;if(rt===void 0)if(go=="number"||go=="boolean")rt=""+$e;else if($e===null)rt="";else{let mr={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[mr]:s.push(mr),a++}rt!==void 0&&($e=rt,e!==void 0&&(e.requestIdHeader=rt))}var d=Wt===a;Fe=Fe||d}if(Fe)a=It,s!==null&&(It?s.length=It:s=null);else{let Wt={instancePath:t+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Wt]:s.push(Wt),a++,vt.errors=s,!1}var o=Ze===a;if(o){let Wt=e.requestIdLogLabel,Ji=a;if(typeof Wt!="string"){let rt=typeof Wt,mr;if(mr===void 0)if(rt=="number"||rt=="boolean")mr=""+Wt;else if(Wt===null)mr="";else return vt.errors=[{instancePath:t+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;mr!==void 0&&(Wt=mr,e!==void 0&&(e.requestIdLogLabel=mr))}var o=Ji===a;if(o){let rt=e.http2SessionTimeout,mr=a;if(!(typeof rt=="number"&&!(rt%1)&&!isNaN(rt)&&isFinite(rt))){let Rt=typeof rt,gt;if(gt===void 0)if(Rt==="boolean"||rt===null||Rt==="string"&&rt&&rt==+rt&&!(rt%1))gt=+rt;else return vt.errors=[{instancePath:t+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;gt!==void 0&&(rt=gt,e!==void 0&&(e.http2SessionTimeout=gt))}var o=mr===a;if(o){let Rt=e.exposeHeadRoutes,gt=a;if(typeof Rt!="boolean"){let Vr;if(Vr===void 0)if(Rt==="false"||Rt===0||Rt===null)Vr=!1;else if(Rt==="true"||Rt===1)Vr=!0;else return vt.errors=[{instancePath:t+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Vr!==void 0&&(Rt=Vr,e!==void 0&&(e.exposeHeadRoutes=Vr))}var o=gt===a;if(o){let Vr=e.useSemicolonDelimiter,Dv=a;if(typeof Vr!="boolean"){let gr;if(gr===void 0)if(Vr==="false"||Vr===0||Vr===null)gr=!1;else if(Vr==="true"||Vr===1)gr=!0;else return vt.errors=[{instancePath:t+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;gr!==void 0&&(Vr=gr,e!==void 0&&(e.useSemicolonDelimiter=gr))}var o=Dv===a;if(o){if(e.versioning!==void 0){let gr=e.versioning,Hu=a;if(a===Hu)if(gr&&typeof gr=="object"&&!Array.isArray(gr)){let Ei;if(gr.storage===void 0&&(Ei="storage")||gr.deriveVersion===void 0&&(Ei="deriveVersion"))return vt.errors=[{instancePath:t+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:Ei},message:"must have required property '"+Ei+"'"}],!1}else return vt.errors=[{instancePath:t+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=Hu===a}else var o=!0;if(o)if(e.constraints!==void 0){let gr=e.constraints,Hu=a;if(a===Hu)if(gr&&typeof gr=="object"&&!Array.isArray(gr))for(let Ei in gr){let hi=gr[Ei],ig=a;if(a===ig)if(hi&&typeof hi=="object"&&!Array.isArray(hi)){let ba;if(hi.name===void 0&&(ba="name")||hi.storage===void 0&&(ba="storage")||hi.validate===void 0&&(ba="validate")||hi.deriveConstraint===void 0&&(ba="deriveConstraint"))return vt.errors=[{instancePath:t+"/constraints/"+Ei.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:ba},message:"must have required property '"+ba+"'"}],!1;if(hi.name!==void 0){let zu=hi.name;if(typeof zu!="string"){let Gd=typeof zu,yr;if(yr===void 0)if(Gd=="number"||Gd=="boolean")yr=""+zu;else if(zu===null)yr="";else return vt.errors=[{instancePath:t+"/constraints/"+Ei.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;yr!==void 0&&(zu=yr,hi!==void 0&&(hi.name=yr))}}}else return vt.errors=[{instancePath:t+"/constraints/"+Ei.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=ig===a;if(!h)break}else return vt.errors=[{instancePath:t+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=Hu===a}else var o=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,a===0}Zb.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var tY=_((oot,tx)=>{"use strict";var ex=eY(),FLe=Fg()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:BLe}=nn();function qLe(e){let t=FLe(e);if(!ex(t)){let r=new BLe(JSON.stringify(ex.errors.map(n=>n.message)));throw r.errors=ex.errors,r}return W6(t)}function W6(e){let t=Object.getOwnPropertyNames(e);for(let r of t){let n=e[r];ArrayBuffer.isView(n)&&!(n instanceof DataView)||(e[r]=n&&typeof n=="object"?W6(n):n)}return Object.freeze(e)}tx.exports=qLe;tx.exports.defaultInitOptions=ex.defaultInitOptions;tx.exports.utils={deepFreezeObject:W6}});var lY=_((uot,cY)=>{"use strict";var{kAvvioBoot:jLe,kChildren:rY,kRoutePrefix:nY,kLogLevel:iY,kLogSerializers:K6,kHooks:Y6,kSchemaController:Uf,kContentTypeParser:sY,kReply:aY,kRequest:oY,kFourOhFour:ULe,kPluginNameChain:uY}=Or(),HLe=O1(),zLe=K1(),VLe=x6(),GLe=Yw(),{buildHooks:WLe}=xo(),hh=w6();cY.exports=function(t,r,n){let i=hh.registerPlugin.call(t,r),s=hh.getPluginName(r)||hh.getFuncPreview(r);if(i)return t[uY].push(s),t;let a=Object.create(t);t[rY].push(a),a.ready=t[jLe].bind(a),a[rY]=[],a[aY]=HLe.buildReply(a[aY]),a[oY]=zLe.buildRequest(a[oY]),a[sY]=GLe.helpers.buildContentTypeParser(a[sY]),a[Y6]=WLe(a[Y6]),a[nY]=KLe(a[nY],n.prefix),a[iY]=n.logLevel||a[iY],a[Uf]=VLe.buildSchemaController(t[Uf]),a.getSchema=a[Uf].getSchema.bind(a[Uf]),a.getSchemas=a[Uf].getSchemas.bind(a[Uf]),a[hh.kRegisteredPlugins]=Object.create(a[hh.kRegisteredPlugins]),a[uY]=[s],(a[K6]||n.logSerializers)&&(a[K6]=Object.assign(Object.create(a[K6]),n.logSerializers)),n.prefix&&a[ULe].arrange404(a);for(let o of a[Y6].onRegister)o.call(this,a,n);return a};function KLe(e,t){return t?(e.endsWith("/")&&t[0]==="/"?t=t.slice(1):t[0]!=="/"&&(t="/"+t),e+t):e}});var dY=_((cot,fY)=>{"use strict";fY.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var mY=_(X6=>{"use strict";X6.parse=t9e;X6.serialize=r9e;var YLe=Object.prototype.toString,XLe=Object.prototype.hasOwnProperty,JLe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,QLe=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,ZLe=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,e9e=/^[\u0020-\u003A\u003D-\u007E]*$/;function t9e(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var r={},n=e.length;if(n<2)return r;var i=t&&t.decode||n9e,s=0,a=0,o=0;do{if(a=e.indexOf("=",s),a===-1)break;if(o=e.indexOf(";",s),o===-1)o=n;else if(a>o){s=e.lastIndexOf(";",a-1)+1;continue}var u=pY(e,s,a),l=hY(e,a,u),c=e.slice(u,l);if(!XLe.call(r,c)){var f=pY(e,a+1,o),d=hY(e,o,f);e.charCodeAt(f)===34&&e.charCodeAt(d-1)===34&&(f++,d--);var h=e.slice(f,d);r[c]=s9e(h,i)}s=o+1}while(s<n);return r}function pY(e,t,r){do{var n=e.charCodeAt(t);if(n!==32&&n!==9)return t}while(++t<r);return r}function hY(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(n!==32&&n!==9)return t+1}return r}function r9e(e,t,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!JLe.test(e))throw new TypeError("argument name is invalid");var i=n(t);if(!QLe.test(i))throw new TypeError("argument val is invalid");var s=e+"="+i;if(!r)return s;if(r.maxAge!=null){var a=Math.floor(r.maxAge);if(!isFinite(a))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+a}if(r.domain){if(!ZLe.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!e9e.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var o=r.expires;if(!i9e(o)||isNaN(o.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+o.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var u=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(u){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function n9e(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function i9e(e){return YLe.call(e)==="[object Date]"}function s9e(e,t){try{return t(e)}catch{return e}}});var bY=_((fot,yY)=>{"use strict";var{URL:gY}=require("node:url"),J6="http://localhost";yY.exports=function(t,r){(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]")&&t.startsWith("//")&&(t=J6+t);let n=typeof t=="object"?Object.assign(new gY(J6),t):new gY(t,J6);if(typeof r=="string"){r=new URLSearchParams(r);for(let i of r.keys()){n.searchParams.delete(i);for(let s of r.getAll(i))n.searchParams.append(i,s)}}else{let i=Object.assign({},t.query,r);for(let s in i){let a=i[s];if(Array.isArray(a)){n.searchParams.delete(s);for(let o of a)n.searchParams.append(s,o)}else n.searchParams.set(s,a)}}return n}});var xY=_((dot,Q6)=>{"use strict";var{randomUUID:a9e}=require("node:crypto"),{Readable:o9e}=require("node:stream"),Hf;function u9e(e){return e&&typeof e=="object"&&typeof e.append=="function"&&typeof e.delete=="function"&&typeof e.get=="function"&&typeof e.getAll=="function"&&typeof e.has=="function"&&typeof e.set=="function"&&e[Symbol.toStringTag]==="FormData"}function c9e(e){Hf=Hf??new TextEncoder;let t=`----formdata-${a9e()}`,r=`--${t}\r
Content-Disposition: form-data`;let n=u=>u.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),i=u=>u.replace(/\r?\n|\r/g,`\r
`),s=new Uint8Array([13,10]);async function*a(){for(let[u,l]of e)if(typeof l=="string")yield Hf.encode(`${r}; name="${n(i(u))}"\r
\r
`),yield Hf.encode(`${i(l)}\r
`);else{let c=`${r}; name="${n(i(u))}"`;l.name&&(c+=`; filename="${n(l.name)}"`),c+=`\r
Content-Type: ${l.type||"application/octet-stream"}\r
\r
`,yield Hf.encode(c),l.stream?yield*l.stream():yield l,yield s}yield Hf.encode(`--${t}--`)}return{stream:o9e.from(a()),contentType:`multipart/form-data; boundary=${t}`}}Q6.exports.isFormDataLike=u9e;Q6.exports.formDataToStream=c9e});var vY=_((pot,rx)=>{"use strict";var{Readable:EY,addAbortSignal:l9e}=require("node:stream"),eI=require("node:util"),f9e=mY(),d9e=require("node:assert"),{createDeprecation:p9e}=Gv(),h9e=bY(),{isFormDataLike:m9e,formDataToStream:g9e}=xY(),{EventEmitter:y9e}=require("node:events"),b9e=p9e({name:"FastifyDeprecationLightMyRequest",code:"FST_LIGHTMYREQUEST_DEP01",message:'You are accessing "request.connection", use "request.socket" instead.'});function x9e(e){return e.port?e.host:e.hostname+(e.protocol==="https:"?":443":":80")}var Z6=class extends y9e{constructor(t){super(),this.remoteAddress=t}};function _Y(e){return new t(this);function t(r){ea.call(r,{...e,Request:void 0}),Object.assign(this,r);for(let n of Object.keys(ea.prototype))this.constructor.prototype[n]=ea.prototype[n];return eI.inherits(this.constructor,e.Request),this}}function ea(e){EY.call(this,{autoDestroy:!1});let t=h9e(e.url||e.path,e.query);this.url=t.pathname+t.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=e.method?e.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let r=e.headers||{};for(let a in r){let o=a.toLowerCase();if((o==="user-agent"||o==="content-type")&&r[a]===void 0){this.headers[o]=void 0;continue}let u=r[a];d9e(u!==void 0,'invalid value "undefined" for header '+a),this.headers[o]=""+u}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||e.authority||x9e(t),e.cookies){let{cookies:a}=e,o=Object.keys(a).map(u=>f9e.serialize(u,a[u]));this.headers.cookie&&o.unshift(this.headers.cookie),this.headers.cookie=o.join("; ")}this.socket=new Z6(e.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return b9e(),this.socket},configurable:!0});let n=e.payload||e.body||null,i=n&&typeof n.resume=="function";if(m9e(n)){let a=g9e(n);n=a.stream,i=!0,this.headers["content-type"]=a.contentType}n&&typeof n!="string"&&!i&&!Buffer.isBuffer(n)&&(n=JSON.stringify(n),"content-type"in this.headers||(this.headers["content-type"]="application/json")),n&&!i&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(n)?n.length:Buffer.byteLength(n)).toString());for(let a of Object.keys(this.headers))this.rawHeaders.push(a,this.headers[a]);this._lightMyRequest={payload:n,isDone:!1,simulate:e.simulate||{}};let s=e.signal;return s&&l9e(s,this),this}eI.inherits(ea,EY);eI.inherits(_Y,ea);ea.prototype.prepare=function(e){let t=this._lightMyRequest.payload;if(!t||typeof t.resume!="function")return e();let r=[];t.on("data",n=>r.push(Buffer.from(n))),t.on("end",()=>{let n=Buffer.concat(r);return this.headers["content-length"]=this.headers["content-length"]||""+n.length,this._lightMyRequest.payload=n,e()}),t.resume()};ea.prototype._read=function(e){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};ea.prototype.destroy=function(e){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,e&&(this._error=!0,process.nextTick(()=>this.emit("error",e))),process.nextTick(()=>this.emit("close")))};rx.exports=ea;rx.exports.Request=ea;rx.exports.CustomRequest=_Y});var SY=_((hot,mh)=>{"use strict";var nx={decodeValues:!0,map:!1,silent:!1};function tI(e){return typeof e!="string"||e in{}}function rI(){return Object.create(null)}function nI(e){return typeof e=="string"&&!!e.trim()}function iI(e,t){var r=e.split(";").filter(nI),n=r.shift(),i=E9e(n),s=i.name,a=i.value;if(t=t?Object.assign({},nx,t):nx,tI(s))return null;try{a=t.decodeValues?decodeURIComponent(a):a}catch(u){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",u)}var o=rI();return o.name=s,o.value=a,r.forEach(function(u){var l=u.split("="),c=l.shift().trimLeft().toLowerCase();if(!tI(c)){var f=l.join("=");if(c==="expires")o.expires=new Date(f);else if(c==="max-age"){var d=parseInt(f,10);Number.isNaN(d)||(o.maxAge=d)}else c==="secure"?o.secure=!0:c==="httponly"?o.httpOnly=!0:c==="samesite"?o.sameSite=f:c==="partitioned"?o.partitioned=!0:c&&(o[c]=f)}}),o}function E9e(e){var t="",r="",n=e.split("=");return n.length>1?(t=n.shift(),r=n.join("=")):r=e,{name:t,value:r}}function TY(e,t){if(t=t?Object.assign({},nx,t):nx,!e)return t.map?rI():[];if(e.headers)if(typeof e.headers.getSetCookie=="function")e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var r=e.headers[Object.keys(e.headers).find(function(i){return i.toLowerCase()==="set-cookie"})];!r&&e.headers.cookie&&!t.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=r}if(Array.isArray(e)||(e=[e]),t.map){var n=rI();return e.filter(nI).reduce(function(i,s){var a=iI(s,t);return a&&!tI(a.name)&&(i[a.name]=a),i},n)}else return e.filter(nI).map(function(i){return iI(i,t)}).filter(Boolean)}function _9e(e){if(Array.isArray(e))return e;if(typeof e!="string")return[];var t=[],r=0,n,i,s,a,o;function u(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function l(){return i=e.charAt(r),i!=="="&&i!==";"&&i!==","}for(;r<e.length;){for(n=r,o=!1;u();)if(i=e.charAt(r),i===","){for(s=r,r+=1,u(),a=r;r<e.length&&l();)r+=1;r<e.length&&e.charAt(r)==="="?(o=!0,r=a,t.push(e.substring(n,s)),n=r):r=s+1}else r+=1;(!o||r>=e.length)&&t.push(e.substring(n,e.length))}return t}mh.exports=TY;mh.exports.parse=TY;mh.exports.parseString=iI;mh.exports.splitCookiesString=_9e});var CY=_((mot,AY)=>{"use strict";var gh=require("node:http"),{Writable:v9e,Readable:T9e}=require("node:stream"),S9e=require("node:util"),w9e=SY();function tu(e,t,r){gh.ServerResponse.call(this,e),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(C9e()),this._promiseCallback=typeof r=="function";let n=!1,i=a=>{if(n=!0,this._promiseCallback)return process.nextTick(()=>t(a));process.nextTick(()=>t(null,a))},s=a=>{if(!n){if(n=!0,this._promiseCallback)return process.nextTick(()=>r(a));process.nextTick(()=>t(a,null))}};this.once("finish",()=>{let a=A9e(this);a.raw.req=e,i(a)}),this.connection.once("error",s),this.once("error",s),this.once("close",s)}S9e.inherits(tu,gh.ServerResponse);tu.prototype.setTimeout=function(e,t){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},e),this.on("timeout",t),this};tu.prototype.writeHead=function(){let e=gh.ServerResponse.prototype.writeHead.apply(this,arguments);return wY(this),e};tu.prototype.write=function(e,t,r){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),gh.ServerResponse.prototype.write.call(this,e,t,r),this._lightMyRequest.payloadChunks.push(Buffer.from(e,t)),!0};tu.prototype.end=function(e,t,r){e&&this.write(e,t),gh.ServerResponse.prototype.end.call(this,r),this.emit("finish"),this.destroy()};tu.prototype.destroy=function(e){this.destroyed||(this.destroyed=!0,e&&process.nextTick(()=>this.emit("error",e)),process.nextTick(()=>this.emit("close")))};tu.prototype.addTrailers=function(e){for(let t in e)this._lightMyRequest.trailers[t.toLowerCase().trim()]=e[t].toString().trim()};function A9e(e){e._lightMyRequest.headers===null&&wY(e),I9e(e);let t={raw:{res:e},headers:e._lightMyRequest.headers,statusCode:e.statusCode,statusMessage:e.statusMessage,trailers:{},get cookies(){return w9e.parse(this)}},r=Buffer.concat(e._lightMyRequest.payloadChunks);return t.rawPayload=r,t.payload=r.toString(),t.body=t.payload,t.trailers=e._lightMyRequest.trailers,t.json=function(){return JSON.parse(t.payload)},t.stream=function(){return T9e.from(e._lightMyRequest.payloadChunks)},t}function C9e(){return new v9e({write(e,t,r){setImmediate(r)}})}function I9e(e){let t=e._lightMyRequest.headers;for(let r of Object.keys(t)){let n=t[r];Array.isArray(n)?t[r]=n.map(i=>""+i):t[r]=""+n}}function wY(e){e._lightMyRequest.headers=Object.assign({},e.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(t=>{let r=new RegExp("\\r\\n"+t+": ([^\\r]*)\\r\\n"),n=e._header.match(r);n&&(e._lightMyRequest.headers[t.toLowerCase()]=n[1])})}AY.exports=tu});var IY=_((got,sI)=>{"use strict";sI.exports=br;sI.exports.default=br;var R9e={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function br(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:i=e}={}){let s=null,a=0,o=a,u=!1,l=null,c=a;if(e&&typeof e=="object"&&!Array.isArray(e)){let x;if(e.url===void 0&&(x="url")){let T={instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};s===null?s=[T]:s.push(T),a++}}var d=c===a;d&&(u=!0,l=0);let f=a;if(e&&typeof e=="object"&&!Array.isArray(e)){let x;if(e.path===void 0&&(x="path")){let T={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};s===null?s=[T]:s.push(T),a++}}var d=f===a;if(d&&u?(u=!1,l=[l,1]):d&&(u=!0,l=1),u)a=o,s!==null&&(o?s.length=o:s=null);else{let x={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};return s===null?s=[x]:s.push(x),a++,br.errors=s,!1}if(a===0)if(e&&typeof e=="object"&&!Array.isArray(e)){if(e.url!==void 0){let x=e.url,T=a,S=a,w=!1,A=null,C=a;if(typeof x!="string"){let M=typeof x,R;if(R===void 0)if(M=="number"||M=="boolean")R=""+x;else if(x===null)R="";else{let P={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[P]:s.push(P),a++}R!==void 0&&(x=R,e!==void 0&&(e.url=R))}var p=C===a;p&&(w=!0,A=0);let I=a;if(a===I)if(x&&typeof x=="object"&&!Array.isArray(x)){let M;if(x.pathname===void 0&&(M="pathname")){let R={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};s===null?s=[R]:s.push(R),a++}else{if(x.protocol!==void 0){let R=x.protocol,P=a;if(typeof R!="string"){let k=typeof R,K;if(K===void 0)if(k=="number"||k=="boolean")K=""+R;else if(R===null)K="";else{let z={instancePath:t+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),a++}K!==void 0&&(R=K,x!==void 0&&(x.protocol=K))}var h=P===a}else var h=!0;if(h){if(x.hostname!==void 0){let R=x.hostname,P=a;if(typeof R!="string"){let K=typeof R,z;if(z===void 0)if(K=="number"||K=="boolean")z=""+R;else if(R===null)z="";else{let G={instancePath:t+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),a++}z!==void 0&&(R=z,x!==void 0&&(x.hostname=z))}var h=P===a}else var h=!0;if(h)if(x.pathname!==void 0){let R=x.pathname,P=a;if(typeof R!="string"){let K=typeof R,z;if(z===void 0)if(K=="number"||K=="boolean")z=""+R;else if(R===null)z="";else{let G={instancePath:t+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),a++}z!==void 0&&(R=z,x!==void 0&&(x.pathname=z))}var h=P===a}else var h=!0}}}else{let M={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),a++}var p=I===a;if(p&&w?(w=!1,A=[A,1]):p&&(w=!0,A=1),w)a=S,s!==null&&(S?s.length=S:s=null);else{let M={instancePath:t+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[M]:s.push(M),a++,br.errors=s,!1}var m=T===a}else var m=!0;if(m){if(e.path!==void 0){let x=e.path,T=a,S=a,w=!1,A=null,C=a;if(typeof x!="string"){let R=typeof x,P;if(P===void 0)if(R=="number"||R=="boolean")P=""+x;else if(x===null)P="";else{let k={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[k]:s.push(k),a++}P!==void 0&&(x=P,e!==void 0&&(e.path=P))}var g=C===a;g&&(w=!0,A=0);let I=a;if(a===I)if(x&&typeof x=="object"&&!Array.isArray(x)){let R;if(x.pathname===void 0&&(R="pathname")){let P={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};s===null?s=[P]:s.push(P),a++}else{if(x.protocol!==void 0){let P=x.protocol,k=a;if(typeof P!="string"){let K=typeof P,z;if(z===void 0)if(K=="number"||K=="boolean")z=""+P;else if(P===null)z="";else{let G={instancePath:t+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),a++}z!==void 0&&(P=z,x!==void 0&&(x.protocol=z))}var y=k===a}else var y=!0;if(y){if(x.hostname!==void 0){let P=x.hostname,k=a;if(typeof P!="string"){let z=typeof P,G;if(G===void 0)if(z=="number"||z=="boolean")G=""+P;else if(P===null)G="";else{let te={instancePath:t+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),a++}G!==void 0&&(P=G,x!==void 0&&(x.hostname=G))}var y=k===a}else var y=!0;if(y)if(x.pathname!==void 0){let P=x.pathname,k=a;if(typeof P!="string"){let z=typeof P,G;if(G===void 0)if(z=="number"||z=="boolean")G=""+P;else if(P===null)G="";else{let te={instancePath:t+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[te]:s.push(te),a++}G!==void 0&&(P=G,x!==void 0&&(x.pathname=G))}var y=k===a}else var y=!0}}}else{let R={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[R]:s.push(R),a++}var g=I===a;if(g&&w?(w=!1,A=[A,1]):g&&(w=!0,A=1),w)a=S,s!==null&&(S?s.length=S:s=null);else{let R={instancePath:t+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[R]:s.push(R),a++,br.errors=s,!1}var m=T===a}else var m=!0;if(m){if(e.cookies!==void 0){let x=e.cookies,T=a;if(a===T&&!(x&&typeof x=="object"&&!Array.isArray(x)))return br.errors=[{instancePath:t+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===a}else var m=!0;if(m){if(e.headers!==void 0){let x=e.headers,T=a;if(a===T&&!(x&&typeof x=="object"&&!Array.isArray(x)))return br.errors=[{instancePath:t+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===a}else var m=!0;if(m){if(e.query!==void 0){let x=e.query,T=a,S=a,w=!1,A=a;if(a===A&&!(x&&typeof x=="object"&&!Array.isArray(x))){let I={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),a++}var v=A===a;if(w=w||v,!w){let I=a;if(typeof x!="string"){let R=typeof x,P;if(P===void 0)if(R=="number"||R=="boolean")P=""+x;else if(x===null)P="";else{let k={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[k]:s.push(k),a++}P!==void 0&&(x=P,e!==void 0&&(e.query=P))}var v=I===a;w=w||v}if(w)a=S,s!==null&&(S?s.length=S:s=null);else{let I={instancePath:t+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[I]:s.push(I),a++,br.errors=s,!1}var m=T===a}else var m=!0;if(m){if(e.simulate!==void 0){let x=e.simulate,T=a;if(a===T)if(x&&typeof x=="object"&&!Array.isArray(x)){if(x.end!==void 0){let w=x.end,A=a;if(typeof w!="boolean"){let C;if(C===void 0)if(w==="false"||w===0||w===null)C=!1;else if(w==="true"||w===1)C=!0;else return br.errors=[{instancePath:t+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;C!==void 0&&(w=C,x!==void 0&&(x.end=C))}var E=A===a}else var E=!0;if(E){if(x.split!==void 0){let w=x.split,A=a;if(typeof w!="boolean"){let I;if(I===void 0)if(w==="false"||w===0||w===null)I=!1;else if(w==="true"||w===1)I=!0;else return br.errors=[{instancePath:t+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;I!==void 0&&(w=I,x!==void 0&&(x.split=I))}var E=A===a}else var E=!0;if(E){if(x.error!==void 0){let w=x.error,A=a;if(typeof w!="boolean"){let I;if(I===void 0)if(w==="false"||w===0||w===null)I=!1;else if(w==="true"||w===1)I=!0;else return br.errors=[{instancePath:t+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;I!==void 0&&(w=I,x!==void 0&&(x.error=I))}var E=A===a}else var E=!0;if(E)if(x.close!==void 0){let w=x.close,A=a;if(typeof w!="boolean"){let I;if(I===void 0)if(w==="false"||w===0||w===null)I=!1;else if(w==="true"||w===1)I=!0;else return br.errors=[{instancePath:t+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;I!==void 0&&(w=I,x!==void 0&&(x.close=I))}var E=A===a}else var E=!0}}}else return br.errors=[{instancePath:t+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===a}else var m=!0;if(m){if(e.authority!==void 0){let x=e.authority,T=a;if(typeof x!="string"){let w=typeof x,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+x;else if(x===null)A="";else return br.errors=[{instancePath:t+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(x=A,e!==void 0&&(e.authority=A))}var m=T===a}else var m=!0;if(m){if(e.remoteAddress!==void 0){let x=e.remoteAddress,T=a;if(typeof x!="string"){let w=typeof x,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+x;else if(x===null)A="";else return br.errors=[{instancePath:t+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(x=A,e!==void 0&&(e.remoteAddress=A))}var m=T===a}else var m=!0;if(m){if(e.method!==void 0){let x=e.method,T=a;if(typeof x!="string"){let w=typeof x,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+x;else if(x===null)A="";else return br.errors=[{instancePath:t+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(x=A,e!==void 0&&(e.method=A))}if(!(x==="ACL"||x==="BIND"||x==="CHECKOUT"||x==="CONNECT"||x==="COPY"||x==="DELETE"||x==="GET"||x==="HEAD"||x==="LINK"||x==="LOCK"||x==="M-SEARCH"||x==="MERGE"||x==="MKACTIVITY"||x==="MKCALENDAR"||x==="MKCOL"||x==="MOVE"||x==="NOTIFY"||x==="OPTIONS"||x==="PATCH"||x==="POST"||x==="PROPFIND"||x==="PROPPATCH"||x==="PURGE"||x==="PUT"||x==="REBIND"||x==="REPORT"||x==="SEARCH"||x==="SOURCE"||x==="SUBSCRIBE"||x==="TRACE"||x==="UNBIND"||x==="UNLINK"||x==="UNLOCK"||x==="UNSUBSCRIBE"||x==="acl"||x==="bind"||x==="checkout"||x==="connect"||x==="copy"||x==="delete"||x==="get"||x==="head"||x==="link"||x==="lock"||x==="m-search"||x==="merge"||x==="mkactivity"||x==="mkcalendar"||x==="mkcol"||x==="move"||x==="notify"||x==="options"||x==="patch"||x==="post"||x==="propfind"||x==="proppatch"||x==="purge"||x==="put"||x==="rebind"||x==="report"||x==="search"||x==="source"||x==="subscribe"||x==="trace"||x==="unbind"||x==="unlink"||x==="unlock"||x==="unsubscribe"))return br.errors=[{instancePath:t+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:R9e.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var m=T===a}else var m=!0;if(m)if(e.validate!==void 0){let x=e.validate,T=a;if(typeof x!="boolean"){let w;if(w===void 0)if(x==="false"||x===0||x===null)w=!1;else if(x==="true"||x===1)w=!0;else return br.errors=[{instancePath:t+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;w!==void 0&&(x=w,e!==void 0&&(e.validate=w))}var m=T===a}else var m=!0}}}}}}}}}else return br.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return br.errors=s,a===0}});var OY=_((yot,bh)=>{"use strict";var N9e=require("node:assert"),aI=vY(),ix=CY(),ax="The dispatch function has already been invoked",RY=IY();function oI(e,t,r){return r===void 0?new yh(e,t):sx(e,t,r)}function NY(e,t,r,n){return r.once("error",function(i){this.destroyed&&n.destroy(i)}),r.once("close",function(){this.destroyed&&!this._error&&n.destroy()}),r.prepare(()=>e.call(t,r,n))}function sx(e,t,r){if(t=typeof t=="string"?{url:t}:t,t.validate!==!1&&(N9e(typeof e=="function","dispatchFunc should be a function"),!RY(t)))throw new Error(RY.errors.map(a=>a.message));let n=t.server||{},i=t.Request?aI.CustomRequest:aI;if(e.request&&e.request.app===e&&(Object.setPrototypeOf(Object.getPrototypeOf(e.request),i.prototype),Object.setPrototypeOf(Object.getPrototypeOf(e.response),ix.prototype)),typeof r=="function"){let s=new i(t),a=new ix(s,r);return NY(e,n,s,a)}else return new Promise((s,a)=>{let o=new i(t),u=new ix(o,s,a);NY(e,n,o,u)})}function yh(e,t){typeof t=="string"?this.option={url:t}:this.option=Object.assign({},t),this.dispatch=e,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var O9e=["delete","get","head","options","patch","post","put","trace"];O9e.forEach(e=>{yh.prototype[e]=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(ax);return this.option.url=t,this.option.method=e.toUpperCase(),this}});var P9e=["body","cookies","headers","payload","query"];P9e.forEach(e=>{yh.prototype[e]=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(ax);return this.option[e]=t,this}});yh.prototype.end=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(ax);if(this._hasInvoked=!0,typeof e=="function")sx(this.dispatch,this.option,e);else return this._promise=sx(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(e=>{e!=="constructor"&&(yh.prototype[e]=function(...t){if(!this._promise){if(this._hasInvoked===!0)throw new Error(ax);this._hasInvoked=!0,this._promise=sx(this.dispatch,this.option)}return this._promise[e](...t)})});function D9e(e){return e instanceof aI||e instanceof ix||e&&e.constructor&&e.constructor.name==="_CustomLMRRequest"}bh.exports=oI;bh.exports.default=oI;bh.exports.inject=oI;bh.exports.isInjection=D9e});var GY=_((bot,lx)=>{"use strict";var k9e="4.26.0",$9e=u5(),uI=require("node:http"),xh,{kAvvioBoot:Eh,kChildren:cI,kServerBindings:PY,kBodyLimit:L9e,kRoutePrefix:DY,kLogLevel:M9e,kLogSerializers:F9e,kHooks:lI,kSchemaController:ru,kRequestAcceptVersion:B9e,kReplySerializerDefault:kY,kContentTypeParser:q9e,kReply:j9e,kRequest:U9e,kFourOhFour:H9e,kState:hr,kOptions:fI,kPluginNameChain:_h,kSchemaErrorFormatter:dI,kErrorHandler:ox,kKeepAliveConnections:pI,kChildLoggerFactory:hI,kGenReqId:mI}=Or(),{createServer:z9e,compileValidateHTTPVersion:V9e}=O5(),vh=O1(),ux=K1(),G9e=Y1(),{supportedMethods:W9e}=$w(),zf=qw(),$c=Yw(),$Y=x6(),{Hooks:K9e,hookRunnerApplication:LY,supportedHooks:gI}=xo(),{createLogger:Y9e,createChildLogger:MY,defaultChildLoggerFactory:X9e}=t0(),FY=w6(),{getGenReqId:BY,reqIdGenFactory:qY}=kb(),{buildRouting:J9e,validateBodyLimitOption:Q9e}=VK(),Z9e=QK(),VY=tY(),e7e=lY(),{FSTDEP009:t7e}=xa(),r7e=dY(),{appendStackTrace:n7e,AVVIO_ERRORS_MAP:jY,...Lc}=nn(),{defaultInitOptions:ni}=VY,{FST_ERR_ASYNC_CONSTRAINT:i7e,FST_ERR_BAD_URL:s7e,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:a7e,FST_ERR_OPTIONS_NOT_OBJ:o7e,FST_ERR_QSP_NOT_FN:u7e,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:c7e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:l7e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:f7e,FST_ERR_VERSION_CONSTRAINT_NOT_STR:d7e,FST_ERR_INSTANCE_ALREADY_LISTENING:p7e,FST_ERR_REOPENED_CLOSE_SERVER:h7e,FST_ERR_ROUTE_REWRITE_NOT_STR:m7e,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:UY}=Lc,{buildErrorHandler:HY}=k0();function g7e(e){let t={};return["errorHandler","logLevel","logSerializers"].concat(gI).forEach(n=>{t[n]=e.store[n]}),Object.assign({},t)}function cx(e){if(e=e||{},typeof e!="object")throw new o7e;if(e.querystringParser&&typeof e.querystringParser!="function")throw new u7e(typeof e.querystringParser);if(e.schemaController&&e.schemaController.bucket&&typeof e.schemaController.bucket!="function")throw new c7e(typeof e.schemaController.bucket);Q9e(e.bodyLimit);let t=e.requestIdHeader===!1?!1:(e.requestIdHeader||ni.requestIdHeader).toLowerCase(),r=qY(t,e.genReqId),n=e.requestIdLogLabel||"reqId",i=e.bodyLimit||ni.bodyLimit,s=e.disableRequestLogging||!1,a=Object.assign({customOptions:{},plugins:[]},e.ajv),o=e.frameworkErrors;if(!a.customOptions||Object.prototype.toString.call(a.customOptions)!=="[object Object]")throw new l7e(typeof a.customOptions);if(!a.plugins||!Array.isArray(a.plugins))throw new f7e(typeof a.plugins);let{logger:u,hasLogger:l}=Y9e(e);e.connectionTimeout=e.connectionTimeout||ni.connectionTimeout,e.keepAliveTimeout=e.keepAliveTimeout||ni.keepAliveTimeout,e.maxRequestsPerSocket=e.maxRequestsPerSocket||ni.maxRequestsPerSocket,e.requestTimeout=e.requestTimeout||ni.requestTimeout,e.logger=u,e.requestIdHeader=t,e.requestIdLogLabel=n,e.disableRequestLogging=s,e.ajv=a,e.clientErrorHandler=e.clientErrorHandler||G;let c=VY(e);e.exposeHeadRoutes=c.exposeHeadRoutes;let f=e.constraints;e.versioning&&(t7e(),f={...f,version:{name:"version",mustMatchWhenDerived:!0,storage:e.versioning.storage,deriveConstraint:e.versioning.deriveVersion,validate(N){if(typeof N!="string")throw new d7e}}});let d=J9e({config:{defaultRoute:te,onBadUrl:j,constraints:f,ignoreTrailingSlash:e.ignoreTrailingSlash||ni.ignoreTrailingSlash,ignoreDuplicateSlashes:e.ignoreDuplicateSlashes||ni.ignoreDuplicateSlashes,maxParamLength:e.maxParamLength||ni.maxParamLength,caseSensitive:e.caseSensitive,allowUnsafeRegex:e.allowUnsafeRegex||ni.allowUnsafeRegex,buildPrettyMeta:g7e,querystringParser:e.querystringParser,useSemicolonDelimiter:e.useSemicolonDelimiter??ni.useSemicolonDelimiter}}),h=Z9e(e),p=$(d,e);e.http2SessionTimeout=c.http2SessionTimeout;let{server:m,listen:y}=z9e(e,p),g=typeof m.closeAllConnections=="function",v=typeof m.closeIdleConnections=="function",E=e.forceCloseConnections;if(E==="idle"&&!v)throw new a7e;typeof E!="boolean"&&(E=v?"idle":!1);let x=!g&&E===!0?new Set:r7e(),T=vh.setupResponseListeners,S=$Y.buildSchemaController(null,e.schemaController),w={[hr]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[pI]:x,[fI]:e,[cI]:[],[PY]:[],[L9e]:i,[DY]:"",[M9e]:"",[F9e]:null,[lI]:new K9e,[ru]:S,[dI]:null,[ox]:HY(),[hI]:X9e,[kY]:null,[q9e]:new $c(i,e.onProtoPoisoning||ni.onProtoPoisoning,e.onConstructorPoisoning||ni.onConstructorPoisoning),[j9e]:vh.buildReply(vh),[U9e]:ux.buildRequest(ux,e.trustProxy),[H9e]:h,[FY.kRegisteredPlugins]:[],[_h]:["fastify"],[Eh]:null,[mI]:r,routing:p,getDefaultRoute:d.getDefaultRoute.bind(d),setDefaultRoute:d.setDefaultRoute.bind(d),delete:function(L,q,W){return d.prepareRoute.call(this,{method:"DELETE",url:L,options:q,handler:W})},get:function(L,q,W){return d.prepareRoute.call(this,{method:"GET",url:L,options:q,handler:W})},head:function(L,q,W){return d.prepareRoute.call(this,{method:"HEAD",url:L,options:q,handler:W})},patch:function(L,q,W){return d.prepareRoute.call(this,{method:"PATCH",url:L,options:q,handler:W})},post:function(L,q,W){return d.prepareRoute.call(this,{method:"POST",url:L,options:q,handler:W})},put:function(L,q,W){return d.prepareRoute.call(this,{method:"PUT",url:L,options:q,handler:W})},options:function(L,q,W){return d.prepareRoute.call(this,{method:"OPTIONS",url:L,options:q,handler:W})},all:function(L,q,W){return d.prepareRoute.call(this,{method:W9e,url:L,options:q,handler:W})},route:function(L){return d.route.call(this,{options:L})},hasRoute:function(L){return d.hasRoute.call(this,{options:L})},findRoute:function(L){return d.findRoute(L)},log:u,withTypeProvider:k,addHook:K,addSchema:z,getSchema:S.getSchema.bind(S),getSchemas:S.getSchemas.bind(S),setValidatorCompiler:Z,setSerializerCompiler:Se,setSchemaController:ve,setReplySerializer:_e,setSchemaErrorFormatter:se,setGenReqId:B,addContentTypeParser:$c.helpers.addContentTypeParser,hasContentTypeParser:$c.helpers.hasContentTypeParser,getDefaultJsonParser:$c.defaultParsers.getDefaultJsonParser,defaultTextParser:$c.defaultParsers.defaultTextParser,removeContentTypeParser:$c.helpers.removeContentTypeParser,removeAllContentTypeParsers:$c.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(N){return this[FY.kRegisteredPlugins].includes(N)||this[_h].includes(N)},listen:y,server:m,addresses:function(){let N=this[PY].map(L=>L.address());return N.push(this.server.address()),N.filter(L=>L)},decorate:zf.add,hasDecorator:zf.exist,decorateReply:zf.decorateReply,decorateRequest:zf.decorateRequest,hasRequestDecorator:zf.existRequest,hasReplyDecorator:zf.existReply,inject:R,printRoutes:O,setNotFoundHandler:re,setErrorHandler:be,setChildLoggerFactory:he,initialConfig:c,addConstraintStrategy:d.addConstraintStrategy.bind(d),hasConstraintStrategy:d.hasConstraintStrategy.bind(d)};Object.defineProperties(w,{listeningOrigin:{get(){let N=this.addresses().slice(-1).pop();if(typeof N=="string")return N;let L=N.family==="IPv6"?`[${N.address}]`:N.address;return`${this[fI].https?"https":"http"}://${L}:${N.port}`}},pluginName:{configurable:!0,get(){return this[_h].length>1?this[_h].join(" -> "):this[_h][0]}},prefix:{configurable:!0,get(){return this[DY]}},validatorCompiler:{configurable:!0,get(){return this[ru].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[ru].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[hI]}},version:{configurable:!0,get(){return k9e}},errorHandler:{configurable:!0,get(){return this[ox].func}},genReqId:{configurable:!0,get(){return this[mI]}}}),e.schemaErrorFormatter&&(zY(e.schemaErrorFormatter),w[dI]=e.schemaErrorFormatter.bind(w));let A=Number(e.pluginTimeout),C=$9e(w,{autostart:!1,timeout:isNaN(A)===!1?A:ni.pluginTimeout,expose:{use:"register"}});C.override=e7e,C.on("start",()=>w[hr].started=!0),w[Eh]=w.ready,w.ready=P,w.printPlugins=C.prettyPrint.bind(C),C.once("preReady",()=>{w.onClose((N,L)=>{w[hr].closing=!0,d.closeRoutes(),LY("preClose",w[Eh],w,function(){if(w[hr].listening){if(E==="idle")N.server.closeIdleConnections();else if(g&&E)N.server.closeAllConnections();else if(E===!0)for(let q of w[pI])q.destroy(),w[pI].delete(q)}!e.serverFactory||w[hr].listening?N.server.close(function(q){q&&q.code!=="ERR_SERVER_NOT_RUNNING"?L(null):L()}):process.nextTick(L,null)})})});let I=new G9e({server:w,config:{}});w.setNotFoundHandler(),h.arrange404(w),d.setup(e,{avvio:C,fourOhFour:h,logger:u,hasLogger:l,setupResponseListeners:T,throwIfAlreadyStarted:M,validateHTTPVersion:V9e(e),keepAliveConnections:x}),m.on("clientError",e.clientErrorHandler.bind(w));try{let L=require("node:diagnostics_channel").channel("fastify.initialization");L.hasSubscribers&&L.publish({fastify:w})}catch{}return"asyncDispose"in Symbol&&(w[Symbol.asyncDispose]=function(){return w.close()}),w;function M(N){if(w[hr].started)throw new p7e(N)}function R(N,L){if(xh===void 0&&(xh=OY()),w[hr].started){if(w[hr].closing){let q=new h7e;if(L){L(q);return}else return Promise.reject(q)}return xh(p,N,L)}if(L)this.ready(q=>{q?L(q,null):xh(p,N,L)});else return xh((q,W)=>{this.ready(function(H){if(H){W.emit("error",H);return}p(q,W)})},N)}function P(N){if(this[hr].readyPromise!==null){if(N!=null){this[hr].readyPromise.then(()=>N(null,w),N);return}return this[hr].readyPromise}let L,q;if(process.nextTick(W),this[hr].readyPromise=new Promise(function(V,Y){L=V,q=Y}),N)this[hr].readyPromise.then(()=>N(null,w),N);else return this[hr].readyPromise;function W(){w[Eh]((V,Y)=>{V||w[hr].started||w[hr].ready||w[hr].booting?H(V):(w[hr].booting=!0,LY("onReady",w[Eh],w,H)),Y()})}function H(V){if(V=V!=null&&jY[V.code]!=null?n7e(V,new jY[V.code](V.message)):V,V)return q(V);L(w),w[hr].booting=!1,w[hr].ready=!0,w[hr].promise=null}}function k(){return this}function K(N,L){if(M('Cannot call "addHook"!'),L==null)throw new Lc.FST_ERR_HOOK_INVALID_HANDLER(N,L);if(N==="onSend"||N==="preSerialization"||N==="onError"||N==="preParsing"){if(L.constructor.name==="AsyncFunction"&&L.length===4)throw new Lc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(N==="onReady"||N==="onListen"){if(L.constructor.name==="AsyncFunction"&&L.length!==0)throw new Lc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(N==="onRequestAbort"){if(L.constructor.name==="AsyncFunction"&&L.length!==1)throw new Lc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(L.constructor.name==="AsyncFunction"&&L.length===3)throw new Lc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return N==="onClose"?this.onClose(L):N==="onReady"||N==="onListen"||N==="onRoute"?this[lI].add(N,L):this.after((W,H)=>{q.call(this,N,L),H(W)}),this;function q(W,H){this[lI].add(W,H),this[cI].forEach(V=>q.call(V,W,H))}}function z(N){return M('Cannot call "addSchema"!'),this[ru].add(N),this[cI].forEach(L=>L.addSchema(N)),this}function G(N,L){if(N.code==="ECONNRESET"||L.destroyed)return;let q,W,H,V;N.code==="ERR_HTTP_REQUEST_TIMEOUT"?(W="408",H=uI.STATUS_CODES[W],q=`{"error":"${H}","message":"Client Timeout","statusCode":408}`,V="timeout"):N.code==="HPE_HEADER_OVERFLOW"?(W="431",H=uI.STATUS_CODES[W],q=`{"error":"${H}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,V="header_overflow"):(W="400",H=uI.STATUS_CODES[W],q=`{"error":"${H}","message":"Client Error","statusCode":400}`,V="error"),this.log.trace({err:N},`client ${V}`),L.writable&&L.write(`HTTP/1.1 ${W} ${H}\r
Content-Length: ${q.length}\r
Content-Type: application/json\r
\r
${q}`),L.destroy(N)}function te(N,L){N.headers["accept-version"]!==void 0&&(N.headers[B9e]=N.headers["accept-version"],N.headers["accept-version"]=void 0),h.router.lookup(N,L)}function j(N,L,q){if(o){let H=BY(I.server,L),V=MY(I,u,L,H),Y=new ux(H,null,L,null,V,I),X=new vh(q,Y,V);return s===!1&&V.info({req:Y},"incoming request"),o(new s7e(N),Y,X)}let W=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${N}' is not a valid url component","statusCode":400}`;q.writeHead(400,{"Content-Type":"application/json","Content-Length":W.length}),q.end(W)}function ee(N,L,q){if(N!==!1)return function(H){if(H){if(o){let Y=BY(I.server,L),X=MY(I,u,L,Y),ne=new ux(Y,null,L,null,X,I),me=new vh(q,ne,X);return s===!1&&X.info({req:ne},"incoming request"),o(new i7e,ne,me)}let V='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';q.writeHead(500,{"Content-Type":"application/json","Content-Length":V.length}),q.end(V)}}}function re(N,L){return M('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,N,L,C,d.routeHandler),this}function Z(N){return M('Cannot call "setValidatorCompiler"!'),this[ru].setValidatorCompiler(N),this}function se(N){return M('Cannot call "setSchemaErrorFormatter"!'),zY(N),this[dI]=N.bind(this),this}function Se(N){return M('Cannot call "setSerializerCompiler"!'),this[ru].setSerializerCompiler(N),this}function ve(N){M('Cannot call "setSchemaController"!');let L=this[ru],q=$Y.buildSchemaController(L,Object.assign({},L.opts,N));return this[ru]=q,this.getSchema=q.getSchema.bind(q),this.getSchemas=q.getSchemas.bind(q),this}function _e(N){return M('Cannot call "setReplySerializer"!'),this[kY]=N,this}function be(N){return M('Cannot call "setErrorHandler"!'),this[ox]=HY(this[ox],N.bind(this)),this}function he(N){return M('Cannot call "setChildLoggerFactory"!'),this[hI]=N,this}function O(N={}){return N.includeMeta=N.includeHooks?N.includeMeta?gI.concat(N.includeMeta):gI:N.includeMeta,d.printRoutes(N)}function $(N,{rewriteUrl:L,logger:q}){let W;return function(V,Y){if(W===void 0&&(W=N.isAsyncConstraint()),L){V.originalUrl=V.url;let X=L.call(w,V);if(typeof X=="string")V.url=X;else{let ne=new m7e(V.url,typeof X);V.destroy(ne)}}N.routing(V,Y,ee(W,V,Y))}}function B(N){return M('Cannot call "setGenReqId"!'),this[mI]=qY(this[fI].requestIdHeader,N),this}}cx.errorCodes=Lc;function zY(e){if(typeof e!="function")throw new UY(typeof e);if(e.constructor.name==="AsyncFunction")throw new UY("AsyncFunction")}lx.exports=cx;lx.exports.fastify=cx;lx.exports.default=cx});var aX=_((Sot,sX)=>{var iX=require("stream").Stream,J7e=require("util");sX.exports=gs;function gs(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}J7e.inherits(gs,iX);gs.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(gs.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});gs.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};gs.prototype.resume=function(){this._released||this.release(),this.source.resume()};gs.prototype.pause=function(){this.source.pause()};gs.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};gs.prototype.pipe=function(){var e=iX.prototype.pipe.apply(this,arguments);return this.resume(),e};gs.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};gs.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var lX=_((wot,cX)=>{var Q7e=require("util"),uX=require("stream").Stream,oX=aX();cX.exports=ir;function ir(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Q7e.inherits(ir,uX);ir.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};ir.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ir.prototype.append=function(e){var t=ir.isStreamLike(e);if(t){if(!(e instanceof oX)){var r=oX.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};ir.prototype.pipe=function(e,t){return uX.prototype.pipe.call(this,e,t),this.resume(),e};ir.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};ir.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=ir.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};ir.prototype._pipeNext=function(e){this._currentStream=e;var t=ir.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};ir.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};ir.prototype.write=function(e){this.emit("data",e)};ir.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ir.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};ir.prototype.end=function(){this._reset(),this.emit("end")};ir.prototype.destroy=function(){this._reset(),this.emit("close")};ir.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ir.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ir.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};ir.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var fX=_((Aot,Z7e)=>{Z7e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var pX=_((Cot,dX)=>{dX.exports=fX()});var gX=_(ii=>{"use strict";var mx=pX(),eMe=require("path").extname,hX=/^\s*([^;\s]*)(?:;|\s|$)/,tMe=/^text\//i;ii.charset=mX;ii.charsets={lookup:mX};ii.contentType=rMe;ii.extension=nMe;ii.extensions=Object.create(null);ii.lookup=iMe;ii.types=Object.create(null);sMe(ii.extensions,ii.types);function mX(e){if(!e||typeof e!="string")return!1;var t=hX.exec(e),r=t&&mx[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&tMe.test(t[1])?"UTF-8":!1}function rMe(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?ii.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=ii.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}function nMe(e){if(!e||typeof e!="string")return!1;var t=hX.exec(e),r=t&&ii.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}function iMe(e){if(!e||typeof e!="string")return!1;var t=eMe("x."+e).toLowerCase().substr(1);return t&&ii.types[t]||!1}function sMe(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(mx).forEach(function(i){var s=mx[i],a=s.extensions;if(!(!a||!a.length)){e[i]=a;for(var o=0;o<a.length;o++){var u=a[o];if(t[u]){var l=r.indexOf(mx[t[u]].source),c=r.indexOf(s.source);if(t[u]!=="application/octet-stream"&&(l>c||l===c&&t[u].substr(0,12)==="application/"))continue}t[u]=i}}})}});var bX=_((Rot,yX)=>{yX.exports=aMe;function aMe(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}});var EI=_((Not,EX)=>{var xX=bX();EX.exports=oMe;function oMe(e){var t=!1;return xX(function(){t=!0}),function(n,i){t?e(n,i):xX(function(){e(n,i)})}}});var _I=_((Oot,_X)=>{_X.exports=uMe;function uMe(e){Object.keys(e.jobs).forEach(cMe.bind(e)),e.jobs={}}function cMe(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}});var vI=_((Pot,TX)=>{var vX=EI(),lMe=_I();TX.exports=fMe;function fMe(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=dMe(t,i,e[i],function(s,a){i in r.jobs&&(delete r.jobs[i],s?lMe(r):r.results[i]=a,n(s,r.results))})}function dMe(e,t,r,n){var i;return e.length==2?i=e(r,vX(n)):i=e(r,t,vX(n)),i}});var TI=_((Dot,SX)=>{SX.exports=pMe;function pMe(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,s){return t(e[i],e[s])}),n}});var SI=_((kot,wX)=>{var hMe=_I(),mMe=EI();wX.exports=gMe;function gMe(e){Object.keys(this.jobs).length&&(this.index=this.size,hMe(this),mMe(e)(null,this.results))}});var CX=_(($ot,AX)=>{var yMe=vI(),bMe=TI(),xMe=SI();AX.exports=EMe;function EMe(e,t,r){for(var n=bMe(e);n.index<(n.keyedList||e).length;)yMe(e,t,n,function(i,s){if(i){r(i,s);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return xMe.bind(n,r)}});var wI=_((Lot,gx)=>{var IX=vI(),_Me=TI(),vMe=SI();gx.exports=TMe;gx.exports.ascending=RX;gx.exports.descending=SMe;function TMe(e,t,r,n){var i=_Me(e,r);return IX(e,t,i,function s(a,o){if(a){n(a,o);return}if(i.index++,i.index<(i.keyedList||e).length){IX(e,t,i,s);return}n(null,i.results)}),vMe.bind(i,n)}function RX(e,t){return e<t?-1:e>t?1:0}function SMe(e,t){return-1*RX(e,t)}});var OX=_((Mot,NX)=>{var wMe=wI();NX.exports=AMe;function AMe(e,t,r){return wMe(e,t,null,r)}});var DX=_((Fot,PX)=>{PX.exports={parallel:CX(),serial:OX(),serialOrdered:wI()}});var AI=_((Bot,kX)=>{"use strict";kX.exports=Object});var LX=_((qot,$X)=>{"use strict";$X.exports=Error});var FX=_((jot,MX)=>{"use strict";MX.exports=EvalError});var qX=_((Uot,BX)=>{"use strict";BX.exports=RangeError});var UX=_((Hot,jX)=>{"use strict";jX.exports=ReferenceError});var zX=_((zot,HX)=>{"use strict";HX.exports=SyntaxError});var nu=_((Vot,VX)=>{"use strict";VX.exports=TypeError});var WX=_((Got,GX)=>{"use strict";GX.exports=URIError});var YX=_((Wot,KX)=>{"use strict";KX.exports=Math.abs});var JX=_((Kot,XX)=>{"use strict";XX.exports=Math.floor});var ZX=_((Yot,QX)=>{"use strict";QX.exports=Math.max});var tJ=_((Xot,eJ)=>{"use strict";eJ.exports=Math.min});var nJ=_((Jot,rJ)=>{"use strict";rJ.exports=Math.pow});var sJ=_((Qot,iJ)=>{"use strict";iJ.exports=Math.round});var oJ=_((Zot,aJ)=>{"use strict";aJ.exports=Number.isNaN||function(t){return t!==t}});var cJ=_((eut,uJ)=>{"use strict";var CMe=oJ();uJ.exports=function(t){return CMe(t)||t===0?t:t<0?-1:1}});var fJ=_((tut,lJ)=>{"use strict";lJ.exports=Object.getOwnPropertyDescriptor});var CI=_((rut,dJ)=>{"use strict";var yx=fJ();if(yx)try{yx([],"length")}catch{yx=null}dJ.exports=yx});var hJ=_((nut,pJ)=>{"use strict";var bx=Object.defineProperty||!1;if(bx)try{bx({},"a",{value:1})}catch{bx=!1}pJ.exports=bx});var II=_((iut,mJ)=>{"use strict";mJ.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}});var bJ=_((sut,yJ)=>{"use strict";var gJ=typeof Symbol<"u"&&Symbol,IMe=II();yJ.exports=function(){return typeof gJ!="function"||typeof Symbol!="function"||typeof gJ("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IMe()}});var RI=_((aut,xJ)=>{"use strict";xJ.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var NI=_((out,EJ)=>{"use strict";var RMe=AI();EJ.exports=RMe.getPrototypeOf||null});var TJ=_((uut,vJ)=>{"use strict";var NMe="Function.prototype.bind called on incompatible ",OMe=Object.prototype.toString,PMe=Math.max,DMe="[object Function]",_J=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var s=0;s<r.length;s+=1)n[s+t.length]=r[s];return n},kMe=function(t,r){for(var n=[],i=r||0,s=0;i<t.length;i+=1,s+=1)n[s]=t[i];return n},$Me=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};vJ.exports=function(t){var r=this;if(typeof r!="function"||OMe.apply(r)!==DMe)throw new TypeError(NMe+r);for(var n=kMe(arguments,1),i,s=function(){if(this instanceof i){var c=r.apply(this,_J(n,arguments));return Object(c)===c?c:this}return r.apply(t,_J(n,arguments))},a=PMe(0,r.length-n.length),o=[],u=0;u<a;u++)o[u]="$"+u;if(i=Function("binder","return function ("+$Me(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,i.prototype=new l,l.prototype=null}return i}});var Ah=_((cut,SJ)=>{"use strict";var LMe=TJ();SJ.exports=Function.prototype.bind||LMe});var xx=_((lut,wJ)=>{"use strict";wJ.exports=Function.prototype.call});var OI=_((fut,AJ)=>{"use strict";AJ.exports=Function.prototype.apply});var IJ=_((dut,CJ)=>{"use strict";CJ.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var NJ=_((put,RJ)=>{"use strict";var MMe=Ah(),FMe=OI(),BMe=xx(),qMe=IJ();RJ.exports=qMe||MMe.call(BMe,FMe)});var PI=_((hut,OJ)=>{"use strict";var jMe=Ah(),UMe=nu(),HMe=xx(),zMe=NJ();OJ.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new UMe("a function is required");return zMe(jMe,HMe,t)}});var MJ=_((mut,LJ)=>{"use strict";var VMe=PI(),PJ=CI(),kJ;try{kJ=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var DI=!!kJ&&PJ&&PJ(Object.prototype,"__proto__"),$J=Object,DJ=$J.getPrototypeOf;LJ.exports=DI&&typeof DI.get=="function"?VMe([DI.get]):typeof DJ=="function"?function(t){return DJ(t==null?t:$J(t))}:!1});var UJ=_((gut,jJ)=>{"use strict";var FJ=RI(),BJ=NI(),qJ=MJ();jJ.exports=FJ?function(t){return FJ(t)}:BJ?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return BJ(t)}:qJ?function(t){return qJ(t)}:null});var Ex=_((yut,HJ)=>{"use strict";var GMe=Function.prototype.call,WMe=Object.prototype.hasOwnProperty,KMe=Ah();HJ.exports=KMe.call(GMe,WMe)});var Nh=_((but,YJ)=>{"use strict";var tt,YMe=AI(),XMe=LX(),JMe=FX(),QMe=qX(),ZMe=UX(),Xf=zX(),Yf=nu(),eFe=WX(),tFe=YX(),rFe=JX(),nFe=ZX(),iFe=tJ(),sFe=nJ(),aFe=sJ(),oFe=cJ(),WJ=Function,kI=function(e){try{return WJ('"use strict"; return ('+e+").constructor;")()}catch{}},Ch=CI(),uFe=hJ(),$I=function(){throw new Yf},cFe=Ch?function(){try{return arguments.callee,$I}catch{try{return Ch(arguments,"callee").get}catch{return $I}}}():$I,Wf=bJ()(),Dr=UJ(),lFe=NI(),fFe=RI(),KJ=OI(),Ih=xx(),Kf={},dFe=typeof Uint8Array>"u"||!Dr?tt:Dr(Uint8Array),Mc={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?tt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?tt:ArrayBuffer,"%ArrayIteratorPrototype%":Wf&&Dr?Dr([][Symbol.iterator]()):tt,"%AsyncFromSyncIteratorPrototype%":tt,"%AsyncFunction%":Kf,"%AsyncGenerator%":Kf,"%AsyncGeneratorFunction%":Kf,"%AsyncIteratorPrototype%":Kf,"%Atomics%":typeof Atomics>"u"?tt:Atomics,"%BigInt%":typeof BigInt>"u"?tt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?tt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?tt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?tt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XMe,"%eval%":eval,"%EvalError%":JMe,"%Float16Array%":typeof Float16Array>"u"?tt:Float16Array,"%Float32Array%":typeof Float32Array>"u"?tt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?tt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?tt:FinalizationRegistry,"%Function%":WJ,"%GeneratorFunction%":Kf,"%Int8Array%":typeof Int8Array>"u"?tt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?tt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?tt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Wf&&Dr?Dr(Dr([][Symbol.iterator]())):tt,"%JSON%":typeof JSON=="object"?JSON:tt,"%Map%":typeof Map>"u"?tt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Wf||!Dr?tt:Dr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":YMe,"%Object.getOwnPropertyDescriptor%":Ch,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?tt:Promise,"%Proxy%":typeof Proxy>"u"?tt:Proxy,"%RangeError%":QMe,"%ReferenceError%":ZMe,"%Reflect%":typeof Reflect>"u"?tt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?tt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Wf||!Dr?tt:Dr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?tt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Wf&&Dr?Dr(""[Symbol.iterator]()):tt,"%Symbol%":Wf?Symbol:tt,"%SyntaxError%":Xf,"%ThrowTypeError%":cFe,"%TypedArray%":dFe,"%TypeError%":Yf,"%Uint8Array%":typeof Uint8Array>"u"?tt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?tt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?tt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?tt:Uint32Array,"%URIError%":eFe,"%WeakMap%":typeof WeakMap>"u"?tt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?tt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?tt:WeakSet,"%Function.prototype.call%":Ih,"%Function.prototype.apply%":KJ,"%Object.defineProperty%":uFe,"%Object.getPrototypeOf%":lFe,"%Math.abs%":tFe,"%Math.floor%":rFe,"%Math.max%":nFe,"%Math.min%":iFe,"%Math.pow%":sFe,"%Math.round%":aFe,"%Math.sign%":oFe,"%Reflect.getPrototypeOf%":fFe};if(Dr)try{null.error}catch(e){zJ=Dr(Dr(e)),Mc["%Error.prototype%"]=zJ}var zJ,pFe=function e(t){var r;if(t==="%AsyncFunction%")r=kI("async function () {}");else if(t==="%GeneratorFunction%")r=kI("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=kI("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Dr&&(r=Dr(i.prototype))}return Mc[t]=r,r},VJ={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Rh=Ah(),_x=Ex(),hFe=Rh.call(Ih,Array.prototype.concat),mFe=Rh.call(KJ,Array.prototype.splice),GJ=Rh.call(Ih,String.prototype.replace),vx=Rh.call(Ih,String.prototype.slice),gFe=Rh.call(Ih,RegExp.prototype.exec),yFe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bFe=/\\(\\)?/g,xFe=function(t){var r=vx(t,0,1),n=vx(t,-1);if(r==="%"&&n!=="%")throw new Xf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Xf("invalid intrinsic syntax, expected opening `%`");var i=[];return GJ(t,yFe,function(s,a,o,u){i[i.length]=o?GJ(u,bFe,"$1"):a||s}),i},EFe=function(t,r){var n=t,i;if(_x(VJ,n)&&(i=VJ[n],n="%"+i[0]+"%"),_x(Mc,n)){var s=Mc[n];if(s===Kf&&(s=pFe(n)),typeof s>"u"&&!r)throw new Yf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new Xf("intrinsic "+t+" does not exist!")};YJ.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Yf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Yf('"allowMissing" argument must be a boolean');if(gFe(/^%?[^%]*%?$/,t)===null)throw new Xf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xFe(t),i=n.length>0?n[0]:"",s=EFe("%"+i+"%",r),a=s.name,o=s.value,u=!1,l=s.alias;l&&(i=l[0],mFe(n,hFe([0,1],l)));for(var c=1,f=!0;c<n.length;c+=1){var d=n[c],h=vx(d,0,1),p=vx(d,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new Xf("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(u=!0),i+="."+d,a="%"+i+"%",_x(Mc,a))o=Mc[a];else if(o!=null){if(!(d in o)){if(!r)throw new Yf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ch&&c+1>=n.length){var m=Ch(o,d);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?o=m.get:o=o[d]}else f=_x(o,d),o=o[d];f&&!u&&(Mc[a]=o)}}return o}});var JJ=_((xut,XJ)=>{"use strict";var _Fe=II();XJ.exports=function(){return _Fe()&&!!Symbol.toStringTag}});var eQ=_((Eut,ZJ)=>{"use strict";var vFe=Nh(),QJ=vFe("%Object.defineProperty%",!0),TFe=JJ()(),SFe=Ex(),wFe=nu(),Tx=TFe?Symbol.toStringTag:null;ZJ.exports=function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new wFe("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Tx&&(n||!SFe(t,Tx))&&(QJ?QJ(t,Tx,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[Tx]=r)}});var rQ=_((_ut,tQ)=>{"use strict";tQ.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var iQ=_((vut,nQ)=>{"use strict";var BI=lX(),AFe=require("util"),LI=require("path"),CFe=require("http"),IFe=require("https"),RFe=require("url").parse,NFe=require("fs"),OFe=require("stream").Stream,PFe=require("crypto"),MI=gX(),DFe=DX(),kFe=eQ(),iu=Ex(),FI=rQ();function pt(e){if(!(this instanceof pt))return new pt(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],BI.call(this),e=e||{};for(var t in e)this[t]=e[t]}AFe.inherits(pt,BI);pt.LINE_BREAK=`\r
`;pt.DEFAULT_CONTENT_TYPE="application/octet-stream";pt.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=BI.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),s=this._multiPartFooter();n(i),n(t),n(s),this._trackLength(i,t,r)};pt.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+pt.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&iu(t,"httpVersion"))&&!(t instanceof OFe))&&(r.knownLength||this._valuesToMeasure.push(t))};pt.prototype._lengthRetriever=function(e,t){iu(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):NFe.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):iu(e,"httpVersion")?t(null,Number(e.headers["content-length"])):iu(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};pt.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),s="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&FI(a,r.header);var o;for(var u in a)if(iu(a,u)){if(o=a[u],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=u+": "+o.join("; ")+pt.LINE_BREAK)}return"--"+this.getBoundary()+pt.LINE_BREAK+s+pt.LINE_BREAK};pt.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=LI.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=LI.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&iu(e,"httpVersion")&&(r=LI.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};pt.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=MI.lookup(e.name)),!r&&e&&e.path&&(r=MI.lookup(e.path)),!r&&e&&e.readable&&iu(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=MI.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=pt.DEFAULT_CONTENT_TYPE),r};pt.prototype._multiPartFooter=function(){return function(e){var t=pt.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};pt.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+pt.LINE_BREAK};pt.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)iu(e,t)&&(r[t.toLowerCase()]=e[t]);return r};pt.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};pt.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};pt.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(pt.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};pt.prototype._generateBoundary=function(){this._boundary="--------------------------"+PFe.randomBytes(12).toString("hex")};pt.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};pt.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};pt.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}DFe.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};pt.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=RFe(e),n=FI({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=FI(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=IFe.request(n):r=CFe.request(n),this.getLength(function(s,a){if(s&&s!=="Unknown stream"){this._error(s);return}if(a&&r.setHeader("Content-Length",a),this.pipe(r),t){var o,u=function(l,c){return r.removeListener("error",u),r.removeListener("response",o),t.call(this,l,c)};o=u.bind(this,null),r.on("error",u),r.on("response",o)}}.bind(this)),r};pt.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};pt.prototype.toString=function(){return"[object FormData]"};kFe(pt.prototype,"FormData");nQ.exports=pt});var EQ=_(xQ=>{"use strict";var XFe=require("url").parse,JFe={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},QFe=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function ZFe(e){var t=typeof e=="string"?XFe(e):e||{},r=t.protocol,n=t.host,i=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||JFe[r]||0,!eBe(n,i)))return"";var s=ed("npm_config_"+r+"_proxy")||ed(r+"_proxy")||ed("npm_config_proxy")||ed("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function eBe(e,t){var r=(ed("npm_config_no_proxy")||ed("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),s=i?i[1]:n,a=i?parseInt(i[2]):0;return a&&a!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!QFe.call(e,s)):e!==s}):!0}function ed(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}xQ.getProxyForUrl=ZFe});var vQ=_((Tct,_Q)=>{var td=1e3,rd=td*60,nd=rd*60,qc=nd*24,tBe=qc*7,rBe=qc*365.25;_Q.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return nBe(e);if(r==="number"&&isFinite(e))return t.long?sBe(e):iBe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function nBe(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*rBe;case"weeks":case"week":case"w":return r*tBe;case"days":case"day":case"d":return r*qc;case"hours":case"hour":case"hrs":case"hr":case"h":return r*nd;case"minutes":case"minute":case"mins":case"min":case"m":return r*rd;case"seconds":case"second":case"secs":case"sec":case"s":return r*td;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function iBe(e){var t=Math.abs(e);return t>=qc?Math.round(e/qc)+"d":t>=nd?Math.round(e/nd)+"h":t>=rd?Math.round(e/rd)+"m":t>=td?Math.round(e/td)+"s":e+"ms"}function sBe(e){var t=Math.abs(e);return t>=qc?Cx(e,t,qc,"day"):t>=nd?Cx(e,t,nd,"hour"):t>=rd?Cx(e,t,rd,"minute"):t>=td?Cx(e,t,td,"second"):e+" ms"}function Cx(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var YI=_((Sct,TQ)=>{function aBe(e){r.debug=r,r.default=r,r.coerce=u,r.disable=a,r.enable=i,r.enabled=o,r.humanize=vQ(),r.destroy=l,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=t;function r(c){let f,d=null,h,p;function m(...y){if(!m.enabled)return;let g=m,v=Number(new Date),E=v-(f||v);g.diff=E,g.prev=f,g.curr=v,f=v,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let x=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(S,w)=>{if(S==="%%")return"%";x++;let A=r.formatters[w];if(typeof A=="function"){let C=y[x];S=A.call(g,C),y.splice(x,1),x--}return S}),r.formatArgs.call(g,y),(g.log||r.log).apply(g,y)}return m.namespace=c,m.useColors=r.useColors(),m.color=r.selectColor(c),m.extend=n,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,p=r.enabled(c)),p),set:y=>{d=y}}),typeof r.init=="function"&&r.init(m),m}function n(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of f)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function s(c,f){let d=0,h=0,p=-1,m=0;for(;d<c.length;)if(h<f.length&&(f[h]===c[d]||f[h]==="*"))f[h]==="*"?(p=h,m=d,h++):(d++,h++);else if(p!==-1)h=p+1,m++,d=m;else return!1;for(;h<f.length&&f[h]==="*";)h++;return h===f.length}function a(){let c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}function o(c){for(let f of r.skips)if(s(c,f))return!1;for(let f of r.names)if(s(c,f))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}TQ.exports=aBe});var SQ=_((si,Ix)=>{si.formatArgs=uBe;si.save=cBe;si.load=lBe;si.useColors=oBe;si.storage=fBe();si.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();si.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function oBe(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function uBe(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ix.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}si.log=console.debug||console.log||(()=>{});function cBe(e){try{e?si.storage.setItem("debug",e):si.storage.removeItem("debug")}catch{}}function lBe(){let e;try{e=si.storage.getItem("debug")||si.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function fBe(){try{return localStorage}catch{}}Ix.exports=YI()(si);var{formatters:dBe}=Ix.exports;dBe.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var AQ=_((wct,wQ)=>{"use strict";wQ.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var RQ=_((Act,IQ)=>{"use strict";var pBe=require("os"),CQ=require("tty"),Ui=AQ(),{env:kr}=process,ou;Ui("no-color")||Ui("no-colors")||Ui("color=false")||Ui("color=never")?ou=0:(Ui("color")||Ui("colors")||Ui("color=true")||Ui("color=always"))&&(ou=1);"FORCE_COLOR"in kr&&(kr.FORCE_COLOR==="true"?ou=1:kr.FORCE_COLOR==="false"?ou=0:ou=kr.FORCE_COLOR.length===0?1:Math.min(parseInt(kr.FORCE_COLOR,10),3));function XI(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function JI(e,t){if(ou===0)return 0;if(Ui("color=16m")||Ui("color=full")||Ui("color=truecolor"))return 3;if(Ui("color=256"))return 2;if(e&&!t&&ou===void 0)return 0;let r=ou||0;if(kr.TERM==="dumb")return r;if(process.platform==="win32"){let n=pBe.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in kr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in kr)||kr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in kr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(kr.TEAMCITY_VERSION)?1:0;if(kr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in kr){let n=parseInt((kr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(kr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(kr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(kr.TERM)||"COLORTERM"in kr?1:r}function hBe(e){let t=JI(e,e&&e.isTTY);return XI(t)}IQ.exports={supportsColor:hBe,stdout:XI(JI(!0,CQ.isatty(1))),stderr:XI(JI(!0,CQ.isatty(2)))}});var OQ=_(($r,Nx)=>{var mBe=require("tty"),Rx=require("util");$r.init=vBe;$r.log=xBe;$r.formatArgs=yBe;$r.save=EBe;$r.load=_Be;$r.useColors=gBe;$r.destroy=Rx.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");$r.colors=[6,2,3,4,5,1];try{let e=RQ();e&&(e.stderr||e).level>=2&&($r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}$r.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function gBe(){return"colors"in $r.inspectOpts?!!$r.inspectOpts.colors:mBe.isatty(process.stderr.fd)}function yBe(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
`).join(`
`+s),e.push(i+"m+"+Nx.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=bBe()+t+" "+e[0]}function bBe(){return $r.inspectOpts.hideDate?"":new Date().toISOString()+" "}function xBe(...e){return process.stderr.write(Rx.formatWithOptions($r.inspectOpts,...e)+`
`)}function EBe(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function _Be(){return process.env.DEBUG}function vBe(e){e.inspectOpts={};let t=Object.keys($r.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=$r.inspectOpts[t[r]]}Nx.exports=YI()($r);var{formatters:NQ}=Nx.exports;NQ.o=function(e){return this.inspectOpts.colors=this.useColors,Rx.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};NQ.O=function(e){return this.inspectOpts.colors=this.useColors,Rx.inspect(e,this.inspectOpts)}});var PQ=_((Cct,QI)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?QI.exports=SQ():QI.exports=OQ()});var kQ=_((Ict,DQ)=>{var kh;DQ.exports=function(){if(!kh){try{kh=PQ()("follow-redirects")}catch{}typeof kh!="function"&&(kh=function(){})}kh.apply(null,arguments)}});var BQ=_((Rct,lR)=>{var Lh=require("url"),$h=Lh.URL,TBe=require("http"),SBe=require("https"),nR=require("stream").Writable,iR=require("assert"),$Q=kQ();(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Uc(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var sR=!1;try{iR(new $h(""))}catch(e){sR=e.code==="ERR_INVALID_URL"}var wBe=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],aR=["abort","aborted","connect","error","socket","timeout"],oR=Object.create(null);aR.forEach(function(e){oR[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var eR=Mh("ERR_INVALID_URL","Invalid URL",TypeError),tR=Mh("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ABe=Mh("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",tR),CBe=Mh("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),IBe=Mh("ERR_STREAM_WRITE_AFTER_END","write after end"),RBe=nR.prototype.destroy||MQ;function ai(e,t){nR.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(i){r.emit("error",i instanceof tR?i:new tR({cause:i}))}},this._performRequest()}ai.prototype=Object.create(nR.prototype);ai.prototype.abort=function(){cR(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ai.prototype.destroy=function(e){return cR(this._currentRequest,e),RBe.call(this,e),this};ai.prototype.write=function(e,t,r){if(this._ending)throw new IBe;if(!jc(e)&&!PBe(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Uc(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new CBe),this.abort())};ai.prototype.end=function(e,t,r){if(Uc(e)?(r=e,e=t=null):Uc(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};ai.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};ai.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};ai.prototype.setTimeout=function(e,t){var r=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(a)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){ai.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(ai.prototype,e,{get:function(){return this._currentRequest[e]}})});ai.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};ai.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of aR)n.on(i,oR[i]);if(this._currentUrl=/^\//.test(this._options.path)?Lh.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,o=this._requestBodyBuffers;(function u(l){if(n===a._currentRequest)if(l)a.emit("error",l);else if(s<o.length){var c=o[s++];n.finished||n.write(c.data,c.encoding,u)}else a._ended&&n.end()})()}};ai.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(cR(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ABe;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ZI(/^content-/i,this._options.headers));var a=ZI(/^host$/i,this._options.headers),o=uR(this._currentUrl),u=a||o.host,l=/^\w+:/.test(r)?this._currentUrl:Lh.format(Object.assign(o,{host:u})),c=NBe(r,l);if($Q("redirecting to",c.href),this._isRedirect=!0,rR(c,this._options),(c.protocol!==o.protocol&&c.protocol!=="https:"||c.host!==u&&!OBe(c.host,u))&&ZI(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Uc(i)){var f={headers:e.headers,statusCode:t},d={url:l,method:s,headers:n};i(this._options,f,d),this._sanitizeOptions(this._options)}this._performRequest()};function LQ(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],a=t[n]=Object.create(s);function o(l,c,f){return DBe(l)?l=rR(l):jc(l)?l=rR(uR(l)):(f=c,c=FQ(l),l={protocol:i}),Uc(c)&&(f=c,c=null),c=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,c),c.nativeProtocols=r,!jc(c.host)&&!jc(c.hostname)&&(c.hostname="::1"),iR.equal(c.protocol,i,"protocol mismatch"),$Q("options",c),new ai(c,f)}function u(l,c,f){var d=a.request(l,c,f);return d.end(),d}Object.defineProperties(a,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function MQ(){}function uR(e){var t;if(sR)t=new $h(e);else if(t=FQ(Lh.parse(e)),!jc(t.protocol))throw new eR({input:e});return t}function NBe(e,t){return sR?new $h(e,t):uR(Lh.resolve(t,e))}function FQ(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new eR({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new eR({input:e.href||e});return e}function rR(e,t){var r=t||{};for(var n of wBe)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function ZI(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Mh(e,t,r){function n(i){Uc(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}function cR(e,t){for(var r of aR)e.removeListener(r,oR[r]);e.on("error",MQ),e.destroy(t)}function OBe(e,t){iR(jc(e)&&jc(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function jc(e){return typeof e=="string"||e instanceof String}function Uc(e){return typeof e=="function"}function PBe(e){return typeof e=="object"&&"length"in e}function DBe(e){return $h&&e instanceof $h}lR.exports=LQ({http:TBe,https:SBe});lR.exports.wrap=LQ});var rE=_(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.AttributeAction=na.IgnoreCaseMode=na.SelectorType=void 0;var eje;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(eje=na.SelectorType||(na.SelectorType={}));na.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var tje;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(tje=na.AttributeAction||(na.AttributeAction={}))});var pee=_(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.parse=dd.isTraversal=void 0;var At=rE(),cee=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,rje=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,nje=new Map([[126,At.AttributeAction.Element],[94,At.AttributeAction.Start],[36,At.AttributeAction.End],[42,At.AttributeAction.Any],[33,At.AttributeAction.Not],[124,At.AttributeAction.Hyphen]]),ije=new Set(["has","not","matches","is","where","host","host-context"]);function fee(e){switch(e.type){case At.SelectorType.Adjacent:case At.SelectorType.Child:case At.SelectorType.Descendant:case At.SelectorType.Parent:case At.SelectorType.Sibling:case At.SelectorType.ColumnCombinator:return!0;default:return!1}}dd.isTraversal=fee;var sje=new Set(["contains","icontains"]);function aje(e,t,r){var n=parseInt(t,16)-65536;return n!==n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function Qh(e){return e.replace(rje,aje)}function qR(e){return e===39||e===34}function lee(e){return e===32||e===9||e===10||e===12||e===13}function oje(e){var t=[],r=dee(t,"".concat(e),0);if(r<e.length)throw new Error("Unmatched selector: ".concat(e.slice(r)));return t}dd.parse=oje;function dee(e,t,r){var n=[];function i(P){var k=t.slice(r+P).match(cee);if(!k)throw new Error("Expected name, found ".concat(t.slice(r)));var K=k[0];return r+=P+K.length,Qh(K)}function s(P){for(r+=P;r<t.length&&lee(t.charCodeAt(r));)r++}function a(){r+=1;for(var P=r,k=1;k>0&&r<t.length;r++)t.charCodeAt(r)===40&&!o(r)?k++:t.charCodeAt(r)===41&&!o(r)&&k--;if(k)throw new Error("Parenthesis not matched");return Qh(t.slice(P,r-1))}function o(P){for(var k=0;t.charCodeAt(--P)===92;)k++;return(k&1)===1}function u(){if(n.length>0&&fee(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function l(P){if(n.length>0&&n[n.length-1].type===At.SelectorType.Descendant){n[n.length-1].type=P;return}u(),n.push({type:P})}function c(P,k){n.push({type:At.SelectorType.Attribute,name:P,action:k,value:i(1),namespace:null,ignoreCase:"quirks"})}function f(){if(n.length&&n[n.length-1].type===At.SelectorType.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");e.push(n)}if(s(0),t.length===r)return r;e:for(;r<t.length;){var d=t.charCodeAt(r);switch(d){case 32:case 9:case 10:case 12:case 13:{(n.length===0||n[0].type!==At.SelectorType.Descendant)&&(u(),n.push({type:At.SelectorType.Descendant})),s(1);break}case 62:{l(At.SelectorType.Child),s(1);break}case 60:{l(At.SelectorType.Parent),s(1);break}case 126:{l(At.SelectorType.Sibling),s(1);break}case 43:{l(At.SelectorType.Adjacent),s(1);break}case 46:{c("class",At.AttributeAction.Element);break}case 35:{c("id",At.AttributeAction.Equals);break}case 91:{s(1);var h=void 0,p=null;t.charCodeAt(r)===124?h=i(1):t.startsWith("*|",r)?(p="*",h=i(2)):(h=i(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(p=h,h=i(1))),s(0);var m=At.AttributeAction.Exists,y=nje.get(t.charCodeAt(r));if(y){if(m=y,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(r)===61&&(m=At.AttributeAction.Equals,s(1));var g="",v=null;if(m!=="exists"){if(qR(t.charCodeAt(r))){for(var E=t.charCodeAt(r),x=r+1;x<t.length&&(t.charCodeAt(x)!==E||o(x));)x+=1;if(t.charCodeAt(x)!==E)throw new Error("Attribute value didn't end");g=Qh(t.slice(r+1,x)),r=x+1}else{for(var T=r;r<t.length&&(!lee(t.charCodeAt(r))&&t.charCodeAt(r)!==93||o(r));)r+=1;g=Qh(t.slice(T,r))}s(0);var S=t.charCodeAt(r)|32;S===115?(v=!1,s(1)):S===105&&(v=!0,s(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;var w={type:At.SelectorType.Attribute,name:h,action:m,value:g,namespace:p,ignoreCase:v};n.push(w);break}case 58:{if(t.charCodeAt(r+1)===58){n.push({type:At.SelectorType.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(r)===40?a():null});continue}var A=i(1).toLowerCase(),C=null;if(t.charCodeAt(r)===40)if(ije.has(A)){if(qR(t.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(A," cannot be quoted"));if(C=[],r=dee(C,t,r+1),t.charCodeAt(r)!==41)throw new Error("Missing closing parenthesis in :".concat(A," (").concat(t,")"));r+=1}else{if(C=a(),sje.has(A)){var I=C.charCodeAt(0);I===C.charCodeAt(C.length-1)&&qR(I)&&(C=C.slice(1,-1))}C=Qh(C)}n.push({type:At.SelectorType.Pseudo,name:A,data:C});break}case 44:{f(),n=[],s(1);break}default:{if(t.startsWith("/*",r)){var M=t.indexOf("*/",r+2);if(M<0)throw new Error("Comment was not terminated");r=M+2,n.length===0&&s(0);break}var p=null,R=void 0;if(d===42)r+=1,R="*";else if(d===124){if(R="",t.charCodeAt(r+1)===124){l(At.SelectorType.ColumnCombinator),s(2);break}}else if(cee.test(t.slice(r)))R=i(0);else break e;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(p=R,t.charCodeAt(r+1)===42?(R="*",r+=2):R=i(1)),n.push(R==="*"?{type:At.SelectorType.Universal,namespace:p}:{type:At.SelectorType.Tag,name:R,namespace:p})}}}return f(),r}});var Eee=_(hd=>{"use strict";var nE=hd&&hd.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Object.defineProperty(hd,"__esModule",{value:!0});hd.stringify=void 0;var sr=rE(),gee=["\\",'"'],yee=nE(nE([],gee,!0),["(",")"],!1),uje=new Set(gee.map(function(e){return e.charCodeAt(0)})),hee=new Set(yee.map(function(e){return e.charCodeAt(0)})),pd=new Set(nE(nE([],yee,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(e){return e.charCodeAt(0)}));function bee(e){return e.map(function(t){return t.map(cje).join("")}).join(", ")}hd.stringify=bee;function cje(e,t,r){switch(e.type){case sr.SelectorType.Child:return t===0?"> ":" > ";case sr.SelectorType.Parent:return t===0?"< ":" < ";case sr.SelectorType.Sibling:return t===0?"~ ":" ~ ";case sr.SelectorType.Adjacent:return t===0?"+ ":" + ";case sr.SelectorType.Descendant:return" ";case sr.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case sr.SelectorType.Universal:return e.namespace==="*"&&t+1<r.length&&"name"in r[t+1]?"":"".concat(xee(e.namespace),"*");case sr.SelectorType.Tag:return mee(e);case sr.SelectorType.PseudoElement:return"::".concat(Qa(e.name,pd)).concat(e.data===null?"":"(".concat(Qa(e.data,hee),")"));case sr.SelectorType.Pseudo:return":".concat(Qa(e.name,pd)).concat(e.data===null?"":"(".concat(typeof e.data=="string"?Qa(e.data,hee):bee(e.data),")"));case sr.SelectorType.Attribute:{if(e.name==="id"&&e.action===sr.AttributeAction.Equals&&e.ignoreCase==="quirks"&&!e.namespace)return"#".concat(Qa(e.value,pd));if(e.name==="class"&&e.action===sr.AttributeAction.Element&&e.ignoreCase==="quirks"&&!e.namespace)return".".concat(Qa(e.value,pd));var n=mee(e);return e.action===sr.AttributeAction.Exists?"[".concat(n,"]"):"[".concat(n).concat(lje(e.action),'="').concat(Qa(e.value,uje),'"').concat(e.ignoreCase===null?"":e.ignoreCase?" i":" s","]")}}}function lje(e){switch(e){case sr.AttributeAction.Equals:return"";case sr.AttributeAction.Element:return"~";case sr.AttributeAction.Start:return"^";case sr.AttributeAction.End:return"$";case sr.AttributeAction.Any:return"*";case sr.AttributeAction.Not:return"!";case sr.AttributeAction.Hyphen:return"|";case sr.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function mee(e){return"".concat(xee(e.namespace)).concat(Qa(e.name,pd))}function xee(e){return e!==null?"".concat(e==="*"?"*":Qa(e,pd),"|"):""}function Qa(e,t){for(var r=0,n="",i=0;i<e.length;i++)t.has(e.charCodeAt(i))&&(n+="".concat(e.slice(r,i),"\\").concat(e.charAt(i)),r=i+1);return n.length>0?n+e.slice(r):e}});var md=_(xi=>{"use strict";var fje=xi&&xi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),dje=xi&&xi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fje(t,e,r)};Object.defineProperty(xi,"__esModule",{value:!0});xi.stringify=xi.parse=xi.isTraversal=void 0;dje(rE(),xi);var _ee=pee();Object.defineProperty(xi,"isTraversal",{enumerable:!0,get:function(){return _ee.isTraversal}});Object.defineProperty(xi,"parse",{enumerable:!0,get:function(){return _ee.parse}});var pje=Eee();Object.defineProperty(xi,"stringify",{enumerable:!0,get:function(){return pje.stringify}})});var mu=_((h0t,vee)=>{vee.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var LE=_((AN,CN)=>{(function(e,t){typeof AN=="object"&&typeof CN<"u"?CN.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(AN,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",s="minute",a="hour",o="day",u="week",l="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var P=["th","st","nd","rd"],k=R%100;return"["+R+(P[(k-20)%10]||P[k]||P[0])+"]"}},g=function(R,P,k){var K=String(R);return!K||K.length>=P?R:""+Array(P+1-K.length).join(k)+R},v={s:g,z:function(R){var P=-R.utcOffset(),k=Math.abs(P),K=Math.floor(k/60),z=k%60;return(P<=0?"+":"-")+g(K,2,"0")+":"+g(z,2,"0")},m:function R(P,k){if(P.date()<k.date())return-R(k,P);var K=12*(k.year()-P.year())+(k.month()-P.month()),z=P.clone().add(K,l),G=k-z<0,te=P.clone().add(K+(G?-1:1),l);return+(-(K+(k-z)/(G?z-te:te-z))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:l,y:f,w:u,d:o,D:d,h:a,m:s,s:i,ms:n,Q:c}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},E="en",x={};x[E]=y;var T="$isDayjsObject",S=function(R){return R instanceof I||!(!R||!R[T])},w=function R(P,k,K){var z;if(!P)return E;if(typeof P=="string"){var G=P.toLowerCase();x[G]&&(z=G),k&&(x[G]=k,z=G);var te=P.split("-");if(!z&&te.length>1)return R(te[0])}else{var j=P.name;x[j]=P,z=j}return!K&&z&&(E=z),z||!K&&E},A=function(R,P){if(S(R))return R.clone();var k=typeof P=="object"?P:{};return k.date=R,k.args=arguments,new I(k)},C=v;C.l=w,C.i=S,C.w=function(R,P){return A(R,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var I=function(){function R(k){this.$L=w(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[T]=!0}var P=R.prototype;return P.parse=function(k){this.$d=function(K){var z=K.date,G=K.utc;if(z===null)return new Date(NaN);if(C.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var te=z.match(p);if(te){var j=te[2]-1||0,ee=(te[7]||"0").substring(0,3);return G?new Date(Date.UTC(te[1],j,te[3]||1,te[4]||0,te[5]||0,te[6]||0,ee)):new Date(te[1],j,te[3]||1,te[4]||0,te[5]||0,te[6]||0,ee)}}return new Date(z)}(k),this.init()},P.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},P.$utils=function(){return C},P.isValid=function(){return this.$d.toString()!==h},P.isSame=function(k,K){var z=A(k);return this.startOf(K)<=z&&z<=this.endOf(K)},P.isAfter=function(k,K){return A(k)<this.startOf(K)},P.isBefore=function(k,K){return this.endOf(K)<A(k)},P.$g=function(k,K,z){return C.u(k)?this[K]:this.set(z,k)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(k,K){var z=this,G=!!C.u(K)||K,te=C.p(k),j=function(be,he){var O=C.w(z.$u?Date.UTC(z.$y,he,be):new Date(z.$y,he,be),z);return G?O:O.endOf(o)},ee=function(be,he){return C.w(z.toDate()[be].apply(z.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(he)),z)},re=this.$W,Z=this.$M,se=this.$D,Se="set"+(this.$u?"UTC":"");switch(te){case f:return G?j(1,0):j(31,11);case l:return G?j(1,Z):j(0,Z+1);case u:var ve=this.$locale().weekStart||0,_e=(re<ve?re+7:re)-ve;return j(G?se-_e:se+(6-_e),Z);case o:case d:return ee(Se+"Hours",0);case a:return ee(Se+"Minutes",1);case s:return ee(Se+"Seconds",2);case i:return ee(Se+"Milliseconds",3);default:return this.clone()}},P.endOf=function(k){return this.startOf(k,!1)},P.$set=function(k,K){var z,G=C.p(k),te="set"+(this.$u?"UTC":""),j=(z={},z[o]=te+"Date",z[d]=te+"Date",z[l]=te+"Month",z[f]=te+"FullYear",z[a]=te+"Hours",z[s]=te+"Minutes",z[i]=te+"Seconds",z[n]=te+"Milliseconds",z)[G],ee=G===o?this.$D+(K-this.$W):K;if(G===l||G===f){var re=this.clone().set(d,1);re.$d[j](ee),re.init(),this.$d=re.set(d,Math.min(this.$D,re.daysInMonth())).$d}else j&&this.$d[j](ee);return this.init(),this},P.set=function(k,K){return this.clone().$set(k,K)},P.get=function(k){return this[C.p(k)]()},P.add=function(k,K){var z,G=this;k=Number(k);var te=C.p(K),j=function(Z){var se=A(G);return C.w(se.date(se.date()+Math.round(Z*k)),G)};if(te===l)return this.set(l,this.$M+k);if(te===f)return this.set(f,this.$y+k);if(te===o)return j(1);if(te===u)return j(7);var ee=(z={},z[s]=t,z[a]=r,z[i]=e,z)[te]||1,re=this.$d.getTime()+k*ee;return C.w(re,this)},P.subtract=function(k,K){return this.add(-1*k,K)},P.format=function(k){var K=this,z=this.$locale();if(!this.isValid())return z.invalidDate||h;var G=k||"YYYY-MM-DDTHH:mm:ssZ",te=C.z(this),j=this.$H,ee=this.$m,re=this.$M,Z=z.weekdays,se=z.months,Se=z.meridiem,ve=function(he,O,$,B){return he&&(he[O]||he(K,G))||$[O].slice(0,B)},_e=function(he){return C.s(j%12||12,he,"0")},be=Se||function(he,O,$){var B=he<12?"AM":"PM";return $?B.toLowerCase():B};return G.replace(m,function(he,O){return O||function($){switch($){case"YY":return String(K.$y).slice(-2);case"YYYY":return C.s(K.$y,4,"0");case"M":return re+1;case"MM":return C.s(re+1,2,"0");case"MMM":return ve(z.monthsShort,re,se,3);case"MMMM":return ve(se,re);case"D":return K.$D;case"DD":return C.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return ve(z.weekdaysMin,K.$W,Z,2);case"ddd":return ve(z.weekdaysShort,K.$W,Z,3);case"dddd":return Z[K.$W];case"H":return String(j);case"HH":return C.s(j,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return be(j,ee,!0);case"A":return be(j,ee,!1);case"m":return String(ee);case"mm":return C.s(ee,2,"0");case"s":return String(K.$s);case"ss":return C.s(K.$s,2,"0");case"SSS":return C.s(K.$ms,3,"0");case"Z":return te}return null}(he)||te.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(k,K,z){var G,te=this,j=C.p(K),ee=A(k),re=(ee.utcOffset()-this.utcOffset())*t,Z=this-ee,se=function(){return C.m(te,ee)};switch(j){case f:G=se()/12;break;case l:G=se();break;case c:G=se()/3;break;case u:G=(Z-re)/6048e5;break;case o:G=(Z-re)/864e5;break;case a:G=Z/r;break;case s:G=Z/t;break;case i:G=Z/e;break;default:G=Z}return z?G:C.a(G)},P.daysInMonth=function(){return this.endOf(l).$D},P.$locale=function(){return x[this.$L]},P.locale=function(k,K){if(!k)return this.$L;var z=this.clone(),G=w(k,K,!0);return G&&(z.$L=G),z},P.clone=function(){return C.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},R}(),M=I.prototype;return A.prototype=M,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",o],["$M",l],["$y",f],["$D",d]].forEach(function(R){M[R[1]]=function(P){return this.$g(P,R[0],R[1])}}),A.extend=function(R,P){return R.$i||(R(P,I,A),R.$i=!0),A},A.locale=w,A.isDayjs=S,A.unix=function(R){return A(1e3*R)},A.en=x[E],A.Ls=x,A.p={},A})});var it=_((ME,are)=>{(function(e,t){typeof ME=="object"?are.exports=ME=t():typeof define=="function"&&define.amd?define([],t):e.CryptoJS=t()})(ME,function(){var e=e||function(t,r){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof require=="function")try{n=require("crypto")}catch{}var i=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function g(){}return function(v){var E;return g.prototype=v,E=new g,g.prototype=null,E}}(),a={},o=a.lib={},u=o.Base=function(){return{extend:function(g){var v=s(this);return g&&v.mixIn(g),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var v in g)g.hasOwnProperty(v)&&(this[v]=g[v]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=o.WordArray=u.extend({init:function(g,v){g=this.words=g||[],v!=r?this.sigBytes=v:this.sigBytes=g.length*4},toString:function(g){return(g||f).stringify(this)},concat:function(g){var v=this.words,E=g.words,x=this.sigBytes,T=g.sigBytes;if(this.clamp(),x%4)for(var S=0;S<T;S++){var w=E[S>>>2]>>>24-S%4*8&255;v[x+S>>>2]|=w<<24-(x+S)%4*8}else for(var A=0;A<T;A+=4)v[x+A>>>2]=E[A>>>2];return this.sigBytes+=T,this},clamp:function(){var g=this.words,v=this.sigBytes;g[v>>>2]&=4294967295<<32-v%4*8,g.length=t.ceil(v/4)},clone:function(){var g=u.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var v=[],E=0;E<g;E+=4)v.push(i());return new l.init(v,g)}}),c=a.enc={},f=c.Hex={stringify:function(g){for(var v=g.words,E=g.sigBytes,x=[],T=0;T<E;T++){var S=v[T>>>2]>>>24-T%4*8&255;x.push((S>>>4).toString(16)),x.push((S&15).toString(16))}return x.join("")},parse:function(g){for(var v=g.length,E=[],x=0;x<v;x+=2)E[x>>>3]|=parseInt(g.substr(x,2),16)<<24-x%8*4;return new l.init(E,v/2)}},d=c.Latin1={stringify:function(g){for(var v=g.words,E=g.sigBytes,x=[],T=0;T<E;T++){var S=v[T>>>2]>>>24-T%4*8&255;x.push(String.fromCharCode(S))}return x.join("")},parse:function(g){for(var v=g.length,E=[],x=0;x<v;x++)E[x>>>2]|=(g.charCodeAt(x)&255)<<24-x%4*8;return new l.init(E,v)}},h=c.Utf8={stringify:function(g){try{return decodeURIComponent(escape(d.stringify(g)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(g){return d.parse(unescape(encodeURIComponent(g)))}},p=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=h.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var v,E=this._data,x=E.words,T=E.sigBytes,S=this.blockSize,w=S*4,A=T/w;g?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var C=A*S,I=t.min(C*4,T);if(C){for(var M=0;M<C;M+=S)this._doProcessBlock(x,M);v=x.splice(0,C),E.sigBytes-=I}return new l.init(v,I)},clone:function(){var g=u.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0}),m=o.Hasher=p.extend({cfg:u.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var v=this._doFinalize();return v},blockSize:512/32,_createHelper:function(g){return function(v,E){return new g.init(E).finalize(v)}},_createHmacHelper:function(g){return function(v,E){return new y.HMAC.init(g,E).finalize(v)}}}),y=a.algo={};return a}(Math);return e})});var bm=_((FE,ore)=>{(function(e,t){typeof FE=="object"?ore.exports=FE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(FE,function(e){return function(t){var r=e,n=r.lib,i=n.Base,s=n.WordArray,a=r.x64={},o=a.Word=i.extend({init:function(l,c){this.high=l,this.low=c}}),u=a.WordArray=i.extend({init:function(l,c){l=this.words=l||[],c!=t?this.sigBytes=c:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,c=l.length,f=[],d=0;d<c;d++){var h=l[d];f.push(h.high),f.push(h.low)}return s.create(f,this.sigBytes)},clone:function(){for(var l=i.clone.call(this),c=l.words=this.words.slice(0),f=c.length,d=0;d<f;d++)c[d]=c[d].clone();return l}})}(),e})});var cre=_((BE,ure)=>{(function(e,t){typeof BE=="object"?ure.exports=BE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(BE,function(e){return function(){if(typeof ArrayBuffer=="function"){var t=e,r=t.lib,n=r.WordArray,i=n.init,s=n.init=function(a){if(a instanceof ArrayBuffer&&(a=new Uint8Array(a)),(a instanceof Int8Array||typeof Uint8ClampedArray<"u"&&a instanceof Uint8ClampedArray||a instanceof Int16Array||a instanceof Uint16Array||a instanceof Int32Array||a instanceof Uint32Array||a instanceof Float32Array||a instanceof Float64Array)&&(a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength)),a instanceof Uint8Array){for(var o=a.byteLength,u=[],l=0;l<o;l++)u[l>>>2]|=a[l]<<24-l%4*8;i.call(this,u,o)}else i.apply(this,arguments)};s.prototype=n}}(),e.lib.WordArray})});var fre=_((qE,lre)=>{(function(e,t){typeof qE=="object"?lre.exports=qE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(qE,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc,s=i.Utf16=i.Utf16BE={stringify:function(o){for(var u=o.words,l=o.sigBytes,c=[],f=0;f<l;f+=2){var d=u[f>>>2]>>>16-f%4*8&65535;c.push(String.fromCharCode(d))}return c.join("")},parse:function(o){for(var u=o.length,l=[],c=0;c<u;c++)l[c>>>1]|=o.charCodeAt(c)<<16-c%2*16;return n.create(l,u*2)}};i.Utf16LE={stringify:function(o){for(var u=o.words,l=o.sigBytes,c=[],f=0;f<l;f+=2){var d=a(u[f>>>2]>>>16-f%4*8&65535);c.push(String.fromCharCode(d))}return c.join("")},parse:function(o){for(var u=o.length,l=[],c=0;c<u;c++)l[c>>>1]|=a(o.charCodeAt(c)<<16-c%2*16);return n.create(l,u*2)}};function a(o){return o<<8&4278255360|o>>>8&16711935}}(),e.enc.Utf16})});var vu=_((jE,dre)=>{(function(e,t){typeof jE=="object"?dre.exports=jE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(jE,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc,s=i.Base64={stringify:function(o){var u=o.words,l=o.sigBytes,c=this._map;o.clamp();for(var f=[],d=0;d<l;d+=3)for(var h=u[d>>>2]>>>24-d%4*8&255,p=u[d+1>>>2]>>>24-(d+1)%4*8&255,m=u[d+2>>>2]>>>24-(d+2)%4*8&255,y=h<<16|p<<8|m,g=0;g<4&&d+g*.75<l;g++)f.push(c.charAt(y>>>6*(3-g)&63));var v=c.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join("")},parse:function(o){var u=o.length,l=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var f=0;f<l.length;f++)c[l.charCodeAt(f)]=f}var d=l.charAt(64);if(d){var h=o.indexOf(d);h!==-1&&(u=h)}return a(o,u,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(o,u,l){for(var c=[],f=0,d=0;d<u;d++)if(d%4){var h=l[o.charCodeAt(d-1)]<<d%4*2,p=l[o.charCodeAt(d)]>>>6-d%4*2,m=h|p;c[f>>>2]|=m<<24-f%4*8,f++}return n.create(c,f)}}(),e.enc.Base64})});var hre=_((UE,pre)=>{(function(e,t){typeof UE=="object"?pre.exports=UE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(UE,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc,s=i.Base64url={stringify:function(o,u){u===void 0&&(u=!0);var l=o.words,c=o.sigBytes,f=u?this._safe_map:this._map;o.clamp();for(var d=[],h=0;h<c;h+=3)for(var p=l[h>>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,y=l[h+2>>>2]>>>24-(h+2)%4*8&255,g=p<<16|m<<8|y,v=0;v<4&&h+v*.75<c;v++)d.push(f.charAt(g>>>6*(3-v)&63));var E=f.charAt(64);if(E)for(;d.length%4;)d.push(E);return d.join("")},parse:function(o,u){u===void 0&&(u=!0);var l=o.length,c=u?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<c.length;d++)f[c.charCodeAt(d)]=d}var h=c.charAt(64);if(h){var p=o.indexOf(h);p!==-1&&(l=p)}return a(o,l,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(o,u,l){for(var c=[],f=0,d=0;d<u;d++)if(d%4){var h=l[o.charCodeAt(d-1)]<<d%4*2,p=l[o.charCodeAt(d)]>>>6-d%4*2,m=h|p;c[f>>>2]|=m<<24-f%4*8,f++}return n.create(c,f)}}(),e.enc.Base64url})});var Tu=_((HE,mre)=>{(function(e,t){typeof HE=="object"?mre.exports=HE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(HE,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.algo,o=[];(function(){for(var h=0;h<64;h++)o[h]=t.abs(t.sin(h+1))*4294967296|0})();var u=a.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,p){for(var m=0;m<16;m++){var y=p+m,g=h[y];h[y]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,E=h[p+0],x=h[p+1],T=h[p+2],S=h[p+3],w=h[p+4],A=h[p+5],C=h[p+6],I=h[p+7],M=h[p+8],R=h[p+9],P=h[p+10],k=h[p+11],K=h[p+12],z=h[p+13],G=h[p+14],te=h[p+15],j=v[0],ee=v[1],re=v[2],Z=v[3];j=l(j,ee,re,Z,E,7,o[0]),Z=l(Z,j,ee,re,x,12,o[1]),re=l(re,Z,j,ee,T,17,o[2]),ee=l(ee,re,Z,j,S,22,o[3]),j=l(j,ee,re,Z,w,7,o[4]),Z=l(Z,j,ee,re,A,12,o[5]),re=l(re,Z,j,ee,C,17,o[6]),ee=l(ee,re,Z,j,I,22,o[7]),j=l(j,ee,re,Z,M,7,o[8]),Z=l(Z,j,ee,re,R,12,o[9]),re=l(re,Z,j,ee,P,17,o[10]),ee=l(ee,re,Z,j,k,22,o[11]),j=l(j,ee,re,Z,K,7,o[12]),Z=l(Z,j,ee,re,z,12,o[13]),re=l(re,Z,j,ee,G,17,o[14]),ee=l(ee,re,Z,j,te,22,o[15]),j=c(j,ee,re,Z,x,5,o[16]),Z=c(Z,j,ee,re,C,9,o[17]),re=c(re,Z,j,ee,k,14,o[18]),ee=c(ee,re,Z,j,E,20,o[19]),j=c(j,ee,re,Z,A,5,o[20]),Z=c(Z,j,ee,re,P,9,o[21]),re=c(re,Z,j,ee,te,14,o[22]),ee=c(ee,re,Z,j,w,20,o[23]),j=c(j,ee,re,Z,R,5,o[24]),Z=c(Z,j,ee,re,G,9,o[25]),re=c(re,Z,j,ee,S,14,o[26]),ee=c(ee,re,Z,j,M,20,o[27]),j=c(j,ee,re,Z,z,5,o[28]),Z=c(Z,j,ee,re,T,9,o[29]),re=c(re,Z,j,ee,I,14,o[30]),ee=c(ee,re,Z,j,K,20,o[31]),j=f(j,ee,re,Z,A,4,o[32]),Z=f(Z,j,ee,re,M,11,o[33]),re=f(re,Z,j,ee,k,16,o[34]),ee=f(ee,re,Z,j,G,23,o[35]),j=f(j,ee,re,Z,x,4,o[36]),Z=f(Z,j,ee,re,w,11,o[37]),re=f(re,Z,j,ee,I,16,o[38]),ee=f(ee,re,Z,j,P,23,o[39]),j=f(j,ee,re,Z,z,4,o[40]),Z=f(Z,j,ee,re,E,11,o[41]),re=f(re,Z,j,ee,S,16,o[42]),ee=f(ee,re,Z,j,C,23,o[43]),j=f(j,ee,re,Z,R,4,o[44]),Z=f(Z,j,ee,re,K,11,o[45]),re=f(re,Z,j,ee,te,16,o[46]),ee=f(ee,re,Z,j,T,23,o[47]),j=d(j,ee,re,Z,E,6,o[48]),Z=d(Z,j,ee,re,I,10,o[49]),re=d(re,Z,j,ee,G,15,o[50]),ee=d(ee,re,Z,j,A,21,o[51]),j=d(j,ee,re,Z,K,6,o[52]),Z=d(Z,j,ee,re,S,10,o[53]),re=d(re,Z,j,ee,P,15,o[54]),ee=d(ee,re,Z,j,x,21,o[55]),j=d(j,ee,re,Z,M,6,o[56]),Z=d(Z,j,ee,re,te,10,o[57]),re=d(re,Z,j,ee,C,15,o[58]),ee=d(ee,re,Z,j,z,21,o[59]),j=d(j,ee,re,Z,w,6,o[60]),Z=d(Z,j,ee,re,k,10,o[61]),re=d(re,Z,j,ee,T,15,o[62]),ee=d(ee,re,Z,j,R,21,o[63]),v[0]=v[0]+j|0,v[1]=v[1]+ee|0,v[2]=v[2]+re|0,v[3]=v[3]+Z|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;p[y>>>5]|=128<<24-y%32;var g=t.floor(m/4294967296),v=m;p[(y+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,p[(y+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,h.sigBytes=(p.length+1)*4,this._process();for(var E=this._hash,x=E.words,T=0;T<4;T++){var S=x[T];x[T]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return E},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});function l(h,p,m,y,g,v,E){var x=h+(p&m|~p&y)+g+E;return(x<<v|x>>>32-v)+p}function c(h,p,m,y,g,v,E){var x=h+(p&y|m&~y)+g+E;return(x<<v|x>>>32-v)+p}function f(h,p,m,y,g,v,E){var x=h+(p^m^y)+g+E;return(x<<v|x>>>32-v)+p}function d(h,p,m,y,g,v,E){var x=h+(m^(p|~y))+g+E;return(x<<v|x>>>32-v)+p}r.MD5=s._createHelper(u),r.HmacMD5=s._createHmacHelper(u)}(Math),e.MD5})});var IN=_((zE,gre)=>{(function(e,t){typeof zE=="object"?gre.exports=zE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(zE,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,s=t.algo,a=[],o=s.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,l){for(var c=this._hash.words,f=c[0],d=c[1],h=c[2],p=c[3],m=c[4],y=0;y<80;y++){if(y<16)a[y]=u[l+y]|0;else{var g=a[y-3]^a[y-8]^a[y-14]^a[y-16];a[y]=g<<1|g>>>31}var v=(f<<5|f>>>27)+m+a[y];y<20?v+=(d&h|~d&p)+1518500249:y<40?v+=(d^h^p)+1859775393:y<60?v+=(d&h|d&p|h&p)-1894007588:v+=(d^h^p)-899497514,m=p,p=h,h=d<<30|d>>>2,d=f,f=v}c[0]=c[0]+f|0,c[1]=c[1]+d|0,c[2]=c[2]+h|0,c[3]=c[3]+p|0,c[4]=c[4]+m|0},_doFinalize:function(){var u=this._data,l=u.words,c=this._nDataBytes*8,f=u.sigBytes*8;return l[f>>>5]|=128<<24-f%32,l[(f+64>>>9<<4)+14]=Math.floor(c/4294967296),l[(f+64>>>9<<4)+15]=c,u.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var u=i.clone.call(this);return u._hash=this._hash.clone(),u}});t.SHA1=i._createHelper(o),t.HmacSHA1=i._createHmacHelper(o)}(),e.SHA1})});var GE=_((VE,yre)=>{(function(e,t){typeof VE=="object"?yre.exports=VE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(VE,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.algo,o=[],u=[];(function(){function f(m){for(var y=t.sqrt(m),g=2;g<=y;g++)if(!(m%g))return!1;return!0}function d(m){return(m-(m|0))*4294967296|0}for(var h=2,p=0;p<64;)f(h)&&(p<8&&(o[p]=d(t.pow(h,1/2))),u[p]=d(t.pow(h,1/3)),p++),h++})();var l=[],c=a.SHA256=s.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(f,d){for(var h=this._hash.words,p=h[0],m=h[1],y=h[2],g=h[3],v=h[4],E=h[5],x=h[6],T=h[7],S=0;S<64;S++){if(S<16)l[S]=f[d+S]|0;else{var w=l[S-15],A=(w<<25|w>>>7)^(w<<14|w>>>18)^w>>>3,C=l[S-2],I=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;l[S]=A+l[S-7]+I+l[S-16]}var M=v&E^~v&x,R=p&m^p&y^m&y,P=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),k=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),K=T+k+M+u[S]+l[S],z=P+R;T=x,x=E,E=v,v=g+K|0,g=y,y=m,m=p,p=K+z|0}h[0]=h[0]+p|0,h[1]=h[1]+m|0,h[2]=h[2]+y|0,h[3]=h[3]+g|0,h[4]=h[4]+v|0,h[5]=h[5]+E|0,h[6]=h[6]+x|0,h[7]=h[7]+T|0},_doFinalize:function(){var f=this._data,d=f.words,h=this._nDataBytes*8,p=f.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=t.floor(h/4294967296),d[(p+64>>>9<<4)+15]=h,f.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA256=s._createHelper(c),r.HmacSHA256=s._createHmacHelper(c)}(Math),e.SHA256})});var xre=_((WE,bre)=>{(function(e,t,r){typeof WE=="object"?bre.exports=WE=t(it(),GE()):typeof define=="function"&&define.amd?define(["./core","./sha256"],t):t(e.CryptoJS)})(WE,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,s=i.SHA256,a=i.SHA224=s.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=s._doFinalize.call(this);return o.sigBytes-=4,o}});t.SHA224=s._createHelper(a),t.HmacSHA224=s._createHmacHelper(a)}(),e.SHA224})});var RN=_((KE,Ere)=>{(function(e,t,r){typeof KE=="object"?Ere.exports=KE=t(it(),bm()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],t):t(e.CryptoJS)})(KE,function(e){return function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,s=i.Word,a=i.WordArray,o=t.algo;function u(){return s.create.apply(s,arguments)}var l=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],c=[];(function(){for(var d=0;d<80;d++)c[d]=u()})();var f=o.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(d,h){for(var p=this._hash.words,m=p[0],y=p[1],g=p[2],v=p[3],E=p[4],x=p[5],T=p[6],S=p[7],w=m.high,A=m.low,C=y.high,I=y.low,M=g.high,R=g.low,P=v.high,k=v.low,K=E.high,z=E.low,G=x.high,te=x.low,j=T.high,ee=T.low,re=S.high,Z=S.low,se=w,Se=A,ve=C,_e=I,be=M,he=R,O=P,$=k,B=K,N=z,L=G,q=te,W=j,H=ee,V=re,Y=Z,X=0;X<80;X++){var ne,me,Ae=c[X];if(X<16)me=Ae.high=d[h+X*2]|0,ne=Ae.low=d[h+X*2+1]|0;else{var $e=c[X-15],Ze=$e.high,It=$e.low,Fe=(Ze>>>1|It<<31)^(Ze>>>8|It<<24)^Ze>>>7,mt=(It>>>1|Ze<<31)^(It>>>8|Ze<<24)^(It>>>7|Ze<<25),wr=c[X-2],Wt=wr.high,Ji=wr.low,go=(Wt>>>19|Ji<<13)^(Wt<<3|Ji>>>29)^Wt>>>6,rt=(Ji>>>19|Wt<<13)^(Ji<<3|Wt>>>29)^(Ji>>>6|Wt<<26),mr=c[X-7],Un=mr.high,Rt=mr.low,gt=c[X-16],rce=gt.high,Vr=gt.low;ne=mt+Rt,me=Fe+Un+(ne>>>0<mt>>>0?1:0),ne=ne+rt,me=me+go+(ne>>>0<rt>>>0?1:0),ne=ne+Vr,me=me+rce+(ne>>>0<Vr>>>0?1:0),Ae.high=me,Ae.low=ne}var Dv=B&L^~B&W,vD=N&q^~N&H,gr=se&ve^se&be^ve&be,Hu=Se&_e^Se&he^_e&he,nce=(se>>>28|Se<<4)^(se<<30|Se>>>2)^(se<<25|Se>>>7),Ei=(Se>>>28|se<<4)^(Se<<30|se>>>2)^(Se<<25|se>>>7),hi=(B>>>14|N<<18)^(B>>>18|N<<14)^(B<<23|N>>>9),ig=(N>>>14|B<<18)^(N>>>18|B<<14)^(N<<23|B>>>9),ba=l[X],zu=ba.high,Gd=ba.low,yr=Y+ig,yo=V+hi+(yr>>>0<Y>>>0?1:0),yr=yr+vD,yo=yo+Dv+(yr>>>0<vD>>>0?1:0),yr=yr+Gd,yo=yo+zu+(yr>>>0<Gd>>>0?1:0),yr=yr+ne,yo=yo+me+(yr>>>0<ne>>>0?1:0),TD=Ei+Hu,ice=nce+gr+(TD>>>0<Ei>>>0?1:0);V=W,Y=H,W=L,H=q,L=B,q=N,N=$+yr|0,B=O+yo+(N>>>0<$>>>0?1:0)|0,O=be,$=he,be=ve,he=_e,ve=se,_e=Se,Se=yr+TD|0,se=yo+ice+(Se>>>0<yr>>>0?1:0)|0}A=m.low=A+Se,m.high=w+se+(A>>>0<Se>>>0?1:0),I=y.low=I+_e,y.high=C+ve+(I>>>0<_e>>>0?1:0),R=g.low=R+he,g.high=M+be+(R>>>0<he>>>0?1:0),k=v.low=k+$,v.high=P+O+(k>>>0<$>>>0?1:0),z=E.low=z+N,E.high=K+B+(z>>>0<N>>>0?1:0),te=x.low=te+q,x.high=G+L+(te>>>0<q>>>0?1:0),ee=T.low=ee+H,T.high=j+W+(ee>>>0<H>>>0?1:0),Z=S.low=Z+Y,S.high=re+V+(Z>>>0<Y>>>0?1:0)},_doFinalize:function(){var d=this._data,h=d.words,p=this._nDataBytes*8,m=d.sigBytes*8;h[m>>>5]|=128<<24-m%32,h[(m+128>>>10<<5)+30]=Math.floor(p/4294967296),h[(m+128>>>10<<5)+31]=p,d.sigBytes=h.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var d=n.clone.call(this);return d._hash=this._hash.clone(),d},blockSize:1024/32});t.SHA512=n._createHelper(f),t.HmacSHA512=n._createHmacHelper(f)}(),e.SHA512})});var vre=_((YE,_re)=>{(function(e,t,r){typeof YE=="object"?_re.exports=YE=t(it(),bm(),RN()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],t):t(e.CryptoJS)})(YE,function(e){return function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,s=t.algo,a=s.SHA512,o=s.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=16,u}});t.SHA384=a._createHelper(o),t.HmacSHA384=a._createHmacHelper(o)}(),e.SHA384})});var Sre=_((XE,Tre)=>{(function(e,t,r){typeof XE=="object"?Tre.exports=XE=t(it(),bm()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],t):t(e.CryptoJS)})(XE,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.x64,o=a.Word,u=r.algo,l=[],c=[],f=[];(function(){for(var p=1,m=0,y=0;y<24;y++){l[p+5*m]=(y+1)*(y+2)/2%64;var g=m%5,v=(2*p+3*m)%5;p=g,m=v}for(var p=0;p<5;p++)for(var m=0;m<5;m++)c[p+5*m]=m+(2*p+3*m)%5*5;for(var E=1,x=0;x<24;x++){for(var T=0,S=0,w=0;w<7;w++){if(E&1){var A=(1<<w)-1;A<32?S^=1<<A:T^=1<<A-32}E&128?E=E<<1^113:E<<=1}f[x]=o.create(T,S)}})();var d=[];(function(){for(var p=0;p<25;p++)d[p]=o.create()})();var h=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var p=this._state=[],m=0;m<25;m++)p[m]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(p,m){for(var y=this._state,g=this.blockSize/2,v=0;v<g;v++){var E=p[m+2*v],x=p[m+2*v+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360;var T=y[v];T.high^=x,T.low^=E}for(var S=0;S<24;S++){for(var w=0;w<5;w++){for(var A=0,C=0,I=0;I<5;I++){var T=y[w+5*I];A^=T.high,C^=T.low}var M=d[w];M.high=A,M.low=C}for(var w=0;w<5;w++)for(var R=d[(w+4)%5],P=d[(w+1)%5],k=P.high,K=P.low,A=R.high^(k<<1|K>>>31),C=R.low^(K<<1|k>>>31),I=0;I<5;I++){var T=y[w+5*I];T.high^=A,T.low^=C}for(var z=1;z<25;z++){var A,C,T=y[z],G=T.high,te=T.low,j=l[z];j<32?(A=G<<j|te>>>32-j,C=te<<j|G>>>32-j):(A=te<<j-32|G>>>64-j,C=G<<j-32|te>>>64-j);var ee=d[c[z]];ee.high=A,ee.low=C}var re=d[0],Z=y[0];re.high=Z.high,re.low=Z.low;for(var w=0;w<5;w++)for(var I=0;I<5;I++){var z=w+5*I,T=y[z],se=d[z],Se=d[(w+1)%5+5*I],ve=d[(w+2)%5+5*I];T.high=se.high^~Se.high&ve.high,T.low=se.low^~Se.low&ve.low}var T=y[0],_e=f[S];T.high^=_e.high,T.low^=_e.low}},_doFinalize:function(){var p=this._data,m=p.words,y=this._nDataBytes*8,g=p.sigBytes*8,v=this.blockSize*32;m[g>>>5]|=1<<24-g%32,m[(t.ceil((g+1)/v)*v>>>5)-1]|=128,p.sigBytes=m.length*4,this._process();for(var E=this._state,x=this.cfg.outputLength/8,T=x/8,S=[],w=0;w<T;w++){var A=E[w],C=A.high,I=A.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,S.push(I),S.push(C)}return new i.init(S,x)},clone:function(){for(var p=s.clone.call(this),m=p._state=this._state.slice(0),y=0;y<25;y++)m[y]=m[y].clone();return p}});r.SHA3=s._createHelper(h),r.HmacSHA3=s._createHmacHelper(h)}(Math),e.SHA3})});var Are=_((JE,wre)=>{(function(e,t){typeof JE=="object"?wre.exports=JE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(JE,function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,s=n.Hasher,a=r.algo,o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=s.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,T){for(var S=0;S<16;S++){var w=T+S,A=x[w];x[w]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var C=this._hash.words,I=f.words,M=d.words,R=o.words,P=u.words,k=l.words,K=c.words,z,G,te,j,ee,re,Z,se,Se,ve;re=z=C[0],Z=G=C[1],se=te=C[2],Se=j=C[3],ve=ee=C[4];for(var _e,S=0;S<80;S+=1)_e=z+x[T+R[S]]|0,S<16?_e+=p(G,te,j)+I[0]:S<32?_e+=m(G,te,j)+I[1]:S<48?_e+=y(G,te,j)+I[2]:S<64?_e+=g(G,te,j)+I[3]:_e+=v(G,te,j)+I[4],_e=_e|0,_e=E(_e,k[S]),_e=_e+ee|0,z=ee,ee=j,j=E(te,10),te=G,G=_e,_e=re+x[T+P[S]]|0,S<16?_e+=v(Z,se,Se)+M[0]:S<32?_e+=g(Z,se,Se)+M[1]:S<48?_e+=y(Z,se,Se)+M[2]:S<64?_e+=m(Z,se,Se)+M[3]:_e+=p(Z,se,Se)+M[4],_e=_e|0,_e=E(_e,K[S]),_e=_e+ve|0,re=ve,ve=Se,Se=E(se,10),se=Z,Z=_e;_e=C[1]+te+Se|0,C[1]=C[2]+j+ve|0,C[2]=C[3]+ee+re|0,C[3]=C[4]+z+Z|0,C[4]=C[0]+G+se|0,C[0]=_e},_doFinalize:function(){var x=this._data,T=x.words,S=this._nDataBytes*8,w=x.sigBytes*8;T[w>>>5]|=128<<24-w%32,T[(w+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,x.sigBytes=(T.length+1)*4,this._process();for(var A=this._hash,C=A.words,I=0;I<5;I++){var M=C[I];C[I]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return A},clone:function(){var x=s.clone.call(this);return x._hash=this._hash.clone(),x}});function p(x,T,S){return x^T^S}function m(x,T,S){return x&T|~x&S}function y(x,T,S){return(x|~T)^S}function g(x,T,S){return x&S|T&~S}function v(x,T,S){return x^(T|~S)}function E(x,T){return x<<T|x>>>32-T}r.RIPEMD160=s._createHelper(h),r.HmacRIPEMD160=s._createHmacHelper(h)}(Math),e.RIPEMD160})});var ZE=_((QE,Cre)=>{(function(e,t){typeof QE=="object"?Cre.exports=QE=t(it()):typeof define=="function"&&define.amd?define(["./core"],t):t(e.CryptoJS)})(QE,function(e){(function(){var t=e,r=t.lib,n=r.Base,i=t.enc,s=i.Utf8,a=t.algo,o=a.HMAC=n.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=s.parse(l));var c=u.blockSize,f=c*4;l.sigBytes>f&&(l=u.finalize(l)),l.clamp();for(var d=this._oKey=l.clone(),h=this._iKey=l.clone(),p=d.words,m=h.words,y=0;y<c;y++)p[y]^=1549556828,m[y]^=909522486;d.sigBytes=h.sigBytes=f,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,c=l.finalize(u);l.reset();var f=l.finalize(this._oKey.clone().concat(c));return f}})})()})});var Rre=_((e_,Ire)=>{(function(e,t,r){typeof e_=="object"?Ire.exports=e_=t(it(),GE(),ZE()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],t):t(e.CryptoJS)})(e_,function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,s=t.algo,a=s.SHA256,o=s.HMAC,u=s.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:a,iterations:25e4}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,c){for(var f=this.cfg,d=o.create(f.hasher,l),h=i.create(),p=i.create([1]),m=h.words,y=p.words,g=f.keySize,v=f.iterations;m.length<g;){var E=d.update(c).finalize(p);d.reset();for(var x=E.words,T=x.length,S=E,w=1;w<v;w++){S=d.finalize(S),d.reset();for(var A=S.words,C=0;C<T;C++)x[C]^=A[C]}h.concat(E),y[0]++}return h.sigBytes=g*4,h}});t.PBKDF2=function(l,c,f){return u.create(f).compute(l,c)}}(),e.PBKDF2})});var no=_((t_,Nre)=>{(function(e,t,r){typeof t_=="object"?Nre.exports=t_=t(it(),IN(),ZE()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],t):t(e.CryptoJS)})(t_,function(e){return function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,s=t.algo,a=s.MD5,o=s.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:a,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var c,f=this.cfg,d=f.hasher.create(),h=i.create(),p=h.words,m=f.keySize,y=f.iterations;p.length<m;){c&&d.update(c),c=d.update(u).finalize(l),d.reset();for(var g=1;g<y;g++)c=d.finalize(c),d.reset();h.concat(c)}return h.sigBytes=m*4,h}});t.EvpKDF=function(u,l,c){return o.create(c).compute(u,l)}}(),e.EvpKDF})});var Ir=_((r_,Ore)=>{(function(e,t,r){typeof r_=="object"?Ore.exports=r_=t(it(),no()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],t):t(e.CryptoJS)})(r_,function(e){e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,s=n.WordArray,a=n.BufferedBlockAlgorithm,o=r.enc,u=o.Utf8,l=o.Base64,c=r.algo,f=c.EvpKDF,d=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(M,R){return this.create(this._ENC_XFORM_MODE,M,R)},createDecryptor:function(M,R){return this.create(this._DEC_XFORM_MODE,M,R)},init:function(M,R,P){this.cfg=this.cfg.extend(P),this._xformMode=M,this._key=R,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(M){return this._append(M),this._process()},finalize:function(M){M&&this._append(M);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function M(R){return typeof R=="string"?I:w}return function(R){return{encrypt:function(P,k,K){return M(k).encrypt(R,P,k,K)},decrypt:function(P,k,K){return M(k).decrypt(R,P,k,K)}}}}()}),h=n.StreamCipher=d.extend({_doFinalize:function(){var M=this._process(!0);return M},blockSize:1}),p=r.mode={},m=n.BlockCipherMode=i.extend({createEncryptor:function(M,R){return this.Encryptor.create(M,R)},createDecryptor:function(M,R){return this.Decryptor.create(M,R)},init:function(M,R){this._cipher=M,this._iv=R}}),y=p.CBC=function(){var M=m.extend();M.Encryptor=M.extend({processBlock:function(P,k){var K=this._cipher,z=K.blockSize;R.call(this,P,k,z),K.encryptBlock(P,k),this._prevBlock=P.slice(k,k+z)}}),M.Decryptor=M.extend({processBlock:function(P,k){var K=this._cipher,z=K.blockSize,G=P.slice(k,k+z);K.decryptBlock(P,k),R.call(this,P,k,z),this._prevBlock=G}});function R(P,k,K){var z,G=this._iv;G?(z=G,this._iv=t):z=this._prevBlock;for(var te=0;te<K;te++)P[k+te]^=z[te]}return M}(),g=r.pad={},v=g.Pkcs7={pad:function(M,R){for(var P=R*4,k=P-M.sigBytes%P,K=k<<24|k<<16|k<<8|k,z=[],G=0;G<k;G+=4)z.push(K);var te=s.create(z,k);M.concat(te)},unpad:function(M){var R=M.words[M.sigBytes-1>>>2]&255;M.sigBytes-=R}},E=n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:y,padding:v}),reset:function(){var M;d.reset.call(this);var R=this.cfg,P=R.iv,k=R.mode;this._xformMode==this._ENC_XFORM_MODE?M=k.createEncryptor:(M=k.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==M?this._mode.init(this,P&&P.words):(this._mode=M.call(k,this,P&&P.words),this._mode.__creator=M)},_doProcessBlock:function(M,R){this._mode.processBlock(M,R)},_doFinalize:function(){var M,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),M=this._process(!0)):(M=this._process(!0),R.unpad(M)),M},blockSize:128/32}),x=n.CipherParams=i.extend({init:function(M){this.mixIn(M)},toString:function(M){return(M||this.formatter).stringify(this)}}),T=r.format={},S=T.OpenSSL={stringify:function(M){var R,P=M.ciphertext,k=M.salt;return k?R=s.create([1398893684,1701076831]).concat(k).concat(P):R=P,R.toString(l)},parse:function(M){var R,P=l.parse(M),k=P.words;return k[0]==1398893684&&k[1]==1701076831&&(R=s.create(k.slice(2,4)),k.splice(0,4),P.sigBytes-=16),x.create({ciphertext:P,salt:R})}},w=n.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(M,R,P,k){k=this.cfg.extend(k);var K=M.createEncryptor(P,k),z=K.finalize(R),G=K.cfg;return x.create({ciphertext:z,key:P,iv:G.iv,algorithm:M,mode:G.mode,padding:G.padding,blockSize:M.blockSize,formatter:k.format})},decrypt:function(M,R,P,k){k=this.cfg.extend(k),R=this._parse(R,k.format);var K=M.createDecryptor(P,k).finalize(R.ciphertext);return K},_parse:function(M,R){return typeof M=="string"?R.parse(M,this):M}}),A=r.kdf={},C=A.OpenSSL={execute:function(M,R,P,k,K){if(k||(k=s.random(64/8)),K)var z=f.create({keySize:R+P,hasher:K}).compute(M,k);else var z=f.create({keySize:R+P}).compute(M,k);var G=s.create(z.words.slice(R),P*4);return z.sigBytes=R*4,x.create({key:z,iv:G,salt:k})}},I=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:C}),encrypt:function(M,R,P,k){k=this.cfg.extend(k);var K=k.kdf.execute(P,M.keySize,M.ivSize,k.salt,k.hasher);k.iv=K.iv;var z=w.encrypt.call(this,M,R,K.key,k);return z.mixIn(K),z},decrypt:function(M,R,P,k){k=this.cfg.extend(k),R=this._parse(R,k.format);var K=k.kdf.execute(P,M.keySize,M.ivSize,R.salt,k.hasher);k.iv=K.iv;var z=w.decrypt.call(this,M,R,K.key,k);return z}})}()})});var Dre=_((n_,Pre)=>{(function(e,t,r){typeof n_=="object"?Pre.exports=n_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(n_,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:function(n,i){var s=this._cipher,a=s.blockSize;r.call(this,n,i,a,s),this._prevBlock=n.slice(i,i+a)}}),t.Decryptor=t.extend({processBlock:function(n,i){var s=this._cipher,a=s.blockSize,o=n.slice(i,i+a);r.call(this,n,i,a,s),this._prevBlock=o}});function r(n,i,s,a){var o,u=this._iv;u?(o=u.slice(0),this._iv=void 0):o=this._prevBlock,a.encryptBlock(o,0);for(var l=0;l<s;l++)n[i+l]^=o[l]}return t}(),e.mode.CFB})});var $re=_((i_,kre)=>{(function(e,t,r){typeof i_=="object"?kre.exports=i_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(i_,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(n,i){var s=this._cipher,a=s.blockSize,o=this._iv,u=this._counter;o&&(u=this._counter=o.slice(0),this._iv=void 0);var l=u.slice(0);s.encryptBlock(l,0),u[a-1]=u[a-1]+1|0;for(var c=0;c<a;c++)n[i+c]^=l[c]}});return t.Decryptor=r,t}(),e.mode.CTR})});var Mre=_((s_,Lre)=>{(function(e,t,r){typeof s_=="object"?Lre.exports=s_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(s_,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(s){if((s>>24&255)===255){var a=s>>16&255,o=s>>8&255,u=s&255;a===255?(a=0,o===255?(o=0,u===255?u=0:++u):++o):++a,s=0,s+=a<<16,s+=o<<8,s+=u}else s+=1<<24;return s}function n(s){return(s[0]=r(s[0]))===0&&(s[1]=r(s[1])),s}var i=t.Encryptor=t.extend({processBlock:function(s,a){var o=this._cipher,u=o.blockSize,l=this._iv,c=this._counter;l&&(c=this._counter=l.slice(0),this._iv=void 0),n(c);var f=c.slice(0);o.encryptBlock(f,0);for(var d=0;d<u;d++)s[a+d]^=f[d]}});return t.Decryptor=i,t}(),e.mode.CTRGladman})});var Bre=_((a_,Fre)=>{(function(e,t,r){typeof a_=="object"?Fre.exports=a_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(a_,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(n,i){var s=this._cipher,a=s.blockSize,o=this._iv,u=this._keystream;o&&(u=this._keystream=o.slice(0),this._iv=void 0),s.encryptBlock(u,0);for(var l=0;l<a;l++)n[i+l]^=u[l]}});return t.Decryptor=r,t}(),e.mode.OFB})});var jre=_((o_,qre)=>{(function(e,t,r){typeof o_=="object"?qre.exports=o_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(o_,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),t.Decryptor=t.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),t}(),e.mode.ECB})});var Hre=_((u_,Ure)=>{(function(e,t,r){typeof u_=="object"?Ure.exports=u_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(u_,function(e){return e.pad.AnsiX923={pad:function(t,r){var n=t.sigBytes,i=r*4,s=i-n%i,a=n+s-1;t.clamp(),t.words[a>>>2]|=s<<24-a%4*8,t.sigBytes+=s},unpad:function(t){var r=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=r}},e.pad.Ansix923})});var Vre=_((c_,zre)=>{(function(e,t,r){typeof c_=="object"?zre.exports=c_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(c_,function(e){return e.pad.Iso10126={pad:function(t,r){var n=r*4,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(t){var r=t.words[t.sigBytes-1>>>2]&255;t.sigBytes-=r}},e.pad.Iso10126})});var Wre=_((l_,Gre)=>{(function(e,t,r){typeof l_=="object"?Gre.exports=l_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(l_,function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})});var Yre=_((f_,Kre)=>{(function(e,t,r){typeof f_=="object"?Kre.exports=f_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(f_,function(e){return e.pad.ZeroPadding={pad:function(t,r){var n=r*4;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var r=t.words,n=t.sigBytes-1,n=t.sigBytes-1;n>=0;n--)if(r[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},e.pad.ZeroPadding})});var Jre=_((d_,Xre)=>{(function(e,t,r){typeof d_=="object"?Xre.exports=d_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(d_,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})});var Zre=_((p_,Qre)=>{(function(e,t,r){typeof p_=="object"?Qre.exports=p_=t(it(),Ir()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],t):t(e.CryptoJS)})(p_,function(e){return function(t){var r=e,n=r.lib,i=n.CipherParams,s=r.enc,a=s.Hex,o=r.format,u=o.Hex={stringify:function(l){return l.ciphertext.toString(a)},parse:function(l){var c=a.parse(l);return i.create({ciphertext:c})}}}(),e.format.Hex})});var tne=_((h_,ene)=>{(function(e,t,r){typeof h_=="object"?ene.exports=h_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(h_,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo,s=[],a=[],o=[],u=[],l=[],c=[],f=[],d=[],h=[],p=[];(function(){for(var g=[],v=0;v<256;v++)v<128?g[v]=v<<1:g[v]=v<<1^283;for(var E=0,x=0,v=0;v<256;v++){var T=x^x<<1^x<<2^x<<3^x<<4;T=T>>>8^T&255^99,s[E]=T,a[T]=E;var S=g[E],w=g[S],A=g[w],C=g[T]*257^T*16843008;o[E]=C<<24|C>>>8,u[E]=C<<16|C>>>16,l[E]=C<<8|C>>>24,c[E]=C;var C=A*16843009^w*65537^S*257^E*16843008;f[T]=C<<24|C>>>8,d[T]=C<<16|C>>>16,h[T]=C<<8|C>>>24,p[T]=C,E?(E=S^g[g[g[A^S]]],x^=g[g[x]]):E=x=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=n.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var v=this._keyPriorReset=this._key,E=v.words,x=v.sigBytes/4,T=this._nRounds=x+6,S=(T+1)*4,w=this._keySchedule=[],A=0;A<S;A++)A<x?w[A]=E[A]:(g=w[A-1],A%x?x>6&&A%x==4&&(g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255]):(g=g<<8|g>>>24,g=s[g>>>24]<<24|s[g>>>16&255]<<16|s[g>>>8&255]<<8|s[g&255],g^=m[A/x|0]<<24),w[A]=w[A-x]^g);for(var C=this._invKeySchedule=[],I=0;I<S;I++){var A=S-I;if(I%4)var g=w[A];else var g=w[A-4];I<4||A<=4?C[I]=g:C[I]=f[s[g>>>24]]^d[s[g>>>16&255]]^h[s[g>>>8&255]]^p[s[g&255]]}}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,o,u,l,c,s)},decryptBlock:function(g,v){var E=g[v+1];g[v+1]=g[v+3],g[v+3]=E,this._doCryptBlock(g,v,this._invKeySchedule,f,d,h,p,a);var E=g[v+1];g[v+1]=g[v+3],g[v+3]=E},_doCryptBlock:function(g,v,E,x,T,S,w,A){for(var C=this._nRounds,I=g[v]^E[0],M=g[v+1]^E[1],R=g[v+2]^E[2],P=g[v+3]^E[3],k=4,K=1;K<C;K++){var z=x[I>>>24]^T[M>>>16&255]^S[R>>>8&255]^w[P&255]^E[k++],G=x[M>>>24]^T[R>>>16&255]^S[P>>>8&255]^w[I&255]^E[k++],te=x[R>>>24]^T[P>>>16&255]^S[I>>>8&255]^w[M&255]^E[k++],j=x[P>>>24]^T[I>>>16&255]^S[M>>>8&255]^w[R&255]^E[k++];I=z,M=G,R=te,P=j}var z=(A[I>>>24]<<24|A[M>>>16&255]<<16|A[R>>>8&255]<<8|A[P&255])^E[k++],G=(A[M>>>24]<<24|A[R>>>16&255]<<16|A[P>>>8&255]<<8|A[I&255])^E[k++],te=(A[R>>>24]<<24|A[P>>>16&255]<<16|A[I>>>8&255]<<8|A[M&255])^E[k++],j=(A[P>>>24]<<24|A[I>>>16&255]<<16|A[M>>>8&255]<<8|A[R&255])^E[k++];g[v]=z,g[v+1]=G,g[v+2]=te,g[v+3]=j},keySize:256/32});t.AES=n._createHelper(y)}(),e.AES})});var nne=_((m_,rne)=>{(function(e,t,r){typeof m_=="object"?rne.exports=m_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(m_,function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,s=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=s.DES=i.extend({_doReset:function(){for(var m=this._key,y=m.words,g=[],v=0;v<56;v++){var E=a[v]-1;g[v]=y[E>>>5]>>>31-E%32&1}for(var x=this._subKeys=[],T=0;T<16;T++){for(var S=x[T]=[],w=u[T],v=0;v<24;v++)S[v/6|0]|=g[(o[v]-1+w)%28]<<31-v%6,S[4+(v/6|0)]|=g[28+(o[v+24]-1+w)%28]<<31-v%6;S[0]=S[0]<<1|S[0]>>>31;for(var v=1;v<7;v++)S[v]=S[v]>>>(v-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var A=this._invSubKeys=[],v=0;v<16;v++)A[v]=x[15-v]},encryptBlock:function(m,y){this._doCryptBlock(m,y,this._subKeys)},decryptBlock:function(m,y){this._doCryptBlock(m,y,this._invSubKeys)},_doCryptBlock:function(m,y,g){this._lBlock=m[y],this._rBlock=m[y+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var v=0;v<16;v++){for(var E=g[v],x=this._lBlock,T=this._rBlock,S=0,w=0;w<8;w++)S|=l[w][((T^E[w])&c[w])>>>0];this._lBlock=T,this._rBlock=x^S}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),m[y]=this._lBlock,m[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(m,y){var g=(this._lBlock>>>m^this._rBlock)&y;this._rBlock^=g,this._lBlock^=g<<m}function h(m,y){var g=(this._rBlock>>>m^this._lBlock)&y;this._lBlock^=g,this._rBlock^=g<<m}t.DES=i._createHelper(f);var p=s.TripleDES=i.extend({_doReset:function(){var m=this._key,y=m.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=y.slice(0,2),v=y.length<4?y.slice(0,2):y.slice(2,4),E=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=f.createEncryptor(n.create(g)),this._des2=f.createEncryptor(n.create(v)),this._des3=f.createEncryptor(n.create(E))},encryptBlock:function(m,y){this._des1.encryptBlock(m,y),this._des2.decryptBlock(m,y),this._des3.encryptBlock(m,y)},decryptBlock:function(m,y){this._des3.decryptBlock(m,y),this._des2.encryptBlock(m,y),this._des1.decryptBlock(m,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});t.TripleDES=i._createHelper(p)}(),e.TripleDES})});var sne=_((g_,ine)=>{(function(e,t,r){typeof g_=="object"?ine.exports=g_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(g_,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,s=i.RC4=n.extend({_doReset:function(){for(var u=this._key,l=u.words,c=u.sigBytes,f=this._S=[],d=0;d<256;d++)f[d]=d;for(var d=0,h=0;d<256;d++){var p=d%c,m=l[p>>>2]>>>24-p%4*8&255;h=(h+f[d]+m)%256;var y=f[d];f[d]=f[h],f[h]=y}this._i=this._j=0},_doProcessBlock:function(u,l){u[l]^=a.call(this)},keySize:256/32,ivSize:0});function a(){for(var u=this._S,l=this._i,c=this._j,f=0,d=0;d<4;d++){l=(l+1)%256,c=(c+u[l])%256;var h=u[l];u[l]=u[c],u[c]=h,f|=u[(u[l]+u[c])%256]<<24-d*8}return this._i=l,this._j=c,f}t.RC4=n._createHelper(s);var o=i.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)a.call(this)}});t.RC4Drop=n._createHelper(o)}(),e.RC4})});var one=_((y_,ane)=>{(function(e,t,r){typeof y_=="object"?ane.exports=y_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(y_,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,s=[],a=[],o=[],u=i.Rabbit=n.extend({_doReset:function(){for(var c=this._key.words,f=this.cfg.iv,d=0;d<4;d++)c[d]=(c[d]<<8|c[d]>>>24)&16711935|(c[d]<<24|c[d]>>>8)&4278255360;var h=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],p=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var d=0;d<4;d++)l.call(this);for(var d=0;d<8;d++)p[d]^=h[d+4&7];if(f){var m=f.words,y=m[0],g=m[1],v=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,E=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=v>>>16|E&4294901760,T=E<<16|v&65535;p[0]^=v,p[1]^=x,p[2]^=E,p[3]^=T,p[4]^=v,p[5]^=x,p[6]^=E,p[7]^=T;for(var d=0;d<4;d++)l.call(this)}},_doProcessBlock:function(c,f){var d=this._X;l.call(this),s[0]=d[0]^d[5]>>>16^d[3]<<16,s[1]=d[2]^d[7]>>>16^d[5]<<16,s[2]=d[4]^d[1]>>>16^d[7]<<16,s[3]=d[6]^d[3]>>>16^d[1]<<16;for(var h=0;h<4;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360,c[f+h]^=s[h]},blockSize:128/32,ivSize:64/32});function l(){for(var c=this._X,f=this._C,d=0;d<8;d++)a[d]=f[d];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<a[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<a[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<a[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<a[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<a[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<a[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<a[6]>>>0?1:0)|0,this._b=f[7]>>>0<a[7]>>>0?1:0;for(var d=0;d<8;d++){var h=c[d]+f[d],p=h&65535,m=h>>>16,y=((p*p>>>17)+p*m>>>15)+m*m,g=((h&4294901760)*h|0)+((h&65535)*h|0);o[d]=y^g}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=n._createHelper(u)}(),e.Rabbit})});var cne=_((b_,une)=>{(function(e,t,r){typeof b_=="object"?une.exports=b_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(b_,function(e){return function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,s=[],a=[],o=[],u=i.RabbitLegacy=n.extend({_doReset:function(){var c=this._key.words,f=this.cfg.iv,d=this._X=[c[0],c[3]<<16|c[2]>>>16,c[1],c[0]<<16|c[3]>>>16,c[2],c[1]<<16|c[0]>>>16,c[3],c[2]<<16|c[1]>>>16],h=this._C=[c[2]<<16|c[2]>>>16,c[0]&4294901760|c[1]&65535,c[3]<<16|c[3]>>>16,c[1]&4294901760|c[2]&65535,c[0]<<16|c[0]>>>16,c[2]&4294901760|c[3]&65535,c[1]<<16|c[1]>>>16,c[3]&4294901760|c[0]&65535];this._b=0;for(var p=0;p<4;p++)l.call(this);for(var p=0;p<8;p++)h[p]^=d[p+4&7];if(f){var m=f.words,y=m[0],g=m[1],v=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,E=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=v>>>16|E&4294901760,T=E<<16|v&65535;h[0]^=v,h[1]^=x,h[2]^=E,h[3]^=T,h[4]^=v,h[5]^=x,h[6]^=E,h[7]^=T;for(var p=0;p<4;p++)l.call(this)}},_doProcessBlock:function(c,f){var d=this._X;l.call(this),s[0]=d[0]^d[5]>>>16^d[3]<<16,s[1]=d[2]^d[7]>>>16^d[5]<<16,s[2]=d[4]^d[1]>>>16^d[7]<<16,s[3]=d[6]^d[3]>>>16^d[1]<<16;for(var h=0;h<4;h++)s[h]=(s[h]<<8|s[h]>>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360,c[f+h]^=s[h]},blockSize:128/32,ivSize:64/32});function l(){for(var c=this._X,f=this._C,d=0;d<8;d++)a[d]=f[d];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0<a[0]>>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0<a[1]>>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0<a[2]>>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0<a[3]>>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0<a[4]>>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0<a[5]>>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0<a[6]>>>0?1:0)|0,this._b=f[7]>>>0<a[7]>>>0?1:0;for(var d=0;d<8;d++){var h=c[d]+f[d],p=h&65535,m=h>>>16,y=((p*p>>>17)+p*m>>>15)+m*m,g=((h&4294901760)*h|0)+((h&65535)*h|0);o[d]=y^g}c[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,c[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,c[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,c[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,c[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,c[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,c[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,c[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=n._createHelper(u)}(),e.RabbitLegacy})});var fne=_((x_,lne)=>{(function(e,t,r){typeof x_=="object"?lne.exports=x_=t(it(),vu(),Tu(),no(),Ir()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(e.CryptoJS)})(x_,function(e){return function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo;let s=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function l(p,m){let y=m>>24&255,g=m>>16&255,v=m>>8&255,E=m&255,x=p.sbox[0][y]+p.sbox[1][g];return x=x^p.sbox[2][v],x=x+p.sbox[3][E],x}function c(p,m,y){let g=m,v=y,E;for(let x=0;x<s;++x)g=g^p.pbox[x],v=l(p,g)^v,E=g,g=v,v=E;return E=g,g=v,v=E,v=v^p.pbox[s],g=g^p.pbox[s+1],{left:g,right:v}}function f(p,m,y){let g=m,v=y,E;for(let x=s+1;x>1;--x)g=g^p.pbox[x],v=l(p,g)^v,E=g,g=v,v=E;return E=g,g=v,v=E,v=v^p.pbox[1],g=g^p.pbox[0],{left:g,right:v}}function d(p,m,y){for(let T=0;T<4;T++){p.sbox[T]=[];for(let S=0;S<256;S++)p.sbox[T][S]=o[T][S]}let g=0;for(let T=0;T<s+2;T++)p.pbox[T]=a[T]^m[g],g++,g>=y&&(g=0);let v=0,E=0,x=0;for(let T=0;T<s+2;T+=2)x=c(p,v,E),v=x.left,E=x.right,p.pbox[T]=v,p.pbox[T+1]=E;for(let T=0;T<4;T++)for(let S=0;S<256;S+=2)x=c(p,v,E),v=x.left,E=x.right,p.sbox[T][S]=v,p.sbox[T][S+1]=E;return!0}var h=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var p=this._keyPriorReset=this._key,m=p.words,y=p.sigBytes/4;d(u,m,y)}},encryptBlock:function(p,m){var y=c(u,p[m],p[m+1]);p[m]=y.left,p[m+1]=y.right},decryptBlock:function(p,m){var y=f(u,p[m],p[m+1]);p[m]=y.left,p[m+1]=y.right},blockSize:64/32,keySize:128/32,ivSize:64/32});t.Blowfish=n._createHelper(h)}(),e.Blowfish})});var vn=_((E_,dne)=>{(function(e,t,r){typeof E_=="object"?dne.exports=E_=t(it(),bm(),cre(),fre(),vu(),hre(),Tu(),IN(),GE(),xre(),RN(),vre(),Sre(),Are(),ZE(),Rre(),no(),Ir(),Dre(),$re(),Mre(),Bre(),jre(),Hre(),Vre(),Wre(),Yre(),Jre(),Zre(),tne(),nne(),sne(),one(),cne(),fne()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy","./blowfish"],t):e.CryptoJS=t(e.CryptoJS)})(E_,function(e){return e})});var Em=_(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.getOptions=Qe.setOptions=Qe.hasOwnProp=Qe.formatDate=Qe.camelify=Qe.splitByCommaWithPreservingQuotes=Qe.trim=Qe.splitAt=Qe.tryCatch=Qe.byteSequenceToHex=Qe.hexToByteSequence=Qe.toNumber=Qe.INVALIDPLAYLIST=Qe.CONDITIONALPARAMCHECK=Qe.PARAMCHECK=Qe.CONDITIONALASSERT=Qe.ASSERT=Qe.THROW=void 0;var xm={};function Zc(e){if(!xm.strictMode){xm.silent||console.error(e.message);return}throw e}Qe.THROW=Zc;function bVe(e,...t){for(let[r,n]of t.entries())n||Zc(new Error(`${e} : Failed at [${r}]`))}Qe.ASSERT=bVe;function xVe(...e){for(let[t,[r,n]]of e.entries())r&&(n||Zc(new Error(`Conditional Assert : Failed at [${t}]`)))}Qe.CONDITIONALASSERT=xVe;function EVe(...e){for(let[t,r]of e.entries())r===void 0&&Zc(new Error(`Param Check : Failed at [${t}]`))}Qe.PARAMCHECK=EVe;function _Ve(...e){for(let[t,[r,n]]of e.entries())r&&n===void 0&&Zc(new Error(`Conditional Param Check : Failed at [${t}]`))}Qe.CONDITIONALPARAMCHECK=_Ve;function vVe(e){Zc(new Error(`Invalid Playlist : ${e}`))}Qe.INVALIDPLAYLIST=vVe;function pne(e,t=10){if(typeof e=="number")return e;let r=t===10?Number.parseFloat(e):Number.parseInt(e,t);return Number.isNaN(r)?0:r}Qe.toNumber=pne;function TVe(e){(e.startsWith("0x")||e.startsWith("0X"))&&(e=e.slice(2));let t=[];for(let r=0;r<e.length;r+=2)t.push(pne(e.slice(r,r+2),16));return Buffer.from(t)}Qe.hexToByteSequence=TVe;function SVe(e,t=0,r=e.length){r<=t&&Zc(new Error(`end must be larger than start : start=${t}, end=${r}`));let n=[];for(let i=t;i<r;i++)n.push(`0${(e[i]&255).toString(16).toUpperCase()}`.slice(-2));return`0x${n.join("")}`}Qe.byteSequenceToHex=SVe;function wVe(e,t){try{return e()}catch(r){return t(r)}}Qe.tryCatch=wVe;function AVe(e,t,r=0){let n=-1;for(let i=0,s=0;i<e.length;i++)if(e[i]===t){if(s++===r)return[e.slice(0,i),e.slice(i+1)];n=i}return n!==-1?[e.slice(0,n),e.slice(n+1)]:[e]}Qe.splitAt=AVe;function CVe(e,t=" "){return!e||(e=e.trim(),t===" ")||(e.startsWith(t)&&(e=e.slice(1)),e.endsWith(t)&&(e=e.slice(0,-1))),e}Qe.trim=CVe;function IVe(e){let t=[],r=!0,n=0,i=[];for(let s=0;s<e.length;s++){let a=e[s];if(r&&a===","){t.push(e.slice(n,s).trim()),n=s+1;continue}(a==='"'||a==="'")&&(r?(i.push(a),r=!1):a===i.at(-1)?(i.pop(),r=!0):i.push(a))}return t.push(e.slice(n).trim()),t}Qe.splitByCommaWithPreservingQuotes=IVe;function RVe(e){let t=[],r=!1;for(let n of e){if(n==="-"||n==="_"){r=!0;continue}if(r){t.push(n.toUpperCase()),r=!1;continue}t.push(n.toLowerCase())}return t.join("")}Qe.camelify=RVe;function NVe(e){let t=e.getUTCFullYear(),r=("0"+(e.getUTCMonth()+1)).slice(-2),n=("0"+e.getUTCDate()).slice(-2),i=("0"+e.getUTCHours()).slice(-2),s=("0"+e.getUTCMinutes()).slice(-2),a=("0"+e.getUTCSeconds()).slice(-2),o=("00"+e.getUTCMilliseconds()).slice(-3);return`${t}-${r}-${n}T${i}:${s}:${a}.${o}Z`}Qe.formatDate=NVe;function OVe(e,t){return Object.hasOwnProperty.call(e,t)}Qe.hasOwnProp=OVe;function PVe(e={}){xm=Object.assign(xm,e)}Qe.setOptions=PVe;function DVe(){return Object.assign({},xm)}Qe.getOptions=DVe});var HN=_(st=>{"use strict";var kVe=st&&st.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),$Ve=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),LVe=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&kVe(t,e,r);return $Ve(t,e),t};Object.defineProperty(st,"__esModule",{value:!0});st.RenditionReport=st.PrefetchSegment=st.PartialSegment=st.Segment=st.MediaPlaylist=st.MasterPlaylist=st.Playlist=st.SpliceInfo=st.DateRange=st.MediaInitializationSection=st.Key=st.SessionData=st.Variant=st.Rendition=void 0;var Er=LVe(Em()),NN=class{constructor({type:t,uri:r,groupId:n,language:i,assocLanguage:s,name:a,isDefault:o,autoselect:u,forced:l,instreamId:c,characteristics:f,channels:d}){Er.PARAMCHECK(t,n,a),Er.CONDITIONALASSERT([t==="SUBTITLES",r],[t==="CLOSED-CAPTIONS",c],[t==="CLOSED-CAPTIONS",!r],[l,t==="SUBTITLES"]),this.type=t,this.uri=r,this.groupId=n,this.language=i,this.assocLanguage=s,this.name=a,this.isDefault=o,this.autoselect=u,this.forced=l,this.instreamId=c,this.characteristics=f,this.channels=d}};st.Rendition=NN;var ON=class{constructor({uri:t,isIFrameOnly:r=!1,bandwidth:n,averageBandwidth:i,score:s,codecs:a,resolution:o,frameRate:u,hdcpLevel:l,allowedCpc:c,videoRange:f,stableVariantId:d,programId:h,audio:p=[],video:m=[],subtitles:y=[],closedCaptions:g=[],currentRenditions:v={audio:0,video:0,subtitles:0,closedCaptions:0}}){Er.PARAMCHECK(t,n),this.uri=t,this.isIFrameOnly=r,this.bandwidth=n,this.averageBandwidth=i,this.score=s,this.codecs=a,this.resolution=o,this.frameRate=u,this.hdcpLevel=l,this.allowedCpc=c,this.videoRange=f,this.stableVariantId=d,this.programId=h,this.audio=p,this.video=m,this.subtitles=y,this.closedCaptions=g,this.currentRenditions=v}};st.Variant=ON;var PN=class{constructor({id:t,value:r,uri:n,language:i}){Er.PARAMCHECK(t,r||n),Er.ASSERT("SessionData cannot have both value and uri, shoud be either.",!(r&&n)),this.id=t,this.value=r,this.uri=n,this.language=i}};st.SessionData=PN;var DN=class{constructor({method:t,uri:r,iv:n,format:i,formatVersion:s}){Er.PARAMCHECK(t),Er.CONDITIONALPARAMCHECK([t!=="NONE",r]),Er.CONDITIONALASSERT([t==="NONE",!(r||n||i||s)]),this.method=t,this.uri=r,this.iv=n,this.format=i,this.formatVersion=s}};st.Key=DN;var kN=class{constructor({hint:t=!1,uri:r,mimeType:n,byterange:i}){Er.PARAMCHECK(r),this.hint=t,this.uri=r,this.mimeType=n,this.byterange=i}};st.MediaInitializationSection=kN;var $N=class{constructor({id:t,classId:r,start:n,end:i,duration:s,plannedDuration:a,endOnNext:o,attributes:u={}}){Er.PARAMCHECK(t),Er.CONDITIONALPARAMCHECK([o===!0,r]),Er.CONDITIONALASSERT([i,n],[i,n<=i],[s,s>=0],[a,a>=0]),this.id=t,this.classId=r,this.start=n,this.end=i,this.duration=s,this.plannedDuration=a,this.endOnNext=o,this.attributes=u}};st.DateRange=$N;var LN=class{constructor({type:t,duration:r,tagName:n,value:i}){Er.PARAMCHECK(t),Er.CONDITIONALPARAMCHECK([t==="OUT",r]),Er.CONDITIONALPARAMCHECK([t==="RAW",n]),this.type=t,this.duration=r,this.tagName=n,this.value=i}};st.SpliceInfo=LN;var Ad=class{constructor(t){Er.PARAMCHECK(t),this.type=t}},_m=class extends Ad{constructor({isMasterPlaylist:t,uri:r,version:n,independentSegments:i=!1,start:s,source:a}){super("playlist"),Er.PARAMCHECK(t),this.isMasterPlaylist=t,this.uri=r,this.version=n,this.independentSegments=i,this.start=s,this.source=a}};st.Playlist=_m;var MN=class extends _m{constructor(t={}){super({...t,isMasterPlaylist:!0});let{variants:r=[],currentVariant:n,sessionDataList:i=[],sessionKeyList:s=[]}=t;this.variants=r,this.currentVariant=n,this.sessionDataList=i,this.sessionKeyList=s}};st.MasterPlaylist=MN;var FN=class extends _m{constructor(t={}){super({...t,isMasterPlaylist:!1});let{targetDuration:r,mediaSequenceBase:n=0,discontinuitySequenceBase:i=0,endlist:s=!1,playlistType:a,isIFrame:o,segments:u=[],prefetchSegments:l=[],lowLatencyCompatibility:c,partTargetDuration:f,renditionReports:d=[],skip:h=0,hash:p}=t;this.targetDuration=r,this.mediaSequenceBase=n,this.discontinuitySequenceBase=i,this.endlist=s,this.playlistType=a,this.isIFrame=o,this.segments=u,this.prefetchSegments=l,this.lowLatencyCompatibility=c,this.partTargetDuration=f,this.renditionReports=d,this.skip=h,this.hash=p}};st.MediaPlaylist=FN;var BN=class extends Ad{constructor({uri:t,mimeType:r,data:n,duration:i,title:s,byterange:a,discontinuity:o,mediaSequenceNumber:u=0,discontinuitySequence:l=0,key:c,map:f,programDateTime:d,dateRange:h,markers:p=[],parts:m=[]}){super("segment"),this.uri=t,this.mimeType=r,this.data=n,this.duration=i,this.title=s,this.byterange=a,this.discontinuity=o,this.mediaSequenceNumber=u,this.discontinuitySequence=l,this.key=c,this.map=f,this.programDateTime=d,this.dateRange=h,this.markers=p,this.parts=m}};st.Segment=BN;var qN=class extends Ad{constructor({hint:t=!1,uri:r,duration:n,independent:i,byterange:s,gap:a}){super("part"),Er.PARAMCHECK(r),this.hint=t,this.uri=r,this.duration=n,this.independent=i,this.duration=n,this.byterange=s,this.gap=a}};st.PartialSegment=qN;var jN=class extends Ad{constructor({uri:t,discontinuity:r,mediaSequenceNumber:n=0,discontinuitySequence:i=0,key:s}){super("prefetch"),Er.PARAMCHECK(t),this.uri=t,this.discontinuity=r,this.mediaSequenceNumber=n,this.discontinuitySequence=i,this.key=s}};st.PrefetchSegment=jN;var UN=class{constructor({uri:t,lastMSN:r,lastPart:n}){Er.PARAMCHECK(t),this.uri=t,this.lastMSN=r,this.lastPart=n}};st.RenditionReport=UN});var _ne=_(io=>{"use strict";var MVe=io&&io.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),FVe=io&&io.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),BVe=io&&io.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&MVe(t,e,r);return FVe(t,e),t};Object.defineProperty(io,"__esModule",{value:!0});var de=BVe(Em()),qr=HN();function xne(e){return de.trim(e,'"')}function qVe(e){switch(e){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-PREFETCH-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PREFETCH":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}function jVe(e){let t=de.splitAt(e,",");return{duration:de.toNumber(t[0]),title:decodeURIComponent(escape(t[1]))}}function Ene(e){let t=de.splitAt(e,"@");return{length:de.toNumber(t[0]),offset:t[1]?de.toNumber(t[1]):-1}}function UVe(e){let t=de.splitAt(e,"x");return{width:de.toNumber(t[0]),height:de.toNumber(t[1])}}function HVe(e){let t="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",r=e.split(",");r.length===0&&de.INVALIDPLAYLIST(t);let n=[];for(let i of r){let[s,a]=de.splitAt(i,":");if(!s||!a){de.INVALIDPLAYLIST(t);continue}n.push({format:s,cpcList:a.split("/")})}return n}function zVe(e){let t=de.hexToByteSequence(e);return t.length!==16&&de.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),t}function VVe(e){return e.startsWith('"')?xne(e):e.startsWith("0x")||e.startsWith("0X")?de.hexToByteSequence(e):de.toNumber(e)}function zN(e,t){t.IV&&e.compatibleVersion<2&&(e.compatibleVersion=2),(t.KEYFORMAT||t.KEYFORMATVERSIONS)&&e.compatibleVersion<5&&(e.compatibleVersion=5)}function hne(e){let t={};for(let r of de.splitByCommaWithPreservingQuotes(e)){let[n,i]=de.splitAt(r,"="),s=xne(i);switch(n){case"URI":t[n]=s;break;case"START-DATE":case"END-DATE":t[n]=new Date(s);break;case"IV":t[n]=zVe(s);break;case"BYTERANGE":t[n]=Ene(s);break;case"RESOLUTION":t[n]=UVe(s);break;case"ALLOWED-CPC":t[n]=HVe(s);break;case"END-ON-NEXT":case"DEFAULT":case"AUTOSELECT":case"FORCED":case"PRECISE":case"CAN-BLOCK-RELOAD":case"INDEPENDENT":case"GAP":t[n]=s==="YES";break;case"DURATION":case"PLANNED-DURATION":case"BANDWIDTH":case"AVERAGE-BANDWIDTH":case"FRAME-RATE":case"TIME-OFFSET":case"CAN-SKIP-UNTIL":case"HOLD-BACK":case"PART-HOLD-BACK":case"PART-TARGET":case"BYTERANGE-START":case"BYTERANGE-LENGTH":case"LAST-MSN":case"LAST-PART":case"SKIPPED-SEGMENTS":case"SCORE":case"PROGRAM-ID":t[n]=de.toNumber(s);break;default:n.startsWith("SCTE35-")?t[n]=de.hexToByteSequence(s):n.startsWith("X-")?t[n]=VVe(i):(n==="VIDEO-RANGE"&&s!=="SDR"&&s!=="HLG"&&s!=="PQ"&&de.INVALIDPLAYLIST(`VIDEO-RANGE: unknown value "${s}"`),t[n]=s)}}return t}function GVe(e,t){switch(e){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":return[de.toNumber(t),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(t))?[null,hne(t)]:[de.toNumber(t),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,hne(t)];case"EXTINF":return[jVe(t),null];case"EXT-X-BYTERANGE":return[Ene(t),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(t),null];case"EXT-X-PLAYLIST-TYPE":return[t,null];default:return[t,null]}}function mne(){de.INVALIDPLAYLIST("The file contains both media and master playlist tags.")}function WVe(e){let t=e.indexOf(":");return t===-1?[e.slice(1).trim(),null]:[e.slice(1,t).trim(),e.slice(t+1).trim()]}function KVe({attributes:e}){return new qr.Rendition({type:e.TYPE,uri:e.URI,groupId:e["GROUP-ID"],language:e.LANGUAGE,assocLanguage:e["ASSOC-LANGUAGE"],name:e.NAME,isDefault:e.DEFAULT,autoselect:e.AUTOSELECT,forced:e.FORCED,instreamId:e["INSTREAM-ID"],characteristics:e.CHARACTERISTICS,channels:e.CHANNELS})}function YVe(e,t){let r=!1;for(let n of e){if(n.name===t.name)return"All EXT-X-MEDIA tags in the same Group MUST have different NAME attributes.";n.isDefault&&(r=!0)}return r&&t.isDefault?"EXT-X-MEDIA A Group MUST NOT have more than one member with a DEFAULT attribute of YES.":""}function XVe(e,t,r){let n=KVe(t),i=e[de.camelify(r)],s=YVe(i,n);s&&de.INVALIDPLAYLIST(s),i.push(n),n.isDefault&&(e.currentRenditions[de.camelify(r)]=i.length-1)}function JVe(e,t,r){for(let n of["AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS"])n==="CLOSED-CAPTIONS"&&e[n]==="NONE"?(r.isClosedCaptionsNone=!0,t.closedCaptions=[]):e[n]&&!t[de.camelify(n)].some(i=>i.groupId===e[n])&&de.INVALIDPLAYLIST(`${n} attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ${n}.`)}function gne(e,t,r,n,i){let s=new qr.Variant({uri:r,bandwidth:t.BANDWIDTH,averageBandwidth:t["AVERAGE-BANDWIDTH"],score:t.SCORE,codecs:t.CODECS,resolution:t.RESOLUTION,frameRate:t["FRAME-RATE"],hdcpLevel:t["HDCP-LEVEL"],allowedCpc:t["ALLOWED-CPC"],videoRange:t["VIDEO-RANGE"],stableVariantId:t["STABLE-VARIANT-ID"],programId:t["PROGRAM-ID"]});for(let a of e)if(a.name==="EXT-X-MEDIA"){let o=a.attributes,u=o.TYPE;if((!u||!o["GROUP-ID"])&&de.INVALIDPLAYLIST("EXT-X-MEDIA TYPE attribute is REQUIRED."),t[u]===o["GROUP-ID"]&&(XVe(s,a,u),u==="CLOSED-CAPTIONS")){for(let{instreamId:l}of s.closedCaptions)if(l&&l.startsWith("SERVICE")&&i.compatibleVersion<7){i.compatibleVersion=7;break}}}return JVe(t,s,i),s.isIFrameOnly=n,s}function QVe(e,t){if(e.method!==t.method||e.uri!==t.uri)return!1;if(e.iv){if(!t.iv||e.iv.length!==t.iv.length)return!1;for(let r=0;r<e.iv.length;r++)if(e.iv[r]!==t.iv[r])return!1}else if(t.iv)return!1;return!(e.format!==t.format||e.formatVersion!==t.formatVersion)}function ZVe(e,t){let r=new qr.MasterPlaylist,n=!1;for(let[i,{name:s,value:a,attributes:o}]of e.entries())if(s==="EXT-X-VERSION")r.version=a;else if(s==="EXT-X-STREAM-INF"){let u=e[i+1];(typeof u!="string"||u.startsWith("#EXT"))&&de.INVALIDPLAYLIST("EXT-X-STREAM-INF must be followed by a URI line");let l=gne(e,o,u,!1,t);l&&(typeof l.score=="number"&&(n=!0,l.score<0&&de.INVALIDPLAYLIST("SCORE attribute on EXT-X-STREAM-INF must be positive decimal-floating-point number.")),r.variants.push(l))}else if(s==="EXT-X-I-FRAME-STREAM-INF"){let u=gne(e,o,o.URI,!0,t);u&&r.variants.push(u)}else if(s==="EXT-X-SESSION-DATA"){let u=new qr.SessionData({id:o["DATA-ID"],value:o.VALUE,uri:o.URI,language:o.LANGUAGE});r.sessionDataList.some(l=>l.id===u.id&&l.language===u.language)&&de.INVALIDPLAYLIST("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),r.sessionDataList.push(u)}else if(s==="EXT-X-SESSION-KEY"){o.METHOD==="NONE"&&de.INVALIDPLAYLIST("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");let u=new qr.Key({method:o.METHOD,uri:o.URI,iv:o.IV,format:o.KEYFORMAT,formatVersion:o.KEYFORMATVERSIONS});r.sessionKeyList.some(l=>QVe(l,u))&&de.INVALIDPLAYLIST("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),zN(t,o),r.sessionKeyList.push(u)}else s==="EXT-X-INDEPENDENT-SEGMENTS"?(r.independentSegments&&de.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),r.independentSegments=!0):s==="EXT-X-START"&&(r.start&&de.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof o["TIME-OFFSET"]!="number"&&de.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),r.start={offset:o["TIME-OFFSET"],precise:o.PRECISE||!1});if(n)for(let i of r.variants)typeof i.score!="number"&&de.INVALIDPLAYLIST("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute");if(t.isClosedCaptionsNone)for(let i of r.variants)i.closedCaptions.length>0&&de.INVALIDPLAYLIST("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE");return r}function yne(e,t,r,n,i,s,a){let o=new qr.Segment({uri:t,mediaSequenceNumber:i,discontinuitySequence:s}),u=!1,l=!1;for(let c=r;c<=n;c++){let{name:f,value:d,attributes:h}=e[c];if(f==="EXTINF")!Number.isInteger(d.duration)&&a.compatibleVersion<3&&(a.compatibleVersion=3),Math.round(d.duration)>a.targetDuration&&de.INVALIDPLAYLIST("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),o.duration=d.duration,o.title=d.title;else if(f==="EXT-X-BYTERANGE")a.compatibleVersion<4&&(a.compatibleVersion=4),o.byterange=d;else if(f==="EXT-X-DISCONTINUITY")o.parts.length>0&&de.INVALIDPLAYLIST("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),o.discontinuity=!0;else if(f==="EXT-X-KEY")o.parts.length>0&&de.INVALIDPLAYLIST("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),zN(a,h),o.key=new qr.Key({method:h.METHOD,uri:h.URI,iv:h.IV,format:h.KEYFORMAT,formatVersion:h.KEYFORMATVERSIONS});else if(f==="EXT-X-MAP")o.parts.length>0&&de.INVALIDPLAYLIST("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),a.compatibleVersion<5&&(a.compatibleVersion=5),a.hasMap=!0,o.map=new qr.MediaInitializationSection({uri:h.URI,byterange:h.BYTERANGE});else if(f==="EXT-X-PROGRAM-DATE-TIME")o.programDateTime=d;else if(f==="EXT-X-DATERANGE"){let p={};for(let m of Object.keys(h))(m.startsWith("SCTE35-")||m.startsWith("X-"))&&(p[m]=h[m]);o.dateRange=new qr.DateRange({id:h.ID,classId:h.CLASS,start:h["START-DATE"],end:h["END-DATE"],duration:h.DURATION,plannedDuration:h["PLANNED-DURATION"],endOnNext:h["END-ON-NEXT"],attributes:p})}else if(f==="EXT-X-CUE-OUT")o.markers.push(new qr.SpliceInfo({type:"OUT",duration:h&&h.DURATION||d}));else if(f==="EXT-X-CUE-IN")o.markers.push(new qr.SpliceInfo({type:"IN"}));else if(f==="EXT-X-CUE-OUT-CONT"||f==="EXT-X-CUE"||f==="EXT-OATCLS-SCTE35"||f==="EXT-X-ASSET"||f==="EXT-X-SCTE35")o.markers.push(new qr.SpliceInfo({type:"RAW",tagName:f,value:d}));else if(f==="EXT-X-PRELOAD-HINT"&&!h.TYPE)de.INVALIDPLAYLIST("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory");else if(f==="EXT-X-PRELOAD-HINT"&&h.TYPE==="PART"&&l)de.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist.");else if((f==="EXT-X-PART"||f==="EXT-X-PRELOAD-HINT")&&!h.URI)de.INVALIDPLAYLIST("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else if(f==="EXT-X-PRELOAD-HINT"&&h.TYPE==="MAP")u&&de.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),u=!0,a.hasMap=!0,o.map=new qr.MediaInitializationSection({hint:!0,uri:h.URI,byterange:{length:h["BYTERANGE-LENGTH"],offset:h["BYTERANGE-START"]||0}});else if(f==="EXT-X-PART"||f==="EXT-X-PRELOAD-HINT"&&h.TYPE==="PART"){f==="EXT-X-PART"&&!h.DURATION&&de.INVALIDPLAYLIST("EXT-X-PART: DURATION attribute is mandatory"),f==="EXT-X-PRELOAD-HINT"&&(l=!0);let p=new qr.PartialSegment({hint:f==="EXT-X-PRELOAD-HINT",uri:h.URI,byterange:f==="EXT-X-PART"?h.BYTERANGE:{length:h["BYTERANGE-LENGTH"],offset:h["BYTERANGE-START"]||0},duration:h.DURATION,independent:h.INDEPENDENT,gap:h.GAP});o.parts.push(p)}}return o}function eGe(e,t,r,n,i,s,a){let o=new qr.PrefetchSegment({uri:t,mediaSequenceNumber:i,discontinuitySequence:s});for(let u=r;u<=n;u++){let{name:l,attributes:c}=e[u];l==="EXTINF"?de.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXTINF tag."):l==="EXT-X-DISCONTINUITY"?de.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXT-X-DISCONTINUITY tag."):l==="EXT-X-PREFETCH-DISCONTINUITY"?o.discontinuity=!0:l==="EXT-X-KEY"?(zN(a,c),o.key=new qr.Key({method:c.METHOD,uri:c.URI,iv:c.IV,format:c.KEYFORMAT,formatVersion:c.KEYFORMATVERSIONS})):l==="EXT-X-MAP"&&de.INVALIDPLAYLIST("Prefetch segments must not be advertised with an EXT-X-MAP tag.")}return o}function tGe(e,t){let r=new qr.MediaPlaylist,n=-1,i=0,s=!1,a=!1,o=0,u=null,l=null,c=!1;for(let[f,d]of e.entries()){let{name:h,value:p,attributes:m,category:y}=d;if(y==="Segment"){n===-1&&(n=f),h==="EXT-X-DISCONTINUITY"&&(s=!0);continue}if(h==="EXT-X-VERSION")r.version===void 0?r.version=p:de.INVALIDPLAYLIST("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if(h==="EXT-X-TARGETDURATION")r.targetDuration=t.targetDuration=p;else if(h==="EXT-X-MEDIA-SEQUENCE")r.segments.length>0&&de.INVALIDPLAYLIST("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),r.mediaSequenceBase=i=p;else if(h==="EXT-X-DISCONTINUITY-SEQUENCE")r.segments.length>0&&de.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),s&&de.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),r.discontinuitySequenceBase=o=p;else if(h==="EXT-X-ENDLIST")r.endlist=!0;else if(h==="EXT-X-PLAYLIST-TYPE")r.playlistType=p;else if(h==="EXT-X-I-FRAMES-ONLY")t.compatibleVersion<4&&(t.compatibleVersion=4),r.isIFrame=!0;else if(h==="EXT-X-INDEPENDENT-SEGMENTS")r.independentSegments&&de.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),r.independentSegments=!0;else if(h==="EXT-X-START")r.start&&de.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof m["TIME-OFFSET"]!="number"&&de.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),r.start={offset:m["TIME-OFFSET"],precise:m.PRECISE||!1};else if(h==="EXT-X-SERVER-CONTROL")m["CAN-BLOCK-RELOAD"]||de.INVALIDPLAYLIST("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),r.lowLatencyCompatibility={canBlockReload:m["CAN-BLOCK-RELOAD"],canSkipUntil:m["CAN-SKIP-UNTIL"],holdBack:m["HOLD-BACK"],partHoldBack:m["PART-HOLD-BACK"]};else if(h==="EXT-X-PART-INF")m["PART-TARGET"]||de.INVALIDPLAYLIST("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),r.partTargetDuration=m["PART-TARGET"];else if(h==="EXT-X-RENDITION-REPORT")m.URI||de.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),m.URI.search(/^[a-z]+:/)===0&&de.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),r.renditionReports.push(new qr.RenditionReport({uri:m.URI,lastMSN:m["LAST-MSN"],lastPart:m["LAST-PART"]}));else if(h==="EXT-X-SKIP")m["SKIPPED-SEGMENTS"]||de.INVALIDPLAYLIST("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),t.compatibleVersion<9&&(t.compatibleVersion=9),r.skip=m["SKIPPED-SEGMENTS"],i+=r.skip;else if(h==="EXT-X-PREFETCH"){let g=eGe(e,p,n===-1?f:n,f-1,i++,o,t);g&&(g.discontinuity&&(g.discontinuitySequence++,o=g.discontinuitySequence),g.key?u=g.key:g.key=u,r.prefetchSegments.push(g)),a=!0,n=-1}else if(typeof d=="string"){n===-1&&de.INVALIDPLAYLIST("A URI line is not preceded by any segment tags"),r.targetDuration||de.INVALIDPLAYLIST("The EXT-X-TARGETDURATION tag is REQUIRED"),a&&de.INVALIDPLAYLIST("These segments must appear after all complete segments.");let g=yne(e,d,n,f-1,i++,o,t);g&&([o,u,l]=bne(r,g,o,u,l),!c&&g.parts.length>0&&(c=!0)),n=-1}}if(n!==-1){let f=yne(e,"",n,e.length-1,i++,o,t);if(f){let{parts:d}=f;d.length>0&&!r.endlist&&!d.at(-1)?.hint&&de.INVALIDPLAYLIST("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),bne(r,f,u,l),!c&&f.parts.length>0&&(c=!0)}}return rGe(r.segments),r.lowLatencyCompatibility&&nGe(r,c),r}function bne(e,t,r,n,i){let{discontinuity:s,key:a,map:o,byterange:u,uri:l}=t;if(s&&(t.discontinuitySequence=r+1),a||(t.key=n),o||(t.map=i),u&&u.offset===-1){let{segments:c}=e;if(c.length>0){let f=c.at(-1);f.byterange&&f.uri===l?u.offset=f.byterange.offset+f.byterange.length:de.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else de.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return e.segments.push(t),[t.discontinuitySequence,t.key,t.map]}function rGe(e){let t=new Map,r=new Map,n=!1,i=!1;for(let s=e.length-1;s>=0;s--){let{programDateTime:a,dateRange:o}=e[s];if(a&&(i=!0),o&&o.start){n=!0,o.endOnNext&&(o.end||o.duration)&&de.INVALIDPLAYLIST("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");let u=o.start.getTime(),l=o.duration||0;o.end&&o.duration&&u+l*1e3!==o.end.getTime()&&de.INVALIDPLAYLIST("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),o.endOnNext&&(o.end=t.get(o.classId)),t.set(o.classId,o.start);let c=o.end?o.end.getTime():o.start.getTime()+(o.duration||0)*1e3,f=r.get(o.classId);if(f){for(let d of f)(d.start<=u&&d.end>u||d.start>=u&&d.start<c)&&de.INVALIDPLAYLIST("DATERANGE tags with the same CLASS should not overlap");f.push({start:u,end:c})}else o.classId&&r.set(o.classId,[{start:u,end:c}])}}n&&!i&&de.INVALIDPLAYLIST("If a Playlist contains an EXT-X-DATERANGE tag, it MUST also contain at least one EXT-X-PROGRAM-DATE-TIME tag.")}function nGe({lowLatencyCompatibility:e,targetDuration:t,partTargetDuration:r,segments:n,renditionReports:i},s){let{canSkipUntil:a,holdBack:o,partHoldBack:u}=e;if(a<t*6&&de.INVALIDPLAYLIST("The Skip Boundary must be at least six times the EXT-X-TARGETDURATION."),o<t*3&&de.INVALIDPLAYLIST("HOLD-BACK must be at least three times the EXT-X-TARGETDURATION."),s){r===void 0&&de.INVALIDPLAYLIST("EXT-X-PART-INF is required if a Playlist contains one or more EXT-X-PART tags"),u===void 0&&de.INVALIDPLAYLIST("EXT-X-PART: PART-HOLD-BACK attribute is mandatory"),u<r&&de.INVALIDPLAYLIST("PART-HOLD-BACK must be at least PART-TARGET");for(let[l,{parts:c}]of n.entries()){c.length>0&&l<n.length-3&&de.INVALIDPLAYLIST("Remove EXT-X-PART tags from the Playlist after they are greater than three target durations from the end of the Playlist.");for(let[f,{duration:d}]of c.entries())d!==void 0&&(d>r&&de.INVALIDPLAYLIST("PART-TARGET is the maximum duration of any Partial Segment"),f<c.length-1&&d<r*.85&&de.INVALIDPLAYLIST("All Partial Segments except the last part of a segment must have a duration of at least 85% of PART-TARGET"))}}for(let l of i){let c=n.at(-1);(l.lastMSN===null||l.lastMSN===void 0)&&(l.lastMSN=c.mediaSequenceNumber),(l.lastPart===null||l.lastPart===void 0)&&c.parts.length>0&&(l.lastPart=c.parts.length-1)}}function iGe(e,t){if(e==="Segment"||e==="MediaPlaylist"){if(t.isMasterPlaylist===void 0){t.isMasterPlaylist=!1;return}t.isMasterPlaylist&&mne();return}if(e==="MasterPlaylist"){if(t.isMasterPlaylist===void 0){t.isMasterPlaylist=!0;return}t.isMasterPlaylist===!1&&mne()}}function sGe(e,t){let[r,n]=WVe(e),i=qVe(r);if(iGe(i,t),i==="Unknown")return null;i==="MediaPlaylist"&&r!=="EXT-X-RENDITION-REPORT"&&r!=="EXT-X-PREFETCH"&&(t.hash[r]&&de.INVALIDPLAYLIST("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),t.hash[r]=!0);let[s,a]=GVe(r,n);return{name:r,category:i,value:s,attributes:a}}function aGe(e,t){let r=[];for(let n of e.split(`
`)){let i=Buffer.from(n.trim()).toString();if(i){if(i.startsWith("#")){if(i.startsWith("#EXT")){let s=sGe(i,t);s&&r.push(s)}continue}r.push(i)}}return(r.length===0||r[0].name!=="EXTM3U")&&de.INVALIDPLAYLIST("The EXTM3U tag MUST be the first line."),r}function oGe(e,t){let r;return t.isMasterPlaylist?r=ZVe(e,t):(r=tGe(e,t),!r.isIFrame&&t.hasMap&&t.compatibleVersion<6&&(t.compatibleVersion=6)),t.compatibleVersion>1&&(!r.version||r.version<t.compatibleVersion)&&de.INVALIDPLAYLIST(`EXT-X-VERSION needs to be ${t.compatibleVersion} or higher.`),r}function uGe(e){let t={version:void 0,isMasterPlaylist:void 0,hasMap:!1,targetDuration:0,compatibleVersion:1,isClosedCaptionsNone:!1,hash:{}},r=aGe(e,t),n=oGe(r,t);return n.source=e,n}io.default=uGe});var Tne=_(so=>{"use strict";var cGe=so&&so.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),lGe=so&&so.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),fGe=so&&so.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&cGe(t,e,r);return lGe(t,e),t};Object.defineProperty(so,"__esModule",{value:!0});var Ts=fGe(Em()),dGe=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],pGe=["#EXT-X-MEDIA"],VN=class extends Array{constructor(t){super(),this.baseUri=t}push(...t){for(let r of t){if(!r.startsWith("#")){super.push(r);continue}if(dGe.some(n=>r.startsWith(n))){super.push(r);continue}if(this.includes(r)){if(pGe.some(n=>r.startsWith(n)))continue;Ts.INVALIDPLAYLIST(`Redundant item (${r})`)}super.push(r)}return this.length}};function GN(e,t){let r=1e3;t&&(r=10**t);let n=Math.round(e*r)/r;return t?n.toFixed(t):n}function hGe(e){let t=e.toString(10),r=t.indexOf(".");return r===-1?0:t.length-r-1}function mGe(e,t){for(let r of t.sessionDataList)e.push(gGe(r));for(let r of t.sessionKeyList)e.push(vne(r,!0));for(let r of t.variants)yGe(e,r)}function gGe(e){let t=[`DATA-ID="${e.id}"`];return e.language&&t.push(`LANGUAGE="${e.language}"`),e.value?t.push(`VALUE="${e.value}"`):e.uri&&t.push(`URI="${e.uri}"`),`#EXT-X-SESSION-DATA:${t.join(",")}`}function vne(e,t){let r=t?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",n=[`METHOD=${e.method}`];return e.uri&&n.push(`URI="${e.uri}"`),e.iv&&(e.iv.length!==16&&Ts.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),n.push(`IV=${Ts.byteSequenceToHex(e.iv)}`)),e.format&&n.push(`KEYFORMAT="${e.format}"`),e.formatVersion&&n.push(`KEYFORMATVERSIONS="${e.formatVersion}"`),`${r}:${n.join(",")}`}function yGe(e,t){let r=t.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",n=[`BANDWIDTH=${t.bandwidth}`];if(t.averageBandwidth&&n.push(`AVERAGE-BANDWIDTH=${t.averageBandwidth}`),t.isIFrameOnly&&n.push(`URI="${t.uri}"`),t.codecs&&n.push(`CODECS="${t.codecs}"`),t.resolution&&n.push(`RESOLUTION=${t.resolution.width}x${t.resolution.height}`),t.frameRate&&n.push(`FRAME-RATE=${GN(t.frameRate,3)}`),t.hdcpLevel&&n.push(`HDCP-LEVEL=${t.hdcpLevel}`),t.audio.length>0){n.push(`AUDIO="${t.audio[0].groupId}"`);for(let i of t.audio)e.push(__(i))}if(t.video.length>0){n.push(`VIDEO="${t.video[0].groupId}"`);for(let i of t.video)e.push(__(i))}if(t.subtitles.length>0){n.push(`SUBTITLES="${t.subtitles[0].groupId}"`);for(let i of t.subtitles)e.push(__(i))}if(Ts.getOptions().allowClosedCaptionsNone&&t.closedCaptions.length===0)n.push("CLOSED-CAPTIONS=NONE");else if(t.closedCaptions.length>0){n.push(`CLOSED-CAPTIONS="${t.closedCaptions[0].groupId}"`);for(let i of t.closedCaptions)e.push(__(i))}if(t.score&&n.push(`SCORE=${t.score}`),t.allowedCpc){let i=[];for(let{format:s,cpcList:a}of t.allowedCpc)i.push(`${s}:${a.join("/")}`);n.push(`ALLOWED-CPC="${i.join(",")}"`)}t.videoRange&&n.push(`VIDEO-RANGE=${t.videoRange}`),t.stableVariantId&&n.push(`STABLE-VARIANT-ID="${t.stableVariantId}"`),t.programId&&n.push(`PROGRAM-ID=${t.programId}`),e.push(`${r}:${n.join(",")}`),t.isIFrameOnly||e.push(`${t.uri}`)}function __(e){let t=[`TYPE=${e.type}`,`GROUP-ID="${e.groupId}"`,`NAME="${e.name}"`];return e.isDefault!==void 0&&t.push(`DEFAULT=${e.isDefault?"YES":"NO"}`),e.autoselect!==void 0&&t.push(`AUTOSELECT=${e.autoselect?"YES":"NO"}`),e.forced!==void 0&&t.push(`FORCED=${e.forced?"YES":"NO"}`),e.language&&t.push(`LANGUAGE="${e.language}"`),e.assocLanguage&&t.push(`ASSOC-LANGUAGE="${e.assocLanguage}"`),e.instreamId&&t.push(`INSTREAM-ID="${e.instreamId}"`),e.characteristics&&t.push(`CHARACTERISTICS="${e.characteristics}"`),e.channels&&t.push(`CHANNELS="${e.channels}"`),e.uri&&t.push(`URI="${e.uri}"`),`#EXT-X-MEDIA:${t.join(",")}`}function bGe(e,t){let r="",n="",i=!1;if(t.targetDuration&&e.push(`#EXT-X-TARGETDURATION:${t.targetDuration}`),t.lowLatencyCompatibility){let{canBlockReload:s,canSkipUntil:a,holdBack:o,partHoldBack:u}=t.lowLatencyCompatibility,l=[];l.push(`CAN-BLOCK-RELOAD=${s?"YES":"NO"}`),a!==void 0&&l.push(`CAN-SKIP-UNTIL=${a}`),o!==void 0&&l.push(`HOLD-BACK=${o}`),u!==void 0&&l.push(`PART-HOLD-BACK=${u}`),e.push(`#EXT-X-SERVER-CONTROL:${l.join(",")}`)}t.partTargetDuration&&e.push(`#EXT-X-PART-INF:PART-TARGET=${t.partTargetDuration}`),t.mediaSequenceBase&&e.push(`#EXT-X-MEDIA-SEQUENCE:${t.mediaSequenceBase}`),t.discontinuitySequenceBase&&e.push(`#EXT-X-DISCONTINUITY-SEQUENCE:${t.discontinuitySequenceBase}`),t.playlistType&&e.push(`#EXT-X-PLAYLIST-TYPE:${t.playlistType}`),t.isIFrame&&e.push("#EXT-X-I-FRAMES-ONLY"),t.skip>0&&e.push(`#EXT-X-SKIP:SKIPPED-SEGMENTS=${t.skip}`);for(let s of t.segments){let a="";[r,n,a]=xGe(e,s,r,n,t.version),a==="OUT"?i=!0:a==="IN"&&i&&(i=!1)}t.playlistType==="VOD"&&i&&e.push("#EXT-X-CUE-IN"),t.prefetchSegments.length>2&&Ts.INVALIDPLAYLIST("The server must deliver no more than two prefetch segments");for(let s of t.prefetchSegments)s.discontinuity&&e.push("#EXT-X-PREFETCH-DISCONTINUITY"),e.push(`#EXT-X-PREFETCH:${s.uri}`);t.endlist&&e.push("#EXT-X-ENDLIST");for(let s of t.renditionReports){let a=[];a.push(`URI="${s.uri}"`,`LAST-MSN=${s.lastMSN}`),s.lastPart!==void 0&&a.push(`LAST-PART=${s.lastPart}`),e.push(`#EXT-X-RENDITION-REPORT:${a.join(",")}`)}}function xGe(e,t,r,n,i=1){let s=!1,a="";if(t.discontinuity&&e.push("#EXT-X-DISCONTINUITY"),t.key){let u=vne(t.key);u!==r&&(e.push(u),r=u)}if(t.map){let u=EGe(t.map);u!==n&&(e.push(u),n=u)}if(t.programDateTime&&e.push(`#EXT-X-PROGRAM-DATE-TIME:${Ts.formatDate(t.programDateTime)}`),t.dateRange&&e.push(_Ge(t.dateRange)),t.markers.length>0&&(a=vGe(e,t.markers)),t.parts.length>0&&(s=TGe(e,t.parts)),s)return[r,n];let o=i<3?Math.round(t.duration):GN(t.duration,hGe(t.duration));return e.push(`#EXTINF:${o},${unescape(encodeURIComponent(t.title||""))}`),t.byterange&&e.push(`#EXT-X-BYTERANGE:${WN(t.byterange)}`),Array.prototype.push.call(e,`${t.uri}`),[r,n,a]}function EGe(e){let t=[`URI="${e.uri}"`];return e.byterange&&t.push(`BYTERANGE="${WN(e.byterange)}"`),`#EXT-X-MAP:${t.join(",")}`}function WN({offset:e,length:t}){return`${t}@${e}`}function _Ge(e){let t=[`ID="${e.id}"`];e.start&&t.push(`START-DATE="${Ts.formatDate(e.start)}"`),e.end&&t.push(`END-DATE="${Ts.formatDate(e.end)}"`),e.duration&&t.push(`DURATION=${e.duration}`),e.plannedDuration&&t.push(`PLANNED-DURATION=${e.plannedDuration}`),e.classId&&t.push(`CLASS="${e.classId}"`),e.endOnNext&&t.push("END-ON-NEXT=YES");for(let r of Object.keys(e.attributes))r.startsWith("X-")?typeof e.attributes[r]=="number"?t.push(`${r}=${e.attributes[r]}`):t.push(`${r}="${e.attributes[r]}"`):r.startsWith("SCTE35-")&&t.push(`${r}=${Ts.byteSequenceToHex(e.attributes[r])}`);return`#EXT-X-DATERANGE:${t.join(",")}`}function vGe(e,t){let r="";for(let n of t)if(n.type==="OUT")r="OUT",e.push(`#EXT-X-CUE-OUT:DURATION=${n.duration}`);else if(n.type==="IN")r="IN",e.push("#EXT-X-CUE-IN");else if(n.type==="RAW"){let i=n.value?`:${n.value}`:"";e.push(`#${n.tagName}${i}`)}return r}function TGe(e,t){let r=!1;for(let n of t)if(n.hint){let i=[];if(i.push("TYPE=PART",`URI="${n.uri}"`),n.byterange){let{offset:s,length:a}=n.byterange;i.push(`BYTERANGE-START=${s}`),a&&i.push(`BYTERANGE-LENGTH=${a}`)}e.push(`#EXT-X-PRELOAD-HINT:${i.join(",")}`),r=!0}else{let i=[];i.push(`DURATION=${n.duration}`,`URI="${n.uri}"`),n.byterange&&i.push(`BYTERANGE=${WN(n.byterange)}`),n.independent&&i.push("INDEPENDENT=YES"),n.gap&&i.push("GAP=YES"),e.push(`#EXT-X-PART:${i.join(",")}`)}return r}function SGe(e){Ts.PARAMCHECK(e),Ts.ASSERT("Not a playlist",e.type==="playlist");let t=new VN(e.uri);return t.push("#EXTM3U"),e.version&&t.push(`#EXT-X-VERSION:${e.version}`),e.independentSegments&&t.push("#EXT-X-INDEPENDENT-SEGMENTS"),e.start&&t.push(`#EXT-X-START:TIME-OFFSET=${GN(e.start.offset)}${e.start.precise?",PRECISE=YES":""}`),e.isMasterPlaylist?mGe(t,e):bGe(t,e),t.join(`
`)}so.default=SGe});var Ane=_(_r=>{"use strict";var wGe=_r&&_r.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),AGe=_r&&_r.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),CGe=_r&&_r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&wGe(t,e,r);return AGe(t,e),t},Sne=_r&&_r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_r,"__esModule",{value:!0});_r.setOptions=_r.getOptions=_r.types=_r.stringify=_r.parse=void 0;var wne=Em();Object.defineProperty(_r,"getOptions",{enumerable:!0,get:function(){return wne.getOptions}});Object.defineProperty(_r,"setOptions",{enumerable:!0,get:function(){return wne.setOptions}});var IGe=Sne(_ne());_r.parse=IGe.default;var RGe=Sne(Tne());_r.stringify=RGe.default;var NGe=CGe(HN());_r.types=NGe});var sO=_((ymt,Qne)=>{Qne.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Nu=_(sl=>{var aO,YGe=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];sl.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};sl.getSymbolTotalCodewords=function(t){return YGe[t]};sl.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};sl.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');aO=t};sl.isKanjiModeEnabled=function(){return typeof aO<"u"};sl.toSJIS=function(t){return aO(t)}});var D_=_(Ki=>{Ki.L={bit:1};Ki.M={bit:0};Ki.Q={bit:3};Ki.H={bit:2};function XGe(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Ki.L;case"m":case"medium":return Ki.M;case"q":case"quartile":return Ki.Q;case"h":case"high":return Ki.H;default:throw new Error("Unknown EC Level: "+e)}}Ki.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Ki.from=function(t,r){if(Ki.isValid(t))return t;try{return XGe(t)}catch{return r}}});var tie=_((Emt,eie)=>{function Zne(){this.buffer=[],this.length=0}Zne.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};eie.exports=Zne});var nie=_((_mt,rie)=>{function Im(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Im.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};Im.prototype.get=function(e,t){return this.data[e*this.size+t]};Im.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};Im.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};rie.exports=Im});var iie=_(k_=>{var JGe=Nu().getSymbolSize;k_.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=JGe(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,s=[n-7];for(let a=1;a<r-1;a++)s[a]=s[a-1]-i;return s.push(6),s.reverse()};k_.getPositions=function(t){let r=[],n=k_.getRowColCoords(t),i=n.length;for(let s=0;s<i;s++)for(let a=0;a<i;a++)s===0&&a===0||s===0&&a===i-1||s===i-1&&a===0||r.push([n[s],n[a]]);return r}});var oie=_(aie=>{var QGe=Nu().getSymbolSize,sie=7;aie.getPositions=function(t){let r=QGe(t);return[[0,0],[r-sie,0],[0,r-sie]]}});var uie=_(Gt=>{Gt.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var al={N1:3,N2:3,N3:40,N4:10};Gt.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Gt.from=function(t){return Gt.isValid(t)?parseInt(t,10):void 0};Gt.getPenaltyN1=function(t){let r=t.size,n=0,i=0,s=0,a=null,o=null;for(let u=0;u<r;u++){i=s=0,a=o=null;for(let l=0;l<r;l++){let c=t.get(u,l);c===a?i++:(i>=5&&(n+=al.N1+(i-5)),a=c,i=1),c=t.get(l,u),c===o?s++:(s>=5&&(n+=al.N1+(s-5)),o=c,s=1)}i>=5&&(n+=al.N1+(i-5)),s>=5&&(n+=al.N1+(s-5))}return n};Gt.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let s=0;s<r-1;s++){let a=t.get(i,s)+t.get(i,s+1)+t.get(i+1,s)+t.get(i+1,s+1);(a===4||a===0)&&n++}return n*al.N2};Gt.getPenaltyN3=function(t){let r=t.size,n=0,i=0,s=0;for(let a=0;a<r;a++){i=s=0;for(let o=0;o<r;o++)i=i<<1&2047|t.get(a,o),o>=10&&(i===1488||i===93)&&n++,s=s<<1&2047|t.get(o,a),o>=10&&(s===1488||s===93)&&n++}return n*al.N3};Gt.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let s=0;s<n;s++)r+=t.data[s];return Math.abs(Math.ceil(r*100/n/5)-10)*al.N4};function ZGe(e,t,r){switch(e){case Gt.Patterns.PATTERN000:return(t+r)%2===0;case Gt.Patterns.PATTERN001:return t%2===0;case Gt.Patterns.PATTERN010:return r%3===0;case Gt.Patterns.PATTERN011:return(t+r)%3===0;case Gt.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Gt.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Gt.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Gt.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Gt.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let s=0;s<n;s++)r.isReserved(s,i)||r.xor(s,i,ZGe(t,s,i))};Gt.getBestMask=function(t,r){let n=Object.keys(Gt.Patterns).length,i=0,s=1/0;for(let a=0;a<n;a++){r(a),Gt.applyMask(a,t);let o=Gt.getPenaltyN1(t)+Gt.getPenaltyN2(t)+Gt.getPenaltyN3(t)+Gt.getPenaltyN4(t);Gt.applyMask(a,t),o<s&&(s=o,i=a)}return i}});var uO=_(oO=>{var Ou=D_(),$_=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],L_=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];oO.getBlocksCount=function(t,r){switch(r){case Ou.L:return $_[(t-1)*4+0];case Ou.M:return $_[(t-1)*4+1];case Ou.Q:return $_[(t-1)*4+2];case Ou.H:return $_[(t-1)*4+3];default:return}};oO.getTotalCodewordsCount=function(t,r){switch(r){case Ou.L:return L_[(t-1)*4+0];case Ou.M:return L_[(t-1)*4+1];case Ou.Q:return L_[(t-1)*4+2];case Ou.H:return L_[(t-1)*4+3];default:return}}});var cie=_(F_=>{var Rm=new Uint8Array(512),M_=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)Rm[r]=t,M_[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)Rm[r]=Rm[r-255]})();F_.log=function(t){if(t<1)throw new Error("log("+t+")");return M_[t]};F_.exp=function(t){return Rm[t]};F_.mul=function(t,r){return t===0||r===0?0:Rm[M_[t]+M_[r]]}});var lie=_(Nm=>{var cO=cie();Nm.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let s=0;s<r.length;s++)n[i+s]^=cO.mul(t[i],r[s]);return n};Nm.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let a=0;a<r.length;a++)n[a]^=cO.mul(r[a],i);let s=0;for(;s<n.length&&n[s]===0;)s++;n=n.slice(s)}return n};Nm.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=Nm.mul(r,new Uint8Array([1,cO.exp(n)]));return r}});var pie=_((Imt,die)=>{var fie=lie();function lO(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}lO.prototype.initialize=function(t){this.degree=t,this.genPoly=fie.generateECPolynomial(this.degree)};lO.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=fie.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let s=new Uint8Array(this.degree);return s.set(n,i),s}return n};die.exports=lO});var fO=_(hie=>{hie.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var dO=_(uo=>{var mie="[0-9]+",eWe="[A-Z $%*+\\-./:]+",Om="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Om=Om.replace(/u/g,"\\u");var tWe="(?:(?![A-Z0-9 $%*+\\-./:]|"+Om+`)(?:.|[\r
]))+`;uo.KANJI=new RegExp(Om,"g");uo.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");uo.BYTE=new RegExp(tWe,"g");uo.NUMERIC=new RegExp(mie,"g");uo.ALPHANUMERIC=new RegExp(eWe,"g");var rWe=new RegExp("^"+Om+"$"),nWe=new RegExp("^"+mie+"$"),iWe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");uo.testKanji=function(t){return rWe.test(t)};uo.testNumeric=function(t){return nWe.test(t)};uo.testAlphanumeric=function(t){return iWe.test(t)}});var Pu=_(Tr=>{var sWe=fO(),pO=dO();Tr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Tr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Tr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Tr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Tr.MIXED={bit:-1};Tr.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!sWe.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Tr.getBestModeForData=function(t){return pO.testNumeric(t)?Tr.NUMERIC:pO.testAlphanumeric(t)?Tr.ALPHANUMERIC:pO.testKanji(t)?Tr.KANJI:Tr.BYTE};Tr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Tr.isValid=function(t){return t&&t.bit&&t.ccBits};function aWe(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Tr.NUMERIC;case"alphanumeric":return Tr.ALPHANUMERIC;case"kanji":return Tr.KANJI;case"byte":return Tr.BYTE;default:throw new Error("Unknown mode: "+e)}}Tr.from=function(t,r){if(Tr.isValid(t))return t;try{return aWe(t)}catch{return r}}});var Eie=_(ol=>{var B_=Nu(),oWe=uO(),gie=D_(),Du=Pu(),hO=fO(),bie=7973,yie=B_.getBCHDigit(bie);function uWe(e,t,r){for(let n=1;n<=40;n++)if(t<=ol.getCapacity(n,r,e))return n}function xie(e,t){return Du.getCharCountIndicator(e,t)+4}function cWe(e,t){let r=0;return e.forEach(function(n){let i=xie(n.mode,t);r+=i+n.getBitsLength()}),r}function lWe(e,t){for(let r=1;r<=40;r++)if(cWe(e,r)<=ol.getCapacity(r,t,Du.MIXED))return r}ol.from=function(t,r){return hO.isValid(t)?parseInt(t,10):r};ol.getCapacity=function(t,r,n){if(!hO.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Du.BYTE);let i=B_.getSymbolTotalCodewords(t),s=oWe.getTotalCodewordsCount(t,r),a=(i-s)*8;if(n===Du.MIXED)return a;let o=a-xie(n,t);switch(n){case Du.NUMERIC:return Math.floor(o/10*3);case Du.ALPHANUMERIC:return Math.floor(o/11*2);case Du.KANJI:return Math.floor(o/13);case Du.BYTE:default:return Math.floor(o/8)}};ol.getBestVersionForData=function(t,r){let n,i=gie.from(r,gie.M);if(Array.isArray(t)){if(t.length>1)return lWe(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return uWe(n.mode,n.getLength(),i)};ol.getEncodedBits=function(t){if(!hO.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;B_.getBCHDigit(r)-yie>=0;)r^=bie<<B_.getBCHDigit(r)-yie;return t<<12|r}});var Sie=_(Tie=>{var mO=Nu(),vie=1335,fWe=21522,_ie=mO.getBCHDigit(vie);Tie.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;mO.getBCHDigit(i)-_ie>=0;)i^=vie<<mO.getBCHDigit(i)-_ie;return(n<<10|i)^fWe}});var Aie=_((kmt,wie)=>{var dWe=Pu();function Id(e){this.mode=dWe.NUMERIC,this.data=e.toString()}Id.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Id.prototype.getLength=function(){return this.data.length};Id.prototype.getBitsLength=function(){return Id.getBitsLength(this.data.length)};Id.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let s=this.data.length-r;s>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,s*3+1))};wie.exports=Id});var Iie=_(($mt,Cie)=>{var pWe=Pu(),gO=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Rd(e){this.mode=pWe.ALPHANUMERIC,this.data=e}Rd.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Rd.prototype.getLength=function(){return this.data.length};Rd.prototype.getBitsLength=function(){return Rd.getBitsLength(this.data.length)};Rd.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=gO.indexOf(this.data[r])*45;n+=gO.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(gO.indexOf(this.data[r]),6)};Cie.exports=Rd});var Nie=_((Lmt,Rie)=>{var hWe=Pu();function Nd(e){this.mode=hWe.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Nd.getBitsLength=function(t){return t*8};Nd.prototype.getLength=function(){return this.data.length};Nd.prototype.getBitsLength=function(){return Nd.getBitsLength(this.data.length)};Nd.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};Rie.exports=Nd});var Pie=_((Mmt,Oie)=>{var mWe=Pu(),gWe=Nu();function Od(e){this.mode=mWe.KANJI,this.data=e}Od.getBitsLength=function(t){return t*13};Od.prototype.getLength=function(){return this.data.length};Od.prototype.getBitsLength=function(){return Od.getBitsLength(this.data.length)};Od.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=gWe.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};Oie.exports=Od});var Die=_((Fmt,yO)=>{"use strict";var Pm={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var s=Pm.PriorityQueue.make();s.push(t,0);for(var a,o,u,l,c,f,d,h,p;!s.empty();){a=s.pop(),o=a.value,l=a.cost,c=e[o]||{};for(u in c)c.hasOwnProperty(u)&&(f=c[u],d=l+f,h=i[u],p=typeof i[u]>"u",(p||h>d)&&(i[u]=d,s.push(u,d),n[u]=o))}if(typeof r<"u"&&typeof i[r]>"u"){var m=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(m)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=Pm.single_source_shortest_paths(e,t,r);return Pm.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=Pm.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof yO<"u"&&(yO.exports=Pm)});var jie=_(Pd=>{var Ct=Pu(),Lie=Aie(),Mie=Iie(),Fie=Nie(),Bie=Pie(),Dm=dO(),q_=Nu(),yWe=Die();function kie(e){return unescape(encodeURIComponent(e)).length}function km(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function qie(e){let t=km(Dm.NUMERIC,Ct.NUMERIC,e),r=km(Dm.ALPHANUMERIC,Ct.ALPHANUMERIC,e),n,i;return q_.isKanjiModeEnabled()?(n=km(Dm.BYTE,Ct.BYTE,e),i=km(Dm.KANJI,Ct.KANJI,e)):(n=km(Dm.BYTE_KANJI,Ct.BYTE,e),i=[]),t.concat(r,n,i).sort(function(a,o){return a.index-o.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function bO(e,t){switch(t){case Ct.NUMERIC:return Lie.getBitsLength(e);case Ct.ALPHANUMERIC:return Mie.getBitsLength(e);case Ct.KANJI:return Bie.getBitsLength(e);case Ct.BYTE:return Fie.getBitsLength(e)}}function bWe(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function xWe(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case Ct.NUMERIC:t.push([n,{data:n.data,mode:Ct.ALPHANUMERIC,length:n.length},{data:n.data,mode:Ct.BYTE,length:n.length}]);break;case Ct.ALPHANUMERIC:t.push([n,{data:n.data,mode:Ct.BYTE,length:n.length}]);break;case Ct.KANJI:t.push([n,{data:n.data,mode:Ct.BYTE,length:kie(n.data)}]);break;case Ct.BYTE:t.push([{data:n.data,mode:Ct.BYTE,length:kie(n.data)}])}}return t}function EWe(e,t){let r={},n={start:{}},i=["start"];for(let s=0;s<e.length;s++){let a=e[s],o=[];for(let u=0;u<a.length;u++){let l=a[u],c=""+s+u;o.push(c),r[c]={node:l,lastCount:0},n[c]={};for(let f=0;f<i.length;f++){let d=i[f];r[d]&&r[d].node.mode===l.mode?(n[d][c]=bO(r[d].lastCount+l.length,l.mode)-bO(r[d].lastCount,l.mode),r[d].lastCount+=l.length):(r[d]&&(r[d].lastCount=l.length),n[d][c]=bO(l.length,l.mode)+4+Ct.getCharCountIndicator(l.mode,t))}}i=o}for(let s=0;s<i.length;s++)n[i[s]].end=0;return{map:n,table:r}}function $ie(e,t){let r,n=Ct.getBestModeForData(e);if(r=Ct.from(t,n),r!==Ct.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Ct.toString(r)+`.
Suggested mode is: `+Ct.toString(n));switch(r===Ct.KANJI&&!q_.isKanjiModeEnabled()&&(r=Ct.BYTE),r){case Ct.NUMERIC:return new Lie(e);case Ct.ALPHANUMERIC:return new Mie(e);case Ct.KANJI:return new Bie(e);case Ct.BYTE:return new Fie(e)}}Pd.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push($ie(n,null)):n.data&&r.push($ie(n.data,n.mode)),r},[])};Pd.fromString=function(t,r){let n=qie(t,q_.isKanjiModeEnabled()),i=xWe(n),s=EWe(i,r),a=yWe.find_path(s.map,"start","end"),o=[];for(let u=1;u<a.length-1;u++)o.push(s.table[a[u]].node);return Pd.fromArray(bWe(o))};Pd.rawSplit=function(t){return Pd.fromArray(qie(t,q_.isKanjiModeEnabled()))}});var SO=_(Uie=>{var U_=Nu(),xO=D_(),_We=tie(),vWe=nie(),TWe=iie(),SWe=oie(),vO=uie(),TO=uO(),wWe=pie(),j_=Eie(),AWe=Sie(),CWe=Pu(),EO=jie();function IWe(e,t){let r=e.size,n=SWe.getPositions(t);for(let i=0;i<n.length;i++){let s=n[i][0],a=n[i][1];for(let o=-1;o<=7;o++)if(!(s+o<=-1||r<=s+o))for(let u=-1;u<=7;u++)a+u<=-1||r<=a+u||(o>=0&&o<=6&&(u===0||u===6)||u>=0&&u<=6&&(o===0||o===6)||o>=2&&o<=4&&u>=2&&u<=4?e.set(s+o,a+u,!0,!0):e.set(s+o,a+u,!1,!0))}}function RWe(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function NWe(e,t){let r=TWe.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],s=r[n][1];for(let a=-2;a<=2;a++)for(let o=-2;o<=2;o++)a===-2||a===2||o===-2||o===2||a===0&&o===0?e.set(i+a,s+o,!0,!0):e.set(i+a,s+o,!1,!0)}}function OWe(e,t){let r=e.size,n=j_.getEncodedBits(t),i,s,a;for(let o=0;o<18;o++)i=Math.floor(o/3),s=o%3+r-8-3,a=(n>>o&1)===1,e.set(i,s,a,!0),e.set(s,i,a,!0)}function _O(e,t,r){let n=e.size,i=AWe.getEncodedBits(t,r),s,a;for(s=0;s<15;s++)a=(i>>s&1)===1,s<6?e.set(s,8,a,!0):s<8?e.set(s+1,8,a,!0):e.set(n-15+s,8,a,!0),s<8?e.set(8,n-s-1,a,!0):s<9?e.set(8,15-s-1+1,a,!0):e.set(8,15-s-1,a,!0);e.set(n-8,8,1,!0)}function PWe(e,t){let r=e.size,n=-1,i=r-1,s=7,a=0;for(let o=r-1;o>0;o-=2)for(o===6&&o--;;){for(let u=0;u<2;u++)if(!e.isReserved(i,o-u)){let l=!1;a<t.length&&(l=(t[a]>>>s&1)===1),e.set(i,o-u,l),s--,s===-1&&(a++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function DWe(e,t,r){let n=new _We;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),CWe.getCharCountIndicator(u.mode,e)),u.write(n)});let i=U_.getSymbolTotalCodewords(e),s=TO.getTotalCodewordsCount(e,t),a=(i-s)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(a-n.getLengthInBits())/8;for(let u=0;u<o;u++)n.put(u%2?17:236,8);return kWe(n,e,t)}function kWe(e,t,r){let n=U_.getSymbolTotalCodewords(t),i=TO.getTotalCodewordsCount(t,r),s=n-i,a=TO.getBlocksCount(t,r),o=n%a,u=a-o,l=Math.floor(n/a),c=Math.floor(s/a),f=c+1,d=l-c,h=new wWe(d),p=0,m=new Array(a),y=new Array(a),g=0,v=new Uint8Array(e.buffer);for(let w=0;w<a;w++){let A=w<u?c:f;m[w]=v.slice(p,p+A),y[w]=h.encode(m[w]),p+=A,g=Math.max(g,A)}let E=new Uint8Array(n),x=0,T,S;for(T=0;T<g;T++)for(S=0;S<a;S++)T<m[S].length&&(E[x++]=m[S][T]);for(T=0;T<d;T++)for(S=0;S<a;S++)E[x++]=y[S][T];return E}function $We(e,t,r,n){let i;if(Array.isArray(e))i=EO.fromArray(e);else if(typeof e=="string"){let l=t;if(!l){let c=EO.rawSplit(e);l=j_.getBestVersionForData(c,r)}i=EO.fromString(e,l||40)}else throw new Error("Invalid data");let s=j_.getBestVersionForData(i,r);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=s;else if(t<s)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+s+`.
`);let a=DWe(t,r,i),o=U_.getSymbolSize(t),u=new vWe(o);return IWe(u,t),RWe(u),NWe(u,t),_O(u,r,0),t>=7&&OWe(u,t),PWe(u,a),isNaN(n)&&(n=vO.getBestMask(u,_O.bind(null,u,r))),vO.applyMask(n,u),_O(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}Uie.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=xO.M,i,s;return typeof r<"u"&&(n=xO.from(r.errorCorrectionLevel,xO.M),i=j_.from(r.version),s=vO.from(r.maskPattern),r.toSJISFunc&&U_.setToSJISFunction(r.toSJISFunc)),$We(t,i,n,s)}});var wO=_((jmt,zie)=>{"use strict";var LWe=require("util"),Hie=require("stream"),ws=zie.exports=function(){Hie.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};LWe.inherits(ws,Hie);ws.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};ws.prototype.write=function(e,t){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let r;return Buffer.isBuffer(e)?r=e:r=Buffer.from(e,t||this._encoding),this._buffers.push(r),this._buffered+=r.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};ws.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};ws.prototype.destroySoon=ws.prototype.end;ws.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};ws.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};ws.prototype._processReadAllowingLess=function(e){this._reads.shift();let t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))};ws.prototype._processRead=function(e){this._reads.shift();let t=0,r=0,n=Buffer.alloc(e.length);for(;t<e.length;){let i=this._buffers[r++],s=Math.min(i.length,e.length-t);i.copy(n,t,0,s),t+=s,s!==i.length&&(this._buffers[--r]=i.slice(s))}r>0&&this._buffers.splice(0,r),this._buffered-=e.length,e.func.call(this,n)};ws.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else if(this._buffered>=e.length)this._processRead(e);else break}this._buffers&&!this.writable&&this._end()}catch(e){this.emit("error",e)}}});var CO=_(AO=>{"use strict";var ku=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];AO.getImagePasses=function(e,t){let r=[],n=e%8,i=t%8,s=(e-n)/8,a=(t-i)/8;for(let o=0;o<ku.length;o++){let u=ku[o],l=s*u.x.length,c=a*u.y.length;for(let f=0;f<u.x.length&&u.x[f]<n;f++)l++;for(let f=0;f<u.y.length&&u.y[f]<i;f++)c++;l>0&&c>0&&r.push({width:l,height:c,index:o})}return r};AO.getInterlaceIterator=function(e){return function(t,r,n){let i=t%ku[n].x.length,s=(t-i)/ku[n].x.length*8+ku[n].x[i],a=r%ku[n].y.length,o=(r-a)/ku[n].y.length*8+ku[n].y[a];return s*4+o*e*4}}});var IO=_((Hmt,Vie)=>{"use strict";Vie.exports=function(t,r,n){let i=t+r-n,s=Math.abs(i-t),a=Math.abs(i-r),o=Math.abs(i-n);return s<=a&&s<=o?t:a<=o?r:n}});var RO=_((zmt,Wie)=>{"use strict";var MWe=CO(),FWe=IO();function Gie(e,t,r){let n=e*t;return r!==8&&(n=Math.ceil(n/(8/r))),n}var Dd=Wie.exports=function(e,t){let r=e.width,n=e.height,i=e.interlace,s=e.bpp,a=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],i){let o=MWe.getImagePasses(r,n);for(let u=0;u<o.length;u++)this._images.push({byteWidth:Gie(o[u].width,s,a),height:o[u].height,lineIndex:0})}else this._images.push({byteWidth:Gie(r,s,a),height:n,lineIndex:0});a===8?this._xComparison=s:a===16?this._xComparison=s*2:this._xComparison=1};Dd.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};Dd.prototype._unFilterType1=function(e,t,r){let n=this._xComparison,i=n-1;for(let s=0;s<r;s++){let a=e[1+s],o=s>i?t[s-n]:0;t[s]=a+o}};Dd.prototype._unFilterType2=function(e,t,r){let n=this._lastLine;for(let i=0;i<r;i++){let s=e[1+i],a=n?n[i]:0;t[i]=s+a}};Dd.prototype._unFilterType3=function(e,t,r){let n=this._xComparison,i=n-1,s=this._lastLine;for(let a=0;a<r;a++){let o=e[1+a],u=s?s[a]:0,l=a>i?t[a-n]:0,c=Math.floor((l+u)/2);t[a]=o+c}};Dd.prototype._unFilterType4=function(e,t,r){let n=this._xComparison,i=n-1,s=this._lastLine;for(let a=0;a<r;a++){let o=e[1+a],u=s?s[a]:0,l=a>i?t[a-n]:0,c=a>i&&s?s[a-n]:0,f=FWe(l,u,c);t[a]=o+f}};Dd.prototype._reverseFilterLine=function(e){let t=e[0],r,n=this._images[this._imageIndex],i=n.byteWidth;if(t===0)r=e.slice(1,i+1);else switch(r=Buffer.alloc(i),t){case 1:this._unFilterType1(e,r,i);break;case 2:this._unFilterType2(e,r,i);break;case 3:this._unFilterType3(e,r,i);break;case 4:this._unFilterType4(e,r,i);break;default:throw new Error("Unrecognised filter type - "+t)}this.write(r),n.lineIndex++,n.lineIndex>=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=r,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var Xie=_((Vmt,Yie)=>{"use strict";var BWe=require("util"),Kie=wO(),qWe=RO(),jWe=Yie.exports=function(e){Kie.call(this);let t=[],r=this;this._filter=new qWe(e,{read:this.read.bind(this),write:function(n){t.push(n)},complete:function(){r.emit("complete",Buffer.concat(t))}}),this._filter.start()};BWe.inherits(jWe,Kie)});var kd=_((Gmt,Jie)=>{"use strict";Jie.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var PO=_((Wmt,Qie)=>{"use strict";var NO=[];(function(){for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;NO[e]=t}})();var OO=Qie.exports=function(){this._crc=-1};OO.prototype.write=function(e){for(let t=0;t<e.length;t++)this._crc=NO[(this._crc^e[t])&255]^this._crc>>>8;return!0};OO.prototype.crc32=function(){return this._crc^-1};OO.crc32=function(e){let t=-1;for(let r=0;r<e.length;r++)t=NO[(t^e[r])&255]^t>>>8;return t^-1}});var DO=_((Kmt,Zie)=>{"use strict";var Rr=kd(),UWe=PO(),jr=Zie.exports=function(e,t){this._options=e,e.checkCRC=e.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[Rr.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[Rr.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[Rr.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[Rr.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[Rr.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[Rr.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.finished=t.finished,this.simpleTransparency=t.simpleTransparency,this.headersFinished=t.headersFinished||function(){}};jr.prototype.start=function(){this.read(Rr.PNG_SIGNATURE.length,this._parseSignature.bind(this))};jr.prototype._parseSignature=function(e){let t=Rr.PNG_SIGNATURE;for(let r=0;r<t.length;r++)if(e[r]!==t[r]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};jr.prototype._parseChunkBegin=function(e){let t=e.readUInt32BE(0),r=e.readUInt32BE(4),n="";for(let s=4;s<8;s++)n+=String.fromCharCode(e[s]);let i=!!(e[4]&32);if(!this._hasIHDR&&r!==Rr.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new UWe,this._crc.write(Buffer.from(n)),this._chunks[r])return this._chunks[r](t);if(!i){this.error(new Error("Unsupported critical chunk type "+n));return}this.read(t+4,this._skipChunk.bind(this))};jr.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};jr.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};jr.prototype._parseChunkEnd=function(e){let t=e.readInt32BE(0),r=this._crc.crc32();if(this._options.checkCRC&&r!==t){this.error(new Error("Crc error - "+t+" - "+r));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};jr.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))};jr.prototype._parseIHDR=function(e){this._crc.write(e);let t=e.readUInt32BE(0),r=e.readUInt32BE(4),n=e[8],i=e[9],s=e[10],a=e[11],o=e[12];if(n!==8&&n!==4&&n!==2&&n!==1&&n!==16){this.error(new Error("Unsupported bit depth "+n));return}if(!(i in Rr.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(s!==0){this.error(new Error("Unsupported compression method"));return}if(a!==0){this.error(new Error("Unsupported filter method"));return}if(o!==0&&o!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=i;let u=Rr.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:r,depth:n,interlace:!!o,palette:!!(i&Rr.COLORTYPE_PALETTE),color:!!(i&Rr.COLORTYPE_COLOR),alpha:!!(i&Rr.COLORTYPE_ALPHA),bpp:u,colorType:i}),this._handleChunkEnd()};jr.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))};jr.prototype._parsePLTE=function(e){this._crc.write(e);let t=Math.floor(e.length/3);for(let r=0;r<t;r++)this._palette.push([e[r*3],e[r*3+1],e[r*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};jr.prototype._handleTRNS=function(e){this.simpleTransparency(),this.read(e,this._parseTRNS.bind(this))};jr.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===Rr.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(e.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===Rr.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===Rr.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()};jr.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))};jr.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/Rr.GAMMA_DIVISION),this._handleChunkEnd()};jr.prototype._handleIDAT=function(e){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-e,this._parseIDAT.bind(this,e))};jr.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===Rr.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(t);let r=e-t.length;r>0?this._handleIDAT(r):this._handleChunkEnd()};jr.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))};jr.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var kO=_(tse=>{"use strict";var ese=CO(),HWe=[function(){},function(e,t,r,n){if(n===t.length)throw new Error("Ran out of data");let i=t[n];e[r]=i,e[r+1]=i,e[r+2]=i,e[r+3]=255},function(e,t,r,n){if(n+1>=t.length)throw new Error("Ran out of data");let i=t[n];e[r]=i,e[r+1]=i,e[r+2]=i,e[r+3]=t[n+1]},function(e,t,r,n){if(n+2>=t.length)throw new Error("Ran out of data");e[r]=t[n],e[r+1]=t[n+1],e[r+2]=t[n+2],e[r+3]=255},function(e,t,r,n){if(n+3>=t.length)throw new Error("Ran out of data");e[r]=t[n],e[r+1]=t[n+1],e[r+2]=t[n+2],e[r+3]=t[n+3]}],zWe=[function(){},function(e,t,r,n){let i=t[0];e[r]=i,e[r+1]=i,e[r+2]=i,e[r+3]=n},function(e,t,r){let n=t[0];e[r]=n,e[r+1]=n,e[r+2]=n,e[r+3]=t[1]},function(e,t,r,n){e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=n},function(e,t,r){e[r]=t[0],e[r+1]=t[1],e[r+2]=t[2],e[r+3]=t[3]}];function VWe(e,t){let r=[],n=0;function i(){if(n===e.length)throw new Error("Ran out of data");let s=e[n];n++;let a,o,u,l,c,f,d,h;switch(t){default:throw new Error("unrecognised depth");case 16:d=e[n],n++,r.push((s<<8)+d);break;case 4:d=s&15,h=s>>4,r.push(h,d);break;case 2:c=s&3,f=s>>2&3,d=s>>4&3,h=s>>6&3,r.push(h,d,f,c);break;case 1:a=s&1,o=s>>1&1,u=s>>2&1,l=s>>3&1,c=s>>4&1,f=s>>5&1,d=s>>6&1,h=s>>7&1,r.push(h,d,f,c,l,u,o,a);break}}return{get:function(s){for(;r.length<s;)i();let a=r.slice(0,s);return r=r.slice(s),a},resetAfterLine:function(){r.length=0},end:function(){if(n!==e.length)throw new Error("extra data found")}}}function GWe(e,t,r,n,i,s){let a=e.width,o=e.height,u=e.index;for(let l=0;l<o;l++)for(let c=0;c<a;c++){let f=r(c,l,u);HWe[n](t,i,f,s),s+=n}return s}function WWe(e,t,r,n,i,s){let a=e.width,o=e.height,u=e.index;for(let l=0;l<o;l++){for(let c=0;c<a;c++){let f=i.get(n),d=r(c,l,u);zWe[n](t,f,d,s)}i.resetAfterLine()}}tse.dataToBitMap=function(e,t){let r=t.width,n=t.height,i=t.depth,s=t.bpp,a=t.interlace,o;i!==8&&(o=VWe(e,i));let u;i<=8?u=Buffer.alloc(r*n*4):u=new Uint16Array(r*n*4);let l=Math.pow(2,i)-1,c=0,f,d;if(a)f=ese.getImagePasses(r,n),d=ese.getInterlaceIterator(r,n);else{let h=0;d=function(){let p=h;return h+=4,p},f=[{width:r,height:n}]}for(let h=0;h<f.length;h++)i===8?c=GWe(f[h],u,d,s,e,c):WWe(f[h],u,d,s,o,l);if(i===8){if(c!==e.length)throw new Error("extra data found")}else o.end();return u}});var $O=_((Xmt,rse)=>{"use strict";function KWe(e,t,r,n,i){let s=0;for(let a=0;a<n;a++)for(let o=0;o<r;o++){let u=i[e[s]];if(!u)throw new Error("index "+e[s]+" not in palette");for(let l=0;l<4;l++)t[s+l]=u[l];s+=4}}function YWe(e,t,r,n,i){let s=0;for(let a=0;a<n;a++)for(let o=0;o<r;o++){let u=!1;if(i.length===1?i[0]===e[s]&&(u=!0):i[0]===e[s]&&i[1]===e[s+1]&&i[2]===e[s+2]&&(u=!0),u)for(let l=0;l<4;l++)t[s+l]=0;s+=4}}function XWe(e,t,r,n,i){let s=255,a=Math.pow(2,i)-1,o=0;for(let u=0;u<n;u++)for(let l=0;l<r;l++){for(let c=0;c<4;c++)t[o+c]=Math.floor(e[o+c]*s/a+.5);o+=4}}rse.exports=function(e,t){let r=t.depth,n=t.width,i=t.height,s=t.colorType,a=t.transColor,o=t.palette,u=e;return s===3?KWe(e,u,n,i,o):(a&&YWe(e,u,n,i,a),r!==8&&(r===16&&(u=Buffer.alloc(n*i*4)),XWe(e,u,n,i,r))),u}});var sse=_((Jmt,ise)=>{"use strict";var JWe=require("util"),LO=require("zlib"),nse=wO(),QWe=Xie(),ZWe=DO(),eKe=kO(),tKe=$O(),la=ise.exports=function(e){nse.call(this),this._parser=new ZWe(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};JWe.inherits(la,nse);la.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};la.prototype._inflateData=function(e){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=LO.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let r=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,n=Math.max(r,LO.Z_MIN_CHUNK);this._inflate=LO.createInflate({chunkSize:n});let i=r,s=this.emit.bind(this,"error");this._inflate.on("error",function(o){i&&s(o)}),this._filter.on("complete",this._complete.bind(this));let a=this._filter.write.bind(this._filter);this._inflate.on("data",function(o){i&&(o.length>i&&(o=o.slice(0,i)),i-=o.length,a(o))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(e)};la.prototype._handleMetaData=function(e){this._metaData=e,this._bitmapInfo=Object.create(e),this._filter=new QWe(this._bitmapInfo)};la.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e};la.prototype._handlePalette=function(e){this._bitmapInfo.palette=e};la.prototype._simpleTransparency=function(){this._metaData.alpha=!0};la.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};la.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};la.prototype._complete=function(e){if(this.errord)return;let t;try{let r=eKe.dataToBitMap(e,this._bitmapInfo);t=tKe(r,this._bitmapInfo),r=null}catch(r){this._handleError(r);return}this.emit("parsed",t)}});var ose=_((Qmt,ase)=>{"use strict";var Yi=kd();ase.exports=function(e,t,r,n){let i=[Yi.COLORTYPE_COLOR_ALPHA,Yi.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let p=function(){let m=new ArrayBuffer(2);return new DataView(m).setInt16(0,256,!0),new Int16Array(m)[0]!==256}();if(n.bitDepth===8||n.bitDepth===16&&p)return e}let s=n.bitDepth!==16?e:new Uint16Array(e.buffer),a=255,o=Yi.COLORTYPE_TO_BPP_MAP[n.inputColorType];o===4&&!n.inputHasAlpha&&(o=3);let u=Yi.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(a=65535,u*=2);let l=Buffer.alloc(t*r*u),c=0,f=0,d=n.bgColor||{};d.red===void 0&&(d.red=a),d.green===void 0&&(d.green=a),d.blue===void 0&&(d.blue=a);function h(){let p,m,y,g=a;switch(n.inputColorType){case Yi.COLORTYPE_COLOR_ALPHA:g=s[c+3],p=s[c],m=s[c+1],y=s[c+2];break;case Yi.COLORTYPE_COLOR:p=s[c],m=s[c+1],y=s[c+2];break;case Yi.COLORTYPE_ALPHA:g=s[c+1],p=s[c],m=p,y=p;break;case Yi.COLORTYPE_GRAYSCALE:p=s[c],m=p,y=p;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(i||(g/=a,p=Math.min(Math.max(Math.round((1-g)*d.red+g*p),0),a),m=Math.min(Math.max(Math.round((1-g)*d.green+g*m),0),a),y=Math.min(Math.max(Math.round((1-g)*d.blue+g*y),0),a))),{red:p,green:m,blue:y,alpha:g}}for(let p=0;p<r;p++)for(let m=0;m<t;m++){let y=h(s,c);switch(n.colorType){case Yi.COLORTYPE_COLOR_ALPHA:case Yi.COLORTYPE_COLOR:n.bitDepth===8?(l[f]=y.red,l[f+1]=y.green,l[f+2]=y.blue,i&&(l[f+3]=y.alpha)):(l.writeUInt16BE(y.red,f),l.writeUInt16BE(y.green,f+2),l.writeUInt16BE(y.blue,f+4),i&&l.writeUInt16BE(y.alpha,f+6));break;case Yi.COLORTYPE_ALPHA:case Yi.COLORTYPE_GRAYSCALE:{let g=(y.red+y.green+y.blue)/3;n.bitDepth===8?(l[f]=g,i&&(l[f+1]=y.alpha)):(l.writeUInt16BE(g,f),i&&l.writeUInt16BE(y.alpha,f+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}c+=o,f+=u}return l}});var lse=_((Zmt,cse)=>{"use strict";var use=IO();function rKe(e,t,r,n,i){for(let s=0;s<r;s++)n[i+s]=e[t+s]}function nKe(e,t,r){let n=0,i=t+r;for(let s=t;s<i;s++)n+=Math.abs(e[s]);return n}function iKe(e,t,r,n,i,s){for(let a=0;a<r;a++){let o=a>=s?e[t+a-s]:0,u=e[t+a]-o;n[i+a]=u}}function sKe(e,t,r,n){let i=0;for(let s=0;s<r;s++){let a=s>=n?e[t+s-n]:0,o=e[t+s]-a;i+=Math.abs(o)}return i}function aKe(e,t,r,n,i){for(let s=0;s<r;s++){let a=t>0?e[t+s-r]:0,o=e[t+s]-a;n[i+s]=o}}function oKe(e,t,r){let n=0,i=t+r;for(let s=t;s<i;s++){let a=t>0?e[s-r]:0,o=e[s]-a;n+=Math.abs(o)}return n}function uKe(e,t,r,n,i,s){for(let a=0;a<r;a++){let o=a>=s?e[t+a-s]:0,u=t>0?e[t+a-r]:0,l=e[t+a]-(o+u>>1);n[i+a]=l}}function cKe(e,t,r,n){let i=0;for(let s=0;s<r;s++){let a=s>=n?e[t+s-n]:0,o=t>0?e[t+s-r]:0,u=e[t+s]-(a+o>>1);i+=Math.abs(u)}return i}function lKe(e,t,r,n,i,s){for(let a=0;a<r;a++){let o=a>=s?e[t+a-s]:0,u=t>0?e[t+a-r]:0,l=t>0&&a>=s?e[t+a-(r+s)]:0,c=e[t+a]-use(o,u,l);n[i+a]=c}}function fKe(e,t,r,n){let i=0;for(let s=0;s<r;s++){let a=s>=n?e[t+s-n]:0,o=t>0?e[t+s-r]:0,u=t>0&&s>=n?e[t+s-(r+n)]:0,l=e[t+s]-use(a,o,u);i+=Math.abs(l)}return i}var dKe={0:rKe,1:iKe,2:aKe,3:uKe,4:lKe},pKe={0:nKe,1:sKe,2:oKe,3:cKe,4:fKe};cse.exports=function(e,t,r,n,i){let s;if(!("filterType"in n)||n.filterType===-1)s=[0,1,2,3,4];else if(typeof n.filterType=="number")s=[n.filterType];else throw new Error("unrecognised filter types");n.bitDepth===16&&(i*=2);let a=t*i,o=0,u=0,l=Buffer.alloc((a+1)*r),c=s[0];for(let f=0;f<r;f++){if(s.length>1){let d=1/0;for(let h=0;h<s.length;h++){let p=pKe[s[h]](e,u,a,i);p<d&&(c=s[h],d=p)}}l[o]=c,o++,dKe[c](e,u,a,l,o,i),o+=a,u+=a}return l}});var MO=_((egt,fse)=>{"use strict";var Tn=kd(),hKe=PO(),mKe=ose(),gKe=lse(),yKe=require("zlib"),$u=fse.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32*1024,e.deflateLevel=e.deflateLevel!=null?e.deflateLevel:9,e.deflateStrategy=e.deflateStrategy!=null?e.deflateStrategy:3,e.inputHasAlpha=e.inputHasAlpha!=null?e.inputHasAlpha:!0,e.deflateFactory=e.deflateFactory||yKe.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType=typeof e.colorType=="number"?e.colorType:Tn.COLORTYPE_COLOR_ALPHA,e.inputColorType=typeof e.inputColorType=="number"?e.inputColorType:Tn.COLORTYPE_COLOR_ALPHA,[Tn.COLORTYPE_GRAYSCALE,Tn.COLORTYPE_COLOR,Tn.COLORTYPE_COLOR_ALPHA,Tn.COLORTYPE_ALPHA].indexOf(e.colorType)===-1)throw new Error("option color type:"+e.colorType+" is not supported at present");if([Tn.COLORTYPE_GRAYSCALE,Tn.COLORTYPE_COLOR,Tn.COLORTYPE_COLOR_ALPHA,Tn.COLORTYPE_ALPHA].indexOf(e.inputColorType)===-1)throw new Error("option input color type:"+e.inputColorType+" is not supported at present");if(e.bitDepth!==8&&e.bitDepth!==16)throw new Error("option bit depth:"+e.bitDepth+" is not supported at present")};$u.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};$u.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};$u.prototype.filterData=function(e,t,r){let n=mKe(e,t,r,this._options),i=Tn.COLORTYPE_TO_BPP_MAP[this._options.colorType];return gKe(n,t,r,this._options,i)};$u.prototype._packChunk=function(e,t){let r=t?t.length:0,n=Buffer.alloc(r+12);return n.writeUInt32BE(r,0),n.writeUInt32BE(e,4),t&&t.copy(n,8),n.writeInt32BE(hKe.crc32(n.slice(4,n.length-4)),n.length-4),n};$u.prototype.packGAMA=function(e){let t=Buffer.alloc(4);return t.writeUInt32BE(Math.floor(e*Tn.GAMMA_DIVISION),0),this._packChunk(Tn.TYPE_gAMA,t)};$u.prototype.packIHDR=function(e,t){let r=Buffer.alloc(13);return r.writeUInt32BE(e,0),r.writeUInt32BE(t,4),r[8]=this._options.bitDepth,r[9]=this._options.colorType,r[10]=0,r[11]=0,r[12]=0,this._packChunk(Tn.TYPE_IHDR,r)};$u.prototype.packIDAT=function(e){return this._packChunk(Tn.TYPE_IDAT,e)};$u.prototype.packIEND=function(){return this._packChunk(Tn.TYPE_IEND,null)}});var mse=_((tgt,hse)=>{"use strict";var bKe=require("util"),dse=require("stream"),xKe=kd(),EKe=MO(),pse=hse.exports=function(e){dse.call(this);let t=e||{};this._packer=new EKe(t),this._deflate=this._packer.createDeflate(),this.readable=!0};bKe.inherits(pse,dse);pse.prototype.pack=function(e,t,r,n){this.emit("data",Buffer.from(xKe.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,r)),n&&this.emit("data",this._packer.packGAMA(n));let i=this._packer.filterData(e,t,r);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(s){this.emit("data",this._packer.packIDAT(s))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(i)}});var _se=_(($m,Ese)=>{"use strict";var gse=require("assert").ok,$d=require("zlib"),_Ke=require("util"),yse=require("buffer").kMaxLength;function ul(e){if(!(this instanceof ul))return new ul(e);e&&e.chunkSize<$d.Z_MIN_CHUNK&&(e.chunkSize=$d.Z_MIN_CHUNK),$d.Inflate.call(this,e),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,e&&e.maxLength!=null&&(this._maxLength=e.maxLength)}function vKe(e){return new ul(e)}function bse(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}ul.prototype._processChunk=function(e,t,r){if(typeof r=="function")return $d.Inflate._processChunk.call(this,e,t,r);let n=this,i=e&&e.length,s=this._chunkSize-this._offset,a=this._maxLength,o=0,u=[],l=0,c;this.on("error",function(p){c=p});function f(p,m){if(n._hadError)return;let y=s-m;if(gse(y>=0,"have should not go down"),y>0){let g=n._buffer.slice(n._offset,n._offset+y);if(n._offset+=y,g.length>a&&(g=g.slice(0,a)),u.push(g),l+=g.length,a-=g.length,a===0)return!1}return(m===0||n._offset>=n._chunkSize)&&(s=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),m===0?(o+=i-p,i=p,!0):!1}gse(this._handle,"zlib binding closed");let d;do d=this._handle.writeSync(t,e,o,i,this._buffer,this._offset,s),d=d||this._writeState;while(!this._hadError&&f(d[0],d[1]));if(this._hadError)throw c;if(l>=yse)throw bse(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+yse.toString(16)+" bytes");let h=Buffer.concat(u,l);return bse(this),h};_Ke.inherits(ul,$d.Inflate);function TKe(e,t){if(typeof t=="string"&&(t=Buffer.from(t)),!(t instanceof Buffer))throw new TypeError("Not a string or buffer");let r=e._finishFlushFlag;return r==null&&(r=$d.Z_FINISH),e._processChunk(t,r)}function xse(e,t){return TKe(new ul(t),e)}Ese.exports=$m=xse;$m.Inflate=ul;$m.createInflate=vKe;$m.inflateSync=xse});var FO=_((rgt,Tse)=>{"use strict";var vse=Tse.exports=function(e){this._buffer=e,this._reads=[]};vse.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})};vse.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e=this._reads[0];if(this._buffer.length&&(this._buffer.length>=e.length||e.allowLess)){this._reads.shift();let t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var wse=_(Sse=>{"use strict";var SKe=FO(),wKe=RO();Sse.process=function(e,t){let r=[],n=new SKe(e);return new wKe(t,{read:n.read.bind(n),write:function(s){r.push(s)},complete:function(){}}).start(),n.process(),Buffer.concat(r)}});var Rse=_((igt,Ise)=>{"use strict";var Ase=!0,Cse=require("zlib"),AKe=_se();Cse.deflateSync||(Ase=!1);var CKe=FO(),IKe=wse(),RKe=DO(),NKe=kO(),OKe=$O();Ise.exports=function(e,t){if(!Ase)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let r;function n(x){r=x}let i;function s(x){i=x}function a(x){i.transColor=x}function o(x){i.palette=x}function u(){i.alpha=!0}let l;function c(x){l=x}let f=[];function d(x){f.push(x)}let h=new CKe(e);if(new RKe(t,{read:h.read.bind(h),error:n,metadata:s,gamma:c,palette:o,transColor:a,inflateData:d,simpleTransparency:u}).start(),h.process(),r)throw r;let m=Buffer.concat(f);f.length=0;let y;if(i.interlace)y=Cse.inflateSync(m);else{let T=((i.width*i.bpp*i.depth+7>>3)+1)*i.height;y=AKe(m,{chunkSize:T,maxLength:T})}if(m=null,!y||!y.length)throw new Error("bad png - invalid inflate data response");let g=IKe.process(y,i);m=null;let v=NKe.dataToBitMap(g,i);g=null;let E=OKe(v,i);return i.data=E,i.gamma=l||0,i}});var Dse=_((sgt,Pse)=>{"use strict";var Nse=!0,Ose=require("zlib");Ose.deflateSync||(Nse=!1);var PKe=kd(),DKe=MO();Pse.exports=function(e,t){if(!Nse)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let r=t||{},n=new DKe(r),i=[];i.push(Buffer.from(PKe.PNG_SIGNATURE)),i.push(n.packIHDR(e.width,e.height)),e.gamma&&i.push(n.packGAMA(e.gamma));let s=n.filterData(e.data,e.width,e.height),a=Ose.deflateSync(s,n.getDeflateOptions());if(s=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return i.push(n.packIDAT(a)),i.push(n.packIEND()),Buffer.concat(i)}});var kse=_(BO=>{"use strict";var kKe=Rse(),$Ke=Dse();BO.read=function(e,t){return kKe(e,t||{})};BO.write=function(e,t){return $Ke(e,t)}});var Mse=_(Lse=>{"use strict";var LKe=require("util"),$se=require("stream"),MKe=sse(),FKe=mse(),BKe=kse(),qn=Lse.PNG=function(e){$se.call(this),e=e||{},this.width=e.width|0,this.height=e.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new MKe(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(t){this.data=t,this.emit("parsed",t)}.bind(this)),this._packer=new FKe(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};LKe.inherits(qn,$se);qn.sync=BKe;qn.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this)};qn.prototype.parse=function(e,t){if(t){let r,n;r=function(i){this.removeListener("error",n),this.data=i,t(null,this)}.bind(this),n=function(i){this.removeListener("parsed",r),t(i,null)}.bind(this),this.once("parsed",r),this.once("error",n)}return this.end(e),this};qn.prototype.write=function(e){return this._parser.write(e),!0};qn.prototype.end=function(e){this._parser.end(e)};qn.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)};qn.prototype._gamma=function(e){this.gamma=e};qn.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};qn.bitblt=function(e,t,r,n,i,s,a,o){if(r|=0,n|=0,i|=0,s|=0,a|=0,o|=0,r>e.width||n>e.height||r+i>e.width||n+s>e.height)throw new Error("bitblt reading outside image");if(a>t.width||o>t.height||a+i>t.width||o+s>t.height)throw new Error("bitblt writing outside image");for(let u=0;u<s;u++)e.data.copy(t.data,(o+u)*t.width+a<<2,(n+u)*e.width+r<<2,(n+u)*e.width+r+i<<2)};qn.prototype.bitblt=function(e,t,r,n,i,s,a){return qn.bitblt(this,e,t,r,n,i,s,a),this};qn.adjustGamma=function(e){if(e.gamma){for(let t=0;t<e.height;t++)for(let r=0;r<e.width;r++){let n=e.width*t+r<<2;for(let i=0;i<3;i++){let s=e.data[n+i]/255;s=Math.pow(s,1/2.2/e.gamma),e.data[n+i]=Math.round(s*255)}}e.gamma=0}};qn.prototype.adjustGamma=function(){qn.adjustGamma(this)}});var Lm=_(cl=>{function Fse(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}cl.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:Fse(t.color.dark||"#000000ff"),light:Fse(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};cl.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};cl.getImageWidth=function(t,r){let n=cl.getScale(t,r);return Math.floor((t+r.margin*2)*n)};cl.qrToImageData=function(t,r,n){let i=r.modules.size,s=r.modules.data,a=cl.getScale(i,n),o=Math.floor((i+n.margin*2)*a),u=n.margin*a,l=[n.color.light,n.color.dark];for(let c=0;c<o;c++)for(let f=0;f<o;f++){let d=(c*o+f)*4,h=n.color.light;if(c>=u&&f>=u&&c<o-u&&f<o-u){let p=Math.floor((c-u)/a),m=Math.floor((f-u)/a);h=l[s[p*i+m]?1:0]}t[d++]=h.r,t[d++]=h.g,t[d++]=h.b,t[d]=h.a}}});var Bse=_(fa=>{var qKe=require("fs"),jKe=Mse().PNG,qO=Lm();fa.render=function(t,r){let n=qO.getOptions(r),i=n.rendererOpts,s=qO.getImageWidth(t.modules.size,n);i.width=s,i.height=s;let a=new jKe(i);return qO.qrToImageData(a.data,t,n),a};fa.renderToDataURL=function(t,r,n){typeof n>"u"&&(n=r,r=void 0),fa.renderToBuffer(t,r,function(i,s){i&&n(i);let a="data:image/png;base64,";a+=s.toString("base64"),n(null,a)})};fa.renderToBuffer=function(t,r,n){typeof n>"u"&&(n=r,r=void 0);let i=fa.render(t,r),s=[];i.on("error",n),i.on("data",function(a){s.push(a)}),i.on("end",function(){n(null,Buffer.concat(s))}),i.pack()};fa.renderToFile=function(t,r,n,i){typeof i>"u"&&(i=n,n=void 0);let s=!1,a=(...u)=>{s||(s=!0,i.apply(null,u))},o=qKe.createWriteStream(t);o.on("error",a),o.on("close",a),fa.renderToFileStream(o,r,n)};fa.renderToFileStream=function(t,r,n){fa.render(r,n).pack().pipe(t)}});var qse=_(H_=>{var UKe=Lm(),HKe={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},zKe={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function VKe(e,t,r){return e&&t?r.BB:e&&!t?r.BW:!e&&t?r.WB:r.WW}H_.render=function(e,t,r){let n=UKe.getOptions(t),i=HKe;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(i=zKe);let s=e.modules.size,a=e.modules.data,o="",u=Array(s+n.margin*2+1).join(i.WW);u=Array(n.margin/2+1).join(u+`
`);let l=Array(n.margin+1).join(i.WW);o+=u;for(let c=0;c<s;c+=2){o+=l;for(let f=0;f<s;f++){let d=a[c*s+f],h=a[(c+1)*s+f];o+=VKe(d,h,i)}o+=l+`
`}return o+=u.slice(0,-1),typeof r=="function"&&r(null,o),o};H_.renderToFile=function(t,r,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),a=H_.render(r,n);s.writeFile(t,a,i)}});var Use=_(jse=>{jse.render=function(e,t,r){let n=e.modules.size,i=e.modules.data,s="\x1B[40m \x1B[0m",a="\x1B[47m \x1B[0m",o="",u=Array(n+3).join(a),l=Array(2).join(a);o+=u+`
`;for(let c=0;c<n;++c){o+=a;for(let f=0;f<n;f++)o+=i[c*n+f]?s:a;o+=l+`
`}return o+=u+`
`,typeof r=="function"&&r(null,o),o}});var Gse=_(Vse=>{var GKe="\x1B[47m",WKe="\x1B[40m",jO="\x1B[37m",UO="\x1B[30m",ll="\x1B[0m",KKe=GKe+UO,YKe=WKe+jO,XKe=function(e,t,r){return{"00":ll+" "+e,"01":ll+t+"\u2584"+e,"02":ll+r+"\u2584"+e,10:ll+t+"\u2580"+e,11:" ",12:"\u2584",20:ll+r+"\u2580"+e,21:"\u2580",22:"\u2588"}},Hse=function(e,t,r,n){let i=t+1;if(r>=i||n>=i||n<-1||r<-1)return"0";if(r>=t||n>=t||n<0||r<0)return"1";let s=n*t+r;return e[s]?"2":"1"},zse=function(e,t,r,n){return Hse(e,t,r,n)+Hse(e,t,r,n+1)};Vse.render=function(e,t,r){let n=e.modules.size,i=e.modules.data,s=!!(t&&t.inverse),a=t&&t.inverse?YKe:KKe,l=XKe(a,s?UO:jO,s?jO:UO),c=ll+`
`+a,f=a;for(let d=-1;d<n+1;d+=2){for(let h=-1;h<n;h++)f+=l[zse(i,n,h,d)];f+=l[zse(i,n,n,d)]+c}return f+=ll,typeof r=="function"&&r(null,f),f}});var Kse=_(Wse=>{var JKe=Use(),QKe=Gse();Wse.render=function(e,t,r){return t&&t.small?QKe.render(e,t,r):JKe.render(e,t,r)}});var zO=_(Xse=>{var ZKe=Lm();function Yse(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function HO(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function eYe(e,t,r){let n="",i=0,s=!1,a=0;for(let o=0;o<e.length;o++){let u=Math.floor(o%t),l=Math.floor(o/t);!u&&!s&&(s=!0),e[o]?(a++,o>0&&u>0&&e[o-1]||(n+=s?HO("M",u+r,.5+l+r):HO("m",i,0),i=0,s=!1),u+1<t&&e[o+1]||(n+=HO("h",a),a=0)):i++}return n}Xse.render=function(t,r,n){let i=ZKe.getOptions(r),s=t.modules.size,a=t.modules.data,o=s+i.margin*2,u=i.color.light.a?"<path "+Yse(i.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",l="<path "+Yse(i.color.dark,"stroke")+' d="'+eYe(a,s,i.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+c+' shape-rendering="crispEdges">'+u+l+`</svg>
`;return typeof n=="function"&&n(null,d),d}});var Jse=_(z_=>{var tYe=zO();z_.render=tYe.render;z_.renderToFile=function(t,r,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),o='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+z_.render(r,n);s.writeFile(t,o,i)}});var Qse=_(V_=>{var VO=Lm();function rYe(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function nYe(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}V_.render=function(t,r,n){let i=n,s=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(s=nYe()),i=VO.getOptions(i);let a=VO.getImageWidth(t.modules.size,i),o=s.getContext("2d"),u=o.createImageData(a,a);return VO.qrToImageData(u.data,t,i),rYe(o,s,a),o.putImageData(u,0,0),s};V_.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let s=V_.render(t,r,i),a=i.type||"image/png",o=i.rendererOpts||{};return s.toDataURL(a,o.quality)}});var eae=_(Mm=>{var iYe=sO(),GO=SO(),Zse=Qse(),sYe=zO();function WO(e,t,r,n,i){let s=[].slice.call(arguments,1),a=s.length,o=typeof s[a-1]=="function";if(!o&&!iYe())throw new Error("Callback required as last argument");if(o){if(a<2)throw new Error("Too few arguments provided");a===2?(i=r,r=t,t=n=void 0):a===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(r=t,t=n=void 0):a===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(u,l){try{let c=GO.create(r,n);u(e(c,t,n))}catch(c){l(c)}})}try{let u=GO.create(r,n);i(null,e(u,t,n))}catch(u){i(u)}}Mm.create=GO.create;Mm.toCanvas=WO.bind(null,Zse.render);Mm.toDataURL=WO.bind(null,Zse.renderToDataURL);Mm.toString=WO.bind(null,function(e,t,r){return sYe.render(e,r)})});var iae=_(Lu=>{var tae=sO(),KO=SO(),aYe=Bse(),rae=qse(),oYe=Kse(),nae=Jse();function Fm(e,t,r){if(typeof e>"u")throw new Error("String required as first argument");if(typeof r>"u"&&(r=t,t={}),typeof r!="function")if(tae())t=r||{},r=null;else throw new Error("Callback required as last argument");return{opts:t,cb:r}}function uYe(e){return e.slice((e.lastIndexOf(".")-1>>>0)+2).toLowerCase()}function G_(e){switch(e){case"svg":return nae;case"txt":case"utf8":return rae;case"png":case"image/png":default:return aYe}}function cYe(e){switch(e){case"svg":return nae;case"terminal":return oYe;case"utf8":default:return rae}}function Bm(e,t,r){if(!r.cb)return new Promise(function(n,i){try{let s=KO.create(t,r.opts);return e(s,r.opts,function(a,o){return a?i(a):n(o)})}catch(s){i(s)}});try{let n=KO.create(t,r.opts);return e(n,r.opts,r.cb)}catch(n){r.cb(n)}}Lu.create=KO.create;Lu.toCanvas=eae().toCanvas;Lu.toString=function(t,r,n){let i=Fm(t,r,n),s=i.opts?i.opts.type:void 0,a=cYe(s);return Bm(a.render,t,i)};Lu.toDataURL=function(t,r,n){let i=Fm(t,r,n),s=G_(i.opts.type);return Bm(s.renderToDataURL,t,i)};Lu.toBuffer=function(t,r,n){let i=Fm(t,r,n),s=G_(i.opts.type);return Bm(s.renderToBuffer,t,i)};Lu.toFile=function(t,r,n,i){if(typeof t!="string"||!(typeof r=="string"||typeof r=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!tae())throw new Error("Too few arguments provided");let s=Fm(r,n,i),a=s.opts.type||uYe(t),u=G_(a).renderToFile.bind(null,t);return Bm(u,r,s)};Lu.toFileStream=function(t,r,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=Fm(r,n,t.emit.bind(t,"error")),a=G_("png").renderToFileStream.bind(null,t);Bm(a,r,i)}});var fl=_((xgt,sae)=>{sae.exports=iae()});var Eae=_((Ngt,xae)=>{xae.exports=require("util").inspect});var Gm=_((Ogt,qae)=>{var pP=typeof Map=="function"&&Map.prototype,iP=Object.getOwnPropertyDescriptor&&pP?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Q_=pP&&iP&&typeof iP.get=="function"?iP.get:null,_ae=pP&&Map.prototype.forEach,hP=typeof Set=="function"&&Set.prototype,sP=Object.getOwnPropertyDescriptor&&hP?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Z_=hP&&sP&&typeof sP.get=="function"?sP.get:null,vae=hP&&Set.prototype.forEach,bYe=typeof WeakMap=="function"&&WeakMap.prototype,Hm=bYe?WeakMap.prototype.has:null,xYe=typeof WeakSet=="function"&&WeakSet.prototype,zm=xYe?WeakSet.prototype.has:null,EYe=typeof WeakRef=="function"&&WeakRef.prototype,Tae=EYe?WeakRef.prototype.deref:null,_Ye=Boolean.prototype.valueOf,vYe=Object.prototype.toString,TYe=Function.prototype.toString,SYe=String.prototype.match,mP=String.prototype.slice,Fu=String.prototype.replace,wYe=String.prototype.toUpperCase,Sae=String.prototype.toLowerCase,Dae=RegExp.prototype.test,wae=Array.prototype.concat,ha=Array.prototype.join,AYe=Array.prototype.slice,Aae=Math.floor,uP=typeof BigInt=="function"?BigInt.prototype.valueOf:null,aP=Object.getOwnPropertySymbols,cP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ld=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Vm=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ld||!0)?Symbol.toStringTag:null,kae=Object.prototype.propertyIsEnumerable,Cae=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Iae(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Dae.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Aae(-e):Aae(e);if(n!==e){var i=String(n),s=mP.call(t,i.length+1);return Fu.call(i,r,"$&_")+"."+Fu.call(Fu.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Fu.call(t,r,"$&_")}var lP=Eae(),Rae=lP.custom,Nae=Mae(Rae)?Rae:null,$ae={__proto__:null,double:'"',single:"'"},CYe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};qae.exports=function e(t,r,n,i){var s=r||{};if(po(s,"quoteStyle")&&!po($ae,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(po(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=po(s,"customInspect")?s.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(po(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(po(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Bae(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return o?Iae(t,u):u}if(typeof t=="bigint"){var l=String(t)+"n";return o?Iae(t,l):l}var c=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return fP(t)?"[Array]":"[Object]";var f=VYe(s,n);if(typeof i>"u")i=[];else if(Fae(i,t)>=0)return"[Circular]";function d(P,k,K){if(k&&(i=AYe.call(i),i.push(k)),K){var z={depth:s.depth};return po(s,"quoteStyle")&&(z.quoteStyle=s.quoteStyle),e(P,z,n+1,i)}return e(P,s,n+1,i)}if(typeof t=="function"&&!Oae(t)){var h=LYe(t),p=J_(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+ha.call(p,", ")+" }":"")}if(Mae(t)){var m=Ld?Fu.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):cP.call(t);return typeof t=="object"&&!Ld?Um(m):m}if(UYe(t)){for(var y="<"+Sae.call(String(t.nodeName)),g=t.attributes||[],v=0;v<g.length;v++)y+=" "+g[v].name+"="+Lae(IYe(g[v].value),"double",s);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+Sae.call(String(t.nodeName))+">",y}if(fP(t)){if(t.length===0)return"[]";var E=J_(t,d);return f&&!zYe(E)?"["+dP(E,f)+"]":"[ "+ha.call(E,", ")+" ]"}if(NYe(t)){var x=J_(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!kae.call(t,"cause")?"{ ["+String(t)+"] "+ha.call(wae.call("[cause]: "+d(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ha.call(x,", ")+" }"}if(typeof t=="object"&&a){if(Nae&&typeof t[Nae]=="function"&&lP)return lP(t,{depth:c-n});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(MYe(t)){var T=[];return _ae&&_ae.call(t,function(P,k){T.push(d(k,t,!0)+" => "+d(P,t))}),Pae("Map",Q_.call(t),T,f)}if(qYe(t)){var S=[];return vae&&vae.call(t,function(P){S.push(d(P,t))}),Pae("Set",Z_.call(t),S,f)}if(FYe(t))return oP("WeakMap");if(jYe(t))return oP("WeakSet");if(BYe(t))return oP("WeakRef");if(PYe(t))return Um(d(Number(t)));if(kYe(t))return Um(d(uP.call(t)));if(DYe(t))return Um(_Ye.call(t));if(OYe(t))return Um(d(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!RYe(t)&&!Oae(t)){var w=J_(t,d),A=Cae?Cae(t)===Object.prototype:t instanceof Object||t.constructor===Object,C=t instanceof Object?"":"null prototype",I=!A&&Vm&&Object(t)===t&&Vm in t?mP.call(Bu(t),8,-1):C?"Object":"",M=A||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=M+(I||C?"["+ha.call(wae.call([],I||[],C||[]),": ")+"] ":"");return w.length===0?R+"{}":f?R+"{"+dP(w,f)+"}":R+"{ "+ha.call(w,", ")+" }"}return String(t)};function Lae(e,t,r){var n=r.quoteStyle||t,i=$ae[n];return i+e+i}function IYe(e){return Fu.call(String(e),/"/g,"&quot;")}function pl(e){return!Vm||!(typeof e=="object"&&(Vm in e||typeof e[Vm]<"u"))}function fP(e){return Bu(e)==="[object Array]"&&pl(e)}function RYe(e){return Bu(e)==="[object Date]"&&pl(e)}function Oae(e){return Bu(e)==="[object RegExp]"&&pl(e)}function NYe(e){return Bu(e)==="[object Error]"&&pl(e)}function OYe(e){return Bu(e)==="[object String]"&&pl(e)}function PYe(e){return Bu(e)==="[object Number]"&&pl(e)}function DYe(e){return Bu(e)==="[object Boolean]"&&pl(e)}function Mae(e){if(Ld)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!cP)return!1;try{return cP.call(e),!0}catch{}return!1}function kYe(e){if(!e||typeof e!="object"||!uP)return!1;try{return uP.call(e),!0}catch{}return!1}var $Ye=Object.prototype.hasOwnProperty||function(e){return e in this};function po(e,t){return $Ye.call(e,t)}function Bu(e){return vYe.call(e)}function LYe(e){if(e.name)return e.name;var t=SYe.call(TYe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Fae(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function MYe(e){if(!Q_||!e||typeof e!="object")return!1;try{Q_.call(e);try{Z_.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function FYe(e){if(!Hm||!e||typeof e!="object")return!1;try{Hm.call(e,Hm);try{zm.call(e,zm)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function BYe(e){if(!Tae||!e||typeof e!="object")return!1;try{return Tae.call(e),!0}catch{}return!1}function qYe(e){if(!Z_||!e||typeof e!="object")return!1;try{Z_.call(e);try{Q_.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function jYe(e){if(!zm||!e||typeof e!="object")return!1;try{zm.call(e,zm);try{Hm.call(e,Hm)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function UYe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bae(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Bae(mP.call(e,0,t.maxStringLength),t)+n}var i=CYe[t.quoteStyle||"single"];i.lastIndex=0;var s=Fu.call(Fu.call(e,i,"\\$1"),/[\x00-\x1f]/g,HYe);return Lae(s,"single",t)}function HYe(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+wYe.call(t.toString(16))}function Um(e){return"Object("+e+")"}function oP(e){return e+" { ? }"}function Pae(e,t,r,n){var i=n?dP(r,n):ha.call(r,", ");return e+" ("+t+") {"+i+"}"}function zYe(e){for(var t=0;t<e.length;t++)if(Fae(e[t],`
`)>=0)return!1;return!0}function VYe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ha.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ha.call(Array(t+1),r)}}function dP(e,t){if(e.length===0)return"";var r=`
`+t.prev+t.base;return r+ha.call(e,","+r)+`
`+t.prev}function J_(e,t){var r=fP(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=po(e,i)?t(e[i],e):""}var s=typeof aP=="function"?aP(e):[],a;if(Ld){a={};for(var o=0;o<s.length;o++)a["$"+s[o]]=s[o]}for(var u in e)po(e,u)&&(r&&String(Number(u))===u&&u<e.length||Ld&&a["$"+u]instanceof Symbol||(Dae.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof aP=="function")for(var l=0;l<s.length;l++)kae.call(e,s[l])&&n.push("["+t(s[l])+"]: "+t(e[s[l]],e));return n}});var Uae=_((Pgt,jae)=>{"use strict";var GYe=Gm(),WYe=nu(),ev=function(e,t,r){for(var n=e,i;(i=n.next)!=null;n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},KYe=function(e,t){if(e){var r=ev(e,t);return r&&r.value}},YYe=function(e,t,r){var n=ev(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},XYe=function(e,t){return e?!!ev(e,t):!1},JYe=function(e,t){if(e)return ev(e,t,!0)};jae.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new WYe("Side channel does not contain "+GYe(n))},delete:function(n){var i=t&&t.next,s=JYe(t,n);return s&&i&&i===s&&(t=void 0),!!s},get:function(n){return KYe(t,n)},has:function(n){return XYe(t,n)},set:function(n,i){t||(t={next:void 0}),YYe(t,n,i)}};return r}});var gP=_((Dgt,Vae)=>{"use strict";var Hae=Nh(),zae=PI(),QYe=zae([Hae("%String.prototype.indexOf%")]);Vae.exports=function(t,r){var n=Hae(t,!!r);return typeof n=="function"&&QYe(t,".prototype.")>-1?zae([n]):n}});var yP=_((kgt,Wae)=>{"use strict";var ZYe=Nh(),Wm=gP(),eXe=Gm(),tXe=nu(),Gae=ZYe("%Map%",!0),rXe=Wm("Map.prototype.get",!0),nXe=Wm("Map.prototype.set",!0),iXe=Wm("Map.prototype.has",!0),sXe=Wm("Map.prototype.delete",!0),aXe=Wm("Map.prototype.size",!0);Wae.exports=!!Gae&&function(){var t,r={assert:function(n){if(!r.has(n))throw new tXe("Side channel does not contain "+eXe(n))},delete:function(n){if(t){var i=sXe(t,n);return aXe(t)===0&&(t=void 0),i}return!1},get:function(n){if(t)return rXe(t,n)},has:function(n){return t?iXe(t,n):!1},set:function(n,i){t||(t=new Gae),nXe(t,n,i)}};return r}});var Yae=_(($gt,Kae)=>{"use strict";var oXe=Nh(),rv=gP(),uXe=Gm(),tv=yP(),cXe=nu(),Md=oXe("%WeakMap%",!0),lXe=rv("WeakMap.prototype.get",!0),fXe=rv("WeakMap.prototype.set",!0),dXe=rv("WeakMap.prototype.has",!0),pXe=rv("WeakMap.prototype.delete",!0);Kae.exports=Md?function(){var t,r,n={assert:function(i){if(!n.has(i))throw new cXe("Side channel does not contain "+uXe(i))},delete:function(i){if(Md&&i&&(typeof i=="object"||typeof i=="function")){if(t)return pXe(t,i)}else if(tv&&r)return r.delete(i);return!1},get:function(i){return Md&&i&&(typeof i=="object"||typeof i=="function")&&t?lXe(t,i):r&&r.get(i)},has:function(i){return Md&&i&&(typeof i=="object"||typeof i=="function")&&t?dXe(t,i):!!r&&r.has(i)},set:function(i,s){Md&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Md),fXe(t,i,s)):tv&&(r||(r=tv()),r.set(i,s))}};return n}:tv});var Jae=_((Lgt,Xae)=>{"use strict";var hXe=nu(),mXe=Gm(),gXe=Uae(),yXe=yP(),bXe=Yae(),xXe=bXe||yXe||gXe;Xae.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new hXe("Side channel does not contain "+mXe(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,i){t||(t=xXe()),t.set(n,i)}};return r}});var nv=_((Mgt,Qae)=>{"use strict";var EXe=String.prototype.replace,_Xe=/%20/g,bP={RFC1738:"RFC1738",RFC3986:"RFC3986"};Qae.exports={default:bP.RFC3986,formatters:{RFC1738:function(e){return EXe.call(e,_Xe,"+")},RFC3986:function(e){return String(e)}},RFC1738:bP.RFC1738,RFC3986:bP.RFC3986}});var _P=_((Fgt,eoe)=>{"use strict";var vXe=nv(),xP=Object.prototype.hasOwnProperty,hl=Array.isArray,ma=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),TXe=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(hl(n)){for(var i=[],s=0;s<n.length;++s)typeof n[s]<"u"&&i.push(n[s]);r.obj[r.prop]=i}}},Zae=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},SXe=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(hl(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!xP.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return hl(t)&&!hl(r)&&(i=Zae(t,n)),hl(t)&&hl(r)?(r.forEach(function(s,a){if(xP.call(t,a)){var o=t[a];o&&typeof o=="object"&&s&&typeof s=="object"?t[a]=e(o,s,n):t.push(s)}else t[a]=s}),t):Object.keys(r).reduce(function(s,a){var o=r[a];return xP.call(s,a)?s[a]=e(s[a],o,n):s[a]=o,s},i)},wXe=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},AXe=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},EP=1024,CXe=function(t,r,n,i,s){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var o="",u=0;u<a.length;u+=EP){for(var l=a.length>=EP?a.slice(u,u+EP):a,c=[],f=0;f<l.length;++f){var d=l.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||s===vXe.RFC1738&&(d===40||d===41)){c[c.length]=l.charAt(f);continue}if(d<128){c[c.length]=ma[d];continue}if(d<2048){c[c.length]=ma[192|d>>6]+ma[128|d&63];continue}if(d<55296||d>=57344){c[c.length]=ma[224|d>>12]+ma[128|d>>6&63]+ma[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|l.charCodeAt(f)&1023),c[c.length]=ma[240|d>>18]+ma[128|d>>12&63]+ma[128|d>>6&63]+ma[128|d&63]}o+=c.join("")}return o},IXe=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var s=r[i],a=s.obj[s.prop],o=Object.keys(a),u=0;u<o.length;++u){var l=o[u],c=a[l];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:a,prop:l}),n.push(c))}return TXe(r),t},RXe=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},NXe=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},OXe=function(t,r){return[].concat(t,r)},PXe=function(t,r){if(hl(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};eoe.exports={arrayToObject:Zae,assign:wXe,combine:OXe,compact:IXe,decode:AXe,encode:CXe,isBuffer:NXe,isRegExp:RXe,maybeMap:PXe,merge:SXe}});var aoe=_((Bgt,soe)=>{"use strict";var roe=Jae(),iv=_P(),Km=nv(),DXe=Object.prototype.hasOwnProperty,noe={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},ga=Array.isArray,kXe=Array.prototype.push,ioe=function(e,t){kXe.apply(e,ga(t)?t:[t])},$Xe=Date.prototype.toISOString,toe=Km.default,Nr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:iv.encode,encodeValuesOnly:!1,filter:void 0,format:toe,formatter:Km.formatters[toe],indices:!1,serializeDate:function(t){return $Xe.call(t)},skipNulls:!1,strictNullHandling:!1},LXe=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},vP={},MXe=function e(t,r,n,i,s,a,o,u,l,c,f,d,h,p,m,y,g,v){for(var E=t,x=v,T=0,S=!1;(x=x.get(vP))!==void 0&&!S;){var w=x.get(t);if(T+=1,typeof w<"u"){if(w===T)throw new RangeError("Cyclic object value");S=!0}typeof x.get(vP)>"u"&&(T=0)}if(typeof c=="function"?E=c(r,E):E instanceof Date?E=h(E):n==="comma"&&ga(E)&&(E=iv.maybeMap(E,function(ee){return ee instanceof Date?h(ee):ee})),E===null){if(a)return l&&!y?l(r,Nr.encoder,g,"key",p):r;E=""}if(LXe(E)||iv.isBuffer(E)){if(l){var A=y?r:l(r,Nr.encoder,g,"key",p);return[m(A)+"="+m(l(E,Nr.encoder,g,"value",p))]}return[m(r)+"="+m(String(E))]}var C=[];if(typeof E>"u")return C;var I;if(n==="comma"&&ga(E))y&&l&&(E=iv.maybeMap(E,l)),I=[{value:E.length>0?E.join(",")||null:void 0}];else if(ga(c))I=c;else{var M=Object.keys(E);I=f?M.sort(f):M}var R=u?String(r).replace(/\./g,"%2E"):String(r),P=i&&ga(E)&&E.length===1?R+"[]":R;if(s&&ga(E)&&E.length===0)return P+"[]";for(var k=0;k<I.length;++k){var K=I[k],z=typeof K=="object"&&K&&typeof K.value<"u"?K.value:E[K];if(!(o&&z===null)){var G=d&&u?String(K).replace(/\./g,"%2E"):String(K),te=ga(E)?typeof n=="function"?n(P,G):P:P+(d?"."+G:"["+G+"]");v.set(t,T);var j=roe();j.set(vP,v),ioe(C,e(z,te,n,i,s,a,o,u,n==="comma"&&y&&ga(E)?null:l,c,f,d,h,p,m,y,g,j))}}return C},FXe=function(t){if(!t)return Nr;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Nr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Km.default;if(typeof t.format<"u"){if(!DXe.call(Km.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=Km.formatters[n],s=Nr.filter;(typeof t.filter=="function"||ga(t.filter))&&(s=t.filter);var a;if(t.arrayFormat in noe?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Nr.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Nr.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Nr.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Nr.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Nr.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Nr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Nr.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Nr.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Nr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Nr.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Nr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Nr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Nr.strictNullHandling}};soe.exports=function(e,t){var r=e,n=FXe(t),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):ga(n.filter)&&(s=n.filter,i=s);var a=[];if(typeof r!="object"||r===null)return"";var o=noe[n.arrayFormat],u=o==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=roe(),c=0;c<i.length;++c){var f=i[c],d=r[f];n.skipNulls&&d===null||ioe(a,MXe(d,f,o,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var h=a.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),h.length>0?p+h:""}});var loe=_((qgt,coe)=>{"use strict";var ml=_P(),TP=Object.prototype.hasOwnProperty,ooe=Array.isArray,ar={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ml.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},BXe=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},uoe=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},qXe="utf8=%26%2310003%3B",jXe="utf8=%E2%9C%93",UXe=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=r.parameterLimit===1/0?void 0:r.parameterLimit,a=i.split(r.delimiter,r.throwOnLimitExceeded?s+1:s);if(r.throwOnLimitExceeded&&a.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var o=-1,u,l=r.charset;if(r.charsetSentinel)for(u=0;u<a.length;++u)a[u].indexOf("utf8=")===0&&(a[u]===jXe?l="utf-8":a[u]===qXe&&(l="iso-8859-1"),o=u,u=a.length);for(u=0;u<a.length;++u)if(u!==o){var c=a[u],f=c.indexOf("]="),d=f===-1?c.indexOf("="):f+1,h,p;d===-1?(h=r.decoder(c,ar.decoder,l,"key"),p=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,d),ar.decoder,l,"key"),p=ml.maybeMap(uoe(c.slice(d+1),r,ooe(n[h])?n[h].length:0),function(y){return r.decoder(y,ar.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=BXe(String(p))),c.indexOf("[]=")>-1&&(p=ooe(p)?[p]:p);var m=TP.call(n,h);m&&r.duplicates==="combine"?n[h]=ml.combine(n[h],p):(!m||r.duplicates==="last")&&(n[h]=p)}return n},HXe=function(e,t,r,n){var i=0;if(e.length>0&&e[e.length-1]==="[]"){var s=e.slice(0,-1).join("");i=Array.isArray(t)&&t[s]?t[s].length:0}for(var a=n?t:uoe(t,r,i),o=e.length-1;o>=0;--o){var u,l=e[o];if(l==="[]"&&r.parseArrays)u=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:ml.combine([],a);else{u=r.plainObjects?{__proto__:null}:{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,f=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(f,10);!r.parseArrays&&f===""?u={0:a}:!isNaN(d)&&l!==f&&String(d)===f&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[],u[d]=a):f!=="__proto__"&&(u[f]=a)}a=u}return a},zXe=function(t,r,n,i){if(t){var s=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(s),l=u?s.slice(0,u.index):s,c=[];if(l){if(!n.plainObjects&&TP.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&(u=o.exec(s))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&TP.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(u[1])}if(u){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+s.slice(u.index)+"]")}return HXe(c,r,n,i)}},VXe=function(t){if(!t)return ar;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?ar.charset:t.charset,n=typeof t.duplicates>"u"?ar.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:ar.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ar.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:ar.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:ar.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:ar.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ar.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:ar.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:ar.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:ar.decoder,delimiter:typeof t.delimiter=="string"||ml.isRegExp(t.delimiter)?t.delimiter:ar.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:ar.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:ar.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:ar.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:ar.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:ar.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ar.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}};coe.exports=function(e,t){var r=VXe(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?UXe(e,r):e,i=r.plainObjects?{__proto__:null}:{},s=Object.keys(n),a=0;a<s.length;++a){var o=s[a],u=zXe(o,n[o],r,typeof e=="string");i=ml.merge(i,u,r)}return r.allowSparse===!0?i:ml.compact(i)}});var sv=_((jgt,foe)=>{"use strict";var GXe=aoe(),WXe=loe(),KXe=nv();foe.exports={formats:KXe,parse:WXe,stringify:GXe}});var SP=_((doe,av)=>{(function(e){"use strict";var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",o=1e14,u=14,l=9007199254740991,c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,d=1e9;function h(T){var S,w,A,C=se.prototype={constructor:se,toString:null,valueOf:null},I=new se(1),M=20,R=4,P=-7,k=21,K=-1e7,z=1e7,G=!1,te=1,j=0,ee={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},re="0123456789abcdefghijklmnopqrstuvwxyz",Z=!0;function se(O,$){var B,N,L,q,W,H,V,Y,X=this;if(!(X instanceof se))return new se(O,$);if($==null){if(O&&O._isBigNumber===!0){X.s=O.s,!O.c||O.e>z?X.c=X.e=null:O.e<K?X.c=[X.e=0]:(X.e=O.e,X.c=O.c.slice());return}if((H=typeof O=="number")&&O*0==0){if(X.s=1/O<0?(O=-O,-1):1,O===~~O){for(q=0,W=O;W>=10;W/=10,q++);q>z?X.c=X.e=null:(X.e=q,X.c=[O]);return}Y=String(O)}else{if(!r.test(Y=String(O)))return A(X,Y,H);X.s=Y.charCodeAt(0)==45?(Y=Y.slice(1),-1):1}(q=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(W=Y.search(/e/i))>0?(q<0&&(q=W),q+=+Y.slice(W+1),Y=Y.substring(0,W)):q<0&&(q=Y.length)}else{if(g($,2,re.length,"Base"),$==10&&Z)return X=new se(O),be(X,M+X.e+1,R);if(Y=String(O),H=typeof O=="number"){if(O*0!=0)return A(X,Y,H,$);if(X.s=1/O<0?(Y=Y.slice(1),-1):1,se.DEBUG&&Y.replace(/^0\.0*|\./,"").length>15)throw Error(a+O)}else X.s=Y.charCodeAt(0)===45?(Y=Y.slice(1),-1):1;for(B=re.slice(0,$),q=W=0,V=Y.length;W<V;W++)if(B.indexOf(N=Y.charAt(W))<0){if(N=="."){if(W>q){q=V;continue}}else if(!L&&(Y==Y.toUpperCase()&&(Y=Y.toLowerCase())||Y==Y.toLowerCase()&&(Y=Y.toUpperCase()))){L=!0,W=-1,q=0;continue}return A(X,String(O),H,$)}H=!1,Y=w(Y,$,10,X.s),(q=Y.indexOf("."))>-1?Y=Y.replace(".",""):q=Y.length}for(W=0;Y.charCodeAt(W)===48;W++);for(V=Y.length;Y.charCodeAt(--V)===48;);if(Y=Y.slice(W,++V)){if(V-=W,H&&se.DEBUG&&V>15&&(O>l||O!==i(O)))throw Error(a+X.s*O);if((q=q-W-1)>z)X.c=X.e=null;else if(q<K)X.c=[X.e=0];else{if(X.e=q,X.c=[],W=(q+1)%u,q<0&&(W+=u),W<V){for(W&&X.c.push(+Y.slice(0,W)),V-=u;W<V;)X.c.push(+Y.slice(W,W+=u));W=u-(Y=Y.slice(W)).length}else W-=V;for(;W--;Y+="0");X.c.push(+Y)}}else X.c=[X.e=0]}se.clone=h,se.ROUND_UP=0,se.ROUND_DOWN=1,se.ROUND_CEIL=2,se.ROUND_FLOOR=3,se.ROUND_HALF_UP=4,se.ROUND_HALF_DOWN=5,se.ROUND_HALF_EVEN=6,se.ROUND_HALF_CEIL=7,se.ROUND_HALF_FLOOR=8,se.EUCLID=9,se.config=se.set=function(O){var $,B;if(O!=null)if(typeof O=="object"){if(O.hasOwnProperty($="DECIMAL_PLACES")&&(B=O[$],g(B,0,d,$),M=B),O.hasOwnProperty($="ROUNDING_MODE")&&(B=O[$],g(B,0,8,$),R=B),O.hasOwnProperty($="EXPONENTIAL_AT")&&(B=O[$],B&&B.pop?(g(B[0],-d,0,$),g(B[1],0,d,$),P=B[0],k=B[1]):(g(B,-d,d,$),P=-(k=B<0?-B:B))),O.hasOwnProperty($="RANGE"))if(B=O[$],B&&B.pop)g(B[0],-d,-1,$),g(B[1],1,d,$),K=B[0],z=B[1];else if(g(B,-d,d,$),B)K=-(z=B<0?-B:B);else throw Error(s+$+" cannot be zero: "+B);if(O.hasOwnProperty($="CRYPTO"))if(B=O[$],B===!!B)if(B)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))G=B;else throw G=!B,Error(s+"crypto unavailable");else G=B;else throw Error(s+$+" not true or false: "+B);if(O.hasOwnProperty($="MODULO_MODE")&&(B=O[$],g(B,0,9,$),te=B),O.hasOwnProperty($="POW_PRECISION")&&(B=O[$],g(B,0,d,$),j=B),O.hasOwnProperty($="FORMAT"))if(B=O[$],typeof B=="object")ee=B;else throw Error(s+$+" not an object: "+B);if(O.hasOwnProperty($="ALPHABET"))if(B=O[$],typeof B=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(B))Z=B.slice(0,10)=="0123456789",re=B;else throw Error(s+$+" invalid: "+B)}else throw Error(s+"Object expected: "+O);return{DECIMAL_PLACES:M,ROUNDING_MODE:R,EXPONENTIAL_AT:[P,k],RANGE:[K,z],CRYPTO:G,MODULO_MODE:te,POW_PRECISION:j,FORMAT:ee,ALPHABET:re}},se.isBigNumber=function(O){if(!O||O._isBigNumber!==!0)return!1;if(!se.DEBUG)return!0;var $,B,N=O.c,L=O.e,q=O.s;e:if({}.toString.call(N)=="[object Array]"){if((q===1||q===-1)&&L>=-d&&L<=d&&L===i(L)){if(N[0]===0){if(L===0&&N.length===1)return!0;break e}if($=(L+1)%u,$<1&&($+=u),String(N[0]).length==$){for($=0;$<N.length;$++)if(B=N[$],B<0||B>=o||B!==i(B))break e;if(B!==0)return!0}}}else if(N===null&&L===null&&(q===null||q===1||q===-1))return!0;throw Error(s+"Invalid BigNumber: "+O)},se.maximum=se.max=function(){return ve(arguments,-1)},se.minimum=se.min=function(){return ve(arguments,1)},se.random=function(){var O=9007199254740992,$=Math.random()*O&2097151?function(){return i(Math.random()*O)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(B){var N,L,q,W,H,V=0,Y=[],X=new se(I);if(B==null?B=M:g(B,0,d),W=n(B/u),G)if(crypto.getRandomValues){for(N=crypto.getRandomValues(new Uint32Array(W*=2));V<W;)H=N[V]*131072+(N[V+1]>>>11),H>=9e15?(L=crypto.getRandomValues(new Uint32Array(2)),N[V]=L[0],N[V+1]=L[1]):(Y.push(H%1e14),V+=2);V=W/2}else if(crypto.randomBytes){for(N=crypto.randomBytes(W*=7);V<W;)H=(N[V]&31)*281474976710656+N[V+1]*1099511627776+N[V+2]*4294967296+N[V+3]*16777216+(N[V+4]<<16)+(N[V+5]<<8)+N[V+6],H>=9e15?crypto.randomBytes(7).copy(N,V):(Y.push(H%1e14),V+=7);V=W/7}else throw G=!1,Error(s+"crypto unavailable");if(!G)for(;V<W;)H=$(),H<9e15&&(Y[V++]=H%1e14);for(W=Y[--V],B%=u,W&&B&&(H=c[u-B],Y[V]=i(W/H)*H);Y[V]===0;Y.pop(),V--);if(V<0)Y=[q=0];else{for(q=-1;Y[0]===0;Y.splice(0,1),q-=u);for(V=1,H=Y[0];H>=10;H/=10,V++);V<u&&(q-=u-V)}return X.e=q,X.c=Y,X}}(),se.sum=function(){for(var O=1,$=arguments,B=new se($[0]);O<$.length;)B=B.plus($[O++]);return B},w=function(){var O="0123456789";function $(B,N,L,q){for(var W,H=[0],V,Y=0,X=B.length;Y<X;){for(V=H.length;V--;H[V]*=N);for(H[0]+=q.indexOf(B.charAt(Y++)),W=0;W<H.length;W++)H[W]>L-1&&(H[W+1]==null&&(H[W+1]=0),H[W+1]+=H[W]/L|0,H[W]%=L)}return H.reverse()}return function(B,N,L,q,W){var H,V,Y,X,ne,me,Ae,$e,Ze=B.indexOf("."),It=M,Fe=R;for(Ze>=0&&(X=j,j=0,B=B.replace(".",""),$e=new se(N),me=$e.pow(B.length-Ze),j=X,$e.c=$(x(m(me.c),me.e,"0"),10,L,O),$e.e=$e.c.length),Ae=$(B,N,L,W?(H=re,O):(H=O,re)),Y=X=Ae.length;Ae[--X]==0;Ae.pop());if(!Ae[0])return H.charAt(0);if(Ze<0?--Y:(me.c=Ae,me.e=Y,me.s=q,me=S(me,$e,It,Fe,L),Ae=me.c,ne=me.r,Y=me.e),V=Y+It+1,Ze=Ae[V],X=L/2,ne=ne||V<0||Ae[V+1]!=null,ne=Fe<4?(Ze!=null||ne)&&(Fe==0||Fe==(me.s<0?3:2)):Ze>X||Ze==X&&(Fe==4||ne||Fe==6&&Ae[V-1]&1||Fe==(me.s<0?8:7)),V<1||!Ae[0])B=ne?x(H.charAt(1),-It,H.charAt(0)):H.charAt(0);else{if(Ae.length=V,ne)for(--L;++Ae[--V]>L;)Ae[V]=0,V||(++Y,Ae=[1].concat(Ae));for(X=Ae.length;!Ae[--X];);for(Ze=0,B="";Ze<=X;B+=H.charAt(Ae[Ze++]));B=x(B,Y,H.charAt(0))}return B}}(),S=function(){function O(N,L,q){var W,H,V,Y,X=0,ne=N.length,me=L%f,Ae=L/f|0;for(N=N.slice();ne--;)V=N[ne]%f,Y=N[ne]/f|0,W=Ae*V+Y*me,H=me*V+W%f*f+X,X=(H/q|0)+(W/f|0)+Ae*Y,N[ne]=H%q;return X&&(N=[X].concat(N)),N}function $(N,L,q,W){var H,V;if(q!=W)V=q>W?1:-1;else for(H=V=0;H<q;H++)if(N[H]!=L[H]){V=N[H]>L[H]?1:-1;break}return V}function B(N,L,q,W){for(var H=0;q--;)N[q]-=H,H=N[q]<L[q]?1:0,N[q]=H*W+N[q]-L[q];for(;!N[0]&&N.length>1;N.splice(0,1));}return function(N,L,q,W,H){var V,Y,X,ne,me,Ae,$e,Ze,It,Fe,mt,wr,Wt,Ji,go,rt,mr,Un=N.s==L.s?1:-1,Rt=N.c,gt=L.c;if(!Rt||!Rt[0]||!gt||!gt[0])return new se(!N.s||!L.s||(Rt?gt&&Rt[0]==gt[0]:!gt)?NaN:Rt&&Rt[0]==0||!gt?Un*0:Un/0);for(Ze=new se(Un),It=Ze.c=[],Y=N.e-L.e,Un=q+Y+1,H||(H=o,Y=p(N.e/u)-p(L.e/u),Un=Un/u|0),X=0;gt[X]==(Rt[X]||0);X++);if(gt[X]>(Rt[X]||0)&&Y--,Un<0)It.push(1),ne=!0;else{for(Ji=Rt.length,rt=gt.length,X=0,Un+=2,me=i(H/(gt[0]+1)),me>1&&(gt=O(gt,me,H),Rt=O(Rt,me,H),rt=gt.length,Ji=Rt.length),Wt=rt,Fe=Rt.slice(0,rt),mt=Fe.length;mt<rt;Fe[mt++]=0);mr=gt.slice(),mr=[0].concat(mr),go=gt[0],gt[1]>=H/2&&go++;do{if(me=0,V=$(gt,Fe,rt,mt),V<0){if(wr=Fe[0],rt!=mt&&(wr=wr*H+(Fe[1]||0)),me=i(wr/go),me>1)for(me>=H&&(me=H-1),Ae=O(gt,me,H),$e=Ae.length,mt=Fe.length;$(Ae,Fe,$e,mt)==1;)me--,B(Ae,rt<$e?mr:gt,$e,H),$e=Ae.length,V=1;else me==0&&(V=me=1),Ae=gt.slice(),$e=Ae.length;if($e<mt&&(Ae=[0].concat(Ae)),B(Fe,Ae,mt,H),mt=Fe.length,V==-1)for(;$(gt,Fe,rt,mt)<1;)me++,B(Fe,rt<mt?mr:gt,mt,H),mt=Fe.length}else V===0&&(me++,Fe=[0]);It[X++]=me,Fe[0]?Fe[mt++]=Rt[Wt]||0:(Fe=[Rt[Wt]],mt=1)}while((Wt++<Ji||Fe[0]!=null)&&Un--);ne=Fe[0]!=null,It[0]||It.splice(0,1)}if(H==o){for(X=1,Un=It[0];Un>=10;Un/=10,X++);be(Ze,q+(Ze.e=X+Y*u-1)+1,W,ne)}else Ze.e=Y,Ze.r=+ne;return Ze}}();function Se(O,$,B,N){var L,q,W,H,V;if(B==null?B=R:g(B,0,8),!O.c)return O.toString();if(L=O.c[0],W=O.e,$==null)V=m(O.c),V=N==1||N==2&&(W<=P||W>=k)?E(V,W):x(V,W,"0");else if(O=be(new se(O),$,B),q=O.e,V=m(O.c),H=V.length,N==1||N==2&&($<=q||q<=P)){for(;H<$;V+="0",H++);V=E(V,q)}else if($-=W+(N===2&&q>W),V=x(V,q,"0"),q+1>H){if(--$>0)for(V+=".";$--;V+="0");}else if($+=q-H,$>0)for(q+1==H&&(V+=".");$--;V+="0");return O.s<0&&L?"-"+V:V}function ve(O,$){for(var B,N,L=1,q=new se(O[0]);L<O.length;L++)N=new se(O[L]),(!N.s||(B=y(q,N))===$||B===0&&q.s===$)&&(q=N);return q}function _e(O,$,B){for(var N=1,L=$.length;!$[--L];$.pop());for(L=$[0];L>=10;L/=10,N++);return(B=N+B*u-1)>z?O.c=O.e=null:B<K?O.c=[O.e=0]:(O.e=B,O.c=$),O}A=function(){var O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,$=/^([^.]+)\.$/,B=/^\.([^.]+)$/,N=/^-?(Infinity|NaN)$/,L=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(q,W,H,V){var Y,X=H?W:W.replace(L,"");if(N.test(X))q.s=isNaN(X)?null:X<0?-1:1;else{if(!H&&(X=X.replace(O,function(ne,me,Ae){return Y=(Ae=Ae.toLowerCase())=="x"?16:Ae=="b"?2:8,!V||V==Y?me:ne}),V&&(Y=V,X=X.replace($,"$1").replace(B,"0.$1")),W!=X))return new se(X,Y);if(se.DEBUG)throw Error(s+"Not a"+(V?" base "+V:"")+" number: "+W);q.s=null}q.c=q.e=null}}();function be(O,$,B,N){var L,q,W,H,V,Y,X,ne=O.c,me=c;if(ne){e:{for(L=1,H=ne[0];H>=10;H/=10,L++);if(q=$-L,q<0)q+=u,W=$,V=ne[Y=0],X=i(V/me[L-W-1]%10);else if(Y=n((q+1)/u),Y>=ne.length)if(N){for(;ne.length<=Y;ne.push(0));V=X=0,L=1,q%=u,W=q-u+1}else break e;else{for(V=H=ne[Y],L=1;H>=10;H/=10,L++);q%=u,W=q-u+L,X=W<0?0:i(V/me[L-W-1]%10)}if(N=N||$<0||ne[Y+1]!=null||(W<0?V:V%me[L-W-1]),N=B<4?(X||N)&&(B==0||B==(O.s<0?3:2)):X>5||X==5&&(B==4||N||B==6&&(q>0?W>0?V/me[L-W]:0:ne[Y-1])%10&1||B==(O.s<0?8:7)),$<1||!ne[0])return ne.length=0,N?($-=O.e+1,ne[0]=me[(u-$%u)%u],O.e=-$||0):ne[0]=O.e=0,O;if(q==0?(ne.length=Y,H=1,Y--):(ne.length=Y+1,H=me[u-q],ne[Y]=W>0?i(V/me[L-W]%me[W])*H:0),N)for(;;)if(Y==0){for(q=1,W=ne[0];W>=10;W/=10,q++);for(W=ne[0]+=H,H=1;W>=10;W/=10,H++);q!=H&&(O.e++,ne[0]==o&&(ne[0]=1));break}else{if(ne[Y]+=H,ne[Y]!=o)break;ne[Y--]=0,H=1}for(q=ne.length;ne[--q]===0;ne.pop());}O.e>z?O.c=O.e=null:O.e<K&&(O.c=[O.e=0])}return O}function he(O){var $,B=O.e;return B===null?O.toString():($=m(O.c),$=B<=P||B>=k?E($,B):x($,B,"0"),O.s<0?"-"+$:$)}return C.absoluteValue=C.abs=function(){var O=new se(this);return O.s<0&&(O.s=1),O},C.comparedTo=function(O,$){return y(this,new se(O,$))},C.decimalPlaces=C.dp=function(O,$){var B,N,L,q=this;if(O!=null)return g(O,0,d),$==null?$=R:g($,0,8),be(new se(q),O+q.e+1,$);if(!(B=q.c))return null;if(N=((L=B.length-1)-p(this.e/u))*u,L=B[L])for(;L%10==0;L/=10,N--);return N<0&&(N=0),N},C.dividedBy=C.div=function(O,$){return S(this,new se(O,$),M,R)},C.dividedToIntegerBy=C.idiv=function(O,$){return S(this,new se(O,$),0,1)},C.exponentiatedBy=C.pow=function(O,$){var B,N,L,q,W,H,V,Y,X,ne=this;if(O=new se(O),O.c&&!O.isInteger())throw Error(s+"Exponent not an integer: "+he(O));if($!=null&&($=new se($)),H=O.e>14,!ne.c||!ne.c[0]||ne.c[0]==1&&!ne.e&&ne.c.length==1||!O.c||!O.c[0])return X=new se(Math.pow(+he(ne),H?O.s*(2-v(O)):+he(O))),$?X.mod($):X;if(V=O.s<0,$){if($.c?!$.c[0]:!$.s)return new se(NaN);N=!V&&ne.isInteger()&&$.isInteger(),N&&(ne=ne.mod($))}else{if(O.e>9&&(ne.e>0||ne.e<-1||(ne.e==0?ne.c[0]>1||H&&ne.c[1]>=24e7:ne.c[0]<8e13||H&&ne.c[0]<=9999975e7)))return q=ne.s<0&&v(O)?-0:0,ne.e>-1&&(q=1/q),new se(V?1/q:q);j&&(q=n(j/u+2))}for(H?(B=new se(.5),V&&(O.s=1),Y=v(O)):(L=Math.abs(+he(O)),Y=L%2),X=new se(I);;){if(Y){if(X=X.times(ne),!X.c)break;q?X.c.length>q&&(X.c.length=q):N&&(X=X.mod($))}if(L){if(L=i(L/2),L===0)break;Y=L%2}else if(O=O.times(B),be(O,O.e+1,1),O.e>14)Y=v(O);else{if(L=+he(O),L===0)break;Y=L%2}ne=ne.times(ne),q?ne.c&&ne.c.length>q&&(ne.c.length=q):N&&(ne=ne.mod($))}return N?X:(V&&(X=I.div(X)),$?X.mod($):q?be(X,j,R,W):X)},C.integerValue=function(O){var $=new se(this);return O==null?O=R:g(O,0,8),be($,$.e+1,O)},C.isEqualTo=C.eq=function(O,$){return y(this,new se(O,$))===0},C.isFinite=function(){return!!this.c},C.isGreaterThan=C.gt=function(O,$){return y(this,new se(O,$))>0},C.isGreaterThanOrEqualTo=C.gte=function(O,$){return($=y(this,new se(O,$)))===1||$===0},C.isInteger=function(){return!!this.c&&p(this.e/u)>this.c.length-2},C.isLessThan=C.lt=function(O,$){return y(this,new se(O,$))<0},C.isLessThanOrEqualTo=C.lte=function(O,$){return($=y(this,new se(O,$)))===-1||$===0},C.isNaN=function(){return!this.s},C.isNegative=function(){return this.s<0},C.isPositive=function(){return this.s>0},C.isZero=function(){return!!this.c&&this.c[0]==0},C.minus=function(O,$){var B,N,L,q,W=this,H=W.s;if(O=new se(O,$),$=O.s,!H||!$)return new se(NaN);if(H!=$)return O.s=-$,W.plus(O);var V=W.e/u,Y=O.e/u,X=W.c,ne=O.c;if(!V||!Y){if(!X||!ne)return X?(O.s=-$,O):new se(ne?W:NaN);if(!X[0]||!ne[0])return ne[0]?(O.s=-$,O):new se(X[0]?W:R==3?-0:0)}if(V=p(V),Y=p(Y),X=X.slice(),H=V-Y){for((q=H<0)?(H=-H,L=X):(Y=V,L=ne),L.reverse(),$=H;$--;L.push(0));L.reverse()}else for(N=(q=(H=X.length)<($=ne.length))?H:$,H=$=0;$<N;$++)if(X[$]!=ne[$]){q=X[$]<ne[$];break}if(q&&(L=X,X=ne,ne=L,O.s=-O.s),$=(N=ne.length)-(B=X.length),$>0)for(;$--;X[B++]=0);for($=o-1;N>H;){if(X[--N]<ne[N]){for(B=N;B&&!X[--B];X[B]=$);--X[B],X[N]+=o}X[N]-=ne[N]}for(;X[0]==0;X.splice(0,1),--Y);return X[0]?_e(O,X,Y):(O.s=R==3?-1:1,O.c=[O.e=0],O)},C.modulo=C.mod=function(O,$){var B,N,L=this;return O=new se(O,$),!L.c||!O.s||O.c&&!O.c[0]?new se(NaN):!O.c||L.c&&!L.c[0]?new se(L):(te==9?(N=O.s,O.s=1,B=S(L,O,0,3),O.s=N,B.s*=N):B=S(L,O,0,te),O=L.minus(B.times(O)),!O.c[0]&&te==1&&(O.s=L.s),O)},C.multipliedBy=C.times=function(O,$){var B,N,L,q,W,H,V,Y,X,ne,me,Ae,$e,Ze,It,Fe=this,mt=Fe.c,wr=(O=new se(O,$)).c;if(!mt||!wr||!mt[0]||!wr[0])return!Fe.s||!O.s||mt&&!mt[0]&&!wr||wr&&!wr[0]&&!mt?O.c=O.e=O.s=null:(O.s*=Fe.s,!mt||!wr?O.c=O.e=null:(O.c=[0],O.e=0)),O;for(N=p(Fe.e/u)+p(O.e/u),O.s*=Fe.s,V=mt.length,ne=wr.length,V<ne&&($e=mt,mt=wr,wr=$e,L=V,V=ne,ne=L),L=V+ne,$e=[];L--;$e.push(0));for(Ze=o,It=f,L=ne;--L>=0;){for(B=0,me=wr[L]%It,Ae=wr[L]/It|0,W=V,q=L+W;q>L;)Y=mt[--W]%It,X=mt[W]/It|0,H=Ae*Y+X*me,Y=me*Y+H%It*It+$e[q]+B,B=(Y/Ze|0)+(H/It|0)+Ae*X,$e[q--]=Y%Ze;$e[q]=B}return B?++N:$e.splice(0,1),_e(O,$e,N)},C.negated=function(){var O=new se(this);return O.s=-O.s||null,O},C.plus=function(O,$){var B,N=this,L=N.s;if(O=new se(O,$),$=O.s,!L||!$)return new se(NaN);if(L!=$)return O.s=-$,N.minus(O);var q=N.e/u,W=O.e/u,H=N.c,V=O.c;if(!q||!W){if(!H||!V)return new se(L/0);if(!H[0]||!V[0])return V[0]?O:new se(H[0]?N:L*0)}if(q=p(q),W=p(W),H=H.slice(),L=q-W){for(L>0?(W=q,B=V):(L=-L,B=H),B.reverse();L--;B.push(0));B.reverse()}for(L=H.length,$=V.length,L-$<0&&(B=V,V=H,H=B,$=L),L=0;$;)L=(H[--$]=H[$]+V[$]+L)/o|0,H[$]=o===H[$]?0:H[$]%o;return L&&(H=[L].concat(H),++W),_e(O,H,W)},C.precision=C.sd=function(O,$){var B,N,L,q=this;if(O!=null&&O!==!!O)return g(O,1,d),$==null?$=R:g($,0,8),be(new se(q),O,$);if(!(B=q.c))return null;if(L=B.length-1,N=L*u+1,L=B[L]){for(;L%10==0;L/=10,N--);for(L=B[0];L>=10;L/=10,N++);}return O&&q.e+1>N&&(N=q.e+1),N},C.shiftedBy=function(O){return g(O,-l,l),this.times("1e"+O)},C.squareRoot=C.sqrt=function(){var O,$,B,N,L,q=this,W=q.c,H=q.s,V=q.e,Y=M+4,X=new se("0.5");if(H!==1||!W||!W[0])return new se(!H||H<0&&(!W||W[0])?NaN:W?q:1/0);if(H=Math.sqrt(+he(q)),H==0||H==1/0?($=m(W),($.length+V)%2==0&&($+="0"),H=Math.sqrt(+$),V=p((V+1)/2)-(V<0||V%2),H==1/0?$="5e"+V:($=H.toExponential(),$=$.slice(0,$.indexOf("e")+1)+V),B=new se($)):B=new se(H+""),B.c[0]){for(V=B.e,H=V+Y,H<3&&(H=0);;)if(L=B,B=X.times(L.plus(S(q,L,Y,1))),m(L.c).slice(0,H)===($=m(B.c)).slice(0,H))if(B.e<V&&--H,$=$.slice(H-3,H+1),$=="9999"||!N&&$=="4999"){if(!N&&(be(L,L.e+M+2,0),L.times(L).eq(q))){B=L;break}Y+=4,H+=4,N=1}else{(!+$||!+$.slice(1)&&$.charAt(0)=="5")&&(be(B,B.e+M+2,1),O=!B.times(B).eq(q));break}}return be(B,B.e+M+1,R,O)},C.toExponential=function(O,$){return O!=null&&(g(O,0,d),O++),Se(this,O,$,1)},C.toFixed=function(O,$){return O!=null&&(g(O,0,d),O=O+this.e+1),Se(this,O,$)},C.toFormat=function(O,$,B){var N,L=this;if(B==null)O!=null&&$&&typeof $=="object"?(B=$,$=null):O&&typeof O=="object"?(B=O,O=$=null):B=ee;else if(typeof B!="object")throw Error(s+"Argument not an object: "+B);if(N=L.toFixed(O,$),L.c){var q,W=N.split("."),H=+B.groupSize,V=+B.secondaryGroupSize,Y=B.groupSeparator||"",X=W[0],ne=W[1],me=L.s<0,Ae=me?X.slice(1):X,$e=Ae.length;if(V&&(q=H,H=V,V=q,$e-=q),H>0&&$e>0){for(q=$e%H||H,X=Ae.substr(0,q);q<$e;q+=H)X+=Y+Ae.substr(q,H);V>0&&(X+=Y+Ae.slice(q)),me&&(X="-"+X)}N=ne?X+(B.decimalSeparator||"")+((V=+B.fractionGroupSize)?ne.replace(new RegExp("\\d{"+V+"}\\B","g"),"$&"+(B.fractionGroupSeparator||"")):ne):X}return(B.prefix||"")+N+(B.suffix||"")},C.toFraction=function(O){var $,B,N,L,q,W,H,V,Y,X,ne,me,Ae=this,$e=Ae.c;if(O!=null&&(H=new se(O),!H.isInteger()&&(H.c||H.s!==1)||H.lt(I)))throw Error(s+"Argument "+(H.isInteger()?"out of range: ":"not an integer: ")+he(H));if(!$e)return new se(Ae);for($=new se(I),Y=B=new se(I),N=V=new se(I),me=m($e),q=$.e=me.length-Ae.e-1,$.c[0]=c[(W=q%u)<0?u+W:W],O=!O||H.comparedTo($)>0?q>0?$:Y:H,W=z,z=1/0,H=new se(me),V.c[0]=0;X=S(H,$,0,1),L=B.plus(X.times(N)),L.comparedTo(O)!=1;)B=N,N=L,Y=V.plus(X.times(L=Y)),V=L,$=H.minus(X.times(L=$)),H=L;return L=S(O.minus(B),N,0,1),V=V.plus(L.times(Y)),B=B.plus(L.times(N)),V.s=Y.s=Ae.s,q=q*2,ne=S(Y,N,q,R).minus(Ae).abs().comparedTo(S(V,B,q,R).minus(Ae).abs())<1?[Y,N]:[V,B],z=W,ne},C.toNumber=function(){return+he(this)},C.toPrecision=function(O,$){return O!=null&&g(O,1,d),Se(this,O,$,2)},C.toString=function(O){var $,B=this,N=B.s,L=B.e;return L===null?N?($="Infinity",N<0&&($="-"+$)):$="NaN":(O==null?$=L<=P||L>=k?E(m(B.c),L):x(m(B.c),L,"0"):O===10&&Z?(B=be(new se(B),M+L+1,R),$=x(m(B.c),B.e,"0")):(g(O,2,re.length,"Base"),$=w(x(m(B.c),L,"0"),10,O,N,!0)),N<0&&B.c[0]&&($="-"+$)),$},C.valueOf=C.toJSON=function(){return he(this)},C._isBigNumber=!0,T!=null&&se.set(T),se}function p(T){var S=T|0;return T>0||T===S?S:S-1}function m(T){for(var S,w,A=1,C=T.length,I=T[0]+"";A<C;){for(S=T[A++]+"",w=u-S.length;w--;S="0"+S);I+=S}for(C=I.length;I.charCodeAt(--C)===48;);return I.slice(0,C+1||1)}function y(T,S){var w,A,C=T.c,I=S.c,M=T.s,R=S.s,P=T.e,k=S.e;if(!M||!R)return null;if(w=C&&!C[0],A=I&&!I[0],w||A)return w?A?0:-R:M;if(M!=R)return M;if(w=M<0,A=P==k,!C||!I)return A?0:!C^w?1:-1;if(!A)return P>k^w?1:-1;for(R=(P=C.length)<(k=I.length)?P:k,M=0;M<R;M++)if(C[M]!=I[M])return C[M]>I[M]^w?1:-1;return P==k?0:P>k^w?1:-1}function g(T,S,w,A){if(T<S||T>w||T!==i(T))throw Error(s+(A||"Argument")+(typeof T=="number"?T<S||T>w?" out of range: ":" not an integer: ":" not a primitive number: ")+String(T))}function v(T){var S=T.c.length-1;return p(T.e/u)==S&&T.c[S]%2!=0}function E(T,S){return(T.length>1?T.charAt(0)+"."+T.slice(1):T)+(S<0?"e":"e+")+S}function x(T,S,w){var A,C;if(S<0){for(C=w+".";++S;C+=w);T=C+T}else if(A=T.length,++S>A){for(C=w,S-=A;--S;C+=w);T+=C}else S<A&&(T=T.slice(0,S)+"."+T.slice(S));return T}t=h(),t.default=t.BigNumber=t,typeof define=="function"&&define.amd?define(function(){return t}):typeof av<"u"&&av.exports?av.exports=t:(e||(e=typeof self<"u"&&self?self:window),e.BigNumber=t)})(doe)});var goe=_((Ugt,moe)=>{var poe=SP(),hoe=moe.exports;(function(){"use strict";function e(l){return l<10?"0"+l:l}var t=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,i,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},a;function o(l){return r.lastIndex=0,r.test(l)?'"'+l.replace(r,function(c){var f=s[c];return typeof f=="string"?f:"\\u"+("0000"+c.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+l+'"'}function u(l,c){var f,d,h,p,m=n,y,g=c[l],v=g!=null&&(g instanceof poe||poe.isBigNumber(g));switch(g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(l)),typeof a=="function"&&(g=a.call(c,l,g)),typeof g){case"string":return v?g:o(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":case"bigint":return String(g);case"object":if(!g)return"null";if(n+=i,y=[],Object.prototype.toString.apply(g)==="[object Array]"){for(p=g.length,f=0;f<p;f+=1)y[f]=u(f,g)||"null";return h=y.length===0?"[]":n?`[
`+n+y.join(`,
`+n)+`
`+m+"]":"["+y.join(",")+"]",n=m,h}if(a&&typeof a=="object")for(p=a.length,f=0;f<p;f+=1)typeof a[f]=="string"&&(d=a[f],h=u(d,g),h&&y.push(o(d)+(n?": ":":")+h));else Object.keys(g).forEach(function(E){var x=u(E,g);x&&y.push(o(E)+(n?": ":":")+x)});return h=y.length===0?"{}":n?`{
`+n+y.join(`,
`+n)+`
`+m+"}":"{"+y.join(",")+"}",n=m,h}}typeof hoe.stringify!="function"&&(hoe.stringify=function(l,c,f){var d;if(n="",i="",typeof f=="number")for(d=0;d<f;d+=1)i+=" ";else typeof f=="string"&&(i=f);if(a=c,c&&typeof c!="function"&&(typeof c!="object"||typeof c.length!="number"))throw new Error("JSON.stringify");return u("",{"":l})})})()});var boe=_((Hgt,yoe)=>{var ov=null,YXe=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,XXe=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/,JXe=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:" "},s,a=function(m){throw{name:"SyntaxError",message:m,at:r,text:s}},o=function(m){return m&&m!==n&&a("Expected '"+m+"' instead of '"+n+"'"),n=s.charAt(r),r+=1,n},u=function(){var m,y="";for(n==="-"&&(y="-",o("-"));n>="0"&&n<="9";)y+=n,o();if(n===".")for(y+=".";o()&&n>="0"&&n<="9";)y+=n;if(n==="e"||n==="E")for(y+=n,o(),(n==="-"||n==="+")&&(y+=n,o());n>="0"&&n<="9";)y+=n,o();if(m=+y,!isFinite(m))a("Bad number");else return ov==null&&(ov=SP()),y.length>15?t.storeAsString?y:t.useNativeBigInt?BigInt(y):new ov(y):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(m):new ov(m):m},l=function(){var m,y,g="",v;if(n==='"')for(var E=r;o();){if(n==='"')return r-1>E&&(g+=s.substring(E,r-1)),o(),g;if(n==="\\"){if(r-1>E&&(g+=s.substring(E,r-1)),o(),n==="u"){for(v=0,y=0;y<4&&(m=parseInt(o(),16),!!isFinite(m));y+=1)v=v*16+m;g+=String.fromCharCode(v)}else if(typeof i[n]=="string")g+=i[n];else break;E=r}}a("Bad string")},c=function(){for(;n&&n<=" ";)o()},f=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}a("Unexpected '"+n+"'")},d,h=function(){var m=[];if(n==="["){if(o("["),c(),n==="]")return o("]"),m;for(;n;){if(m.push(d()),c(),n==="]")return o("]"),m;o(","),c()}}a("Bad array")},p=function(){var m,y=Object.create(null);if(n==="{"){if(o("{"),c(),n==="}")return o("}"),y;for(;n;){if(m=l(),c(),o(":"),t.strict===!0&&Object.hasOwnProperty.call(y,m)&&a('Duplicate key "'+m+'"'),YXe.test(m)===!0?t.protoAction==="error"?a("Object contains forbidden prototype property"):t.protoAction==="ignore"?d():y[m]=d():XXe.test(m)===!0?t.constructorAction==="error"?a("Object contains forbidden constructor property"):t.constructorAction==="ignore"?d():y[m]=d():y[m]=d(),c(),n==="}")return o("}"),y;o(","),c()}}a("Bad object")};return d=function(){switch(c(),n){case"{":return p();case"[":return h();case'"':return l();case"-":return u();default:return n>="0"&&n<="9"?u():f()}},function(m,y){var g;return s=m+"",r=0,n=" ",g=d(),c(),n&&a("Syntax error"),typeof y=="function"?function v(E,x){var T,S,w=E[x];return w&&typeof w=="object"&&Object.keys(w).forEach(function(A){S=v(w,A),S!==void 0?w[A]=S:delete w[A]}),y.call(E,x,w)}({"":g},""):g}};yoe.exports=JXe});var _oe=_((zgt,uv)=>{var xoe=goe().stringify,Eoe=boe();uv.exports=function(e){return{parse:Eoe(e),stringify:xoe}};uv.exports.parse=Eoe();uv.exports.stringify=xoe});var Aue=_(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.removeTrailingChar=yl.merge=void 0;var iZe=(...e)=>{let t={};return e.forEach(function(r){var n;for(n in r)n in t&&t[n]===null?t[n]=r[n]:n in t&&Array.isArray(t[n])?t[n]=t[n].concat(r[n]):n in t&&typeof t[n]=="object"?t[n]=(0,yl.merge)(t[n],r[n]):t[n]=r[n]}),t};yl.merge=iZe;var sZe=(e,t)=>e.length>1&&e.endsWith(t)?e.substring(0,e.length-1):e;yl.removeTrailingChar=sZe});var Ud=_(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.DataError=Uu.DatabaseError=Uu.NestedError=void 0;var eg=class extends Error{inner;id;constructor(t,r,n){super(t),this.inner=n,this.id=r,this.name=this.constructor.name}toString(){let t=this.name+": "+this.message;return this.inner?t+`:
`+this.inner:t}};Uu.NestedError=eg;var z8=class extends eg{};Uu.DatabaseError=z8;var V8=class extends eg{};Uu.DataError=V8});var X8=_(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.getArrayIndicies=jn.validateArrayIndex=jn.validateArrayIndicies=jn.isInt=jn.ArrayInfo=jn.arrayRegex=void 0;var Sv=Ud(),aZe=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;jn.arrayRegex=aZe;var G8={},W8=class e{property;index=0;append=!1;indicies=[];constructor(t,r){this.property=t;let n=r[0]??0;if(this.append=n===""||r[r.length-1]==="",this.indicies=r,K8(n))this.index=parseInt(n);else if(!this.append)throw new Sv.DataError("Only numerical values accepted for array index",200)}static processArray(t){if(typeof t>"u")return null;if(G8[t])return G8[t];let n=(0,jn.arrayRegex)().exec(t.trim());if(n!=null){let i=n[1],s="["+n[2].toString()+"]",a=Y8(s);return Cue(a),G8[t]=new e(i,a)}return null}getIndex(t,r){if(this.append)return-1;let n=this.index;if(n==-1){let i=r?t:t[this.property];return i.length===0?0:i.length-1}return n}getData(t){if(this.append)throw new Sv.DataError("Can't get data when appending",100);let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(t);return n[r]}setData(t,r){if(this.append){let n=t[this.property];this.indicies.forEach(i=>{i!==""&&(i=+i,i===-1&&(i=n.length-1),n=n[+i])}),n.push(r)}else{let{index:n,dataForProperty:i}=this.getArrayDataAndIndexFromProperty(t);n===-1?i.push(r):i[n]=r}}delete(t){if(this.append)throw new Sv.DataError("Can't delete an appended data",10);let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(t);n.splice(r,1)}isValid(t){let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(t);return n.hasOwnProperty(r)}getArrayDataAndIndexFromProperty(t){let r=0,n=t instanceof Array?t:t[this.property]??t;if(this.indicies.length>0){r=+this.indicies[this.indicies.length-1];for(let i=0;i<this.indicies.length-1;i++){let s=+this.indicies[i];s===-1&&(s=n.length-1),n=n[s]}r===-1&&(r=n.length-1)}return{index:r,dataForProperty:n}}isMultiDimensional(){return this.indicies.length>1}};jn.ArrayInfo=W8;function K8(e){return!isNaN(e)&&Number(e)==e&&!isNaN(parseInt(e,10))}jn.isInt=K8;function Cue(e){let t=e.filter(r=>r==="");if(t.length>1)throw Error("Only one append index is supported for nested arrays");if(t.length===1&&e[e.length-1]!=="")throw Error("Append index must be at the end of the nested array")}jn.validateArrayIndicies=Cue;function Iue(e){if(e.length!==0&&!K8(e))throw new Sv.DataError("Only numerical values accepted for array index",200)}jn.validateArrayIndex=Iue;function Y8(e){if(e.length===0)return[];if(e.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let t=e.substring(1,e.indexOf("]"));Iue(t);let r=t.length+2;return[t,...Y8(e.substring(r))]}jn.getArrayIndicies=Y8});var Oue=_(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});wv.DBParentData=void 0;var Rue=X8(),Nue=Ud(),J8=class{parent;data;db;dataPath;constructor(t,r,n,i){this.parent=i,this.data=t,this.db=r,this.dataPath=n}checkArray(t=!1){let r=Rue.ArrayInfo.processArray(this.parent);if(r&&(!r.append||t)&&!r.isValid(this.data))throw new Nue.DataError("DataPath: /"+this.dataPath+". Can't find index "+r.index+" in array "+r.property,10);return r}getData(){if(this.parent===void 0)return this.data;let t=this.checkArray();return t?t.getData(this.data):this.data[this.parent]}setData(t){if(this.parent===void 0){this.db.resetData(t);return}let r=Rue.ArrayInfo.processArray(this.parent);if(r){if(!this.data.hasOwnProperty(r.property))this.data[r.property]=[];else if(!Array.isArray(this.data[r.property]))throw new Nue.DataError("DataPath: /"+this.dataPath+". "+r.property+" is not an array.",11);r.setData(this.data,t)}else this.data[this.parent]=t}delete(){if(this.parent===void 0){this.db.resetData({});return}let t=this.checkArray(!0);t?t.delete(this.data):delete this.data[this.parent]}};wv.DBParentData=J8});var Due=_((_bt,Pue)=>{Pue.exports=function(){"use strict";function e(){this.readers=0,this.queue=[]}function t(s,a,o){var u;typeof s!="function"?(i.hasOwnProperty(s)||(i[s]=new e),u=i[s]):(o=a,a=s,u=n),o||(o={});var l=null;o.hasOwnProperty("scope")&&(l=o.scope);var c=function(){var h=!1;return function(){h||(h=!0,u.readers--,u.queue.length&&u.queue[0]())}}();if(u.readers<0||u.queue.length){var f=!1;if(u.queue.push(function(){!f&&u.readers>=0&&(f=!0,u.queue.shift(),u.readers++,a.call(l,c),u.queue.length&&u.queue[0]())}),o.hasOwnProperty("timeout")){var d=null;o.hasOwnProperty("timeoutCallback")&&(d=o.timeoutCallback),setTimeout(function(){f||(f=!0,u.queue.shift(),d&&d.call(o.scope))},o.timeout)}}else u.readers++,a.call(o.scope,c)}function r(s,a,o){var u;typeof s!="function"?(i.hasOwnProperty(s)||(i[s]=new e),u=i[s]):(o=a,a=s,u=n),o||(o={});var l=null;o.hasOwnProperty("scope")&&(l=o.scope);var c=function(){var h=!1;return function(){h||(h=!0,u.readers=0,u.queue.length&&u.queue[0]())}}();if(u.readers||u.queue.length){var f=!1;if(u.queue.push(function(){f||u.readers||(f=!0,u.queue.shift(),u.readers=-1,a.call(o.scope,c))}),o.hasOwnProperty("timeout")){var d=null;o.hasOwnProperty("timeoutCallback")&&(d=o.timeoutCallback),setTimeout(function(){f||(f=!0,u.queue.shift(),d&&d.call(l))},o.timeout)}}else u.readers=-1,a.call(o.scope,c)}var n=new e,i={};this.readLock=t,this.writeLock=r,this.async={readLock:function(s,a,o){typeof s!="function"?t(s,function(u){a.call(this,null,u)},o):(a=s,o=a,t(function(u){a.call(this,null,u)},o))},writeLock:function(s,a,o){typeof s!="function"?r(s,function(u){a.call(this,null,u)},o):(a=s,o=a,r(function(u){a.call(this,null,u)},o))}}}});var kue=_(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.TimeoutError=void 0;var oZe=Ud(),Q8=class extends oZe.NestedError{};Av.TimeoutError=Q8});var Mue=_(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.writeLockAsync=Hd.readLockAsync=void 0;var uZe=Due(),$ue=kue(),Lue=new uZe,cZe=(e,t=null)=>{let r={};return t!=null&&(r={timeout:t}),new Promise((n,i)=>{Lue.readLock(async s=>{try{let a=await e();n(a)}catch(a){i(a)}finally{s()}},{...r,timeoutCallback(){i(new $ue.TimeoutError("Timeout",100))}})})};Hd.readLockAsync=cZe;var lZe=(e,t=null)=>{let r={};return t!=null&&(r={timeout:t}),new Promise((n,i)=>{Lue.writeLock(async s=>{try{let a=await e();n(a)}catch(a){i(a)}finally{s()}},{...r,timeoutCallback(){i(new $ue.TimeoutError("Timeout",100))}})})};Hd.writeLockAsync=lZe});var eD=_(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.JsonAdapter=void 0;var Z8=class{adapter;humanReadable;dateRegex=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}","m");constructor(t,r=!1){this.adapter=t,this.humanReadable=r}replacer(t,r){return r}reviver(t,r){return typeof r=="string"&&this.dateRegex.exec(r)!=null?new Date(r):r}async readAsync(){let t=await this.adapter.readAsync();return t==null?(await this.writeAsync({}),{}):JSON.parse(t,this.reviver.bind(this))}writeAsync(t){let r="";return this.humanReadable?r=JSON.stringify(t,this.replacer.bind(this),4):r=JSON.stringify(t,this.replacer.bind(this)),this.adapter.writeAsync(r)}};Cv.JsonAdapter=Z8});var rD=_(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.FileAdapter=void 0;var Iv=require("fs/promises"),fZe=require("path"),tD=class{filename;fsync;constructor(t,r){this.filename=t,this.fsync=r}async readAsync(){try{return await(0,Iv.readFile)(this.filename,{encoding:"utf-8"})}catch(t){if(t.code==="ENOENT")return null;throw t}}async writeAsync(t){let r=null;try{r=await(0,Iv.open)(this.filename,"w")}catch(n){if(n.code!=="ENOENT")throw n;let i=fZe.dirname(this.filename);await(0,Iv.mkdir)(i,{recursive:!0}),r=await(0,Iv.open)(this.filename,"w")}try{await r.writeFile(t,{encoding:"utf-8"}),this.fsync&&await r.sync()}finally{await r.close()}}};Rv.FileAdapter=tD});var Fue=_(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.ConfigWithAdapter=zd.Config=void 0;var dZe=require("path"),pZe=eD(),hZe=rD(),nD=class{adapter;filename;saveOnPush;separator;constructor(t,r=!0,n=!1,i="/",s=!1){this.filename=t,dZe.extname(t)===""&&(this.filename+=".json"),this.saveOnPush=r,this.separator=i,this.adapter=new pZe.JsonAdapter(new hZe.FileAdapter(this.filename,s),n)}};zd.Config=nD;var iD=class{adapter;saveOnPush;separator;constructor(t,r=!0,n="/"){this.adapter=t,this.saveOnPush=r,this.separator=n}};zd.ConfigWithAdapter=iD});var Uue=_(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.JsonDB=In.FileAdapter=In.JsonAdapter=In.DataError=In.DatabaseError=In.ConfigWithAdapter=In.Config=void 0;var Bue=Aue(),Cn=Ud(),mZe=Oue(),gZe=X8(),sD=Mue(),que=Fue();Object.defineProperty(In,"Config",{enumerable:!0,get:function(){return que.Config}});Object.defineProperty(In,"ConfigWithAdapter",{enumerable:!0,get:function(){return que.ConfigWithAdapter}});var jue=Ud();Object.defineProperty(In,"DatabaseError",{enumerable:!0,get:function(){return jue.DatabaseError}});Object.defineProperty(In,"DataError",{enumerable:!0,get:function(){return jue.DataError}});var yZe=eD();Object.defineProperty(In,"JsonAdapter",{enumerable:!0,get:function(){return yZe.JsonAdapter}});var bZe=rD();Object.defineProperty(In,"FileAdapter",{enumerable:!0,get:function(){return bZe.FileAdapter}});var aD=class{loaded=!1;data={};config;constructor(t){this.config=t}processDataPath(t){if(t===void 0||!t.trim())throw new Cn.DataError("The Data Path can't be empty",6);if(t==this.config.separator)return[];t=(0,Bue.removeTrailingChar)(t,this.config.separator);let r=t.split(this.config.separator);return r.shift(),r}async retrieveData(t,r=!1){await this.load();let n=this,i=(s,a)=>{let o=t[a];function u(c=!1){if(s.hasOwnProperty(o))s=s[o];else if(r)c?s[o]=[]:s[o]={},s=s[o];else throw new Cn.DataError(`Can't find dataPath: ${n.config.separator}${t.join(n.config.separator)}. Stopped at ${o}`,5)}let l=gZe.ArrayInfo.processArray(o);if(l){if(o=l.property,u(!0),!Array.isArray(s))throw new Cn.DataError(`DataPath: ${n.config.separator}${t.join(n.config.separator)}. ${o} is not an array.`,11);let c=l.getIndex(s,!0);if(!l.append&&s.hasOwnProperty(c))s=l.getData(s);else if(r)l.append?(s.push({}),s=s[s.length-1]):(s[c]={},s=s[c]);else throw new Cn.DataError(`DataPath: ${n.config.separator}${t.join(n.config.separator)}. . Can't find index ${l.index} in array ${o}`,10)}else u();return t.length==++a?s:i(s,a)};return t.length===0?this.data:i(this.data,0)}async getParentData(t,r){let n=this.processDataPath(t),i=n.pop();return new mZe.DBParentData(await this.retrieveData(n,r),this,t,i)}getData(t){return(0,sD.readLockAsync)(async()=>{let r=this.processDataPath(t);return this.retrieveData(r,!1)})}getObject(t){return this.getData(t)}async getObjectDefault(t,r){try{return await this.getData(t)}catch(n){if(!(n instanceof Cn.DataError)||n.id!=5)throw n;return r}}async exists(t){try{return await this.getData(t),!0}catch(r){if(r instanceof Cn.DataError)return!1;throw r}}async count(t){let r=await this.getData(t);if(!Array.isArray(r))throw new Cn.DataError(`DataPath: ${t} is not an array.`,11);let n=this.processDataPath(t);return(await this.retrieveData(n,!1)).length}async getIndex(t,r,n="id"){return(await this.getArrayData(t)).map(function(s){return s[n]}).indexOf(r)}async getIndexValue(t,r){return(await this.getArrayData(t)).indexOf(r)}async getArrayData(t){let r=await this.getData(t);if(!Array.isArray(r))throw new Cn.DataError(`DataPath: ${t} is not an array.`,11);let n=this.processDataPath(t);return this.retrieveData(n,!1)}async filter(t,r){let n=await this.getData(t);if(Array.isArray(n))return n.filter(r);if(n instanceof Object){let s=Object.entries(n).filter(a=>r(a[1],a[0]));return!s||s.length<1?void 0:s.map(a=>a[1])}throw new Cn.DataError("The entry at the path ("+t+") needs to be either an Object or an Array",12)}async find(t,r){let n=await this.getData(t);if(Array.isArray(n))return n.find(r);if(n instanceof Object){let s=Object.entries(n).find(a=>r(a[1],a[0]));return!s||s.length<2?void 0:s[1]}throw new Cn.DataError("The entry at the path ("+t+") needs to be either an Object or an Array",12)}async push(t,r,n=!0){return(0,sD.writeLockAsync)(async()=>{let i=await this.getParentData(t,!0),s=r;if(!n){if(Array.isArray(r)){let a=i.getData();if(a===void 0)a=[];else if(!Array.isArray(a))throw new Cn.DataError("Can't merge another type of data with an Array",3);s=a.concat(r)}else if(r===Object(r)){if(Array.isArray(i.getData()))throw new Cn.DataError("Can't merge an Array with an Object",4);s=(0,Bue.merge)(i.getData(),r)}}i.setData(s),this.config.saveOnPush&&await this.save()})}async delete(t){await(0,sD.writeLockAsync)(async()=>{(await this.getParentData(t,!0)).delete(),this.config.saveOnPush&&await this.save()})}resetData(t){this.data=t}async reload(){this.loaded=!1,await this.load()}async load(){if(!this.loaded)try{this.data=await this.config.adapter.readAsync(),this.loaded=!0}catch(t){throw new Cn.DatabaseError("Can't Load Database",1,t)}}async save(t){if(t=t||!1,!t&&!this.loaded)throw new Cn.DatabaseError("DataBase not loaded. Can't write",7);try{await this.config.adapter.writeAsync(this.data)}catch(r){throw new Cn.DatabaseError("Can't save the database",2,r)}}async fromPath(t,r="id"){let[,...n]=t.split("/"),i=n.reduce((a,o,u)=>{if(u%2===0)a[`${o}`]="";else{let c=Object.keys(a);a[`${c[c.length-1]}`]=`${o}`}return a},{}),s=[];for await(let a of Object.keys(i)){s.push(`/${a}`);let o=i[a];try{let u=await this.getIndex(s.join(""),o,r);s.push(`[${u}]`)}catch(u){throw new Cn.DataError(`DataPath: ${s.join("")}/${o} not found.`,13,u)}}return s.join("")}};In.JsonDB=aD});var kZe={};Is(kZe,{start:()=>PZe,stop:()=>DZe});module.exports=lce(kZe);var tce=Te(GY(),1);function Th(e,t){return function(){return e.apply(t,arguments)}}var{toString:y7e}=Object.prototype,{getPrototypeOf:xI}=Object,dx=(e=>t=>{let r=y7e.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ta=e=>(e=e.toLowerCase(),t=>dx(t)===e),px=e=>t=>typeof t===e,{isArray:Vf}=Array,Sh=px("undefined");function b7e(e){return e!==null&&!Sh(e)&&e.constructor!==null&&!Sh(e.constructor)&&ji(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var YY=ta("ArrayBuffer");function x7e(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&YY(e.buffer),t}var E7e=px("string"),ji=px("function"),XY=px("number"),hx=e=>e!==null&&typeof e=="object",_7e=e=>e===!0||e===!1,fx=e=>{if(dx(e)!=="object")return!1;let t=xI(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},v7e=ta("Date"),T7e=ta("File"),S7e=ta("Blob"),w7e=ta("FileList"),A7e=e=>hx(e)&&ji(e.pipe),C7e=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ji(e.append)&&((t=dx(e))==="formdata"||t==="object"&&ji(e.toString)&&e.toString()==="[object FormData]"))},I7e=ta("URLSearchParams"),R7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wh(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Vf(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let s=r?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length,o;for(n=0;n<a;n++)o=s[n],t.call(null,e[o],o,e)}}function JY(e,t){t=t.toLowerCase();let r=Object.keys(e),n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}var QY=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZY=e=>!Sh(e)&&e!==QY;function bI(){let{caseless:e}=ZY(this)&&this||{},t={},r=(n,i)=>{let s=e&&JY(t,i)||i;fx(t[s])&&fx(n)?t[s]=bI(t[s],n):fx(n)?t[s]=bI({},n):Vf(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&wh(arguments[n],r);return t}var N7e=(e,t,r,{allOwnKeys:n}={})=>(wh(t,(i,s)=>{r&&ji(i)?e[s]=Th(i,r):e[s]=i},{allOwnKeys:n}),e),O7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),P7e=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},D7e=(e,t,r,n)=>{let i,s,a,o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=r!==!1&&xI(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},k7e=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},$7e=e=>{if(!e)return null;if(Vf(e))return e;let t=e.length;if(!XY(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},L7e=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xI(Uint8Array)),M7e=(e,t)=>{let n=(e&&e[Symbol.iterator]).call(e),i;for(;(i=n.next())&&!i.done;){let s=i.value;t.call(e,s[0],s[1])}},F7e=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},B7e=ta("HTMLFormElement"),q7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),WY=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),j7e=ta("RegExp"),eX=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};wh(r,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(n[s]=a||i)}),Object.defineProperties(e,n)},U7e=e=>{eX(e,(t,r)=>{if(ji(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(ji(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},H7e=(e,t)=>{let r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Vf(e)?n(e):n(String(e).split(t)),r},z7e=()=>{},V7e=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yI="abcdefghijklmnopqrstuvwxyz",KY="0123456789",tX={DIGIT:KY,ALPHA:yI,ALPHA_DIGIT:yI+yI.toUpperCase()+KY},G7e=(e=16,t=tX.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function W7e(e){return!!(e&&ji(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var K7e=e=>{let t=new Array(10),r=(n,i)=>{if(hx(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;let s=Vf(n)?[]:{};return wh(n,(a,o)=>{let u=r(a,i+1);!Sh(u)&&(s[o]=u)}),t[i]=void 0,s}}return n};return r(e,0)},Y7e=ta("AsyncFunction"),X7e=e=>e&&(hx(e)||ji(e))&&ji(e.then)&&ji(e.catch),J={isArray:Vf,isArrayBuffer:YY,isBuffer:b7e,isFormData:C7e,isArrayBufferView:x7e,isString:E7e,isNumber:XY,isBoolean:_7e,isObject:hx,isPlainObject:fx,isUndefined:Sh,isDate:v7e,isFile:T7e,isBlob:S7e,isRegExp:j7e,isFunction:ji,isStream:A7e,isURLSearchParams:I7e,isTypedArray:L7e,isFileList:w7e,forEach:wh,merge:bI,extend:N7e,trim:R7e,stripBOM:O7e,inherits:P7e,toFlatObject:D7e,kindOf:dx,kindOfTest:ta,endsWith:k7e,toArray:$7e,forEachEntry:M7e,matchAll:F7e,isHTMLForm:B7e,hasOwnProperty:WY,hasOwnProp:WY,reduceDescriptors:eX,freezeMethods:U7e,toObjectSet:H7e,toCamelCase:q7e,noop:z7e,toFiniteNumber:V7e,findKey:JY,global:QY,isContextDefined:ZY,ALPHABET:tX,generateString:G7e,isSpecCompliantForm:W7e,toJSONObject:K7e,isAsyncFn:Y7e,isThenable:X7e};function Gf(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}J.inherits(Gf,Error,{toJSON:function(){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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var rX=Gf.prototype,nX={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nX[e]={value:e}});Object.defineProperties(Gf,nX);Object.defineProperty(rX,"isAxiosError",{value:!0});Gf.from=(e,t,r,n,i,s)=>{let a=Object.create(rX);return J.toFlatObject(e,a,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),Gf.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};var Ee=Gf;var sQ=Te(iQ(),1),Sx=sQ.default;function qI(e){return J.isPlainObject(e)||J.isArray(e)}function oQ(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function aQ(e,t,r){return e?e.concat(t).map(function(i,s){return i=oQ(i),!r&&s?"["+i+"]":i}).join(r?".":""):t}function $Fe(e){return J.isArray(e)&&!e.some(qI)}var LFe=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function MFe(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new(Sx||FormData),r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!J.isUndefined(y[m])});let n=r.metaTokens,i=r.visitor||c,s=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(J.isDate(p))return p.toISOString();if(!u&&J.isBlob(p))throw new Ee("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(p)||J.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,m,y){let g=p;if(p&&!y&&typeof p=="object"){if(J.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(J.isArray(p)&&$Fe(p)||(J.isFileList(p)||J.endsWith(m,"[]"))&&(g=J.toArray(p)))return m=oQ(m),g.forEach(function(E,x){!(J.isUndefined(E)||E===null)&&t.append(a===!0?aQ([m],x,s):a===null?m:m+"[]",l(E))}),!1}return qI(p)?!0:(t.append(aQ(y,m,s),l(p)),!1)}let f=[],d=Object.assign(LFe,{defaultVisitor:c,convertValue:l,isVisitable:qI});function h(p,m){if(!J.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),J.forEach(p,function(g,v){(!(J.isUndefined(g)||g===null)&&i.call(t,g,J.isString(v)?v.trim():v,m,d))===!0&&h(g,m?m.concat(v):[v])}),f.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return h(e),t}var su=MFe;function uQ(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function cQ(e,t){this._pairs=[],e&&su(e,this,t)}var lQ=cQ.prototype;lQ.append=function(t,r){this._pairs.push([t,r])};lQ.toString=function(t){let r=t?function(n){return t.call(this,n,uQ)}:uQ;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};var fQ=cQ;function FFe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fc(e,t,r){if(!t)return e;let n=r&&r.encode||FFe,i=r&&r.serialize,s;if(i?s=i(t,r):s=J.isURLSearchParams(t)?t.toString():new fQ(t,r).toString(n),s){let a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}var jI=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(n){n!==null&&t(n)})}},UI=jI;var Jf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var dQ=Te(require("url"),1),pQ=dQ.default.URLSearchParams;var hQ={isNode:!0,classes:{URLSearchParams:pQ,FormData:Sx,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};var HI={};Is(HI,{hasBrowserEnv:()=>mQ,hasStandardBrowserEnv:()=>BFe,hasStandardBrowserWebWorkerEnv:()=>qFe});var mQ=typeof window<"u"&&typeof document<"u",BFe=(e=>mQ&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),qFe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Ar={...HI,...hQ};function zI(e,t){return su(e,new Ar.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return Ar.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function jFe(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function UFe(e){let t={},r=Object.keys(e),n,i=r.length,s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function HFe(e){function t(r,n,i,s){let a=r[s++];if(a==="__proto__")return!0;let o=Number.isFinite(+a),u=s>=r.length;return a=!a&&J.isArray(i)?i.length:a,u?(J.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o):((!i[a]||!J.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],s)&&J.isArray(i[a])&&(i[a]=UFe(i[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){let r={};return J.forEachEntry(e,(n,i)=>{t(jFe(n),i,r,0)}),r}return null}var wx=HFe;function zFe(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var VI={transitional:Jf,adapter:["xhr","http"],transformRequest:[function(t,r){let n=r.getContentType()||"",i=n.indexOf("application/json")>-1,s=J.isObject(t);if(s&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(wx(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zI(t,this.formSerializer).toString();if((o=J.isFileList(t))||n.indexOf("multipart/form-data")>-1){let u=this.env&&this.env.FormData;return su(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),zFe(t)):t}],transformResponse:[function(t){let r=this.transitional||VI.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(t&&J.isString(t)&&(n&&!this.responseType||i)){let a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?Ee.from(o,Ee.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{VI.headers[e]={}});var Qf=VI;var VFe=J.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"]),gQ=e=>{let t={},r,n,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&VFe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var yQ=Symbol("internals");function Oh(e){return e&&String(e).trim().toLowerCase()}function Ax(e){return e===!1||e==null?e:J.isArray(e)?e.map(Ax):String(e)}function GFe(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var WFe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function GI(e,t,r,n,i){if(J.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!J.isString(t)){if(J.isString(n))return t.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(t)}}function KFe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function YFe(e,t){let r=J.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,a){return this[n].call(this,t,i,s,a)},configurable:!0})})}var Zf=class{constructor(t){t&&this.set(t)}set(t,r,n){let i=this;function s(o,u,l){let c=Oh(u);if(!c)throw new Error("header name must be a non-empty string");let f=J.findKey(i,c);(!f||i[f]===void 0||l===!0||l===void 0&&i[f]!==!1)&&(i[f||u]=Ax(o))}let a=(o,u)=>J.forEach(o,(l,c)=>s(l,c,u));return J.isPlainObject(t)||t instanceof this.constructor?a(t,r):J.isString(t)&&(t=t.trim())&&!WFe(t)?a(gQ(t),r):t!=null&&s(r,t,n),this}get(t,r){if(t=Oh(t),t){let n=J.findKey(this,t);if(n){let i=this[n];if(!r)return i;if(r===!0)return GFe(i);if(J.isFunction(r))return r.call(this,i,n);if(J.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Oh(t),t){let n=J.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||GI(this,this[n],n,r)))}return!1}delete(t,r){let n=this,i=!1;function s(a){if(a=Oh(a),a){let o=J.findKey(n,a);o&&(!r||GI(n,n[o],o,r))&&(delete n[o],i=!0)}}return J.isArray(t)?t.forEach(s):s(t),i}clear(t){let r=Object.keys(this),n=r.length,i=!1;for(;n--;){let s=r[n];(!t||GI(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){let r=this,n={};return J.forEach(this,(i,s)=>{let a=J.findKey(n,s);if(a){r[a]=Ax(i),delete r[s];return}let o=t?KFe(s):String(s).trim();o!==s&&delete r[s],r[o]=Ax(i),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return J.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&J.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){let n=(this[yQ]=this[yQ]={accessors:{}}).accessors,i=this.prototype;function s(a){let o=Oh(a);n[o]||(YFe(i,a),n[o]=!0)}return J.isArray(t)?t.forEach(s):s(t),this}};Zf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Zf.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});J.freezeMethods(Zf);var Cr=Zf;function Ph(e,t){let r=this||Qf,n=t||r,i=Cr.from(n.headers),s=n.data;return J.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Dh(e){return!!(e&&e.__CANCEL__)}function bQ(e,t,r){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(bQ,Ee,{__CANCEL__:!0});var ys=bQ;function au(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ee("Request failed with status code "+r.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function WI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function KI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bc(e,t){return e&&!WI(t)?KI(e,t):t}var ZQ=Te(EQ(),1),eZ=Te(require("http"),1),tZ=Te(require("https"),1),rZ=Te(require("util"),1),nZ=Te(BQ(),1),Wa=Te(require("zlib"),1);var Hc="1.6.7";function Fh(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var kBe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function fR(e,t,r){let n=r&&r.Blob||Ar.classes.Blob,i=Fh(e);if(t===void 0&&n&&(t=!0),i==="data"){e=i.length?e.slice(i.length+1):e;let s=kBe.exec(e);if(!s)throw new Ee("Invalid URL",Ee.ERR_INVALID_URL);let a=s[1],o=s[2],u=s[3],l=Buffer.from(decodeURIComponent(u),o?"base64":"utf8");if(t){if(!n)throw new Ee("Blob is not supported",Ee.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new Ee("Unsupported protocol "+i,Ee.ERR_NOT_SUPPORT)}var zc=Te(require("stream"),1);var jQ=Te(require("stream"),1);function $Be(e,t){let r=0,n=1e3/t,i=null;return function(a,o){let u=Date.now();if(a||u-r>n)return i&&(clearTimeout(i),i=null),r=u,e.apply(null,o);i||(i=setTimeout(()=>(i=null,r=Date.now(),e.apply(null,o)),n-(u-r)))}}var qQ=$Be;function LBe(e,t){e=e||10;let r=new Array(e),n=new Array(e),i=0,s=0,a;return t=t!==void 0?t:1e3,function(u){let l=Date.now(),c=n[s];a||(a=l),r[i]=u,n[i]=l;let f=s,d=0;for(;f!==i;)d+=r[f++],f=f%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-a<t)return;let h=c&&l-c;return h?Math.round(d*1e3/h):void 0}}var Ox=LBe;var Px=Symbol("internals"),dR=class extends jQ.default.Transform{constructor(t){t=J.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(o,u)=>!J.isUndefined(u[o])),super({readableHighWaterMark:t.chunkSize});let r=this,n=this[Px]={length:t.length,timeWindow:t.timeWindow,ticksRate:t.ticksRate,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=Ox(n.ticksRate*t.samplesCount,n.timeWindow);this.on("newListener",o=>{o==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let s=0;n.updateProgress=qQ(function(){let u=n.length,l=n.bytesSeen,c=l-s;if(!c||r.destroyed)return;let f=i(c);s=l,process.nextTick(()=>{r.emit("progress",{loaded:l,total:u,progress:u?l/u:void 0,bytes:c,rate:f||void 0,estimated:f&&u&&l<=u?(u-l)/f:void 0})})},n.ticksRate);let a=()=>{n.updateProgress(!0)};this.once("end",a),this.once("error",a)}_read(t){let r=this[Px];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let i=this,s=this[Px],a=s.maxRate,o=this.readableHighWaterMark,u=s.timeWindow,l=1e3/u,c=a/l,f=s.minChunkSize!==!1?Math.max(s.minChunkSize,c*.01):0;function d(p,m){let y=Buffer.byteLength(p);s.bytesSeen+=y,s.bytes+=y,s.isCaptured&&s.updateProgress(),i.push(p)?process.nextTick(m):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(m)}}let h=(p,m)=>{let y=Buffer.byteLength(p),g=null,v=o,E,x=0;if(a){let T=Date.now();(!s.ts||(x=T-s.ts)>=u)&&(s.ts=T,E=c-s.bytes,s.bytes=E<0?-E:0,x=0),E=c-s.bytes}if(a){if(E<=0)return setTimeout(()=>{m(null,p)},u-x);E<v&&(v=E)}v&&y>v&&y-v>f&&(g=p.subarray(v),p=p.subarray(0,v)),d(p,g?()=>{process.nextTick(m,null,g)}:m)};h(t,function p(m,y){if(m)return n(m);y?h(y,p):n(null)})}setLength(t){return this[Px].length=+t,this}},pR=dR;var iZ=Te(require("events"),1);var HQ=require("util"),zQ=require("stream");var{asyncIterator:UQ}=Symbol,MBe=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[UQ]?yield*e[UQ]():yield e},Dx=MBe;var FBe=J.ALPHABET.ALPHA_DIGIT+"-_",Bh=new HQ.TextEncoder,uu=`\r
`,BBe=Bh.encode(uu),qBe=2,hR=class{constructor(t,r){let{escapeName:n}=this.constructor,i=J.isString(r),s=`Content-Disposition: form-data; name="${n(t)}"${!i&&r.name?`; filename="${n(r.name)}"`:""}${uu}`;i?r=Bh.encode(String(r).replace(/\r?\n|\r\n?/g,uu)):s+=`Content-Type: ${r.type||"application/octet-stream"}${uu}`,this.headers=Bh.encode(s+uu),this.contentLength=i?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+qBe,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;J.isTypedArray(t)?yield t:yield*Dx(t),yield BBe}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},jBe=(e,t,r)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+J.generateString(i,FBe)}=r||{};if(!J.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=Bh.encode("--"+s+uu),o=Bh.encode("--"+s+"--"+uu+uu),u=o.byteLength,l=Array.from(e.entries()).map(([f,d])=>{let h=new hR(f,d);return u+=h.size,h});u+=a.byteLength*l.length,u=J.toFiniteNumber(u);let c={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(u)&&(c["Content-Length"]=u),t&&t(c),zQ.Readable.from(async function*(){for(let f of l)yield a,yield*f.encode();yield o}())},VQ=jBe;var GQ=Te(require("stream"),1),mR=class extends GQ.default.Transform{__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,r)}this.__transform(t,r,n)}},WQ=mR;var UBe=(e,t)=>J.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(i=>{try{t?n(null,...t(i)):n(null,i)}catch(s){n(s)}},n)}:e,KQ=UBe;var YQ={flush:Wa.default.constants.Z_SYNC_FLUSH,finishFlush:Wa.default.constants.Z_SYNC_FLUSH},HBe={flush:Wa.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Wa.default.constants.BROTLI_OPERATION_FLUSH},XQ=J.isFunction(Wa.default.createBrotliDecompress),{http:zBe,https:VBe}=nZ.default,GBe=/https:?/,JQ=Ar.protocols.map(e=>e+":");function WBe(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function sZ(e,t,r){let n=t;if(!n&&n!==!1){let i=(0,ZQ.getProxyForUrl)(r);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let s=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");let i=n.hostname||n.host;e.hostname=i,e.host=i,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(s){sZ(s,t,s.href)}}var KBe=typeof process<"u"&&J.kindOf(process)==="process",YBe=e=>new Promise((t,r)=>{let n,i,s=(u,l)=>{i||(i=!0,n&&n(u,l))},a=u=>{s(u),t(u)},o=u=>{s(u,!0),r(u)};e(a,o,u=>n=u).catch(o)}),XBe=({address:e,family:t})=>{if(!J.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},QQ=(e,t)=>XBe(J.isObject(e)?e:{address:e,family:t}),aZ=KBe&&function(t){return YBe(async function(n,i,s){let{data:a,lookup:o,family:u}=t,{responseType:l,responseEncoding:c}=t,f=t.method.toUpperCase(),d,h=!1,p;if(o){let G=KQ(o,te=>J.isArray(te)?te:[te]);o=(te,j,ee)=>{G(te,j,(re,Z,se)=>{if(re)return ee(re);let Se=J.isArray(Z)?Z.map(ve=>QQ(ve)):[QQ(Z,se)];j.all?ee(re,Se):ee(re,Se[0].address,Se[0].family)})}}let m=new iZ.default,y=()=>{t.cancelToken&&t.cancelToken.unsubscribe(g),t.signal&&t.signal.removeEventListener("abort",g),m.removeAllListeners()};s((G,te)=>{d=!0,te&&(h=!0,y())});function g(G){m.emit("abort",!G||G.type?new ys(null,t,p):G)}m.once("abort",i),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(g),t.signal&&(t.signal.aborted?g():t.signal.addEventListener("abort",g)));let v=Bc(t.baseURL,t.url),E=new URL(v,"http://localhost"),x=E.protocol||JQ[0];if(x==="data:"){let G;if(f!=="GET")return au(n,i,{status:405,statusText:"method not allowed",headers:{},config:t});try{G=fR(t.url,l==="blob",{Blob:t.env&&t.env.Blob})}catch(te){throw Ee.from(te,Ee.ERR_BAD_REQUEST,t)}return l==="text"?(G=G.toString(c),(!c||c==="utf8")&&(G=J.stripBOM(G))):l==="stream"&&(G=zc.default.Readable.from(G)),au(n,i,{data:G,status:200,statusText:"OK",headers:new Cr,config:t})}if(JQ.indexOf(x)===-1)return i(new Ee("Unsupported protocol "+x,Ee.ERR_BAD_REQUEST,t));let T=Cr.from(t.headers).normalize();T.set("User-Agent","axios/"+Hc,!1);let S=t.onDownloadProgress,w=t.onUploadProgress,A=t.maxRate,C,I;if(J.isSpecCompliantForm(a)){let G=T.getContentType(/boundary=([-_\w\d]{10,70})/i);a=VQ(a,te=>{T.set(te)},{tag:`axios-${Hc}-boundary`,boundary:G&&G[1]||void 0})}else if(J.isFormData(a)&&J.isFunction(a.getHeaders)){if(T.set(a.getHeaders()),!T.hasContentLength())try{let G=await rZ.default.promisify(a.getLength).call(a);Number.isFinite(G)&&G>=0&&T.setContentLength(G)}catch{}}else if(J.isBlob(a))a.size&&T.setContentType(a.type||"application/octet-stream"),T.setContentLength(a.size||0),a=zc.default.Readable.from(Dx(a));else if(a&&!J.isStream(a)){if(!Buffer.isBuffer(a))if(J.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(J.isString(a))a=Buffer.from(a,"utf-8");else return i(new Ee("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Ee.ERR_BAD_REQUEST,t));if(T.setContentLength(a.length,!1),t.maxBodyLength>-1&&a.length>t.maxBodyLength)return i(new Ee("Request body larger than maxBodyLength limit",Ee.ERR_BAD_REQUEST,t))}let M=J.toFiniteNumber(T.getContentLength());J.isArray(A)?(C=A[0],I=A[1]):C=I=A,a&&(w||C)&&(J.isStream(a)||(a=zc.default.Readable.from(a,{objectMode:!1})),a=zc.default.pipeline([a,new pR({length:M,maxRate:J.toFiniteNumber(C)})],J.noop),w&&a.on("progress",G=>{w(Object.assign(G,{upload:!0}))}));let R;if(t.auth){let G=t.auth.username||"",te=t.auth.password||"";R=G+":"+te}if(!R&&E.username){let G=E.username,te=E.password;R=G+":"+te}R&&T.delete("authorization");let P;try{P=Fc(E.pathname+E.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(G){let te=new Error(G.message);return te.config=t,te.url=t.url,te.exists=!0,i(te)}T.set("Accept-Encoding","gzip, compress, deflate"+(XQ?", br":""),!1);let k={path:P,method:f,headers:T.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:R,protocol:x,family:u,beforeRedirect:WBe,beforeRedirects:{}};!J.isUndefined(o)&&(k.lookup=o),t.socketPath?k.socketPath=t.socketPath:(k.hostname=E.hostname,k.port=E.port,sZ(k,t.proxy,x+"//"+E.hostname+(E.port?":"+E.port:"")+k.path));let K,z=GBe.test(k.protocol);if(k.agent=z?t.httpsAgent:t.httpAgent,t.transport?K=t.transport:t.maxRedirects===0?K=z?tZ.default:eZ.default:(t.maxRedirects&&(k.maxRedirects=t.maxRedirects),t.beforeRedirect&&(k.beforeRedirects.config=t.beforeRedirect),K=z?VBe:zBe),t.maxBodyLength>-1?k.maxBodyLength=t.maxBodyLength:k.maxBodyLength=1/0,t.insecureHTTPParser&&(k.insecureHTTPParser=t.insecureHTTPParser),p=K.request(k,function(te){if(p.destroyed)return;let j=[te],ee=+te.headers["content-length"];if(S){let ve=new pR({length:J.toFiniteNumber(ee),maxRate:J.toFiniteNumber(I)});S&&ve.on("progress",_e=>{S(Object.assign(_e,{download:!0}))}),j.push(ve)}let re=te,Z=te.req||p;if(t.decompress!==!1&&te.headers["content-encoding"])switch((f==="HEAD"||te.statusCode===204)&&delete te.headers["content-encoding"],(te.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":j.push(Wa.default.createUnzip(YQ)),delete te.headers["content-encoding"];break;case"deflate":j.push(new WQ),j.push(Wa.default.createUnzip(YQ)),delete te.headers["content-encoding"];break;case"br":XQ&&(j.push(Wa.default.createBrotliDecompress(HBe)),delete te.headers["content-encoding"])}re=j.length>1?zc.default.pipeline(j,J.noop):j[0];let se=zc.default.finished(re,()=>{se(),y()}),Se={status:te.statusCode,statusText:te.statusMessage,headers:new Cr(te.headers),config:t,request:Z};if(l==="stream")Se.data=re,au(n,i,Se);else{let ve=[],_e=0;re.on("data",function(he){ve.push(he),_e+=he.length,t.maxContentLength>-1&&_e>t.maxContentLength&&(h=!0,re.destroy(),i(new Ee("maxContentLength size of "+t.maxContentLength+" exceeded",Ee.ERR_BAD_RESPONSE,t,Z)))}),re.on("aborted",function(){if(h)return;let he=new Ee("maxContentLength size of "+t.maxContentLength+" exceeded",Ee.ERR_BAD_RESPONSE,t,Z);re.destroy(he),i(he)}),re.on("error",function(he){p.destroyed||i(Ee.from(he,null,t,Z))}),re.on("end",function(){try{let he=ve.length===1?ve[0]:Buffer.concat(ve);l!=="arraybuffer"&&(he=he.toString(c),(!c||c==="utf8")&&(he=J.stripBOM(he))),Se.data=he}catch(he){return i(Ee.from(he,null,t,Se.request,Se))}au(n,i,Se)})}m.once("abort",ve=>{re.destroyed||(re.emit("error",ve),re.destroy())})}),m.once("abort",G=>{i(G),p.destroy(G)}),p.on("error",function(te){i(Ee.from(te,null,t,p))}),p.on("socket",function(te){te.setKeepAlive(!0,1e3*60)}),t.timeout){let G=parseInt(t.timeout,10);if(Number.isNaN(G)){i(new Ee("error trying to parse `config.timeout` to int",Ee.ERR_BAD_OPTION_VALUE,t,p));return}p.setTimeout(G,function(){if(d)return;let j=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",ee=t.transitional||Jf;t.timeoutErrorMessage&&(j=t.timeoutErrorMessage),i(new Ee(j,ee.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,t,p)),g()})}if(J.isStream(a)){let G=!1,te=!1;a.on("end",()=>{G=!0}),a.once("error",j=>{te=!0,p.destroy(j)}),a.on("close",()=>{!G&&!te&&g(new ys("Request stream has been aborted",t,p))}),a.pipe(p)}else p.end(a)})};var oZ=Ar.hasStandardBrowserEnv?{write(e,t,r,n,i,s){let a=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),J.isString(n)&&a.push("path="+n),J.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};var uZ=Ar.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){let a=s;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){let o=J.isString(a)?i(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function cZ(e,t){let r=0,n=Ox(50,250);return i=>{let s=i.loaded,a=i.lengthComputable?i.total:void 0,o=s-r,u=n(o),l=s<=a;r=s;let c={loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&l?(a-s)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}var JBe=typeof XMLHttpRequest<"u",lZ=JBe&&function(e){return new Promise(function(r,n){let i=e.data,s=Cr.from(e.headers).normalize(),{responseType:a,withXSRFToken:o}=e,u;function l(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(J.isFormData(i)){if(Ar.hasStandardBrowserEnv||Ar.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){let[m,...y]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...y].join("; "))}}let f=new XMLHttpRequest;if(e.auth){let m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+y))}let d=Bc(e.baseURL,e.url);f.open(e.method.toUpperCase(),Fc(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;let m=Cr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:m,config:e,request:f};au(function(E){r(E),l()},function(E){n(E),l()},g),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new Ee("Request aborted",Ee.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Ee("Network Error",Ee.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",g=e.transitional||Jf;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),n(new Ee(y,g.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,f)),f=null},Ar.hasStandardBrowserEnv&&(o&&J.isFunction(o)&&(o=o(e)),o||o!==!1&&uZ(d))){let m=e.xsrfHeaderName&&e.xsrfCookieName&&oZ.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&J.forEach(s.toJSON(),function(y,g){f.setRequestHeader(g,y)}),J.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",cZ(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",cZ(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=m=>{f&&(n(!m||m.type?new ys(null,e,f):m),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));let p=Fh(d);if(p&&Ar.protocols.indexOf(p)===-1){n(new Ee("Unsupported protocol "+p+":",Ee.ERR_BAD_REQUEST,e));return}f.send(i||null)})};var gR={http:aZ,xhr:lZ};J.forEach(gR,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var fZ=e=>`- ${e}`,QBe=e=>J.isFunction(e)||e===null||e===!1,kx={getAdapter:e=>{e=J.isArray(e)?e:[e];let{length:t}=e,r,n,i={};for(let s=0;s<t;s++){r=e[s];let a;if(n=r,!QBe(r)&&(n=gR[(a=String(r)).toLowerCase()],n===void 0))throw new Ee(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+s]=n}if(!n){let s=Object.entries(i).map(([o,u])=>`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build")),a=t?s.length>1?`since :
`+s.map(fZ).join(`
`):" "+fZ(s[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:gR};function yR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ys(null,e)}function $x(e){return yR(e),e.headers=Cr.from(e.headers),e.data=Ph.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kx.getAdapter(e.adapter||Qf.adapter)(e).then(function(n){return yR(e),n.data=Ph.call(e,e.transformResponse,n),n.headers=Cr.from(n.headers),n},function(n){return Dh(n)||(yR(e),n&&n.response&&(n.response.data=Ph.call(e,e.transformResponse,n.response),n.response.headers=Cr.from(n.response.headers))),Promise.reject(n)})}var dZ=e=>e instanceof Cr?e.toJSON():e;function Ka(e,t){t=t||{};let r={};function n(l,c,f){return J.isPlainObject(l)&&J.isPlainObject(c)?J.merge.call({caseless:f},l,c):J.isPlainObject(c)?J.merge({},c):J.isArray(c)?c.slice():c}function i(l,c,f){if(J.isUndefined(c)){if(!J.isUndefined(l))return n(void 0,l,f)}else return n(l,c,f)}function s(l,c){if(!J.isUndefined(c))return n(void 0,c)}function a(l,c){if(J.isUndefined(c)){if(!J.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function o(l,c,f){if(f in t)return n(l,c);if(f in e)return n(void 0,l)}let u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(l,c)=>i(dZ(l),dZ(c),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(c){let f=u[c]||i,d=f(e[c],t[c],c);J.isUndefined(d)&&f!==o||(r[c]=d)}),r}var bR={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var pZ={};bR.transitional=function(t,r,n){function i(s,a){return"[Axios v"+Hc+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return(s,a,o)=>{if(t===!1)throw new Ee(i(a," has been removed"+(r?" in "+r:"")),Ee.ERR_DEPRECATED);return r&&!pZ[a]&&(pZ[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,o):!0}};function ZBe(e,t,r){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let s=n[i],a=t[s];if(a){let o=e[s],u=o===void 0||a(o,s,e);if(u!==!0)throw new Ee("option "+s+" must be "+u,Ee.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ee("Unknown option "+s,Ee.ERR_BAD_OPTION)}}var Lx={assertOptions:ZBe,validators:bR};var cu=Lx.validators,id=class{constructor(t){this.defaults=t,this.interceptors={request:new UI,response:new UI}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+s):n.stack=s}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ka(this.defaults,r);let{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Lx.assertOptions(n,{silentJSONParsing:cu.transitional(cu.boolean),forcedJSONParsing:cu.transitional(cu.boolean),clarifyTimeoutError:cu.transitional(cu.boolean)},!1),i!=null&&(J.isFunction(i)?r.paramsSerializer={serialize:i}:Lx.assertOptions(i,{encode:cu.function,serialize:cu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&J.merge(s.common,s[r.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),r.headers=Cr.concat(a,s);let o=[],u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(u=u&&m.synchronous,o.unshift(m.fulfilled,m.rejected))});let l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!u){let p=[$x.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,l),d=p.length,c=Promise.resolve(r);f<d;)c=c.then(p[f++],p[f++]);return c}d=o.length;let h=r;for(f=0;f<d;){let p=o[f++],m=o[f++];try{h=p(h)}catch(y){m.call(this,y);break}}try{c=$x.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=l.length;f<d;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=Ka(this.defaults,t);let r=Bc(t.baseURL,t.url);return Fc(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){id.prototype[t]=function(r,n){return this.request(Ka(n||{},{method:t,url:r,data:(n||{}).data}))}});J.forEach(["post","put","patch"],function(t){function r(n){return function(s,a,o){return this.request(Ka(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}id.prototype[t]=r(),id.prototype[t+"Form"]=r(!0)});var qh=id;var xR=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(o=>{n.subscribe(o),s=o}).then(i);return a.cancel=function(){n.unsubscribe(s)},a},t(function(s,a,o){n.reason||(n.reason=new ys(s,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new e(function(i){t=i}),cancel:t}}},hZ=xR;function ER(e){return function(r){return e.apply(null,r)}}function _R(e){return J.isObject(e)&&e.isAxiosError===!0}var vR={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};Object.entries(vR).forEach(([e,t])=>{vR[t]=e});var mZ=vR;function gZ(e){let t=new qh(e),r=Th(qh.prototype.request,t);return J.extend(r,qh.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return gZ(Ka(e,i))},r}var xr=gZ(Qf);xr.Axios=qh;xr.CanceledError=ys;xr.CancelToken=hZ;xr.isCancel=Dh;xr.VERSION=Hc;xr.toFormData=su;xr.AxiosError=Ee;xr.Cancel=xr.CanceledError;xr.all=function(t){return Promise.all(t)};xr.spread=ER;xr.isAxiosError=_R;xr.mergeConfig=Ka;xr.AxiosHeaders=Cr;xr.formToJSON=e=>wx(J.isHTMLForm(e)?new FormData(e):e);xr.getAdapter=kx.getAdapter;xr.HttpStatusCode=mZ;xr.default=xr;var fe=xr;var{Axios:Nft,AxiosError:Oft,CanceledError:Pft,isCancel:Dft,CancelToken:kft,VERSION:$ft,all:Lft,Cancel:Mft,isAxiosError:Fft,spread:Bft,toFormData:qft,AxiosHeaders:jft,HttpStatusCode:Uft,formToJSON:Hft,getAdapter:zft,mergeConfig:Vft}=fe;var yZ=Te(require("https"),1),bZ=Te(require("http"),1),eqe=fe.create({httpsAgent:new yZ.default.Agent({keepAlive:!1,rejectUnauthorized:!1}),httpAgent:new bZ.default.Agent({keepAlive:!1})}),wt=eqe;var tqe={xml:!1,decodeEntities:!0},jh=tqe,xZ={_useHtmlParser2:!0,xmlMode:!0};function Uh(e){return e?.xml?typeof e.xml=="boolean"?xZ:{...xZ,...e.xml}:e??void 0}var hu={};Is(hu,{contains:()=>$R,html:()=>JZ,merge:()=>Gqe,parseHTML:()=>zqe,root:()=>Vqe,text:()=>pu,xml:()=>QZ});var du={};Is(du,{DocumentPosition:()=>zi,append:()=>Aqe,appendChild:()=>wqe,compareDocumentPosition:()=>WZ,existsOne:()=>VZ,filter:()=>cd,find:()=>Yx,findAll:()=>Nqe,findOne:()=>Xx,findOneChild:()=>Rqe,getAttributeValue:()=>_qe,getChildren:()=>ud,getElementById:()=>kqe,getElements:()=>Dqe,getElementsByClassName:()=>$qe,getElementsByTagName:()=>Yc,getElementsByTagType:()=>Lqe,getFeed:()=>kR,getInnerHTML:()=>Eqe,getName:()=>Tqe,getOuterHTML:()=>HZ,getParent:()=>zZ,getSiblings:()=>PR,getText:()=>Gx,hasAttrib:()=>vqe,hasChildren:()=>Dt,innerText:()=>Yh,isCDATA:()=>sd,isComment:()=>Kc,isDocument:()=>bs,isTag:()=>we,isText:()=>oi,nextElementSibling:()=>Wx,prepend:()=>Iqe,prependChild:()=>Cqe,prevElementSibling:()=>Kx,removeElement:()=>Ja,removeSubsets:()=>Mqe,replaceElement:()=>Sqe,testElement:()=>Pqe,textContent:()=>Xa,uniqueSort:()=>lu});var ht;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(ht||(ht={}));function EZ(e){return e.type===ht.Tag||e.type===ht.Script||e.type===ht.Style}var _Z=ht.Root,vZ=ht.Text,TZ=ht.Directive,SZ=ht.Comment,wZ=ht.Script,AZ=ht.Style,CZ=ht.Tag,IZ=ht.CDATA,RZ=ht.Doctype;var Mx=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Gh(this,t)}},Hh=class extends Mx{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},ra=class extends Hh{constructor(){super(...arguments),this.type=ht.Text}get nodeType(){return 3}},Vc=class extends Hh{constructor(){super(...arguments),this.type=ht.Comment}get nodeType(){return 8}},Gc=class extends Hh{constructor(t,r){super(r),this.name=t,this.type=ht.Directive}get nodeType(){return 1}},zh=class extends Mx{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},Vh=class extends zh{constructor(){super(...arguments),this.type=ht.CDATA}get nodeType(){return 4}},yi=class extends zh{constructor(){super(...arguments),this.type=ht.Root}get nodeType(){return 9}},Wc=class extends zh{constructor(t,r,n=[],i=t==="script"?ht.Script:t==="style"?ht.Style:ht.Tag){super(n),this.name=t,this.attribs=r,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,n;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[t]}})}};function we(e){return EZ(e)}function sd(e){return e.type===ht.CDATA}function oi(e){return e.type===ht.Text}function Kc(e){return e.type===ht.Comment}function Fx(e){return e.type===ht.Directive}function bs(e){return e.type===ht.Root}function Dt(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Gh(e,t=!1){let r;if(oi(e))r=new ra(e.data);else if(Kc(e))r=new Vc(e.data);else if(we(e)){let n=t?TR(e.children):[],i=new Wc(e.name,{...e.attribs},n);n.forEach(s=>s.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=i}else if(sd(e)){let n=t?TR(e.children):[],i=new Vh(n);n.forEach(s=>s.parent=i),r=i}else if(bs(e)){let n=t?TR(e.children):[],i=new yi(n);n.forEach(s=>s.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),r=i}else if(Fx(e)){let n=new Gc(e.name,e.data);e["x-name"]!=null&&(n["x-name"]=e["x-name"],n["x-publicId"]=e["x-publicId"],n["x-systemId"]=e["x-systemId"]),r=n}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function TR(e){let t=e.map(r=>Gh(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var OZ={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},ad=class{constructor(t,r,n){this.dom=[],this.root=new yi(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(n=r,r=OZ),typeof t=="object"&&(r=t,t=void 0),this.callback=t??null,this.options=r??OZ,this.elementCB=n??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new yi(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let n=this.options.xmlMode?ht.Tag:void 0,i=new Wc(t,r,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(t){let{lastNode:r}=this;if(r&&r.type===ht.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let n=new ra(t);this.addNode(n),this.lastNode=n}}oncomment(t){if(this.lastNode&&this.lastNode.type===ht.Comment){this.lastNode.data+=t;return}let r=new Vc(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new ra(""),r=new Vh([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let n=new Gc(t,r);this.addNode(n)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],n=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),n&&(t.prev=n,n.next=t),t.parent=r,this.lastNode=null}};var Bx=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var qx=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var SR,rqe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),od=(SR=String.fromCodePoint)!==null&&SR!==void 0?SR:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Wh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rqe.get(e))!==null&&t!==void 0?t:e}var Mr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Mr||(Mr={}));var nqe=32,Hi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Hi||(Hi={}));function wR(e){return e>=Mr.ZERO&&e<=Mr.NINE}function iqe(e){return e>=Mr.UPPER_A&&e<=Mr.UPPER_F||e>=Mr.LOWER_A&&e<=Mr.LOWER_F}function sqe(e){return e>=Mr.UPPER_A&&e<=Mr.UPPER_Z||e>=Mr.LOWER_A&&e<=Mr.LOWER_Z||wR(e)}function aqe(e){return e===Mr.EQUALS||sqe(e)}var Lr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Lr||(Lr={}));var Ya;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ya||(Ya={}));var jx=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Lr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ya.Strict}startEntity(t){this.decodeMode=t,this.state=Lr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Lr.EntityStart:return t.charCodeAt(r)===Mr.NUM?(this.state=Lr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Lr.NamedEntity,this.stateNamedEntity(t,r));case Lr.NumericStart:return this.stateNumericStart(t,r);case Lr.NumericDecimal:return this.stateNumericDecimal(t,r);case Lr.NumericHex:return this.stateNumericHex(t,r);case Lr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|nqe)===Mr.LOWER_X?(this.state=Lr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Lr.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let s=n-r;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(r,s),i),this.consumed+=s}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(wR(i)||iqe(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(wR(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Mr.SEMI)this.consumed+=1;else if(this.decodeMode===Ya.Strict)return 0;return this.emitCodePoint(Wh(this.result),this.consumed),this.errors&&(t!==Mr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],s=(i&Hi.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let a=t.charCodeAt(r);if(this.treeIndex=AR(n,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ya.Attribute&&(s===0||aqe(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&Hi.VALUE_LENGTH)>>14,s!==0){if(a===Mr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Ya.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&Hi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Hi.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Lr.NamedEntity:return this.result!==0&&(this.decodeMode!==Ya.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Lr.NumericDecimal:return this.emitNumericEntity(0,2);case Lr.NumericHex:return this.emitNumericEntity(0,3);case Lr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Lr.EntityStart:return 0}}};function PZ(e){let t="",r=new jx(e,n=>t+=od(n));return function(i,s){let a=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(a,o),r.startEntity(s);let l=r.write(i,o+1);if(l<0){a=o+r.end();break}a=o+l,o=l===0?a+1:a}let u=t+i.slice(a);return t="",u}}function AR(e,t,r,n){let i=(t&Hi.BRANCH_LENGTH)>>7,s=t&Hi.JUMP_TABLE;if(i===0)return s!==0&&n===s?r:-1;if(s){let u=n-s;return u<0||u>=i?-1:e[r+u]-1}let a=r,o=a+i-1;for(;a<=o;){let u=a+o>>>1,l=e[u];if(l<n)a=u+1;else if(l>n)o=u-1;else return e[u+i]}return-1}var cdt=PZ(Bx),ldt=PZ(qx);function Ux(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var oqe=new Map(Ux([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Ux([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Ux([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Ux([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var CR=/["&'<>$\x80-\uFFFF]/g,DZ=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),kZ=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Kh(e){let t="",r=0,n;for(;(n=CR.exec(e))!==null;){let i=n.index,s=e.charCodeAt(i),a=DZ.get(s);a!==void 0?(t+=e.substring(r,i)+a,r=i+1):(t+=`${e.substring(r,i)}&#x${kZ(e,i).toString(16)};`,r=CR.lastIndex+=+((s&64512)===55296))}return t+e.substr(r)}function IR(e,t){return function(n){let i,s=0,a="";for(;i=e.exec(n);)s!==i.index&&(a+=n.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+n.substring(s)}}var $Z=IR(/[&<>'"]/g,DZ),Hx=IR(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),zx=IR(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var LZ;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(LZ||(LZ={}));var MZ;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(MZ||(MZ={}));var qZ=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),jZ=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e]));var cqe=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function lqe(e){return e.replace(/"/g,"&quot;")}function fqe(e,t){var r;if(!e)return;let n=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?lqe:t.xmlMode||t.encodeEntities!=="utf8"?Kh:Hx;return Object.keys(e).map(i=>{var s,a;let o=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(a=jZ.get(i))!==null&&a!==void 0?a:i),!t.emptyAttrs&&!t.xmlMode&&o===""?i:`${i}="${n(o)}"`}).join(" ")}var UZ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function OR(e,t={}){let r="length"in e?e:[e],n="";for(let i=0;i<r.length;i++)n+=dqe(r[i],t);return n}var Vx=OR;function dqe(e,t){switch(e.type){case _Z:return OR(e.children,t);case RZ:case TZ:return gqe(e);case SZ:return xqe(e);case IZ:return bqe(e);case wZ:case AZ:case CZ:return mqe(e,t);case vZ:return yqe(e,t)}}var pqe=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),hqe=new Set(["svg","math"]);function mqe(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=qZ.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&pqe.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&hqe.has(e.name)&&(t={...t,xmlMode:"foreign"});let n=`<${e.name}`,i=fqe(e.attribs,t);return i&&(n+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&UZ.has(e.name))?(t.xmlMode||(n+=" "),n+="/>"):(n+=">",e.children.length>0&&(n+=OR(e.children,t)),(t.xmlMode||!UZ.has(e.name))&&(n+=`</${e.name}>`)),n}function gqe(e){return`<${e.data}>`}function yqe(e,t){var r;let n=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&cqe.has(e.parent.name))&&(n=t.xmlMode||t.encodeEntities!=="utf8"?Kh(n):zx(n)),n}function bqe(e){return`<![CDATA[${e.children[0].data}]]>`}function xqe(e){return`<!--${e.data}-->`}function HZ(e,t){return Vx(e,t)}function Eqe(e,t){return Dt(e)?e.children.map(r=>HZ(r,t)).join(""):""}function Gx(e){return Array.isArray(e)?e.map(Gx).join(""):we(e)?e.name==="br"?`
`:Gx(e.children):sd(e)?Gx(e.children):oi(e)?e.data:""}function Xa(e){return Array.isArray(e)?e.map(Xa).join(""):Dt(e)&&!Kc(e)?Xa(e.children):oi(e)?e.data:""}function Yh(e){return Array.isArray(e)?e.map(Yh).join(""):Dt(e)&&(e.type===ht.Tag||sd(e))?Yh(e.children):oi(e)?e.data:""}function ud(e){return Dt(e)?e.children:[]}function zZ(e){return e.parent||null}function PR(e){let t=zZ(e);if(t!=null)return ud(t);let r=[e],{prev:n,next:i}=e;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;i!=null;)r.push(i),{next:i}=i;return r}function _qe(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function vqe(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function Tqe(e){return e.name}function Wx(e){let{next:t}=e;for(;t!==null&&!we(t);)({next:t}=t);return t}function Kx(e){let{prev:t}=e;for(;t!==null&&!we(t);)({prev:t}=t);return t}function Ja(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function Sqe(e,t){let r=t.prev=e.prev;r&&(r.next=t);let n=t.next=e.next;n&&(n.prev=t);let i=t.parent=e.parent;if(i){let s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}function wqe(e,t){if(Ja(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function Aqe(e,t){Ja(t);let{parent:r}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){let i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)}function Cqe(e,t){if(Ja(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function Iqe(e,t){Ja(t);let{parent:r}=e;if(r){let n=r.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function cd(e,t,r=!0,n=1/0){return Yx(e,Array.isArray(t)?t:[t],r,n)}function Yx(e,t,r,n){let i=[],s=[Array.isArray(t)?t:[t]],a=[0];for(;;){if(a[0]>=s[0].length){if(a.length===1)return i;s.shift(),a.shift();continue}let o=s[0][a[0]++];if(e(o)&&(i.push(o),--n<=0))return i;r&&Dt(o)&&o.children.length>0&&(a.unshift(0),s.unshift(o.children))}}function Rqe(e,t){return t.find(e)}function Xx(e,t,r=!0){let n=Array.isArray(t)?t:[t];for(let i=0;i<n.length;i++){let s=n[i];if(we(s)&&e(s))return s;if(r&&Dt(s)&&s.children.length>0){let a=Xx(e,s.children,!0);if(a)return a}}return null}function VZ(e,t){return(Array.isArray(t)?t:[t]).some(r=>we(r)&&e(r)||Dt(r)&&VZ(e,r.children))}function Nqe(e,t){let r=[],n=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}let s=n[0][i[0]++];we(s)&&e(s)&&r.push(s),Dt(s)&&s.children.length>0&&(i.unshift(0),n.unshift(s.children))}}var Jx={tag_name(e){return typeof e=="function"?t=>we(t)&&e(t.name):e==="*"?we:t=>we(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>oi(t)&&e(t.data):t=>oi(t)&&t.data===e}};function DR(e,t){return typeof t=="function"?r=>we(r)&&t(r.attribs[e]):r=>we(r)&&r.attribs[e]===t}function Oqe(e,t){return r=>e(r)||t(r)}function GZ(e){let t=Object.keys(e).map(r=>{let n=e[r];return Object.prototype.hasOwnProperty.call(Jx,r)?Jx[r](n):DR(r,n)});return t.length===0?null:t.reduce(Oqe)}function Pqe(e,t){let r=GZ(e);return r?r(t):!0}function Dqe(e,t,r,n=1/0){let i=GZ(e);return i?cd(i,t,r,n):[]}function kqe(e,t,r=!0){return Array.isArray(t)||(t=[t]),Xx(DR("id",e),t,r)}function Yc(e,t,r=!0,n=1/0){return cd(Jx.tag_name(e),t,r,n)}function $qe(e,t,r=!0,n=1/0){return cd(DR("class",e),t,r,n)}function Lqe(e,t,r=!0,n=1/0){return cd(Jx.tag_type(e),t,r,n)}function Mqe(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}var zi;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(zi||(zi={}));function WZ(e,t){let r=[],n=[];if(e===t)return 0;let i=Dt(e)?e:e.parent;for(;i;)r.unshift(i),i=i.parent;for(i=Dt(t)?t:t.parent;i;)n.unshift(i),i=i.parent;let s=Math.min(r.length,n.length),a=0;for(;a<s&&r[a]===n[a];)a++;if(a===0)return zi.DISCONNECTED;let o=r[a-1],u=o.children,l=r[a],c=n[a];return u.indexOf(l)>u.indexOf(c)?o===t?zi.FOLLOWING|zi.CONTAINED_BY:zi.FOLLOWING:o===e?zi.PRECEDING|zi.CONTAINS:zi.PRECEDING}function lu(e){return e=e.filter((t,r,n)=>!n.includes(t,r+1)),e.sort((t,r)=>{let n=WZ(t,r);return n&zi.PRECEDING?-1:n&zi.FOLLOWING?1:0}),e}function kR(e){let t=Qx(Uqe,e);return t?t.name==="feed"?Fqe(t):Bqe(t):null}function Fqe(e){var t;let r=e.children,n={type:"atom",items:Yc("entry",r).map(a=>{var o;let{children:u}=a,l={media:KZ(u)};ui(l,"id","id",u),ui(l,"title","title",u);let c=(o=Qx("link",u))===null||o===void 0?void 0:o.attribs.href;c&&(l.link=c);let f=fu("summary",u)||fu("content",u);f&&(l.description=f);let d=fu("updated",u);return d&&(l.pubDate=new Date(d)),l})};ui(n,"id","id",r),ui(n,"title","title",r);let i=(t=Qx("link",r))===null||t===void 0?void 0:t.attribs.href;i&&(n.link=i),ui(n,"description","subtitle",r);let s=fu("updated",r);return s&&(n.updated=new Date(s)),ui(n,"author","email",r,!0),n}function Bqe(e){var t,r;let n=(r=(t=Qx("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],i={type:e.name.substr(0,3),id:"",items:Yc("item",e.children).map(a=>{let{children:o}=a,u={media:KZ(o)};ui(u,"id","guid",o),ui(u,"title","title",o),ui(u,"link","link",o),ui(u,"description","description",o);let l=fu("pubDate",o)||fu("dc:date",o);return l&&(u.pubDate=new Date(l)),u})};ui(i,"title","title",n),ui(i,"link","link",n),ui(i,"description","description",n);let s=fu("lastBuildDate",n);return s&&(i.updated=new Date(s)),ui(i,"author","managingEditor",n,!0),i}var qqe=["url","type","lang"],jqe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function KZ(e){return Yc("media:content",e).map(t=>{let{attribs:r}=t,n={medium:r.medium,isDefault:!!r.isDefault};for(let i of qqe)r[i]&&(n[i]=r[i]);for(let i of jqe)r[i]&&(n[i]=parseInt(r[i],10));return r.expression&&(n.expression=r.expression),n})}function Qx(e,t){return Yc(e,t,!0,1)[0]}function fu(e,t,r=!1){return Xa(Yc(e,t,r,1)).trim()}function ui(e,t,r,n,i=!1){let s=fu(r,n,i);s&&(e[t]=s)}function Uqe(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function XZ(e,t,r){return e?e(t??e._root.children,null,void 0,r).toString():""}function Hqe(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function JZ(e,t){let r=Hqe(e)?(t=e,void 0):e,n={...jh,...this===null||this===void 0?void 0:this._options,...Uh(t??{})};return XZ(this,r,n)}function QZ(e){let t={...this._options,xmlMode:!0};return XZ(this,e,t)}function pu(e){let t=e||(this?this.root():[]),r="";for(let n=0;n<t.length;n++)r+=Xa(t[n]);return r}function zqe(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let n=this.load(e,jh,!1);return r||n("script").remove(),n.root()[0].children.slice()}function Vqe(){return this(this._root)}function $R(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function Gqe(e,t){if(!YZ(e)||!YZ(t))return;let r=e.length,n=+t.length;for(let i=0;i<n;i++)e[r++]=t[i];return e.length=r,e}function YZ(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var BR={};Is(BR,{addClass:()=>aee,attr:()=>Kqe,data:()=>Xqe,hasClass:()=>Zqe,prop:()=>Yqe,removeAttr:()=>Qqe,removeClass:()=>oee,toggleClass:()=>uee,val:()=>Jqe});function bi(e){return e.cheerio!=null}function ZZ(e){return e.replace(/[_.-](\w|$)/g,(t,r)=>r.toUpperCase())}function eee(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function jt(e,t){let r=e.length;for(let n=0;n<r;n++)t(e[n],n);return e}function Zx(e){let t="length"in e?Array.prototype.map.call(e,n=>Gh(n,!0)):[Gh(e,!0)],r=new yi(t);return t.forEach(n=>{n.parent=r}),t}var Xc;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Xc||(Xc={}));function Xh(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=Xc.LowerA&&r<=Xc.LowerZ||r>=Xc.UpperA&&r<=Xc.UpperZ||r===Xc.Exclamation)&&e.includes(">",t+2)}var ld=Object.prototype.hasOwnProperty,Jh=/\s+/,LR="data-",tee={null:null,true:!0,false:!1},FR=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Wqe=/^{[^]*}$|^\[[^]*]$/;function eE(e,t,r){var n;if(!(!e||!we(e))){if((n=e.attribs)!==null&&n!==void 0||(e.attribs={}),!t)return e.attribs;if(ld.call(e.attribs,t))return!r&&FR.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return pu(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function fd(e,t,r){r===null?see(e,t):e.attribs[t]=`${r}`}function Kqe(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return jt(this,(r,n)=>{we(r)&&fd(r,e,t.call(r,n,r.attribs[e]))})}return jt(this,r=>{we(r)&&(typeof e=="object"?Object.keys(e).forEach(n=>{let i=e[n];fd(r,n,i)}):fd(r,e,t))})}return arguments.length>1?this:eE(this[0],e,this.options.xmlMode)}function ree(e,t,r){return t in e?e[t]:!r&&FR.test(t)?eE(e,t,!1)!==void 0:eE(e,t,r)}function MR(e,t,r,n){t in e?e[t]=r:fd(e,t,!n&&FR.test(t)?r?"":null:`${r}`)}function Yqe(e,t){var r;if(typeof e=="string"&&t===void 0){let n=this[0];if(!n||!we(n))return;switch(e){case"style":{let i=this.css(),s=Object.keys(i);return s.forEach((a,o)=>{i[o]=a}),i.length=s.length,i}case"tagName":case"nodeName":return n.name.toUpperCase();case"href":case"src":{let i=(r=n.attribs)===null||r===void 0?void 0:r[e];return typeof URL<"u"&&(e==="href"&&(n.tagName==="a"||n.name==="link")||e==="src"&&(n.tagName==="img"||n.tagName==="iframe"||n.tagName==="audio"||n.tagName==="video"||n.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return Yh(n);case"textContent":return Xa(n);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return ree(n,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return jt(this,(n,i)=>{we(n)&&MR(n,e,t.call(n,i,ree(n,e,this.options.xmlMode)),this.options.xmlMode)})}return jt(this,n=>{we(n)&&(typeof e=="object"?Object.keys(e).forEach(i=>{let s=e[i];MR(n,i,s,this.options.xmlMode)}):MR(n,e,t,this.options.xmlMode))})}}function nee(e,t,r){var n;let i=e;(n=i.data)!==null&&n!==void 0||(i.data={}),typeof t=="object"?Object.assign(i.data,t):typeof t=="string"&&r!==void 0&&(i.data[t]=r)}function iee(e,t){let r,n,i;t==null?(r=Object.keys(e.attribs).filter(s=>s.startsWith(LR)),n=r.map(s=>ZZ(s.slice(LR.length)))):(r=[LR+eee(t)],n=[t]);for(let s=0;s<r.length;++s){let a=r[s],o=n[s];if(ld.call(e.attribs,a)&&!ld.call(e.data,o)){if(i=e.attribs[a],ld.call(tee,i))i=tee[i];else if(i===String(Number(i)))i=Number(i);else if(Wqe.test(i))try{i=JSON.parse(i)}catch{}e.data[o]=i}}return t==null?e.data:i}function Xqe(e,t){var r;let n=this[0];if(!n||!we(n))return;let i=n;return(r=i.data)!==null&&r!==void 0||(i.data={}),e?typeof e=="object"||t!==void 0?(jt(this,s=>{we(s)&&(typeof e=="object"?nee(s,e):nee(s,e,t))}),this):ld.call(i.data,e)?i.data[e]:iee(i,e):iee(i)}function Jqe(e){let t=arguments.length===0,r=this[0];if(!r||!we(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let n=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let i=typeof e!="object"?[e]:e;for(let s=0;s<i.length;s++)this.find(`option[value="${i[s]}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(i=>pu(i.children)):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function see(e,t){!e.attribs||!ld.call(e.attribs,t)||delete e.attribs[t]}function tE(e){return e?e.trim().split(Jh):[]}function Qqe(e){let t=tE(e);for(let r=0;r<t.length;r++)jt(this,n=>{we(n)&&see(n,t[r])});return this}function Zqe(e){return this.toArray().some(t=>{let r=we(t)&&t.attribs.class,n=-1;if(r&&e.length)for(;(n=r.indexOf(e,n+1))>-1;){let i=n+e.length;if((n===0||Jh.test(r[n-1]))&&(i===r.length||Jh.test(r[i])))return!0}return!1})}function aee(e){if(typeof e=="function")return jt(this,(n,i)=>{if(we(n)){let s=n.attribs.class||"";aee.call([n],e.call(n,i,s))}});if(!e||typeof e!="string")return this;let t=e.split(Jh),r=this.length;for(let n=0;n<r;n++){let i=this[n];if(!we(i))continue;let s=eE(i,"class",!1);if(!s)fd(i,"class",t.join(" ").trim());else{let a=` ${s} `;for(let o=0;o<t.length;o++){let u=`${t[o]} `;a.includes(` ${u}`)||(a+=u)}fd(i,"class",a.trim())}}return this}function oee(e){if(typeof e=="function")return jt(this,(i,s)=>{we(i)&&oee.call([i],e.call(i,s,i.attribs.class||""))});let t=tE(e),r=t.length,n=arguments.length===0;return jt(this,i=>{if(we(i))if(n)i.attribs.class="";else{let s=tE(i.attribs.class),a=!1;for(let o=0;o<r;o++){let u=s.indexOf(t[o]);u>=0&&(s.splice(u,1),a=!0,o--)}a&&(i.attribs.class=s.join(" "))}})}function uee(e,t){if(typeof e=="function")return jt(this,(a,o)=>{we(a)&&uee.call([a],e.call(a,o,a.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(Jh),n=r.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length;for(let a=0;a<s;a++){let o=this[a];if(!we(o))continue;let u=tE(o.attribs.class);for(let l=0;l<n;l++){let c=u.indexOf(r[l]);i>=0&&c<0?u.push(r[l]):i<=0&&c>=0&&u.splice(c,1)}o.attribs.class=u.join(" ")}return this}var uN={};Is(uN,{add:()=>oUe,addBack:()=>uUe,children:()=>Vje,closest:()=>Mje,contents:()=>Gje,each:()=>Wje,end:()=>aUe,eq:()=>tUe,filter:()=>Yje,filterArray:()=>oN,find:()=>Dje,first:()=>Zje,get:()=>rUe,has:()=>Qje,index:()=>iUe,is:()=>Xje,last:()=>eUe,map:()=>Kje,next:()=>Fje,nextAll:()=>Bje,nextUntil:()=>qje,not:()=>Jje,parent:()=>kje,parents:()=>$je,parentsUntil:()=>Lje,prev:()=>jje,prevAll:()=>Uje,prevUntil:()=>Hje,siblings:()=>zje,slice:()=>sUe,toArray:()=>nUe});var li=Te(md(),1);var JR=Te(mu(),1);var xs=Te(md(),1),Za=Te(mu(),1);var Fn=Te(md(),1),Tee=new Map([[Fn.SelectorType.Universal,50],[Fn.SelectorType.Tag,30],[Fn.SelectorType.Attribute,1],[Fn.SelectorType.Pseudo,0]]);function Zh(e){return!Tee.has(e.type)}var hje=new Map([[Fn.AttributeAction.Exists,10],[Fn.AttributeAction.Equals,8],[Fn.AttributeAction.Not,7],[Fn.AttributeAction.Start,6],[Fn.AttributeAction.End,6],[Fn.AttributeAction.Any,5]]);function jR(e){let t=e.map(See);for(let r=1;r<e.length;r++){let n=t[r];if(!(n<0))for(let i=r-1;i>=0&&n<t[i];i--){let s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=n}}}function See(e){var t,r;let n=(t=Tee.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Fn.SelectorType.Attribute?(n=(r=hje.get(e.action))!==null&&r!==void 0?r:4,e.action===Fn.AttributeAction.Equals&&e.name==="id"&&(n=9),e.ignoreCase&&(n>>=1)):e.type===Fn.SelectorType.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?n=0:Array.isArray(e.data)?(n=Math.min(...e.data.map(i=>Math.min(...i.map(See)))),n<0&&(n=0)):n=2:n=3),n}var em=Te(mu(),1),mje=/[-[\]{}()*+?.,\\^$|#\s]/g;function wee(e){return e.replace(mje,"\\$&")}var gje=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Jc(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&gje.has(e.name)}var Aee={equals(e,t,r){let{adapter:n}=r,{name:i}=t,{value:s}=t;return Jc(t,r)?(s=s.toLowerCase(),a=>{let o=n.getAttributeValue(a,i);return o!=null&&o.length===s.length&&o.toLowerCase()===s&&e(a)}):a=>n.getAttributeValue(a,i)===s&&e(a)},hyphen(e,t,r){let{adapter:n}=r,{name:i}=t,{value:s}=t,a=s.length;return Jc(t,r)?(s=s.toLowerCase(),function(u){let l=n.getAttributeValue(u,i);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a).toLowerCase()===s&&e(u)}):function(u){let l=n.getAttributeValue(u,i);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a)===s&&e(u)}},element(e,t,r){let{adapter:n}=r,{name:i,value:s}=t;if(/\s/.test(s))return em.default.falseFunc;let a=new RegExp(`(?:^|\\s)${wee(s)}(?:$|\\s)`,Jc(t,r)?"i":"");return function(u){let l=n.getAttributeValue(u,i);return l!=null&&l.length>=s.length&&a.test(l)&&e(u)}},exists(e,{name:t},{adapter:r}){return n=>r.hasAttrib(n,t)&&e(n)},start(e,t,r){let{adapter:n}=r,{name:i}=t,{value:s}=t,a=s.length;return a===0?em.default.falseFunc:Jc(t,r)?(s=s.toLowerCase(),o=>{let u=n.getAttributeValue(o,i);return u!=null&&u.length>=a&&u.substr(0,a).toLowerCase()===s&&e(o)}):o=>{var u;return!!(!((u=n.getAttributeValue(o,i))===null||u===void 0)&&u.startsWith(s))&&e(o)}},end(e,t,r){let{adapter:n}=r,{name:i}=t,{value:s}=t,a=-s.length;return a===0?em.default.falseFunc:Jc(t,r)?(s=s.toLowerCase(),o=>{var u;return((u=n.getAttributeValue(o,i))===null||u===void 0?void 0:u.substr(a).toLowerCase())===s&&e(o)}):o=>{var u;return!!(!((u=n.getAttributeValue(o,i))===null||u===void 0)&&u.endsWith(s))&&e(o)}},any(e,t,r){let{adapter:n}=r,{name:i,value:s}=t;if(s==="")return em.default.falseFunc;if(Jc(t,r)){let a=new RegExp(wee(s),"i");return function(u){let l=n.getAttributeValue(u,i);return l!=null&&l.length>=s.length&&a.test(l)&&e(u)}}return a=>{var o;return!!(!((o=n.getAttributeValue(a,i))===null||o===void 0)&&o.includes(s))&&e(a)}},not(e,t,r){let{adapter:n}=r,{name:i}=t,{value:s}=t;return s===""?a=>!!n.getAttributeValue(a,i)&&e(a):Jc(t,r)?(s=s.toLowerCase(),a=>{let o=n.getAttributeValue(a,i);return(o==null||o.length!==s.length||o.toLowerCase()!==s)&&e(a)}):a=>n.getAttributeValue(a,i)!==s&&e(a)}};var Nee=Te(md(),1);var yje=new Set([9,10,12,13,32]),Cee=48,bje=57;function Iee(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,n=s(),i=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=n*(i??1),o(),t<e.length?(n=s(),o(),i=a()):n=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,n*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){let u=t,l=0;for(;t<e.length&&e.charCodeAt(t)>=Cee&&e.charCodeAt(t)<=bje;)l=l*10+(e.charCodeAt(t)-Cee),t++;return t===u?null:l}function o(){for(;t<e.length&&yje.has(e.charCodeAt(t));)t++}}var UR=Te(mu(),1);function Ree(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return UR.default.falseFunc;if(t===-1)return s=>s<=r;if(t===0)return s=>s===r;if(t===1)return r<0?UR.default.trueFunc:s=>s>=r;let n=Math.abs(t),i=(r%n+n)%n;return t>1?s=>s>=r&&s%n===i:s=>s<=r&&s%n===i}function gd(e){return Ree(Iee(e))}var ci=Te(mu(),1);function iE(e,t){return r=>{let n=t.getParent(r);return n!=null&&t.isTag(n)&&e(r)}}var yd={contains(e,t,{adapter:r}){return function(i){return e(i)&&r.getText(i).includes(t)}},icontains(e,t,{adapter:r}){let n=t.toLowerCase();return function(s){return e(s)&&r.getText(s).toLowerCase().includes(n)}},"nth-child"(e,t,{adapter:r,equals:n}){let i=gd(t);return i===ci.default.falseFunc?ci.default.falseFunc:i===ci.default.trueFunc?iE(e,r):function(a){let o=r.getSiblings(a),u=0;for(let l=0;l<o.length&&!n(a,o[l]);l++)r.isTag(o[l])&&u++;return i(u)&&e(a)}},"nth-last-child"(e,t,{adapter:r,equals:n}){let i=gd(t);return i===ci.default.falseFunc?ci.default.falseFunc:i===ci.default.trueFunc?iE(e,r):function(a){let o=r.getSiblings(a),u=0;for(let l=o.length-1;l>=0&&!n(a,o[l]);l--)r.isTag(o[l])&&u++;return i(u)&&e(a)}},"nth-of-type"(e,t,{adapter:r,equals:n}){let i=gd(t);return i===ci.default.falseFunc?ci.default.falseFunc:i===ci.default.trueFunc?iE(e,r):function(a){let o=r.getSiblings(a),u=0;for(let l=0;l<o.length;l++){let c=o[l];if(n(a,c))break;r.isTag(c)&&r.getName(c)===r.getName(a)&&u++}return i(u)&&e(a)}},"nth-last-of-type"(e,t,{adapter:r,equals:n}){let i=gd(t);return i===ci.default.falseFunc?ci.default.falseFunc:i===ci.default.trueFunc?iE(e,r):function(a){let o=r.getSiblings(a),u=0;for(let l=o.length-1;l>=0;l--){let c=o[l];if(n(a,c))break;r.isTag(c)&&r.getName(c)===r.getName(a)&&u++}return i(u)&&e(a)}},root(e,t,{adapter:r}){return n=>{let i=r.getParent(n);return(i==null||!r.isTag(i))&&e(n)}},scope(e,t,r,n){let{equals:i}=r;return!n||n.length===0?yd.root(e,t,r):n.length===1?s=>i(n[0],s)&&e(s):s=>n.includes(s)&&e(s)},hover:HR("isHovered"),visited:HR("isVisited"),active:HR("isActive")};function HR(e){return function(r,n,{adapter:i}){let s=i[e];return typeof s!="function"?ci.default.falseFunc:function(o){return s(o)&&r(o)}}}var tm={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let n=t.getSiblings(e).find(i=>t.isTag(i));return n!=null&&r(e,n)},"last-child"(e,{adapter:t,equals:r}){let n=t.getSiblings(e);for(let i=n.length-1;i>=0;i--){if(r(e,n[i]))return!0;if(t.isTag(n[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let s=0;s<n.length;s++){let a=n[s];if(r(e,a))return!0;if(t.isTag(a)&&t.getName(a)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let n=t.getSiblings(e),i=t.getName(e);for(let s=n.length-1;s>=0;s--){let a=n[s];if(r(e,a))return!0;if(t.isTag(a)&&t.getName(a)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let n=t.getName(e);return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i)||t.getName(i)!==n)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(n=>r(e,n)||!t.isTag(n))}};function zR(e,t,r,n){if(r===null){if(e.length>n)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===n)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var sE={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Vi=Te(mu(),1);var WR={};function KR(e,t){return e===Vi.default.falseFunc?Vi.default.falseFunc:r=>t.isTag(r)&&e(r)}function YR(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let n=r.indexOf(e);return n<0||n===r.length-1?[]:r.slice(n+1).filter(t.isTag)}function GR(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var VR=(e,t,r,n,i)=>{let s=i(t,GR(r),n);return s===Vi.default.trueFunc?e:s===Vi.default.falseFunc?Vi.default.falseFunc:a=>s(a)&&e(a)},aE={is:VR,matches:VR,where:VR,not(e,t,r,n,i){let s=i(t,GR(r),n);return s===Vi.default.falseFunc?e:s===Vi.default.trueFunc?Vi.default.falseFunc:a=>!s(a)&&e(a)},has(e,t,r,n,i){let{adapter:s}=r,a=GR(r);a.relativeSelector=!0;let o=t.some(c=>c.some(Zh))?[WR]:void 0,u=i(t,a,o);if(u===Vi.default.falseFunc)return Vi.default.falseFunc;let l=KR(u,s);if(o&&u!==Vi.default.trueFunc){let{shouldTestNextSiblings:c=!1}=u;return f=>{if(!e(f))return!1;o[0]=f;let d=s.getChildren(f),h=c?[...d,...YR(f,s)]:d;return s.existsOne(l,h)}}return c=>e(c)&&s.existsOne(l,s.getChildren(c))}};function Oee(e,t,r,n,i){var s;let{name:a,data:o}=t;if(Array.isArray(o)){if(!(a in aE))throw new Error(`Unknown pseudo-class :${a}(${o})`);return aE[a](e,o,r,n,i)}let u=(s=r.pseudos)===null||s===void 0?void 0:s[a],l=typeof u=="string"?u:sE[a];if(typeof l=="string"){if(o!=null)throw new Error(`Pseudo ${a} doesn't have any arguments`);let c=(0,Nee.parse)(l);return aE.is(e,c,r,n,i)}if(typeof u=="function")return zR(u,a,o,1),c=>u(c,o)&&e(c);if(a in yd)return yd[a](e,o,r,n);if(a in tm){let c=tm[a];return zR(c,a,o,2),f=>c(f,r,o)&&e(f)}throw new Error(`Unknown pseudo-class :${a}`)}var Gi=Te(md(),1);function XR(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Pee(e,t,r,n,i){let{adapter:s,equals:a}=r;switch(t.type){case Gi.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Gi.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Gi.SelectorType.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Aee[t.action](e,t,r)}case Gi.SelectorType.Pseudo:return Oee(e,t,r,n,i);case Gi.SelectorType.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=t;return(!r.xmlMode||r.lowerCaseTags)&&(o=o.toLowerCase()),function(l){return s.getName(l)===o&&e(l)}}case Gi.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(l){let c=l;for(;c=XR(c,s);)if(e(c))return!0;return!1};let o=new WeakSet;return function(l){let c=l;for(;c=XR(c,s);)if(!o.has(c)){if(s.isTag(c)&&e(c))return!0;o.add(c)}return!1}}case"_flexibleDescendant":return function(u){let l=u;do if(e(l))return!0;while(l=XR(l,s));return!1};case Gi.SelectorType.Parent:return function(u){return s.getChildren(u).some(l=>s.isTag(l)&&e(l))};case Gi.SelectorType.Child:return function(u){let l=s.getParent(u);return l!=null&&s.isTag(l)&&e(l)};case Gi.SelectorType.Sibling:return function(u){let l=s.getSiblings(u);for(let c=0;c<l.length;c++){let f=l[c];if(a(u,f))break;if(s.isTag(f)&&e(f))return!0}return!1};case Gi.SelectorType.Adjacent:return s.prevElementSibling?function(u){let l=s.prevElementSibling(u);return l!=null&&e(l)}:function(u){let l=s.getSiblings(u),c;for(let f=0;f<l.length;f++){let d=l[f];if(a(u,d))break;s.isTag(d)&&(c=d)}return!!c&&e(c)};case Gi.SelectorType.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Dee(e,t,r){let n=oE(e,t,r);return KR(n,t.adapter)}function oE(e,t,r){let n=typeof e=="string"?(0,xs.parse)(e):e;return uE(n,t,r)}function kee(e){return e.type===xs.SelectorType.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(kee)))}var xje={type:xs.SelectorType.Descendant},Eje={type:"_flexibleDescendant"},_je={type:xs.SelectorType.Pseudo,name:"scope",data:null};function vje(e,{adapter:t},r){let n=!!r?.every(i=>{let s=t.isTag(i)&&t.getParent(i);return i===WR||s&&t.isTag(s)});for(let i of e){if(!(i.length>0&&Zh(i[0])&&i[0].type!==xs.SelectorType.Descendant))if(n&&!i.some(kee))i.unshift(xje);else continue;i.unshift(_je)}}function uE(e,t,r){var n;e.forEach(jR),r=(n=t.context)!==null&&n!==void 0?n:r;let i=Array.isArray(r),s=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)vje(e,t,s);else if(e.some(u=>u.length>0&&Zh(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1,o=e.map(u=>{if(u.length>=2){let[l,c]=u;l.type!==xs.SelectorType.Pseudo||l.name!=="scope"||(i&&c.type===xs.SelectorType.Descendant?u[1]=Eje:(c.type===xs.SelectorType.Adjacent||c.type===xs.SelectorType.Sibling)&&(a=!0))}return Tje(u,t,s)}).reduce(Sje,Za.default.falseFunc);return o.shouldTestNextSiblings=a,o}function Tje(e,t,r){var n;return e.reduce((i,s)=>i===Za.default.falseFunc?Za.default.falseFunc:Pee(i,s,t,r,uE),(n=t.rootFunc)!==null&&n!==void 0?n:Za.default.trueFunc)}function Sje(e,t){return t===Za.default.falseFunc||e===Za.default.trueFunc?e:e===Za.default.falseFunc||t===Za.default.trueFunc?t:function(n){return e(n)||t(n)}}var $ee=(e,t)=>e===t,wje={adapter:du,equals:$ee};function Lee(e){var t,r,n,i;let s=e??wje;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=du),(r=s.equals)!==null&&r!==void 0||(s.equals=(i=(n=s.adapter)===null||n===void 0?void 0:n.equals)!==null&&i!==void 0?i:$ee),s}function QR(e){return function(r,n,i){let s=Lee(n);return e(r,s,i)}}var H0t=QR(Dee),z0t=QR(oE),cE=QR(uE);function Mee(e){return function(r,n,i){let s=Lee(i);typeof r!="function"&&(r=oE(r,s,n));let a=lE(n,s.adapter,r.shouldTestNextSiblings);return e(r,a,s)}}function lE(e,t,r=!1){return r&&(e=Aje(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Aje(e,t){let r=Array.isArray(e)?e.slice(0):[e],n=r.length;for(let i=0;i<n;i++){let s=YR(r[i],t);r.push(...s)}return r}var V0t=Mee((e,t,r)=>e===JR.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),G0t=Mee((e,t,r)=>e===JR.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t));var dE=Te(mu(),1);var Cje=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function bd(e){return e.type!=="pseudo"?!1:Cje.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(bd)):!1}function Fee(e,t,r){let n=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?Math.min(n,r):1/0:0;case"gt":return isFinite(n)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}function Bee(e){for(;e.parent;)e=e.parent;return e}function fE(e){let t=[],r=[];for(let n of e)n.some(bd)?t.push(n):r.push(n);return[r,t]}var Ije={type:li.SelectorType.Universal,namespace:null},Rje={type:li.SelectorType.Pseudo,name:"scope",data:null};function tN(e,t,r={}){return rN([e],t,r)}function rN(e,t,r={}){if(typeof t=="function")return e.some(t);let[n,i]=fE((0,li.parse)(t));return n.length>0&&e.some(cE(n,r))||i.some(s=>jee(s,e,r).length>0)}function Nje(e,t,r,n){let i=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter((s,a)=>a%2===0);case"odd":return t.filter((s,a)=>a%2===1);case"not":{let s=new Set(qee(r,t,n));return t.filter(a=>!s.has(a))}}}function nN(e,t,r={}){return qee((0,li.parse)(e),t,r)}function qee(e,t,r){if(t.length===0)return[];let[n,i]=fE(e),s;if(n.length){let a=eN(t,n,r);if(i.length===0)return a;a.length&&(s=new Set(a))}for(let a=0;a<i.length&&s?.size!==t.length;a++){let o=i[a];if((s?t.filter(c=>we(c)&&!s.has(c)):t).length===0)break;let l=jee(o,t,r);if(l.length)if(s)l.forEach(c=>s.add(c));else{if(a===i.length-1)return l;s=new Set(l)}}return typeof s<"u"?s.size===t.length?t:t.filter(a=>s.has(a)):[]}function jee(e,t,r){var n;if(e.some(li.isTraversal)){let i=(n=r.root)!==null&&n!==void 0?n:Bee(t[0]),s={...r,context:t,relativeSelector:!1};return e.push(Rje),pE(i,e,s,!0,t.length)}return pE(t,e,r,!1,t.length)}function Uee(e,t,r={},n=1/0){if(typeof e=="function")return Hee(t,e);let[i,s]=fE((0,li.parse)(e)),a=s.map(o=>pE(t,o,r,!0,n));return i.length&&a.push(ZR(t,i,r,n)),a.length===0?[]:a.length===1?a[0]:lu(a.reduce((o,u)=>[...o,...u]))}function pE(e,t,r,n,i){let s=t.findIndex(bd),a=t.slice(0,s),o=t[s],u=t.length-1===s?i:1/0,l=Fee(o.name,o.data,u);if(l===0)return[];let f=(a.length===0&&!Array.isArray(e)?ud(e).filter(we):a.length===0?(Array.isArray(e)?e:[e]).filter(we):n||a.some(li.isTraversal)?ZR(e,[a],r,l):eN(e,[a],r)).slice(0,l),d=Nje(o.name,f,o.data,r);if(d.length===0||t.length===s+1)return d;let h=t.slice(s+1),p=h.some(li.isTraversal);if(p){if((0,li.isTraversal)(h[0])){let{type:m}=h[0];(m===li.SelectorType.Sibling||m===li.SelectorType.Adjacent)&&(d=lE(d,du,!0)),h.unshift(Ije)}r={...r,relativeSelector:!1,rootFunc:m=>d.includes(m)}}else r.rootFunc&&r.rootFunc!==dE.trueFunc&&(r={...r,rootFunc:dE.trueFunc});return h.some(bd)?pE(d,h,r,!1,i):p?ZR(d,[h],r,i):eN(d,[h],r)}function ZR(e,t,r,n){let i=cE(t,r,e);return Hee(e,i,n)}function Hee(e,t,r=1/0){let n=lE(e,du,t.shouldTestNextSiblings);return Yx(i=>we(i)&&t(i),n,!0,r)}function eN(e,t,r){let n=(Array.isArray(e)?e:[e]).filter(we);if(n.length===0)return n;let i=cE(t,r);return i===dE.trueFunc?n:n.filter(i)}var Pje=/^\s*[~+]/;function Dje(e){var t;if(!e)return this._make([]);let r=this.toArray();if(typeof e!="string"){let s=bi(e)?e.toArray():[e];return this._make(s.filter(a=>r.some(o=>$R(o,a))))}let n=Pje.test(e)?r:this.children().toArray(),i={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Uee(e,n,i))}function iN(e){return function(t,...r){return function(n){var i;let s=e(t,this);return n&&(s=oN(s,n,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&s.length>1?r.reduce((a,o)=>o(a),s):s)}}}var rm=iN((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);r.push(i)}return new Array().concat(...r)}),sN=iN((e,t)=>{let r=[];for(let n=0;n<t.length;n++){let i=e(t[n]);i!==null&&r.push(i)}return r});function aN(e,...t){let r=null,n=iN((i,s)=>{let a=[];return jt(s,o=>{for(let u;(u=i(o))&&!r?.(u,a.length);o=u)a.push(u)}),a})(e,...t);return function(i,s){r=typeof i=="string"?o=>tN(o,i,this.options):i?nm(i):null;let a=n.call(this,s);return r=null,a}}function xd(e){return Array.from(new Set(e))}var kje=sN(({parent:e})=>e&&!bs(e)?e:null,xd),$je=rm(e=>{let t=[];for(;e.parent&&!bs(e.parent);)t.push(e.parent),e=e.parent;return t},lu,e=>e.reverse()),Lje=aN(({parent:e})=>e&&!bs(e)?e:null,lu,e=>e.reverse());function Mje(e){var t;let r=[];if(!e)return this._make(r);let n={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},i=typeof e=="string"?s=>tN(s,e,n):nm(e);return jt(this,s=>{for(;s&&we(s);){if(i(s,0)){r.includes(s)||r.push(s);break}s=s.parent}}),this._make(r)}var Fje=sN(e=>Wx(e)),Bje=rm(e=>{let t=[];for(;e.next;)e=e.next,we(e)&&t.push(e);return t},xd),qje=aN(e=>Wx(e),xd),jje=sN(e=>Kx(e)),Uje=rm(e=>{let t=[];for(;e.prev;)e=e.prev,we(e)&&t.push(e);return t},xd),Hje=aN(e=>Kx(e),xd),zje=rm(e=>PR(e).filter(t=>we(t)&&t!==e),lu),Vje=rm(e=>ud(e).filter(we),xd);function Gje(){let e=this.toArray().reduce((t,r)=>Dt(r)?t.concat(r.children):t,[]);return this._make(e)}function Wje(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Kje(e){let t=[];for(let r=0;r<this.length;r++){let n=this[r],i=e.call(n,r,n);i!=null&&(t=t.concat(i))}return this._make(t)}function nm(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):bi(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Yje(e){var t;return this._make(oN(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function oN(e,t,r,n){return typeof t=="string"?nN(t,e,{xmlMode:r,root:n}):e.filter(nm(t))}function Xje(e){let t=this.toArray();return typeof e=="string"?rN(t.filter(we),e,this.options):e?t.some(nm(e)):!1}function Jje(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(nN(e,t,this.options));t=t.filter(n=>!r.has(n))}else{let r=nm(e);t=t.filter((n,i)=>!r(n,i))}return this._make(t)}function Qje(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function Zje(){return this.length>1?this._make(this[0]):this}function eUe(){return this.length>0?this._make(this[this.length-1]):this}function tUe(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function rUe(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function nUe(){return Array.prototype.slice.call(this)}function iUe(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=bi(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function sUe(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function aUe(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function oUe(e,t){let r=this._make(e,t),n=lu([...this.get(),...r.get()]);return this._make(n)}function uUe(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var cN={};Is(cN,{_makeDomArray:()=>cUe,after:()=>bUe,append:()=>dUe,appendTo:()=>lUe,before:()=>EUe,clone:()=>IUe,empty:()=>SUe,html:()=>wUe,insertAfter:()=>xUe,insertBefore:()=>_Ue,prepend:()=>pUe,prependTo:()=>fUe,remove:()=>vUe,replaceWith:()=>TUe,text:()=>CUe,toString:()=>AUe,unwrap:()=>gUe,wrap:()=>hUe,wrapAll:()=>yUe,wrapInner:()=>mUe});function zee(e){return function(r,n,i,s){if(typeof Buffer<"u"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,n,i,s);let a=r;if(!Array.isArray(a)&&bs(a))return a;let o=new yi([]);return gu(a,o),o}}function gu(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let n=0;n<r.length;n++){let i=r[n];i.parent&&i.parent.children!==r&&Ja(i),t?(i.prev=r[n-1]||null,i.next=r[n+1]||null):i.prev=i.next=null,i.parent=t}return t}function cUe(e,t){return e==null?[]:bi(e)?t?Zx(e.get()):e.get():Array.isArray(e)?e.reduce((r,n)=>r.concat(this._makeDomArray(n,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?Zx([e]):[e]}function Vee(e){return function(...t){let r=this.length-1;return jt(this,(n,i)=>{if(!Dt(n))return;let s=typeof t[0]=="function"?t[0].call(n,i,this._render(n.children)):t,a=this._makeDomArray(s,i<r);e(a,n.children,n)})}}function yu(e,t,r,n,i){var s,a;let o=[t,r,...n],u=t===0?null:e[t-1],l=t+r>=e.length?null:e[t+r];for(let c=0;c<n.length;++c){let f=n[c],d=f.parent;if(d){let p=d.children.indexOf(f);p>-1&&(d.children.splice(p,1),i===d&&t>p&&o[0]--)}f.parent=i,f.prev&&(f.prev.next=(s=f.next)!==null&&s!==void 0?s:null),f.next&&(f.next.prev=(a=f.prev)!==null&&a!==void 0?a:null),f.prev=c===0?u:n[c-1],f.next=c===n.length-1?l:n[c+1]}return u&&(u.next=n[0]),l&&(l.prev=n[n.length-1]),e.splice(...o)}function lUe(e){return(bi(e)?e:this._make(e)).append(this),this}function fUe(e){return(bi(e)?e:this._make(e)).prepend(this),this}var dUe=Vee((e,t,r)=>{yu(t,t.length,0,e,r)}),pUe=Vee((e,t,r)=>{yu(t,0,0,e,r)});function Gee(e){return function(t){let r=this.length-1,n=this.parents().last();for(let i=0;i<this.length;i++){let s=this[i],a=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!Xh(t)?n.find(t).clone():t,[o]=this._makeDomArray(a,i<r);if(!o||!Dt(o))continue;let u=o,l=0;for(;l<u.children.length;){let c=u.children[l];we(c)?(u=c,l=0):l++}e(s,u,[o])}return this}}var hUe=Gee((e,t,r)=>{let{parent:n}=e;if(!n)return;let i=n.children,s=i.indexOf(e);gu([e],t),yu(i,s,0,r,n)}),mUe=Gee((e,t,r)=>{Dt(e)&&(gu(e.children,t),gu(r,e))});function gUe(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function yUe(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),n;for(let s=0;s<r.length;s++)r[s].type==="tag"&&(n=r[s]);let i=0;for(;n&&i<n.children.length;){let s=n.children[i];s.type==="tag"?(n=s,i=0):i++}n&&this._make(n).append(this)}return this}function bUe(...e){let t=this.length-1;return jt(this,(r,n)=>{let{parent:i}=r;if(!Dt(r)||!i)return;let s=i.children,a=s.indexOf(r);if(a<0)return;let o=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,u=this._makeDomArray(o,n<t);yu(s,a+1,0,u,i)})}function xUe(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(r=>{let n=this.clone().toArray(),{parent:i}=r;if(!i)return;let s=i.children,a=s.indexOf(r);a<0||(yu(s,a+1,0,n,i),t.push(...n))}),this._make(t)}function EUe(...e){let t=this.length-1;return jt(this,(r,n)=>{let{parent:i}=r;if(!Dt(r)||!i)return;let s=i.children,a=s.indexOf(r);if(a<0)return;let o=typeof e[0]=="function"?e[0].call(r,n,this._render(r.children)):e,u=this._makeDomArray(o,n<t);yu(s,a,0,u,i)})}function _Ue(e){let t=this._make(e);this.remove();let r=[];return jt(t,n=>{let i=this.clone().toArray(),{parent:s}=n;if(!s)return;let a=s.children,o=a.indexOf(n);o<0||(yu(a,o,0,i,s),r.push(...i))}),this._make(r)}function vUe(e){let t=e?this.filter(e):this;return jt(t,r=>{Ja(r),r.prev=r.next=r.parent=null}),this}function TUe(e){return jt(this,(t,r)=>{let{parent:n}=t;if(!n)return;let i=n.children,s=typeof e=="function"?e.call(t,r,t):e,a=this._makeDomArray(s);gu(a,null);let o=i.indexOf(t);yu(i,o,1,a,n),a.includes(t)||(t.parent=t.prev=t.next=null)})}function SUe(){return jt(this,e=>{Dt(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function wUe(e){if(e===void 0){let t=this[0];return!t||!Dt(t)?null:this._render(t.children)}return jt(this,t=>{if(!Dt(t))return;t.children.forEach(n=>{n.next=n.prev=n.parent=null});let r=bi(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;gu(r,t)})}function AUe(){return this._render(this)}function CUe(e){return e===void 0?pu(this):typeof e=="function"?jt(this,(t,r)=>this._make(t).text(e.call(t,r,pu([t])))):jt(this,t=>{if(!Dt(t))return;t.children.forEach(n=>{n.next=n.prev=n.parent=null});let r=new ra(`${e}`);gu(r,t)})}function IUe(){return this._make(Zx(this.get()))}var lN={};Is(lN,{css:()=>RUe});function RUe(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return jt(this,(r,n)=>{we(r)&&Wee(r,e,t,n)});if(this.length!==0)return Kee(this[0],e)}function Wee(e,t,r,n){if(typeof t=="string"){let i=Kee(e),s=typeof r=="function"?r.call(e,n,i[t]):r;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=NUe(i)}else typeof t=="object"&&Object.keys(t).forEach((i,s)=>{Wee(e,i,t[i],s)})}function Kee(e,t){if(!e||!we(e))return;let r=OUe(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let n={};return t.forEach(i=>{r[i]!=null&&(n[i]=r[i])}),n}return r}function NUe(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function OUe(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let n of e.split(";")){let i=n.indexOf(":");if(i<1||i===n.length-1){let s=n.trimEnd();s.length>0&&r!==void 0&&(t[r]+=`;${s}`)}else r=n.slice(0,i).trim(),t[r]=n.slice(i+1).trim()}return t}var fN={};Is(fN,{serialize:()=>DUe,serializeArray:()=>kUe});var Yee="input,select,textarea,keygen",PUe=/%20/g,Xee=/\r?\n/g;function DUe(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(PUe,"+")}function kUe(){return this.map((e,t)=>{let r=this._make(t);return we(t)&&t.name==="form"?r.find(Yee).toArray():r.filter(Yee).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let n=this._make(t),i=n.attr("name"),s=(r=n.val())!==null&&r!==void 0?r:"";return Array.isArray(s)?s.map(a=>({name:i,value:a.replace(Xee,`\r
`)})):{name:i,value:s.replace(Xee,`\r
`)}}).toArray()}var bu=class{constructor(t,r,n){if(this.length=0,this.options=n,this._root=r,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}};bu.prototype.cheerio="[cheerio object]";bu.prototype.splice=Array.prototype.splice;bu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(bu.prototype,BR,uN,cN,lN,fN);function Jee(e,t){return function r(n,i,s=!0){if(n==null)throw new Error("cheerio.load() expects a string");let a={...jh,...Uh(i)},o=e(n,a,s,null);class u extends bu{_make(f,d){let h=l(f,d);return h.prevObject=this,h}_parse(f,d,h,p){return e(f,d,h,p)}_render(f){return t(f,this.options)}}function l(c,f,d=o,h){if(c&&bi(c))return c;let p={...a,...Uh(h)},m=typeof d=="string"?[e(d,p,!1,null)]:"length"in d?d:[d],y=bi(m)?m:new u(m,null,p);if(y._root=y,!c)return new u(void 0,y,p);let g=typeof c=="string"&&Xh(c)?e(c,p,!1,null).children:$Ue(c)?[c]:Array.isArray(c)?c:void 0,v=new u(g,y,p);if(g)return v;if(typeof c!="string")throw new Error("Unexpected type of selector");let E=c,x=f?typeof f=="string"?Xh(f)?new u([e(f,p,!1,null)],y,p):(E=`${f} ${E}`,y):bi(f)?f:new u(Array.isArray(f)?f:[f],y,p):y;return x?x.find(E):v}return Object.assign(l,hu,{load:r,_root:o,_options:a,fn:u.prototype,prototype:u.prototype}),l}}function $Ue(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var LUe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Vt="\uFFFD",D;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(D||(D={}));var Bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function hE(e){return e>=55296&&e<=57343}function Qee(e){return e>=56320&&e<=57343}function Zee(e,t){return(e-55296)*1024+9216+t}function mE(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function gE(e){return e>=64976&&e<=65007||LUe.has(e)}var ie;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ie||(ie={}));var FUe=65536,yE=class{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=FUe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){let{line:n,col:i,offset:s}=this,a=i+r,o=s+r;return{code:t,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(Qee(r))return this.pos++,this._addGap(),Zee(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,D.EOF;return this._err(ie.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,D.EOF;let n=this.html.charCodeAt(r);return n===D.CARRIAGE_RETURN?D.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,D.EOF;let t=this.html.charCodeAt(this.pos);return t===D.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,D.LINE_FEED):t===D.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,hE(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===D.LINE_FEED||t===D.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){mE(t)?this._err(ie.controlCharacterInInputStream):gE(t)&&this._err(ie.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var ct;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ct||(ct={}));function bE(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var xE=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var dN,qUe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ete=(dN=String.fromCodePoint)!==null&&dN!==void 0?dN:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function pN(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=qUe.get(e))!==null&&t!==void 0?t:e}var Br;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Br||(Br={}));var UUe=32,xu;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(xu||(xu={}));function hN(e){return e>=Br.ZERO&&e<=Br.NINE}function HUe(e){return e>=Br.UPPER_A&&e<=Br.UPPER_F||e>=Br.LOWER_A&&e<=Br.LOWER_F}function zUe(e){return e>=Br.UPPER_A&&e<=Br.UPPER_Z||e>=Br.LOWER_A&&e<=Br.LOWER_Z||hN(e)}function VUe(e){return e===Br.EQUALS||zUe(e)}var Fr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Fr||(Fr={}));var ia;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ia||(ia={}));var EE=class{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Fr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ia.Strict}startEntity(t){this.decodeMode=t,this.state=Fr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Fr.EntityStart:return t.charCodeAt(r)===Br.NUM?(this.state=Fr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Fr.NamedEntity,this.stateNamedEntity(t,r));case Fr.NumericStart:return this.stateNumericStart(t,r);case Fr.NumericDecimal:return this.stateNumericDecimal(t,r);case Fr.NumericHex:return this.stateNumericHex(t,r);case Fr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|UUe)===Br.LOWER_X?(this.state=Fr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Fr.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){let s=n-r;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(r,s),i),this.consumed+=s}}stateNumericHex(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(hN(i)||HUe(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){let n=r;for(;r<t.length;){let i=t.charCodeAt(r);if(hN(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Br.SEMI)this.consumed+=1;else if(this.decodeMode===ia.Strict)return 0;return this.emitCodePoint(pN(this.result),this.consumed),this.errors&&(t!==Br.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:n}=this,i=n[this.treeIndex],s=(i&xu.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let a=t.charCodeAt(r);if(this.treeIndex=GUe(n,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===ia.Attribute&&(s===0||VUe(a))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],s=(i&xu.VALUE_LENGTH)>>14,s!==0){if(a===Br.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==ia.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:n}=this,i=(n[r]&xu.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){let{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~xu.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case Fr.NamedEntity:return this.result!==0&&(this.decodeMode!==ia.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fr.NumericDecimal:return this.emitNumericEntity(0,2);case Fr.NumericHex:return this.emitNumericEntity(0,3);case Fr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fr.EntityStart:return 0}}};function GUe(e,t,r,n){let i=(t&xu.BRANCH_LENGTH)>>7,s=t&xu.JUMP_TABLE;if(i===0)return s!==0&&n===s?r:-1;if(s){let u=n-s;return u<0||u>=i?-1:e[r+u]-1}let a=r,o=a+i-1;for(;a<=o;){let u=a+o>>>1,l=e[u];if(l<n)a=u+1;else if(l>n)o=u-1;else return e[u+i]}return-1}var _E={};Is(_E,{ATTRS:()=>sa,DOCUMENT_MODE:()=>xn,NS:()=>ae,NUMBERED_HEADERS:()=>Ed,SPECIAL_ELEMENTS:()=>mN,TAG_ID:()=>b,TAG_NAMES:()=>Q,getTagID:()=>Eu,hasUnescapedText:()=>gN});var ae;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ae||(ae={}));var sa;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(sa||(sa={}));var xn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(xn||(xn={}));var Q;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Q||(Q={}));var b;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(b||(b={}));var WUe=new Map([[Q.A,b.A],[Q.ADDRESS,b.ADDRESS],[Q.ANNOTATION_XML,b.ANNOTATION_XML],[Q.APPLET,b.APPLET],[Q.AREA,b.AREA],[Q.ARTICLE,b.ARTICLE],[Q.ASIDE,b.ASIDE],[Q.B,b.B],[Q.BASE,b.BASE],[Q.BASEFONT,b.BASEFONT],[Q.BGSOUND,b.BGSOUND],[Q.BIG,b.BIG],[Q.BLOCKQUOTE,b.BLOCKQUOTE],[Q.BODY,b.BODY],[Q.BR,b.BR],[Q.BUTTON,b.BUTTON],[Q.CAPTION,b.CAPTION],[Q.CENTER,b.CENTER],[Q.CODE,b.CODE],[Q.COL,b.COL],[Q.COLGROUP,b.COLGROUP],[Q.DD,b.DD],[Q.DESC,b.DESC],[Q.DETAILS,b.DETAILS],[Q.DIALOG,b.DIALOG],[Q.DIR,b.DIR],[Q.DIV,b.DIV],[Q.DL,b.DL],[Q.DT,b.DT],[Q.EM,b.EM],[Q.EMBED,b.EMBED],[Q.FIELDSET,b.FIELDSET],[Q.FIGCAPTION,b.FIGCAPTION],[Q.FIGURE,b.FIGURE],[Q.FONT,b.FONT],[Q.FOOTER,b.FOOTER],[Q.FOREIGN_OBJECT,b.FOREIGN_OBJECT],[Q.FORM,b.FORM],[Q.FRAME,b.FRAME],[Q.FRAMESET,b.FRAMESET],[Q.H1,b.H1],[Q.H2,b.H2],[Q.H3,b.H3],[Q.H4,b.H4],[Q.H5,b.H5],[Q.H6,b.H6],[Q.HEAD,b.HEAD],[Q.HEADER,b.HEADER],[Q.HGROUP,b.HGROUP],[Q.HR,b.HR],[Q.HTML,b.HTML],[Q.I,b.I],[Q.IMG,b.IMG],[Q.IMAGE,b.IMAGE],[Q.INPUT,b.INPUT],[Q.IFRAME,b.IFRAME],[Q.KEYGEN,b.KEYGEN],[Q.LABEL,b.LABEL],[Q.LI,b.LI],[Q.LINK,b.LINK],[Q.LISTING,b.LISTING],[Q.MAIN,b.MAIN],[Q.MALIGNMARK,b.MALIGNMARK],[Q.MARQUEE,b.MARQUEE],[Q.MATH,b.MATH],[Q.MENU,b.MENU],[Q.META,b.META],[Q.MGLYPH,b.MGLYPH],[Q.MI,b.MI],[Q.MO,b.MO],[Q.MN,b.MN],[Q.MS,b.MS],[Q.MTEXT,b.MTEXT],[Q.NAV,b.NAV],[Q.NOBR,b.NOBR],[Q.NOFRAMES,b.NOFRAMES],[Q.NOEMBED,b.NOEMBED],[Q.NOSCRIPT,b.NOSCRIPT],[Q.OBJECT,b.OBJECT],[Q.OL,b.OL],[Q.OPTGROUP,b.OPTGROUP],[Q.OPTION,b.OPTION],[Q.P,b.P],[Q.PARAM,b.PARAM],[Q.PLAINTEXT,b.PLAINTEXT],[Q.PRE,b.PRE],[Q.RB,b.RB],[Q.RP,b.RP],[Q.RT,b.RT],[Q.RTC,b.RTC],[Q.RUBY,b.RUBY],[Q.S,b.S],[Q.SCRIPT,b.SCRIPT],[Q.SEARCH,b.SEARCH],[Q.SECTION,b.SECTION],[Q.SELECT,b.SELECT],[Q.SOURCE,b.SOURCE],[Q.SMALL,b.SMALL],[Q.SPAN,b.SPAN],[Q.STRIKE,b.STRIKE],[Q.STRONG,b.STRONG],[Q.STYLE,b.STYLE],[Q.SUB,b.SUB],[Q.SUMMARY,b.SUMMARY],[Q.SUP,b.SUP],[Q.TABLE,b.TABLE],[Q.TBODY,b.TBODY],[Q.TEMPLATE,b.TEMPLATE],[Q.TEXTAREA,b.TEXTAREA],[Q.TFOOT,b.TFOOT],[Q.TD,b.TD],[Q.TH,b.TH],[Q.THEAD,b.THEAD],[Q.TITLE,b.TITLE],[Q.TR,b.TR],[Q.TRACK,b.TRACK],[Q.TT,b.TT],[Q.U,b.U],[Q.UL,b.UL],[Q.SVG,b.SVG],[Q.VAR,b.VAR],[Q.WBR,b.WBR],[Q.XMP,b.XMP]]);function Eu(e){var t;return(t=WUe.get(e))!==null&&t!==void 0?t:b.UNKNOWN}var ce=b,mN={[ae.HTML]:new Set([ce.ADDRESS,ce.APPLET,ce.AREA,ce.ARTICLE,ce.ASIDE,ce.BASE,ce.BASEFONT,ce.BGSOUND,ce.BLOCKQUOTE,ce.BODY,ce.BR,ce.BUTTON,ce.CAPTION,ce.CENTER,ce.COL,ce.COLGROUP,ce.DD,ce.DETAILS,ce.DIR,ce.DIV,ce.DL,ce.DT,ce.EMBED,ce.FIELDSET,ce.FIGCAPTION,ce.FIGURE,ce.FOOTER,ce.FORM,ce.FRAME,ce.FRAMESET,ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6,ce.HEAD,ce.HEADER,ce.HGROUP,ce.HR,ce.HTML,ce.IFRAME,ce.IMG,ce.INPUT,ce.LI,ce.LINK,ce.LISTING,ce.MAIN,ce.MARQUEE,ce.MENU,ce.META,ce.NAV,ce.NOEMBED,ce.NOFRAMES,ce.NOSCRIPT,ce.OBJECT,ce.OL,ce.P,ce.PARAM,ce.PLAINTEXT,ce.PRE,ce.SCRIPT,ce.SECTION,ce.SELECT,ce.SOURCE,ce.STYLE,ce.SUMMARY,ce.TABLE,ce.TBODY,ce.TD,ce.TEMPLATE,ce.TEXTAREA,ce.TFOOT,ce.TH,ce.THEAD,ce.TITLE,ce.TR,ce.TRACK,ce.UL,ce.WBR,ce.XMP]),[ae.MATHML]:new Set([ce.MI,ce.MO,ce.MN,ce.MS,ce.MTEXT,ce.ANNOTATION_XML]),[ae.SVG]:new Set([ce.TITLE,ce.FOREIGN_OBJECT,ce.DESC]),[ae.XLINK]:new Set,[ae.XML]:new Set,[ae.XMLNS]:new Set},Ed=new Set([ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6]),KUe=new Set([Q.STYLE,Q.SCRIPT,Q.XMP,Q.IFRAME,Q.NOEMBED,Q.NOFRAMES,Q.PLAINTEXT]);function gN(e,t){return KUe.has(e)||t&&e===Q.NOSCRIPT}var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(F||(F={}));var En={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function YUe(e){return e>=D.DIGIT_0&&e<=D.DIGIT_9}function im(e){return e>=D.LATIN_CAPITAL_A&&e<=D.LATIN_CAPITAL_Z}function XUe(e){return e>=D.LATIN_SMALL_A&&e<=D.LATIN_SMALL_Z}function _u(e){return XUe(e)||im(e)}function tte(e){return _u(e)||YUe(e)}function vE(e){return e+32}function nte(e){return e===D.SPACE||e===D.LINE_FEED||e===D.TABULATION||e===D.FORM_FEED}function rte(e){return nte(e)||e===D.SOLIDUS||e===D.GREATER_THAN_SIGN}function JUe(e){return e===D.NULL?ie.nullCharacterReference:e>1114111?ie.characterReferenceOutsideUnicodeRange:hE(e)?ie.surrogateCharacterReference:gE(e)?ie.noncharacterCharacterReference:mE(e)||e===D.CARRIAGE_RETURN?ie.controlCharacterReference:null}var sm=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new yE(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EE(xE,(n,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ie.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(ie.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{let i=JUe(n);i&&this._err(i,1)}}:void 0)}_err(t,r=0){var n,i;(i=(n=this.handler).onParseError)===null||i===void 0||i.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ct.START_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ct.END_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ct.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ct.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let n=this.currentToken;if(bE(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){let i=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ie.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let t=this.currentToken;this.prepareToken(t),t.tagID=Eu(t.tagName),t.type===ct.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ie.endTagWithAttributes),t.selfClosing&&this._err(ie.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ct.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ct.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ct.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ct.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){let r=nte(t)?ct.WHITESPACE_CHARACTER:t===D.NULL?ct.NULL_CHARACTER:ct.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ct.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ia.Attribute:ia.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case D.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitCodePoint(t);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case D.AMPERSAND:{this._startCharacterReference();break}case D.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case D.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_u(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case D.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case D.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case D.QUESTION_MARK:{this._err(ie.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case D.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_u(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case D.GREATER_THAN_SIGN:{this._err(ie.missingEndTagName),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case D.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.tagName+=Vt;break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(im(t)?vE(t):t)}}_stateRcdataLessThanSign(t){t===D.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_u(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case D.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case D.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===D.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_u(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case D.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case D.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_u(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===D.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===D.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case D.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case D.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case D.HYPHEN_MINUS:{this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case D.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===D.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_u(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_u(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&rte(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case D.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case D.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case D.HYPHEN_MINUS:{this._emitChars("-");break}case D.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case D.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Vt);break}case D.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===D.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Bn.SCRIPT,!1)&&rte(this.preprocessor.peek(Bn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Bn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.SOLIDUS:case D.GREATER_THAN_SIGN:case D.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case D.EQUALS_SIGN:{this._err(ie.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:case D.SOLIDUS:case D.GREATER_THAN_SIGN:case D.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case D.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case D.QUOTATION_MARK:case D.APOSTROPHE:case D.LESS_THAN_SIGN:{this._err(ie.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.name+=Vt;break}default:this.currentAttr.name+=String.fromCodePoint(im(t)?vE(t):t)}}_stateAfterAttributeName(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case D.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case D.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=Vt;break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case D.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=Vt;break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case D.AMPERSAND:{this._startCharacterReference();break}case D.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=Vt;break}case D.QUOTATION_MARK:case D.APOSTROPHE:case D.LESS_THAN_SIGN:case D.EQUALS_SIGN:case D.GRAVE_ACCENT:{this._err(ie.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case D.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case D.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case D.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case D.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(r);break}case D.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.data+=Vt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Bn.DASH_DASH,!0)?(this._createCommentToken(Bn.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch(Bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Bn.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch(Bn.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(ie.cdataInHtmlContent),this._createCommentToken(Bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ie.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case D.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=F.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(r);break}case D.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case D.LESS_THAN_SIGN:{r.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.data+=Vt;break}case D.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case D.EXCLAMATION_MARK:{r.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case D.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===D.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===D.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==D.GREATER_THAN_SIGN&&t!==D.EOF&&this._err(ie.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case D.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case D.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(r);break}case D.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case D.HYPHEN_MINUS:{r.data+="-";break}case D.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case D.HYPHEN_MINUS:{r.data+="--!",this.state=F.COMMENT_END_DASH;break}case D.GREATER_THAN_SIGN:{this._err(ie.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(r);break}case D.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=F.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case D.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(im(t))this._createDoctypeToken(String.fromCharCode(vE(t))),this.state=F.DOCTYPE_NAME;else switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.NULL:{this._err(ie.unexpectedNullCharacter),this._createDoctypeToken(Vt),this.state=F.DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.name+=Vt;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(im(t)?vE(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Bn.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Bn.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ie.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{r.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{r.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case D.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.publicId+=Vt;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case D.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.publicId+=Vt;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case D.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.QUOTATION_MARK:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.QUOTATION_MARK:{r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.QUOTATION_MARK:{r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case D.APOSTROPHE:{r.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case D.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(r);break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case D.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.systemId+=Vt;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case D.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case D.NULL:{this._err(ie.unexpectedNullCharacter),r.systemId+=Vt;break}case D.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case D.SPACE:case D.LINE_FEED:case D.TABULATION:case D.FORM_FEED:break;case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.EOF:{this._err(ie.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ie.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case D.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=F.DATA;break}case D.NULL:{this._err(ie.unexpectedNullCharacter);break}case D.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case D.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case D.EOF:{this._err(ie.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===D.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case D.GREATER_THAN_SIGN:{this.state=F.DATA;break}case D.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(D.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&tte(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){tte(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===D.SEMICOLON&&this._err(ie.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};var ote=new Set([b.DD,b.DT,b.LI,b.OPTGROUP,b.OPTION,b.P,b.RB,b.RP,b.RT,b.RTC]),ite=new Set([...ote,b.CAPTION,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]),TE=new Set([b.APPLET,b.CAPTION,b.HTML,b.MARQUEE,b.OBJECT,b.TABLE,b.TD,b.TEMPLATE,b.TH]),QUe=new Set([...TE,b.OL,b.UL]),ZUe=new Set([...TE,b.BUTTON]),ste=new Set([b.ANNOTATION_XML,b.MI,b.MN,b.MO,b.MS,b.MTEXT]),ate=new Set([b.DESC,b.FOREIGN_OBJECT,b.TITLE]),eHe=new Set([b.TR,b.TEMPLATE,b.HTML]),tHe=new Set([b.TBODY,b.TFOOT,b.THEAD,b.TEMPLATE,b.HTML]),rHe=new Set([b.TABLE,b.TEMPLATE,b.HTML]),nHe=new Set([b.TD,b.TH]),SE=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=b.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===b.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ae.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){let i=this._indexOf(t)+1;this.items.splice(i,0,r),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ae.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ed,ae.HTML)}popUntilTableCellPopped(){this.popUntilPopped(nHe,ae.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){let n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(rHe,ae.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tHe,ae.HTML)}clearBackToTableRowContext(){this.clearBackTo(eHe,ae.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===b.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===b.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){let i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ae.HTML:{if(i===t)return!0;if(r.has(i))return!1;break}case ae.SVG:{if(ate.has(i))return!1;break}case ae.MATHML:{if(ste.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,TE)}hasInListItemScope(t){return this.hasInDynamicScope(t,QUe)}hasInButtonScope(t){return this.hasInDynamicScope(t,ZUe)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ae.HTML:{if(Ed.has(r))return!0;if(TE.has(r))return!1;break}case ae.SVG:{if(ate.has(r))return!1;break}case ae.MATHML:{if(ste.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ae.HTML)switch(this.tagIDs[t]){case b.TBODY:case b.THEAD:case b.TFOOT:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ae.HTML)switch(this.tagIDs[r]){case t:return!0;case b.OPTION:case b.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ote.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ite.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ite.has(this.currentTagId);)this.pop()}};var Es;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Es||(Es={}));var ute={type:Es.Marker},wE=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let n=[],i=r.length,s=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){let u=this.entries[o];if(u.type===Es.Marker)break;let{element:l}=u;if(this.treeAdapter.getTagName(l)===s&&this.treeAdapter.getNamespaceURI(l)===a){let c=this.treeAdapter.getAttrList(l);c.length===i&&n.push({idx:o,attrs:c})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<3)return;let i=new Map(r.map(a=>[a.name,a.value])),s=0;for(let a=0;a<n.length;a++){let o=n[a];o.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=3&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(ute)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Es.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Es.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(ute);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){let r=this.entries.find(n=>n.type===Es.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Es.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Es.Element&&r.element===t)}};var Wi={createDocument(){return{nodeName:"#document",mode:xn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){let i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=r,i.systemId=n;else{let s={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};Wi.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(Wi.isTextNode(r)){r.value+=t;return}}Wi.appendChild(e,Wi.createTextNode(t))},insertTextBefore(e,t,r){let n=e.childNodes[e.childNodes.indexOf(r)-1];n&&Wi.isTextNode(n)?n.value+=t:Wi.insertBefore(e,Wi.createTextNode(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};var lte="html",iHe="about:legacy-compat",sHe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",fte=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],aHe=[...fte,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],oHe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),dte=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],uHe=[...dte,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function cte(e,t){return t.some(r=>e.startsWith(r))}function pte(e){return e.name===lte&&e.publicId===null&&(e.systemId===null||e.systemId===iHe)}function hte(e){if(e.name!==lte)return xn.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===sHe)return xn.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),oHe.has(r))return xn.QUIRKS;let n=t===null?aHe:fte;if(cte(r,n))return xn.QUIRKS;if(n=t===null?dte:uHe,cte(r,n))return xn.LIMITED_QUIRKS}return xn.NO_QUIRKS}var mte={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},lHe="definitionurl",fHe="definitionURL",dHe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),pHe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ae.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ae.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ae.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ae.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ae.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ae.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ae.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ae.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ae.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ae.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ae.XMLNS}]]),hHe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),mHe=new Set([b.B,b.BIG,b.BLOCKQUOTE,b.BODY,b.BR,b.CENTER,b.CODE,b.DD,b.DIV,b.DL,b.DT,b.EM,b.EMBED,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HR,b.I,b.IMG,b.LI,b.LISTING,b.MENU,b.META,b.NOBR,b.OL,b.P,b.PRE,b.RUBY,b.S,b.SMALL,b.SPAN,b.STRONG,b.STRIKE,b.SUB,b.SUP,b.TABLE,b.TT,b.U,b.UL,b.VAR]);function gte(e){let t=e.tagID;return t===b.FONT&&e.attrs.some(({name:n})=>n===sa.COLOR||n===sa.SIZE||n===sa.FACE)||mHe.has(t)}function yN(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===lHe){e.attrs[t].name=fHe;break}}function bN(e){for(let t=0;t<e.attrs.length;t++){let r=dHe.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function AE(e){for(let t=0;t<e.attrs.length;t++){let r=pHe.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function yte(e){let t=hHe.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Eu(e.tagName))}function gHe(e,t){return t===ae.MATHML&&(e===b.MI||e===b.MO||e===b.MN||e===b.MS||e===b.MTEXT)}function yHe(e,t,r){if(t===ae.MATHML&&e===b.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===sa.ENCODING){let i=r[n].value.toLowerCase();return i===mte.TEXT_HTML||i===mte.APPLICATION_XML}}return t===ae.SVG&&(e===b.FOREIGN_OBJECT||e===b.DESC||e===b.TITLE)}function bte(e,t,r,n){return(!n||n===ae.HTML)&&yHe(e,t,r)||(!n||n===ae.MATHML)&&gHe(e,t)}var bHe="hidden",xHe=8,EHe=3,U;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(U||(U={}));var _He={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Tte=new Set([b.TABLE,b.TBODY,b.TFOOT,b.THEAD,b.TR]),Ete={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wi,onParseError:null},_d=class{constructor(t,r,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ete,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new sm(this.options,this),this.activeFormattingElements=new wE(this.treeAdapter),this.fragmentContextID=n?Eu(this.treeAdapter.getTagName(n)):b.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new SE(this.document,this.treeAdapter,this)}static parse(t,r){let n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){let n={...Ete,...r};t??(t=n.treeAdapter.createElement(Q.TEMPLATE,ae.HTML,[]));let i=n.treeAdapter.createElement("documentmock",ae.HTML,[]),s=new this(n,i,t);return s.fragmentContextID===b.TEMPLATE&&s.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var i;if(!this.onParseError)return;let s=(i=t.location)!==null&&i!==void 0?i:_He,a={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(t,r,n){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(n=this.treeAdapter).onItemPop)===null||i===void 0||i.call(n,t,this.openElements.current),r){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(t,r){let n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ae.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ae.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=En.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ae.HTML))switch(this.fragmentContextID){case b.TITLE:case b.TEXTAREA:{this.tokenizer.state=En.RCDATA;break}case b.STYLE:case b.XMP:case b.IFRAME:case b.NOEMBED:case b.NOFRAMES:case b.NOSCRIPT:{this.tokenizer.state=En.RAWTEXT;break}case b.SCRIPT:{this.tokenizer.state=En.SCRIPT_DATA;break}case b.PLAINTEXT:{this.tokenizer.state=En.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",n=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,i),t.location){let a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){let n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){let n=this.treeAdapter.createElement(t,ae.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,ae.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(Q.HTML,ae.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,b.HTML)}_appendCommentNode(t,r){let n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let i=this.treeAdapter.getChildNodes(r),s=n?i.lastIndexOf(n):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let n=r.location,i=this.treeAdapter.getTagName(t),s=r.type===ct.END_TAG&&i===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===b.SVG&&this.treeAdapter.getTagName(r)===Q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ae.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===b.MGLYPH||t.tagID===b.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,ae.HTML)}_processToken(t){switch(t.type){case ct.CHARACTER:{this.onCharacter(t);break}case ct.NULL_CHARACTER:{this.onNullCharacter(t);break}case ct.COMMENT:{this.onComment(t);break}case ct.DOCTYPE:{this.onDoctype(t);break}case ct.START_TAG:{this._processStartTag(t);break}case ct.END_TAG:{this.onEndTag(t);break}case ct.EOF:{this.onEof(t);break}case ct.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){let i=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return bte(t,i,s,n)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(i=>i.type===Es.Marker||this.openElements.contains(i.element)),n=r===-1?t-1:r-1;for(let i=n;i>=0;i--){let s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(b.P),this.openElements.popUntilTagNamePopped(b.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case b.TR:{this.insertionMode=U.IN_ROW;return}case b.TBODY:case b.THEAD:case b.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case b.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case b.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case b.TABLE:{this.insertionMode=U.IN_TABLE;return}case b.BODY:{this.insertionMode=U.IN_BODY;return}case b.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case b.SELECT:{this._resetInsertionModeForSelect(t);return}case b.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case b.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case b.TD:case b.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case b.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let n=this.openElements.tagIDs[r];if(n===b.TEMPLATE)break;if(n===b.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return Tte.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case b.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ae.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case b.TABLE:{let n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let n=this.treeAdapter.getNamespaceURI(t);return mN[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jze(this,t);return}switch(this.insertionMode){case U.INITIAL:{am(this,t);break}case U.BEFORE_HTML:{um(this,t);break}case U.BEFORE_HEAD:{cm(this,t);break}case U.IN_HEAD:{lm(this,t);break}case U.IN_HEAD_NO_SCRIPT:{fm(this,t);break}case U.AFTER_HEAD:{dm(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{wte(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{xN(this,t);break}case U.IN_TABLE_TEXT:{Ote(this,t);break}case U.IN_COLUMN_GROUP:{IE(this,t);break}case U.AFTER_BODY:{RE(this,t);break}case U.AFTER_AFTER_BODY:{CE(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Xze(this,t);return}switch(this.insertionMode){case U.INITIAL:{am(this,t);break}case U.BEFORE_HTML:{um(this,t);break}case U.BEFORE_HEAD:{cm(this,t);break}case U.IN_HEAD:{lm(this,t);break}case U.IN_HEAD_NO_SCRIPT:{fm(this,t);break}case U.AFTER_HEAD:{dm(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{xN(this,t);break}case U.IN_COLUMN_GROUP:{IE(this,t);break}case U.AFTER_BODY:{RE(this,t);break}case U.AFTER_AFTER_BODY:{CE(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){EN(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{EN(this,t);break}case U.IN_TABLE_TEXT:{om(this,t);break}case U.AFTER_BODY:{IHe(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{RHe(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{NHe(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ie.misplacedDoctype);break}case U.IN_TABLE_TEXT:{om(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ie.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Qze(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{am(this,t);break}case U.BEFORE_HTML:{OHe(this,t);break}case U.BEFORE_HEAD:{DHe(this,t);break}case U.IN_HEAD:{_s(this,t);break}case U.IN_HEAD_NO_SCRIPT:{LHe(this,t);break}case U.AFTER_HEAD:{FHe(this,t);break}case U.IN_BODY:{_n(this,t);break}case U.IN_TABLE:{vd(this,t);break}case U.IN_TABLE_TEXT:{om(this,t);break}case U.IN_CAPTION:{kze(this,t);break}case U.IN_COLUMN_GROUP:{SN(this,t);break}case U.IN_TABLE_BODY:{PE(this,t);break}case U.IN_ROW:{DE(this,t);break}case U.IN_CELL:{Mze(this,t);break}case U.IN_SELECT:{kte(this,t);break}case U.IN_SELECT_IN_TABLE:{Bze(this,t);break}case U.IN_TEMPLATE:{jze(this,t);break}case U.AFTER_BODY:{Hze(this,t);break}case U.IN_FRAMESET:{zze(this,t);break}case U.AFTER_FRAMESET:{Gze(this,t);break}case U.AFTER_AFTER_BODY:{Kze(this,t);break}case U.AFTER_AFTER_FRAMESET:{Yze(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Zze(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{am(this,t);break}case U.BEFORE_HTML:{PHe(this,t);break}case U.BEFORE_HEAD:{kHe(this,t);break}case U.IN_HEAD:{$He(this,t);break}case U.IN_HEAD_NO_SCRIPT:{MHe(this,t);break}case U.AFTER_HEAD:{BHe(this,t);break}case U.IN_BODY:{OE(this,t);break}case U.TEXT:{Sze(this,t);break}case U.IN_TABLE:{pm(this,t);break}case U.IN_TABLE_TEXT:{om(this,t);break}case U.IN_CAPTION:{$ze(this,t);break}case U.IN_COLUMN_GROUP:{Lze(this,t);break}case U.IN_TABLE_BODY:{_N(this,t);break}case U.IN_ROW:{Dte(this,t);break}case U.IN_CELL:{Fze(this,t);break}case U.IN_SELECT:{$te(this,t);break}case U.IN_SELECT_IN_TABLE:{qze(this,t);break}case U.IN_TEMPLATE:{Uze(this,t);break}case U.AFTER_BODY:{Mte(this,t);break}case U.IN_FRAMESET:{Vze(this,t);break}case U.AFTER_FRAMESET:{Wze(this,t);break}case U.AFTER_AFTER_BODY:{CE(this,t);break}default:}}onEof(t){switch(this.insertionMode){case U.INITIAL:{am(this,t);break}case U.BEFORE_HTML:{um(this,t);break}case U.BEFORE_HEAD:{cm(this,t);break}case U.IN_HEAD:{lm(this,t);break}case U.IN_HEAD_NO_SCRIPT:{fm(this,t);break}case U.AFTER_HEAD:{dm(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{Rte(this,t);break}case U.TEXT:{wze(this,t);break}case U.IN_TABLE_TEXT:{om(this,t);break}case U.IN_TEMPLATE:{Lte(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{TN(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===D.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Ste(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{xN(this,t);break}case U.IN_TABLE_TEXT:{Nte(this,t);break}default:}}};function vHe(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Ite(e,t),r}function THe(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){let i=e.openElements.items[n];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[n])&&(r=i)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function SHe(e,t,r){let n=t,i=e.openElements.getCommonAncestor(t);for(let s=0,a=i;a!==r;s++,a=i){i=e.openElements.getCommonAncestor(a);let o=e.activeFormattingElements.getElementEntry(a),u=o&&s>=EHe;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=wHe(e,o),n===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(a,n),n=a)}return n}function wHe(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function AHe(e,t,r){let n=e.treeAdapter.getTagName(t),i=Eu(n);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(r);else{let s=e.treeAdapter.getNamespaceURI(t);i===b.TEMPLATE&&s===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function CHe(e,t,r){let n=e.treeAdapter.getNamespaceURI(r.element),{token:i}=r,s=e.treeAdapter.createElement(i.tagName,n,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,i.tagID)}function vN(e,t){for(let r=0;r<xHe;r++){let n=vHe(e,t);if(!n)break;let i=THe(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let s=SHe(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),a&&AHe(e,a,s),CHe(e,i,n)}}function EN(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function IHe(e,t){e._appendCommentNode(t,e.openElements.items[0])}function RHe(e,t){e._appendCommentNode(t,e.document)}function TN(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let s=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&e._setEndLocation(s,t)}}}}function NHe(e,t){e._setDocumentType(t);let r=t.forceQuirks?xn.QUIRKS:hte(t);pte(t)||e._err(t,ie.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function am(e,t){e._err(t,ie.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,xn.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function OHe(e,t){t.tagID===b.HTML?(e._insertElement(t,ae.HTML),e.insertionMode=U.BEFORE_HEAD):um(e,t)}function PHe(e,t){let r=t.tagID;(r===b.HTML||r===b.HEAD||r===b.BODY||r===b.BR)&&um(e,t)}function um(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function DHe(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.HEAD:{e._insertElement(t,ae.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:cm(e,t)}}function kHe(e,t){let r=t.tagID;r===b.HEAD||r===b.BODY||r===b.HTML||r===b.BR?cm(e,t):e._err(t,ie.endTagWithoutMatchingOpenElement)}function cm(e,t){e._insertFakeElement(Q.HEAD,b.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function _s(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case b.TITLE:{e._switchToTextParsing(t,En.RCDATA);break}case b.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,En.RAWTEXT):(e._insertElement(t,ae.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case b.NOFRAMES:case b.STYLE:{e._switchToTextParsing(t,En.RAWTEXT);break}case b.SCRIPT:{e._switchToTextParsing(t,En.SCRIPT_DATA);break}case b.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case b.HEAD:{e._err(t,ie.misplacedStartTagForHeadElement);break}default:lm(e,t)}}function $He(e,t){switch(t.tagID){case b.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case b.BODY:case b.BR:case b.HTML:{lm(e,t);break}case b.TEMPLATE:{Qc(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function Qc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==b.TEMPLATE&&e._err(t,ie.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ie.endTagWithoutMatchingOpenElement)}function lm(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function LHe(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.BASEFONT:case b.BGSOUND:case b.HEAD:case b.LINK:case b.META:case b.NOFRAMES:case b.STYLE:{_s(e,t);break}case b.NOSCRIPT:{e._err(t,ie.nestedNoscriptInHead);break}default:fm(e,t)}}function MHe(e,t){switch(t.tagID){case b.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case b.BR:{fm(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function fm(e,t){let r=t.type===ct.EOF?ie.openElementsLeftAfterEof:ie.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function FHe(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.BODY:{e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case b.FRAMESET:{e._insertElement(t,ae.HTML),e.insertionMode=U.IN_FRAMESET;break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{e._err(t,ie.abandonedHeadElementChild),e.openElements.push(e.headElement,b.HEAD),_s(e,t),e.openElements.remove(e.headElement);break}case b.HEAD:{e._err(t,ie.misplacedStartTagForHeadElement);break}default:dm(e,t)}}function BHe(e,t){switch(t.tagID){case b.BODY:case b.HTML:case b.BR:{dm(e,t);break}case b.TEMPLATE:{Qc(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function dm(e,t){e._insertFakeElement(Q.BODY,b.BODY),e.insertionMode=U.IN_BODY,NE(e,t)}function NE(e,t){switch(t.type){case ct.CHARACTER:{wte(e,t);break}case ct.WHITESPACE_CHARACTER:{Ste(e,t);break}case ct.COMMENT:{EN(e,t);break}case ct.START_TAG:{_n(e,t);break}case ct.END_TAG:{OE(e,t);break}case ct.EOF:{Rte(e,t);break}default:}}function Ste(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function wte(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function qHe(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function jHe(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function UHe(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_FRAMESET)}function HHe(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function zHe(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ed.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function VHe(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function GHe(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML),r||(e.formElement=e.openElements.current))}function WHe(e,t){e.framesetOk=!1;let r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){let i=e.openElements.tagIDs[n];if(r===b.LI&&i===b.LI||(r===b.DD||r===b.DT)&&(i===b.DD||i===b.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==b.ADDRESS&&i!==b.DIV&&i!==b.P&&e._isSpecialElement(e.openElements.items[n],i))break}e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function KHe(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=En.PLAINTEXT}function YHe(e,t){e.openElements.hasInScope(b.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function XHe(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Q.A);r&&(vN(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JHe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function QHe(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(b.NOBR)&&(vN(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ZHe(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eze(e,t){e.treeAdapter.getDocumentMode(e.document)!==xn.QUIRKS&&e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function Ate(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Cte(e){let t=bE(e,sa.TYPE);return t!=null&&t.toLowerCase()===bHe}function tze(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),Cte(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function rze(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function nze(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ize(e,t){t.tagName=Q.IMG,t.tagID=b.IMG,Ate(e,t)}function sze(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=En.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function aze(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,En.RAWTEXT)}function oze(e,t){e.framesetOk=!1,e._switchToTextParsing(t,En.RAWTEXT)}function _te(e,t){e._switchToTextParsing(t,En.RAWTEXT)}function uze(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function cze(e,t){e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function lze(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function fze(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(b.RTC),e._insertElement(t,ae.HTML)}function dze(e,t){e._reconstructActiveFormattingElements(),yN(t),AE(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function pze(e,t){e._reconstructActiveFormattingElements(),bN(t),AE(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function vte(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function _n(e,t){switch(t.tagID){case b.I:case b.S:case b.B:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.SMALL:case b.STRIKE:case b.STRONG:{JHe(e,t);break}case b.A:{XHe(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{zHe(e,t);break}case b.P:case b.DL:case b.OL:case b.UL:case b.DIV:case b.DIR:case b.NAV:case b.MAIN:case b.MENU:case b.ASIDE:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.DETAILS:case b.ADDRESS:case b.ARTICLE:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{HHe(e,t);break}case b.LI:case b.DD:case b.DT:{WHe(e,t);break}case b.BR:case b.IMG:case b.WBR:case b.AREA:case b.EMBED:case b.KEYGEN:{Ate(e,t);break}case b.HR:{nze(e,t);break}case b.RB:case b.RTC:{lze(e,t);break}case b.RT:case b.RP:{fze(e,t);break}case b.PRE:case b.LISTING:{VHe(e,t);break}case b.XMP:{aze(e,t);break}case b.SVG:{pze(e,t);break}case b.HTML:{qHe(e,t);break}case b.BASE:case b.LINK:case b.META:case b.STYLE:case b.TITLE:case b.SCRIPT:case b.BGSOUND:case b.BASEFONT:case b.TEMPLATE:{_s(e,t);break}case b.BODY:{jHe(e,t);break}case b.FORM:{GHe(e,t);break}case b.NOBR:{QHe(e,t);break}case b.MATH:{dze(e,t);break}case b.TABLE:{eze(e,t);break}case b.INPUT:{tze(e,t);break}case b.PARAM:case b.TRACK:case b.SOURCE:{rze(e,t);break}case b.IMAGE:{ize(e,t);break}case b.BUTTON:{YHe(e,t);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{ZHe(e,t);break}case b.IFRAME:{oze(e,t);break}case b.SELECT:{uze(e,t);break}case b.OPTION:case b.OPTGROUP:{cze(e,t);break}case b.NOEMBED:case b.NOFRAMES:{_te(e,t);break}case b.FRAMESET:{UHe(e,t);break}case b.TEXTAREA:{sze(e,t);break}case b.NOSCRIPT:{e.options.scriptingEnabled?_te(e,t):vte(e,t);break}case b.PLAINTEXT:{KHe(e,t);break}case b.COL:case b.TH:case b.TD:case b.TR:case b.HEAD:case b.FRAME:case b.TBODY:case b.TFOOT:case b.THEAD:case b.CAPTION:case b.COLGROUP:break;default:vte(e,t)}}function hze(e,t){if(e.openElements.hasInScope(b.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function mze(e,t){e.openElements.hasInScope(b.BODY)&&(e.insertionMode=U.AFTER_BODY,Mte(e,t))}function gze(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function yze(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(b.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(b.FORM):r&&e.openElements.remove(r))}function bze(e){e.openElements.hasInButtonScope(b.P)||e._insertFakeElement(Q.P,b.P),e._closePElement()}function xze(e){e.openElements.hasInListItemScope(b.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(b.LI),e.openElements.popUntilTagNamePopped(b.LI))}function Eze(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function _ze(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function vze(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Tze(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Q.BR,b.BR),e.openElements.pop(),e.framesetOk=!1}function Ite(e,t){let r=t.tagName,n=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){let s=e.openElements.items[i],a=e.openElements.tagIDs[i];if(n===a&&(n!==b.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,a))break}}function OE(e,t){switch(t.tagID){case b.A:case b.B:case b.I:case b.S:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.NOBR:case b.SMALL:case b.STRIKE:case b.STRONG:{vN(e,t);break}case b.P:{bze(e);break}case b.DL:case b.UL:case b.OL:case b.DIR:case b.DIV:case b.NAV:case b.PRE:case b.MAIN:case b.MENU:case b.ASIDE:case b.BUTTON:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.ADDRESS:case b.ARTICLE:case b.DETAILS:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.LISTING:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{gze(e,t);break}case b.LI:{xze(e);break}case b.DD:case b.DT:{Eze(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{_ze(e);break}case b.BR:{Tze(e);break}case b.BODY:{hze(e,t);break}case b.HTML:{mze(e,t);break}case b.FORM:{yze(e);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{vze(e,t);break}case b.TEMPLATE:{Qc(e,t);break}default:Ite(e,t)}}function Rte(e,t){e.tmplInsertionModeStack.length>0?Lte(e,t):TN(e,t)}function Sze(e,t){var r;t.tagID===b.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function wze(e,t){e._err(t,ie.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function xN(e,t){if(e.openElements.currentTagId!==void 0&&Tte.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case ct.CHARACTER:{Ote(e,t);break}case ct.WHITESPACE_CHARACTER:{Nte(e,t);break}}else hm(e,t)}function Aze(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_CAPTION}function Cze(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function Ize(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.COLGROUP,b.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,SN(e,t)}function Rze(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_TABLE_BODY}function Nze(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.TBODY,b.TBODY),e.insertionMode=U.IN_TABLE_BODY,PE(e,t)}function Oze(e,t){e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Pze(e,t){Cte(t)?e._appendElement(t,ae.HTML):hm(e,t),t.ackSelfClosing=!0}function Dze(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function vd(e,t){switch(t.tagID){case b.TD:case b.TH:case b.TR:{Nze(e,t);break}case b.STYLE:case b.SCRIPT:case b.TEMPLATE:{_s(e,t);break}case b.COL:{Ize(e,t);break}case b.FORM:{Dze(e,t);break}case b.TABLE:{Oze(e,t);break}case b.TBODY:case b.TFOOT:case b.THEAD:{Rze(e,t);break}case b.INPUT:{Pze(e,t);break}case b.CAPTION:{Aze(e,t);break}case b.COLGROUP:{Cze(e,t);break}default:hm(e,t)}}function pm(e,t){switch(t.tagID){case b.TABLE:{e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode());break}case b.TEMPLATE:{Qc(e,t);break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:hm(e,t)}}function hm(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,NE(e,t),e.fosterParentingEnabled=r}function Nte(e,t){e.pendingCharacterTokens.push(t)}function Ote(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function om(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)hm(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Pte=new Set([b.CAPTION,b.COL,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]);function kze(e,t){let r=t.tagID;Pte.has(r)?e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,vd(e,t)):_n(e,t)}function $ze(e,t){let r=t.tagID;switch(r){case b.CAPTION:case b.TABLE:{e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,r===b.TABLE&&pm(e,t));break}case b.BODY:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:OE(e,t)}}function SN(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.COL:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case b.TEMPLATE:{_s(e,t);break}default:IE(e,t)}}function Lze(e,t){switch(t.tagID){case b.COLGROUP:{e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case b.TEMPLATE:{Qc(e,t);break}case b.COL:break;default:IE(e,t)}}function IE(e,t){e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function PE(e,t){switch(t.tagID){case b.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_ROW;break}case b.TH:case b.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Q.TR,b.TR),e.insertionMode=U.IN_ROW,DE(e,t);break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,vd(e,t));break}default:vd(e,t)}}function _N(e,t){let r=t.tagID;switch(t.tagID){case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case b.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,pm(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:case b.TR:break;default:pm(e,t)}}function DE(e,t){switch(t.tagID){case b.TH:case b.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ae.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,PE(e,t));break}default:vd(e,t)}}function Dte(e,t){switch(t.tagID){case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case b.TABLE:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,_N(e,t));break}case b.TBODY:case b.TFOOT:case b.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(b.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,_N(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:break;default:pm(e,t)}}function Mze(e,t){let r=t.tagID;Pte.has(r)?(e.openElements.hasInTableScope(b.TD)||e.openElements.hasInTableScope(b.TH))&&(e._closeTableCell(),DE(e,t)):_n(e,t)}function Fze(e,t){let r=t.tagID;switch(r){case b.TD:case b.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case b.TABLE:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Dte(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:break;default:OE(e,t)}}function kte(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case b.OPTGROUP:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ae.HTML);break}case b.HR:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case b.INPUT:case b.KEYGEN:case b.TEXTAREA:case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),t.tagID!==b.SELECT&&e._processStartTag(t));break}case b.SCRIPT:case b.TEMPLATE:{_s(e,t);break}default:}}function $te(e,t){switch(t.tagID){case b.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===b.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===b.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop();break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop();break}case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode());break}case b.TEMPLATE:{Qc(e,t);break}default:}}function Bze(e,t){let r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e._processStartTag(t)):kte(e,t)}function qze(e,t){let r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$te(e,t)}function jze(e,t){switch(t.tagID){case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{_s(e,t);break}case b.CAPTION:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,vd(e,t);break}case b.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,SN(e,t);break}case b.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,PE(e,t);break}case b.TD:case b.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,DE(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,_n(e,t)}}function Uze(e,t){t.tagID===b.TEMPLATE&&Qc(e,t)}function Lte(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):TN(e,t)}function Hze(e,t){t.tagID===b.HTML?_n(e,t):RE(e,t)}function Mte(e,t){var r;if(t.tagID===b.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===b.HTML){e._setEndLocation(e.openElements.items[0],t);let n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else RE(e,t)}function RE(e,t){e.insertionMode=U.IN_BODY,NE(e,t)}function zze(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.FRAMESET:{e._insertElement(t,ae.HTML);break}case b.FRAME:{e._appendElement(t,ae.HTML),t.ackSelfClosing=!0;break}case b.NOFRAMES:{_s(e,t);break}default:}}function Vze(e,t){t.tagID===b.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==b.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function Gze(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.NOFRAMES:{_s(e,t);break}default:}}function Wze(e,t){t.tagID===b.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function Kze(e,t){t.tagID===b.HTML?_n(e,t):CE(e,t)}function CE(e,t){e.insertionMode=U.IN_BODY,NE(e,t)}function Yze(e,t){switch(t.tagID){case b.HTML:{_n(e,t);break}case b.NOFRAMES:{_s(e,t);break}default:}}function Xze(e,t){t.chars=Vt,e._insertCharacters(t)}function Jze(e,t){e._insertCharacters(t),e.framesetOk=!1}function Fte(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Qze(e,t){if(gte(t))Fte(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===ae.MATHML?yN(t):n===ae.SVG&&(yte(t),bN(t)),AE(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function Zze(e,t){if(t.tagID===b.P||t.tagID===b.BR){Fte(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===ae.HTML){e._endTagOutsideForeignContent(t);break}let i=e.treeAdapter.getTagName(n);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(r);break}}}var iht=String.prototype.codePointAt==null?(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t):(e,t)=>e.codePointAt(t);function Bte(e,t){return function(n){let i,s=0,a="";for(;i=e.exec(n);)s!==i.index&&(a+=n.substring(s,i.index)),a+=t.get(i[0].charCodeAt(0)),s=i.index+1;return a+n.substring(s)}}var qte=Bte(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),jte=Bte(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var eVe=new Set([Q.AREA,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BR,Q.COL,Q.EMBED,Q.FRAME,Q.HR,Q.IMG,Q.INPUT,Q.KEYGEN,Q.LINK,Q.META,Q.PARAM,Q.SOURCE,Q.TRACK,Q.WBR]);function tVe(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===ae.HTML&&eVe.has(t.treeAdapter.getTagName(e))}var rVe={treeAdapter:Wi,scriptingEnabled:!0};function wN(e,t){let r={...rVe,...t};return Ute(e,r)}function nVe(e,t){let r="",n=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===Q.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===ae.HTML?t.treeAdapter.getTemplateContent(e):e,i=t.treeAdapter.getChildNodes(n);if(i)for(let s of i)r+=Ute(s,t);return r}function Ute(e,t){return t.treeAdapter.isElementNode(e)?iVe(e,t):t.treeAdapter.isTextNode(e)?aVe(e,t):t.treeAdapter.isCommentNode(e)?oVe(e,t):t.treeAdapter.isDocumentTypeNode(e)?uVe(e,t):""}function iVe(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${sVe(e,t)}>${tVe(e,t)?"":`${nVe(e,t)}</${r}>`}`}function sVe(e,{treeAdapter:t}){let r="";for(let n of t.getAttrList(e)){if(r+=" ",n.namespace)switch(n.namespace){case ae.XML:{r+=`xml:${n.name}`;break}case ae.XMLNS:{n.name!=="xmlns"&&(r+="xmlns:"),r+=n.name;break}case ae.XLINK:{r+=`xlink:${n.name}`;break}default:r+=`${n.prefix}:${n.name}`}else r+=n.name;r+=`="${qte(n.value)}"`}return r}function aVe(e,t){let{treeAdapter:r}=t,n=r.getTextNodeContent(e),i=r.getParentNode(e),s=i&&r.isElementNode(i)&&r.getTagName(i);return s&&r.getNamespaceURI(i)===ae.HTML&&gN(s,t.scriptingEnabled)?n:jte(n)}function oVe(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function uVe(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function Hte(e,t){return _d.parse(e,t)}function zte(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let n=_d.getFragmentParser(e,r);return n.tokenizer.write(t,!0),n.getFragment()}function Vte(e){let t=e.includes('"')?"'":'"';return t+e+t}function cVe(e,t,r){let n="!DOCTYPE ";return e&&(n+=e),t?n+=` PUBLIC ${Vte(t)}`:r&&(n+=" SYSTEM"),r&&(n+=` ${Vte(r)}`),n}var eo={isCommentNode:Kc,isElementNode:we,isTextNode:oi,createDocument(){let e=new yi([]);return e["x-mode"]=_E.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new yi([])},createElement(e,t,r){let n=Object.create(null),i=Object.create(null),s=Object.create(null);for(let o=0;o<r.length;o++){let u=r[o].name;n[u]=r[o].value,i[u]=r[o].namespace,s[u]=r[o].prefix}let a=new Wc(e,n,[]);return a.namespace=t,a["x-attribsNamespace"]=i,a["x-attribsPrefix"]=s,a},createCommentNode(e){return new Vc(e)},createTextNode(e){return new ra(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let n=e.children.indexOf(r),{prev:i}=r;i&&(i.next=t,t.prev=i),r.prev=t,t.next=r,e.children.splice(n,0,t),t.parent=e},setTemplateContent(e,t){eo.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,n){let i=cVe(t,r,n),s=e.children.find(a=>Fx(a)&&a.name==="!doctype");s?s.data=i??null:(s=new Gc("!doctype",i),eo.appendChild(e,s)),s["x-name"]=t,s["x-publicId"]=r,s["x-systemId"]=n},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:n}=e;e.prev=null,e.next=null,r&&(r.next=n),n&&(n.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&oi(r)?r.data+=t:eo.appendChild(e,eo.createTextNode(t))},insertTextBefore(e,t,r){let n=e.children[e.children.indexOf(r)-1];n&&oi(n)?n.data+=t:eo.insertBefore(e,eo.createTextNode(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let n=t[r].name;e.attribs[n]===void 0&&(e.attribs[n]=t[r].value,e["x-attribsNamespace"][n]=t[r].namespace,e["x-attribsPrefix"][n]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Fx(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function Gte(e,t,r,n){let i={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:eo,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?Hte(e,i):zte(n,e,i)}var lVe={treeAdapter:eo};function Wte(e){let t="length"in e?e:[e];for(let n=0;n<t.length;n+=1){let i=t[n];bs(i)&&Array.prototype.splice.call(t,n,1,...i.children)}let r="";for(let n=0;n<t.length;n+=1){let i=t[n];r+=wN(i,lVe)}return r}var xe;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(xe||(xe={}));var ue;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(ue||(ue={}));function to(e){return e===xe.Space||e===xe.NewLine||e===xe.Tab||e===xe.FormFeed||e===xe.CarriageReturn}function kE(e){return e===xe.Slash||e===xe.Gt||to(e)}function Kte(e){return e>=xe.Zero&&e<=xe.Nine}function fVe(e){return e>=xe.LowerA&&e<=xe.LowerZ||e>=xe.UpperA&&e<=xe.UpperZ}function dVe(e){return e>=xe.UpperA&&e<=xe.UpperF||e>=xe.LowerA&&e<=xe.LowerF}var vs;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(vs||(vs={}));var fi={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},Td=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},n){this.cbs=n,this.state=ue.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ue.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=r,this.entityTrie=t?qx:Bx}reset(){this.state=ue.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ue.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===xe.Lt||!this.decodeEntities&&this.fastForwardTo(xe.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ue.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===xe.Amp&&(this.state=ue.BeforeEntity)}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?kE(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ue.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===xe.Gt||to(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let n=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=n}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===fi.TitleEnd?this.decodeEntities&&t===xe.Amp&&(this.state=ue.BeforeEntity):this.fastForwardTo(xe.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===xe.Lt)}stateCDATASequence(t){t===fi.Cdata[this.sequenceIndex]?++this.sequenceIndex===fi.Cdata.length&&(this.state=ue.InCommentLike,this.currentSequence=fi.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ue.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===fi.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ue.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!kE(t):fVe(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=ue.SpecialStartSequence}stateBeforeTagName(t){if(t===xe.ExclamationMark)this.state=ue.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===xe.Questionmark)this.state=ue.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===fi.TitleEnd[2]?this.startSpecial(fi.TitleEnd,3):this.state=!this.xmlMode&&r===fi.ScriptEnd[2]?ue.BeforeSpecialS:ue.InTagName}else t===xe.Slash?this.state=ue.BeforeClosingTagName:(this.state=ue.Text,this.stateText(t))}stateInTagName(t){kE(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ue.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){to(t)||(t===xe.Gt?this.state=ue.Text:(this.state=this.isTagStartChar(t)?ue.InClosingTagName:ue.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===xe.Gt||to(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ue.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.state=ue.Text,this.baseState=ue.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===xe.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ue.InSpecialTag,this.sequenceIndex=0):this.state=ue.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===xe.Slash?this.state=ue.InSelfClosingTag:to(t)||(this.state=ue.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===xe.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ue.Text,this.baseState=ue.Text,this.sectionStart=this.index+1,this.isSpecial=!1):to(t)||(this.state=ue.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===xe.Eq||kE(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ue.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===xe.Eq?this.state=ue.BeforeAttributeValue:t===xe.Slash||t===xe.Gt?(this.cbs.onattribend(vs.NoValue,this.index),this.state=ue.BeforeAttributeName,this.stateBeforeAttributeName(t)):to(t)||(this.cbs.onattribend(vs.NoValue,this.index),this.state=ue.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===xe.DoubleQuote?(this.state=ue.InAttributeValueDq,this.sectionStart=this.index+1):t===xe.SingleQuote?(this.state=ue.InAttributeValueSq,this.sectionStart=this.index+1):to(t)||(this.sectionStart=this.index,this.state=ue.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===xe.DoubleQuote?vs.Double:vs.Single,this.index),this.state=ue.BeforeAttributeName):this.decodeEntities&&t===xe.Amp&&(this.baseState=this.state,this.state=ue.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,xe.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,xe.SingleQuote)}stateInAttributeValueNoQuotes(t){to(t)||t===xe.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(vs.Unquoted,this.index),this.state=ue.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===xe.Amp&&(this.baseState=this.state,this.state=ue.BeforeEntity)}stateBeforeDeclaration(t){t===xe.OpeningSquareBracket?(this.state=ue.CDATASequence,this.sequenceIndex=0):this.state=t===xe.Dash?ue.BeforeComment:ue.InDeclaration}stateInDeclaration(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ue.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ue.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===xe.Dash?(this.state=ue.InCommentLike,this.currentSequence=fi.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ue.InDeclaration}stateInSpecialComment(t){(t===xe.Gt||this.fastForwardTo(xe.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ue.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===fi.ScriptEnd[3]?this.startSpecial(fi.ScriptEnd,4):r===fi.StyleEnd[3]?this.startSpecial(fi.StyleEnd,4):(this.state=ue.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===xe.Number?this.state=ue.BeforeNumericEntity:t===xe.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=ue.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=AR(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let r=this.trieCurrent&Hi.VALUE_LENGTH;if(r){let n=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==xe.Semi)this.trieIndex+=n;else{let i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,n===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&Hi.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Hi.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===xe.LowerX?(this.entityExcess++,this.state=ue.InHexEntity):(this.state=ue.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let r=this.index-this.entityExcess-1;r+2+ +(this.state===ue.InHexEntity)!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint(Wh(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===xe.Semi?this.emitNumericEntity(!0):Kte(t)?(this.entityResult=this.entityResult*10+(t-xe.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===xe.Semi?this.emitNumericEntity(!0):Kte(t)?(this.entityResult=this.entityResult*16+(t-xe.Zero),this.entityExcess++):dVe(t)?(this.entityResult=this.entityResult*16+((t|32)-xe.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===ue.Text||this.baseState===ue.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ue.Text||this.state===ue.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ue.InAttributeValueDq||this.state===ue.InAttributeValueSq||this.state===ue.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ue.Text:{this.stateText(t);break}case ue.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case ue.InSpecialTag:{this.stateInSpecialTag(t);break}case ue.CDATASequence:{this.stateCDATASequence(t);break}case ue.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case ue.InAttributeName:{this.stateInAttributeName(t);break}case ue.InCommentLike:{this.stateInCommentLike(t);break}case ue.InSpecialComment:{this.stateInSpecialComment(t);break}case ue.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case ue.InTagName:{this.stateInTagName(t);break}case ue.InClosingTagName:{this.stateInClosingTagName(t);break}case ue.BeforeTagName:{this.stateBeforeTagName(t);break}case ue.AfterAttributeName:{this.stateAfterAttributeName(t);break}case ue.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case ue.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case ue.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case ue.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case ue.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case ue.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case ue.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case ue.InDeclaration:{this.stateInDeclaration(t);break}case ue.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case ue.BeforeComment:{this.stateBeforeComment(t);break}case ue.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case ue.InNamedEntity:{this.stateInNamedEntity(t);break}case ue.BeforeEntity:{this.stateBeforeEntity(t);break}case ue.InHexEntity:{this.stateInHexEntity(t);break}case ue.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===ue.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===ue.InCommentLike?this.currentSequence===fi.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===ue.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===ue.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===ue.InTagName||this.state===ue.BeforeAttributeName||this.state===ue.BeforeAttributeValue||this.state===ue.AfterAttributeName||this.state===ue.InAttributeName||this.state===ue.InAttributeValueSq||this.state===ue.InAttributeValueDq||this.state===ue.InAttributeValueNq||this.state===ue.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,r){this.baseState!==ue.Text&&this.baseState!==ue.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)}emitCodePoint(t){this.baseState!==ue.Text&&this.baseState!==ue.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var Sd=new Set(["input","option","optgroup","select","button","datalist","textarea"]),kt=new Set(["p"]),Yte=new Set(["thead","tbody"]),Xte=new Set(["dd","dt"]),Jte=new Set(["rt","rp"]),pVe=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",kt],["h1",kt],["h2",kt],["h3",kt],["h4",kt],["h5",kt],["h6",kt],["select",Sd],["input",Sd],["output",Sd],["button",Sd],["datalist",Sd],["textarea",Sd],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Xte],["dt",Xte],["address",kt],["article",kt],["aside",kt],["blockquote",kt],["details",kt],["div",kt],["dl",kt],["fieldset",kt],["figcaption",kt],["figure",kt],["footer",kt],["form",kt],["header",kt],["hr",kt],["main",kt],["nav",kt],["ol",kt],["pre",kt],["section",kt],["table",kt],["ul",kt],["rt",Jte],["rp",Jte],["tbody",Yte],["tfoot",Yte]]),hVe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Qte=new Set(["math","svg"]),Zte=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),mVe=/\s|\//,mm=class{constructor(t,r={}){var n,i,s,a,o;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:Td)(this.options,this),(o=(a=this.cbs).onparserinit)===null||o===void 0||o.call(a,this)}ontext(t,r){var n,i;let s=this.getSlice(t,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,s),this.startIndex=r}ontextentity(t){var r,n;let i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,od(t)),this.startIndex=i}isVoidElement(t){return!this.options.xmlMode&&hVe.has(t)}onopentagname(t,r){this.endIndex=r;let n=this.getSlice(t,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var r,n,i,s;this.openTagStart=this.startIndex,this.tagname=t;let a=!this.options.xmlMode&&pVe.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){let o=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!0)}this.isVoidElement(t)||(this.stack.push(t),Qte.has(t)?this.foreignContext.push(!0):Zte.has(t)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var n,i,s,a,o,u;this.endIndex=r;let l=this.getSlice(t,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Qte.has(l)||Zte.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(a=(s=this.cbs).onopentag)===null||a===void 0||a.call(s,"br",{},!0),(u=(o=this.cbs).onclosetag)===null||u===void 0||u.call(o,"br",!1));else{let c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag){let f=this.stack.length-c;for(;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0)}else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,n;let i=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!t),this.stack.pop())}onattribname(t,r){this.startIndex=t;let n=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=od(t)}onattribend(t,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,t===vs.Double?'"':t===vs.Single?"'":t===vs.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(mVe),n=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${i}`,`!${n}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let n=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let i=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${i}`,`?${n}`)}this.startIndex=r+1}oncomment(t,r,n){var i,s,a,o;this.endIndex=r,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,r-n)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=r+1}oncdata(t,r,n){var i,s,a,o,u,l,c,f,d,h;this.endIndex=r;let p=this.getSlice(t,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,p),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((f=(c=this.cbs).oncomment)===null||f===void 0||f.call(c,`[CDATA[${p}]]`),(h=(d=this.cbs).oncommentend)===null||h===void 0||h.call(d)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,n,i;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function ere(e,t){let r=new ad(void 0,t);return new mm(r,t).end(e),r.root}var gVe=zee((e,t,r,n)=>t.xmlMode||t._useHtmlParser2?ere(e,t):Gte(e,t,r,n)),$t=Jee(gVe,(e,t)=>t.xmlMode||t._useHtmlParser2?Vx(e,t):Wte(e)),Hht=$t([]),{contains:zht}=hu,{merge:Vht}=hu,{parseHTML:Ght}=hu,{root:Wht}=hu;var gm="abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789";function rre(e,t){return Math.floor(Math.random()*(t-e+1))+e}function nre(e,t,r){var n="";let i=t===void 0?!0:t;for(var s=0;s<e;s++){let a=r?rre(gm.length-10,gm.length-1):rre(0,i?gm.length-1:gm.length-11);n+=gm[a]}return n}var $E="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";var ym="Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";function ire(e,t){return e.trim()==t.trim()?t:t.trim().replaceAll(e,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}function sre(e){let t=e/1048576;return t>1024?`${(t/1024).toFixed(2)}GB`:`${parseInt(t).toFixed(0)}MB`}function yVe(e,t){if(!e||!t)return{length:0,sequence:"",offset:0};for(var r="",n=e.length,i=t.length,s=new Array(n),a=0,o=0,u=0;u<n;u++){for(var l=new Array(i),c=0;c<i;c++)l[c]=0;s[u]=l}var f=null;for(u=0;u<n;u++)for(c=0;c<i;c++)e[u]!==t[c]?s[u][c]=0:(u===0||c===0?s[u][c]=1:s[u][c]=1+s[u-1][c-1],s[u][c]>a&&(a=s[u][c],f=u-s[u][c]+1,o===f?r+=e[u]:(o=f,r="",r+=e.substr(o,u+1-o))));return{length:a,sequence:r,offset:f}}function wd(e,t){let r=[],n=0;for(let s=0;s<t.length;s++){let a=yVe(e.name,t[s].name);r.push({target:t[s],lcs:a}),a.length>r[n].lcs.length&&(n=s)}let i=r[n];return{allLCS:r,bestMatch:i,bestMatchIndex:n}}function ro(e){return new Promise(t=>setTimeout(t,e))}var aa=e=>e.map(t=>t.split(";")[0]+";");var ao=Te(LE(),1),el=Te(vn(),1);var C_=Te(Ane(),1);function Cne(e){let t=/(E|EP)0?([1-9]\d*).*/.exec(e);if(t)return Number(t[2]);let r=/.*?([1-9]\d*).*/.exec(e);return r?Number(r[1]):null}function di(e,t){let r={};return t.length===0||(t.sort((n,i)=>{let s=Cne(n.vod_name),a=Cne(i.vod_name);return s!==null&&a!==null?s-a:n.vod_name.localeCompare(i.vod_name)}),t=t.map(n=>{let i=sre(n.vod_size);return{vod_id:n.vod_id,vod_name:ire("",` ${n.vod_name.replace(/.[^.]+$/,"")} [${i}]`)}}),r.from=e,r.url=t.map(n=>n.vod_name+"$"+n.vod_id).join("#")),r}async function Su(e,t){return new Promise(r=>{e.forEach(n=>{fe.head(n,{headers:t}).then(i=>{i.status===200&&r(n)}).catch(()=>{})})})}var vm=e=>getPanEnabled("ali")&&/www.alipan.com|www.aliyundrive.com/.test(e),Tm=e=>getPanEnabled("quark")&&e.includes("https://pan.quark.cn"),Sm=e=>getPanEnabled("uc")&&e.includes("https://drive.uc.cn"),wm=e=>getPanEnabled("tianyi")&&e.includes("https://cloud.189.cn"),KN=e=>getPanEnabled("yidong")&&e.includes("yun.139.com"),YN=e=>getPanEnabled("123")&&/www.123684.com|www.123865.com|www.123912.com|www.123pan.com|www.123pan.cn|www.123592.com/.test(e),XN=e=>getPanEnabled("115")&&/115.com|anxia.com|115cdn.com/.test(e),JN=e=>getPanEnabled("baidu")&&/pan\.baidu\.com/.test(e);function Nne(e){let r=/https:\/\/www\.alipan\.com\/s\/([^\\/]+)(\/folder\/([^\\/]+))?|https:\/\/www\.aliyundrive\.com\/s\/([^\\/]+)(\/folder\/([^\\/]+))?/.exec(e);return r?{shareId:r[1]||r[4],folderId:r[3]||r[6]||"root"}:null}var OGe="https://api.aliyundrive.com",PGe="https://open.aliyundrive.com/adrive/v1.0",wu={},tn={},oa={},w_=null,ZN="/ali",Ine="CatVodOpen",tl=null,v_="",T_="",QN="",S_="",A_={"User-Agent":ym,Referer:"https://www.aliyundrive.com/"};async function One(e){w_=e.server.db;let t=e.server.config.ali;v_=el.default.enc.Hex.stringify(el.default.MD5(t.token)).toString(),T_=el.default.enc.Hex.stringify(el.default.MD5(t.token280)).toString();let r=await w_.getObjectDefault(ZN,{});r[v_]&&(QN=r[v_]),r[T_]&&(S_=r[T_])}async function I_(e,t,r,n){r=r||{};let i=e.startsWith("adrive/");Object.assign(r,A_),i&&Object.assign(r,{Authorization:tn.auth});let s=await wt.post(`${OGe}/${e}`,t,{headers:r}).catch(o=>(console.error(o),o.response||{status:500,data:{}})),a=n||3;return s.status===429&&a>0?(await ro(1e3),await I_(e,t,r,a-1)):s.data||{}}async function Au(e,t,r,n){r=r||{},Object.assign(r,{Authorization:oa.auth});let i=await wt.post(`${PGe}/${e}`,t,{headers:r}).catch(a=>(console.error(a),a.response||{status:500,data:{}})),s=n||3;return i.status===429&&s>0?(await ro(1e3),await Au(e,t,r,s-1)):i.data||{}}async function DGe(){if(!tn.user_id||tn.expire_time-(0,ao.default)().unix()<120){let e=await wt.post("https://auth.aliyundrive.com/v2/account/token",{refresh_token:QN,grant_type:"refresh_token"},{headers:A_}).catch(t=>t.response||{status:500,data:{}});e.status==200&&(tn=e.data,tn.expire_time=(0,ao.default)(e.data.expire_time).unix(),tn.auth=`${tn.token_type} ${tn.access_token}`,QN=tn.refresh_token,await w_.push(ZN+"/"+v_,tn.refresh_token))}}async function kGe(){if(!oa.access_token||oa.expire_time-(0,ao.default)().unix()<120){let e=await wt.post("https://aliyundrive-oauth.messense.me/oauth/access_token",{grant_type:"refresh_token",refresh_token:S_},{headers:A_}).catch(t=>t.response||{status:500,data:{}});if(e.status!=200&&(e=await wt.post("https://api.nn.ci/alist/ali_open/token",{grant_type:"refresh_token",refresh_token:S_},{headers:A_}).catch(t=>t.response||{status:500,data:{}})),e.status==200){oa=e.data;let t=JSON.parse(el.default.enc.Base64.parse(e.data.access_token.split(".")[1]).toString(el.default.enc.Utf8));oa.expire_time=t.exp,oa.auth=`${oa.token_type} ${oa.access_token}`,S_=oa.refresh_token,await w_.push(ZN+"/"+T_,oa.refresh_token)}}}async function Rne(){let e=await Au("openFile/list",{drive_id:tn.drive.resource_drive_id,parent_file_id:tl,limit:100,order_by:"updated_at",order_direction:"DESC"});if(e.items)for(let t of e.items){let r=await Au("openFile/delete",{drive_id:tn.drive.resource_drive_id,file_id:t.file_id});console.log(r)}}async function $Ge(e){if(!tn.device_id)return;if(tl){e&&await Rne();return}let t=await Au("user/getDriveInfo",{});if(t.resource_drive_id){tn.drive=t;let r=t.resource_drive_id,n=await Au("openFile/list",{drive_id:r,parent_file_id:"root",limit:100,order_by:"updated_at",order_direction:"DESC"});if(n.items){for(let i of n.items)if(i.name===Ine){tl=i.file_id,await Rne();break}if(!tl){let i=await Au("openFile/create",{check_name_mode:"refuse",drive_id:r,name:Ine,parent_file_id:"root",type:"folder"});console.log(i),i.file_id&&(tl=i.file_id)}}}}async function Pne(e){if(!wu[e.shareId]||wu[e.shareId].expire_time-(0,ao.default)().unix()<120){delete wu[e.shareId];let t=await I_("v2/share_link/get_share_token",{share_id:e.shareId,share_pwd:e.sharePwd||""});t.expire_time&&(t.expire_time=(0,ao.default)(t.expire_time).unix(),wu[e.shareId]=t)}}var LGe=["srt","ass","scc","stl","ttml"];async function MGe(e){let t=typeof e=="string"?Nne(e):e;if(!t)return[];if(await Pne(t),!wu[t.shareId])return[];let r=[],n=[],i=async function(s,a,o){let u=await I_("adrive/v2/file/list_by_share",{share_id:s,parent_file_id:a,limit:200,order_by:"name",order_direction:"ASC",marker:o||""},{"X-Share-Token":wu[s].share_token}),l=u.items;if(!l)return[];if(u.next_marker){let f=await i(s,a,u.next_marker);for(let d of f)l.push(d)}let c=[];for(let f of l)if(f.type==="folder")c.push(f);else if(f.type==="file"&&f.category==="video"){if(f.size<1024*1024*5)continue;f.name=f.name.replace(/玩偶哥.*【神秘的哥哥们】/g,""),r.push(f)}else f.type==="file"&&LGe.some(d=>f.file_extension.endsWith(d))&&n.push(f);for(let f of c){let d=await i(f.share_id,f.file_id);for(let h of d)l.push(h)}return l};return await i(t.shareId,t.folderId),n.length>0&&r.forEach(s=>{var a=wd(s,n);a.bestMatch&&(s.subtitle=a.bestMatch.target)}),r}var Cu={};async function Dne(e,t,r){if(await DGe(),await kGe(),await $Ge(r),r){let i=Object.keys(Cu);for(let s of i)delete Cu[s]}if(!tl||(await Pne({shareId:e}),!wu[e]))return null;let n=await I_("adrive/v2/file/copy",{file_id:t,share_id:e,auto_rename:!0,to_parent_file_id:tl,to_drive_id:tn.drive.resource_drive_id},{"X-Share-Token":wu[e].share_token});return n.file_id?n.file_id:!1}async function kne(e,t){if(!Cu[t]){let i=await Dne(e,t,!0);if(!i)return null;Cu[t]=i}let n=(await Au("openFile/getVideoPreviewPlayInfo",{file_id:Cu[t],drive_id:tn.drive.resource_drive_id,category:"live_transcoding",url_expire_sec:"14400"}))?.video_preview_play_info;return n?.quick_video_list??n?.live_transcoding_task_list}async function FGe(e,t){if(!Cu[t]){let n=await Dne(e,t,!0);if(!n)return null;Cu[t]=n}let r=await Au("openFile/getDownloadUrl",{file_id:Cu[t],drive_id:tn.drive.resource_drive_id});return r.url?r:null}async function $ne(e){if(vm(e)){let t=Nne(e);if(t){let r=await MGe(t);return r=r.map(n=>({vod_id:[n.share_id,n.file_id,n.subtitle?n.subtitle.file_id:""].join("*"),vod_name:n.name,vod_size:n.size})),di(getPanName("ali")+"-"+t.shareId,r)}else return{}}}var ua={},Cd={};async function Lne(e,t){await One(e);let r=e.params.site,n=e.params.what,i=e.params.shareId,s=e.params.fileId;if(r=="ali"){let a="",o=e.params.flag,u=e.params.end;if(n=="trans"){if(ua[s]){let c=ua[s].filter(f=>f.template_id.toLowerCase()==o)[0].url;parseInt(c.match(/x-oss-expires=(\d+)/)[1])-(0,ao.default)().unix()<15&&delete ua[s]}if(ua[s]&&u.endsWith(".ts")){let c=ua[s].filter(f=>f.template_id.toLowerCase()==o)[0];if(c.plist){let f=c.plist.segments[parseInt(u.replace(".ts",""))].suri;parseInt(f.match(/x-oss-expires=(\d+)/)[1])-(0,ao.default)().unix()<15&&delete ua[s]}}if(!ua[s]){let c=await kne(i,s);ua[s]=c}let l=ua[s].filter(c=>c.template_id.toLowerCase()==o)[0];if(!l.plist){let c=await wt.get(l.url,{headers:{"User-Agent":ym}});l.plist=C_.parse(c.data);for(let f of l.plist.segments)f.uri.startsWith("http")||(f.uri=new URL(f.uri,l.url).toString()),f.suri=f.uri,f.uri=f.mediaSequenceNumber.toString()+".ts"}if(u.endsWith(".ts")){t.redirect(l.plist.segments[parseInt(u.replace(".ts",""))].suri);return}else{let c=C_.stringify(l.plist),f={"content-type":"audio/x-mpegurl","content-length":c.length.toString()};return t.code(200).headers(f),c}}else{if(Cd[s]){let l=Cd[s].url;parseInt(l.match(/x-oss-expires=(\d+)/)[1])-(0,ao.default)().unix()<15&&delete Cd[s]}if(!Cd[s]){let l=await FGe(i,s);Cd[s]=l}if(a=Cd[s].url,o=="redirect"){t.redirect(a);return}}}}async function Mne(e,t){await One(e);let r=e.body.flag,i=e.body.id.split("*"),s=0;if(r.startsWith(getPanName("ali"))){let a=await kne(i[0],i[1]);ua[i[1]]=a,a.sort((d,h)=>h.template_width-d.template_width);let o=["\u8D85\u6E05","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],u=["QHD","FHD","HD","SD","LD"],l=[],c=e.server.address().url+e.server.prefix+"/proxy/ali";l.push("\u539F\u753B"),l.push(`${c}/src/redirect/${i[0]}/${i[1]}/.bin`);let f={parse:0,url:l};return i[2]&&(f.extra={subt:`${c}/src/subt/${i[0]}/${i[2]}/.bin`}),a.forEach(d=>{s=u.indexOf(d.template_id),l.push(o[s]),l.push(`${c}/trans/${d.template_id.toLowerCase()}/${i[0]}/${i[1]}/.m3u8`)}),f}}var eO=Te(vn(),1),rl=require("path"),vr=Te(require("fs"),1),Bne=require("stream");async function qGe(e,t){let r=await wt.get(e,{responseType:"stream",headers:Object.assign({Range:"bytes=0-0"},t)}).catch(n=>(console.error(n),n.response||{status:500,data:{}}));if(r&&r.status===206){let n=r.headers["accept-ranges"]==="bytes",i=r.headers["content-range"],s=parseInt(r.headers["content-length"]),a=n||!!i||s===1,o=i?parseInt(i.split("/")[1]):s;return delete r.headers["content-range"],delete r.headers["content-length"],o&&(r.headers["content-length"]=o.toString()),[a,r.headers]}else return[!1,null]}var Am={},Fne="",nl=(process.env.NODE_PATH||".")+"/vod_cache",jGe=1024*1024*100;async function qne(e){try{if(vr.default.existsSync(e)){let t=await vr.default.promises.readdir(e);await Promise.all(t.map(async r=>{let n=`${e}/${r}`;(await vr.default.promises.stat(n)).isDirectory()?await qne(n):await vr.default.promises.unlink(n)})),await vr.default.promises.rmdir(e)}}catch(t){console.error("Error deleting folder:",t)}}qne(nl);function UGe(e){try{vr.default.readdir(nl,(t,r)=>{if(r)for(let n of r){if(n===e)continue;let i=(0,rl.join)(nl,n);vr.default.stat(i,(s,a)=>{a&&a.isDirectory()&&vr.default.readdir(i,(o,u)=>{if(u)for(let l of u)l.endsWith(".p")||vr.default.rm((0,rl.join)(i,l),{recursive:!0},()=>{})})})}})}catch(t){console.error(t)}}async function HGe(e,t,r,n,i,s){if(n=n||eO.default.enc.Hex.stringify(eO.default.MD5(r)).toString(),Fne!==n&&(UGe(n),Fne=n),!Am[n]){let[x,T]=await qGe(r,i);if(!x||!T["content-length"]){t.redirect(r);return}Am[n]=T}let a=!0;await vr.default.promises.access((0,rl.join)(nl,n)).catch(x=>a=!1),a||await vr.default.promises.mkdir((0,rl.join)(nl,n),{recursive:!0});let o=parseInt(Am[n]["content-length"]),u=0,l=o-1,c={};if(e.headers.range){let x=e.headers.range.trim().split(/=|-/);x.length>2&&x[2]&&(l=parseInt(x[2])),u=parseInt(x[1]),Object.assign(c,Am[n]),c["content-length"]=(l-u+1).toString(),c["content-range"]=`bytes ${u}-${l}/${o}`,t.code(206)}else Object.assign(c,Am[n]),t.code(200);s=s||{chunkSize:1024*256,poolSize:5,timeout:1e3*10};let f=s.chunkSize,d=s.poolSize,h=s.timeout,p=Math.ceil(o/f),m=Math.floor(u/f),y=m,g=!1,v={};for(let x=0;x<d&&x<p;x++)new Promise(T=>{(async function S(w){if(g||m>=p){T();return}if(w===void 0&&(m-y)*f>=jGe){setTimeout(S,5);return}let A=w||m++,C=`${e.id}-${A}`;try{let I=(0,rl.join)(nl,n,`${e.id}-${A}.p`),M=!0;if(await vr.default.promises.access(I).catch(R=>M=!1),!M){let R=A*f,P=Math.min(o-1,(A+1)*f-1),k=await wt.get(r,{responseType:"stream",timeout:h,headers:Object.assign({Range:`bytes=${R}-${P}`},i)}),K=(0,rl.join)(nl,n,`${e.id}-${A}.dl`),z=vr.default.createWriteStream(K),G=setTimeout(()=>{z.destroy(new Error(`${C} read timeout`))},h),te=new Promise(ee=>{z.on("finish",async()=>{g?await vr.default.promises.rm(K).catch(re=>console.error(re)):(await vr.default.promises.rename(K,I).catch(re=>console.error(re)),v[C]=I),ee(!0)}),z.on("error",async re=>{console.error(re),await vr.default.promises.rm(K).catch(Z=>console.error(Z)),ee(!1)})});k.data.pipe(z);let j=await te;if(clearTimeout(G),!j){setTimeout(()=>{S(A)},15);return}}setTimeout(S,5)}catch(I){console.error(I),setTimeout(()=>{S(A)},15)}})()});t.headers(c);let E=new Bne.PassThrough;return new Promise(x=>{let T=!0;(async function S(){try{if(y>=p||g){E.end(),x();return}if(!T){setTimeout(S,5);return}let w=`${e.id}-${y}`;if(!v[w]){setTimeout(S,5);return}let A=y*f,C=Math.min(o-1,(y+1)*f-1),I=Math.max(u,A)-A,M=v[w];delete v[w];let R=await vr.default.promises.open(M,"r"),P=Buffer.alloc(C-A-I+1);await R.read(P,0,C-A-I+1,I),await R.close().catch(k=>console.error(k)),await vr.default.promises.rm(M).catch(k=>console.error(k)),T=E.write(P),T||E.once("drain",()=>{T=!0}),y++,setTimeout(S,5)}catch{setTimeout(S,5)}})()}),E.on("close",async()=>{Object.keys(v).forEach(x=>{x.startsWith(e.id)&&(vr.default.rm(v[x],{recursive:!0},()=>{}),delete v[x])}),g=!0}),E}var R_=HGe;var rO=Te(vn(),1);var Le=Cm;(function(e,t){let r=Cm,n=e();for(;;)try{if(parseInt(r(418))/1+parseInt(r(482))/2+parseInt(r(586))/3*(parseInt(r(343))/4)+parseInt(r(432))/5+-parseInt(r(473))/6*(-parseInt(r(441))/7)+parseInt(r(504))/8*(parseInt(r(459))/9)+-parseInt(r(604))/10*(parseInt(r(374))/11)===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(P_,838663+31*916+423449*-1);function zne(e){let t=Cm,r=/https:\/\/pan\.quark\.cn\/s\/([^\\|#/]+)/,n=r[t(446)](e);return n?{shareId:n[-5621+-25*-320+-2378],folderId:"0"}:null}var ca=Le(437)+Le(608),iO={"User-Agent":Le(541)+Le(364)+Le(448)+Le(560)+Le(529)+Le(449)+Le(363)+Le(361)+Le(493)+Le(546)+Le(584)+Le(462)+Le(553)+Le(352)+Le(463)+Le(508)+Le(533)+Le(616)+Le(401)+"ch",Referer:Le(556)+Le(545)},nO=null,N_=null;function Cm(e,t){let r=P_();return Cm=function(n,i){return n=n-(7630+79*17+-8634),r[n]},Cm(e,t)}var jne=Le(467)+Le(599)+Le(408)+Le(380),oo="",Iu={},Une=Le(520),il=null;async function Vne(e){let t=Le;nO=e[t(357)].db;let r=e[t(357)][t(567)][t(512)];oo=r[t(341)],N_=rO.default[t(451)][t(443)][t(471)](rO.default[t(387)](r[t(341)]))[t(416)]();let n=await nO[t(563)+t(602)](t(522),{});n[N_]&&(oo=n[N_])}async function Ss(e,t,r,n,i){let s=Le,a={afVaa:function(l,c){return l===c},XLmtv:function(l,c){return l(c)},GECLP:s(477),odyKL:s(365)+s(391)+s(376),FZMLq:function(l,c){return l===c},Kuwqi:function(l,c){return l(c)},zwjvd:function(l,c){return l||c},WyZom:function(l,c){return l||c},MisLO:s(474),cgtkO:function(l,c){return l==c},anZbG:s(422),iVJVn:function(l,c){return l||c},JIBEf:s(598),wfKXk:s(348),DkZhB:function(l,c){return l!=c},vXoGE:function(l,c){return l>c},UmTPM:function(l,c,f,d,h,p){return l(c,f,d,h,p)},Kryav:function(l,c){return l-c}};r=a[s(359)](r,{}),Object[s(358)](r,iO),Object[s(358)](r,{Cookie:a[s(397)](oo,"")}),n=a[s(397)](n,a[s(552)]);let o=a[s(402)](n,a[s(413)])?await wt[s(422)](jne+"/"+e,{headers:r})[s(465)](l=>{let c=s;return console[c(530)](l),a[c(461)](l?.[c(454)]?.[c(453)],7299+-90*-100+1*-15898)&&a[c(507)](messageToDart,{action:a[c(511)],opt:{message:a[c(610)],duration:5}}),l[c(454)]||{status:500,data:{}}}):await wt[s(474)](jne+"/"+e,t,{headers:r})[s(465)](l=>{let c=s;return console[c(530)](l),a[c(592)](l?.[c(454)]?.[c(453)],401)&&a[c(384)](messageToDart,{action:a[c(511)],opt:{message:a[c(610)],duration:5}}),l[c(454)]||{status:500,data:{}}}),u=a[s(421)](i,5166+22*-19+-365*13);if(o[s(369)][a[s(532)]]){let l=o[s(369)][a[s(532)]][s(434)](a[s(528)])[s(538)](/__puus=([^;]+)/);l&&a[s(551)](oo[s(538)](/__puus=([^;]+)/)[-1*3695+-601*-11+-2915*1],l[3549+-1858*-5+6419*-2])&&(oo=oo[s(479)](/__puus=[^;]+/,s(442)+l[3010+3*-203+-2400]),await nO[s(398)](s(425)+N_,oo))}return a[s(461)](o[s(453)],-8484+-1*-8913)&&a[s(495)](u,5003+1*-2933+-2070)?(await a[s(384)](ro,-6964+-663*-9+1997),await a[s(506)](Ss,e,t,r,n,a[s(514)](u,-4392+3108*-2+1*10609))):o[s(566)]||{}}async function Hne(){let e=Le,t={VbSOm:function(n,i,s,a,o){return n(i,s,a,o)},QUaha:e(422),HMrlV:function(n,i){return n>i},rGUXv:function(n,i,s){return n(i,s)}},r=await t[e(516)](Ss,e(559)+ca+e(489)+il+(e(411)+e(426)+e(430)+e(424)+e(377)+e(498)),{},{},t[e(572)]);if(r[e(566)]&&r[e(566)][e(490)]&&t[e(585)](r[e(566)][e(490)][e(540)],2118*-1+2166+-48)){let n=await t[e(555)](Ss,e(356)+"e?"+ca,{action_type:2,filelist:r[e(566)][e(490)][e(526)](i=>i[e(576)]),exclude_fids:[]});console[e(485)](n)}}async function zGe(e){let t=Le,r={ToQuu:function(i){return i()},JQPGU:function(i,s,a,o,u){return i(s,a,o,u)},XOezg:t(422),zJwFn:function(i,s){return i===s},xGWOi:function(i,s,a){return i(s,a)}};if(il){e&&await r[t(419)](Hne);return}let n=await r[t(368)](Ss,t(559)+ca+(t(489)+t(557)+t(481)+t(399)+t(531)+t(535)+t(593)),{},{},r[t(596)]);if(n[t(566)]&&n[t(566)][t(490)]){for(let i of n[t(566)][t(490)])if(r[t(370)](i[t(480)],Une)){il=i[t(576)],await r[t(419)](Hne);break}}if(!il){let i=await r[t(436)](Ss,t(470)+ca,{pdir_fid:"0",file_name:Une,dir_path:"",dir_init_lock:!1});console[t(485)](i),i[t(566)]&&i[t(566)][t(576)]&&(il=i[t(566)][t(576)])}}async function Gne(e){let t=Le,r={bKFwp:function(n,i,s){return n(i,s)}};if(!Iu[e[t(505)]]){delete Iu[e[t(505)]];let n=await r[t(550)](Ss,t(439)+t(613)+"n?"+ca,{pwd_id:e[t(505)],passcode:e[t(394)]||""});n[t(566)]&&n[t(566)][t(396)]&&(Iu[e[t(505)]]=n[t(566)])}}var VGe=[Le(350),Le(427),Le(494),Le(534),Le(389)];async function GGe(e){let t=Le,r={HfKas:function(o,u){return o||u},WmtgT:function(o,u,l,c,f){return o(u,l,c,f)},rSUeb:function(o,u){return o(u)},NXSTQ:t(422),UWydK:function(o,u){return o===u},QWRtX:function(o,u){return o===u},GHlVa:t(349),TloEb:function(o,u){return o<u},OUjTS:function(o,u){return o*u},AGYjV:function(o,u){return o*u},UyveT:t(595),AyGOh:function(o,u){return o/u},yrRig:function(o,u,l,c){return o(u,l,c)},NUTPq:function(o,u){return o+u},bgCtL:function(o,u,l){return o(u,l)},vNMIg:function(o,u,l){return o(u,l)},REWDt:t(594),bbyam:function(o,u,l){return o(u,l)},Uinlj:function(o,u){return o>u}},n=r[t(354)](typeof e,r[t(607)])?r[t(444)](zne,e):e;if(!n)return[];if(await r[t(444)](Gne,n),!Iu[n[t(505)]])return[];let i=[],s=[],a=async function(o,u,l){let c=t,f=-253*7+22*201+-2551;l=r[c(536)](l,9428+-71*25+-7652);let d=await r[c(452)](Ss,c(439)+c(483)+c(475)+ca+c(457)+o+c(539)+r[c(444)](encodeURIComponent,Iu[o][c(396)])+c(489)+u+(c(491)+c(589))+l+c(564)+f+(c(582)+c(445)+c(486)+c(524)),{},{},r[c(590)]);if(!d[c(566)])return[];let h=d[c(566)][c(490)];if(!h)return[];let p=[];for(let m of h)if(r[c(373)](m[c(339)],!0))p[c(398)](m);else if(r[c(354)](m[c(595)],!0)&&r[c(373)](m[c(388)+"ry"],r[c(549)])){if(r[c(492)](m[c(409)],r[c(435)](r[c(476)](1024,124*-77+2211+2787*3),6247+6242*-1)))continue;m[c(396)]=Iu[n[c(505)]][c(396)],i[c(398)](m)}else r[c(373)](m[c(501)],r[c(438)])&&VGe[c(410)](y=>m[c(480)][c(360)](y))&&s[c(398)](m);if(r[c(492)](l,Math[c(355)](r[c(510)](d[c(386)][c(415)],f)))){let m=await r[c(588)](a,o,u,r[c(518)](l,1));for(let y of m)h[c(398)](y)}for(let m of p){let y=await r[c(612)](a,o,m[c(576)]);for(let g of y)h[c(398)](g)}return h};return await r[t(554)](a,n[t(505)],n[t(407)]),r[t(543)](s[t(540)],0)&&i[t(580)](o=>{let u=t;var l=r[u(537)](wd,o,s);l[u(502)]&&(o[u(597)]=l[u(502)][u(433)])}),i}var Ru={};async function Wne(e,t,r,n,i){let s=Le,a={XUCUa:function(u,l){return u(l)},ebjXp:function(u,l,c){return u(l,c)},mWMRa:s(573),qvWFW:function(u,l,c,f,d){return u(l,c,f,d)},NilIZ:s(422),yNJhe:function(u,l){return u>l},wvwXY:function(u,l){return u>l},nmrTU:function(u,l){return u(l)}};if(await a[s(383)](zGe,i),i){let u=Object[s(478)](Ru);for(let l of u)delete Ru[l]}if(!il||!t&&(await a[s(383)](Gne,{shareId:e}),!Iu[e]))return null;let o=await a[s(521)](Ss,s(439)+s(611)+"?"+ca,{fid_list:[r],fid_token_list:[n],to_pdir_fid:il,pwd_id:e,stoken:t||Iu[e][s(396)],pdir_fid:"0",scene:a[s(562)]});if(o[s(566)]&&o[s(566)][s(558)]){let u=0;for(;;){let l=await a[s(371)](Ss,s(450)+ca+s(568)+o[s(566)][s(558)]+(s(378)+s(500))+u,{},{},a[s(379)]);if(l[s(566)]&&l[s(566)][s(570)]&&l[s(566)][s(570)][s(609)+s(548)]&&a[s(574)](l[s(566)][s(570)][s(609)+s(548)][s(540)],901+258*-23+-5033*-1))return l[s(566)][s(570)][s(609)+s(548)][-307*13+-1336+5327*1];if(u++,a[s(367)](u,860*3+2*634+183*-21))break;await a[s(591)](ro,6476+31*-40+-1412*3)}}return!1}async function Kne(e,t,r,n){let i=Le,s={prlfI:function(o,u,l,c,f,d){return o(u,l,c,f,d)},fnJMi:function(o,u,l){return o(u,l)},EoAXs:i(346)+i(499)+i(519),jTFoQ:i(513)};if(!Ru[r]){let o=await s[i(579)](Wne,e,t,r,n,!0);if(!o)return null;Ru[r]=o}let a=await s[i(575)](Ss,i(405)+i(601)+ca,{fid:Ru[r],resolutions:s[i(431)],supports:s[i(561)]});return a[i(566)]&&a[i(566)][i(547)]?a[i(566)][i(547)]:null}async function WGe(e,t,r,n,i){let s=Le,a={MWtfE:function(u,l,c,f,d,h){return u(l,c,f,d,h)},WtQUe:function(u,l,c){return u(l,c)}};if(!Ru[r]){let u=await a[s(414)](Wne,e,t,r,n,i);if(!u)return null;Ru[r]=u}let o=await a[s(420)](Ss,s(523)+s(587)+ca,{fids:[Ru[r]]});return o[s(566)]?o[s(566)][-5119+5119*1]:null}function P_(){let e=["keys","replace","file_name","_size=200&","1143604mbCGAd","epage/deta","nvbai","log",",file_name","/src/subt/","SBWPa","&pdir_fid=","list","&force=0&_","TloEb"," quark-clo",".scc","vXoGE","seLxk","DurdU","desc",",high,supe","ex=","type","bestMatch","HWiKa","88296FbdyPu","shareId","UmTPM","XLmtv","491100 Saf","coHvX","AyGOh","GECLP","quark","fmp4","Kryav","params","VbSOm","VBLyz","NUTPq","r,2k,4k","CatVodOpen","ebjXp","/quark","file/downl",":asc","down","map","wRQEU","wfKXk",") AppleWeb","error","_type:asc,","JIBEf","ari/537.36",".stl","updated_at","HfKas","vNMIg","match","&stoken=","length","Mozilla/5.","/.mp4","Uinlj","wUOhi","n.quark.cn","ud-drive/2","video_list","p_fids","GHlVa","bKFwp","DkZhB","MisLO","896.160 El","bbyam","rGUXv","https://pa","0&_page=1&","task_id","file/sort?","Win64; x64","jTFoQ","mWMRa","getObjectD","&_size=","site","data","config","&task_id=","token","save_as","rhEjz","QUaha","link","yNJhe","fnJMi","fid","upFHG","XdGAX","prlfI","forEach","kVFog","&_sort=fil","cEcXY",".5.20 Chro","HMrlV","2401869IibVBz","oad?","yrRig","page=","NXSTQ","nmrTU","FZMLq",":desc","string","file","XOezg","subtitle","set-cookie","ive.quark.","download_u","ay?","efault","startsWith","9791770PmWfrX","filter","normal","REWDt","r=pc","save_as_to","odyKL","epage/save","bgCtL","epage/toke","fileId","tHwbO"," Channel/p","dir","/proxy/qua","cookie","prefix","4QAfYcf","what","share_fid_","normal,low","video_info",";;;","video",".srt","resolution","ectron/18.","/src/redir","QWRtX","ceil","file/delet","server","assign","zwjvd","endsWith","ike Gecko)","SydOy"," (KHTML, l","0 (Windows","\u5938\u514Btoken\u5DF2\u8FC7\u671F","tPqpr","wvwXY","JQPGU","headers","zJwFn","qvWFW","url","UWydK","33yZxbwn","/trans/","\u8FDB\u884C\u914D\u7F6E","pdated_at:","&retry_ind","NilIZ","drive/","redirect","zVTjP","XUCUa","Kuwqi","gVybA","metadata","MD5","obj_catego",".ttml","split","\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90","xMriA","toLowerCas","sharePwd","indexOf","stoken","WyZom","push","_sort=file","rVTkm","ckk_other_","cgtkO","trans","extra","file/v2/pl","super","folderId","cn/1/cloud","size","some","&_page=1&_","ect/","anZbG","MWtfE","_total","toString","vaoDm","721341ORpeyg","ToQuu","WtQUe","iVJVn","get","EclJU","type:asc,u","/quark/","size=200&_",".ass","low","RYkuw","sort=file_","EoAXs","3831635UIvZfe","target","join","OUjTS","xGWOi","pr=ucpro&f","UyveT","share/shar","high","20573BaBvPs","__puus=","Hex","rSUeb","e_type:asc","exec","address"," NT 10.0; ","Kit/537.36","task?","enc","WmtgT","status","response","SoVSz","/.bin","&pwd_id=","uAQSQ","63wfrZWi","body","afVaa","me/100.0.4","3.5.4-b478","flag","catch","DOBES","https://dr","/src/down/","accessable","file?","stringify","YtsMn","906UTCmsz","post","il?","AGYjV","toast"];return P_=function(){return e},P_()}async function Yne(e){let t=Le,r={EclJU:function(n,i){return n(i)},coHvX:t(556)+t(545),upFHG:function(n,i){return n(i)},zVTjP:function(n,i,s){return n(i,s)},cEcXY:function(n,i){return n+i},DOBES:function(n,i){return n+i},SoVSz:function(n,i){return n(i)},SydOy:t(512)};if(r[t(423)](Tm,r[t(509)])){let n=r[t(577)](zne,e);if(n){let i=await r[t(577)](GGe,n);return i=i[t(526)](s=>{let a=t;return{vod_id:[n[a(505)],s[a(396)],s[a(576)],s[a(345)+a(569)],s[a(597)]?s[a(597)][a(576)]:"",s[a(597)]?s[a(597)][a(345)+a(569)]:""][a(434)]("*"),vod_name:s[a(480)],vod_size:s[a(409)]}}),r[t(382)](di,r[t(583)](r[t(466)](r[t(455)](getPanName,r[t(362)]),"-"),n[t(505)]),i)}else return{}}}var O_={},tO={};async function Xne(e,t){let r=Le,n={HWiKa:function(u,l){return u(l)},xMriA:function(u,l){return u==l},seLxk:r(512),XdGAX:r(403),vaoDm:function(u,l,c,f,d){return u(l,c,f,d)},RYkuw:function(u,l){return u(l)},rhEjz:function(u,l,c,f,d,h){return u(l,c,f,d,h)},YtsMn:r(525),kVFog:r(381)};await n[r(503)](Vne,e);let i=e[r(515)][r(565)],s=e[r(515)][r(344)],a=e[r(515)][r(505)],o=e[r(515)][r(614)];if(n[r(392)](i,n[r(496)])){let u="",l=o[r(390)]("*"),c=e[r(515)][r(464)];if(n[r(392)](s,n[r(578)])){!O_[l[-238*9+4783*-1+6926]]&&(O_[l[1]]=(await n[r(417)](Kne,a,n[r(429)](decodeURIComponent,l[-1*4195+969+-3226*-1]),l[-9533+7*5+9499],l[9451+-9*20+-9269]))[r(605)](f=>f[r(469)])),u=O_[l[7630+-83*-43+-11198]][r(605)](f=>f[r(351)][r(393)+"e"]()==c)[7*1082+1573+-9147][r(347)][r(372)],t[r(381)](u);return}else{if(!tO[l[-3177+-1*3405+6583]]){let f=await n[r(571)](WGe,a,n[r(429)](decodeURIComponent,l[0]),l[1],l[2],n[r(392)](c,n[r(472)]));f&&(tO[l[-1370+-457*-3]]=f)}if(u=tO[l[1*8899+9055+1381*-13]][r(600)+"rl"],n[r(392)](c,n[r(581)])){t[r(381)](u);return}}return await n[r(571)](R_,e,t,u,l[1261+-8773*1+1*7513],Object[r(358)]({Cookie:oo},iO))}}async function Jne(e,t){let r=Le,n={SBWPa:function(u,l){return u(l)},uAQSQ:r(512),tHwbO:function(u,l,c,f,d){return u(l,c,f,d)},nvbai:r(406),wUOhi:r(440),rVTkm:r(428),wRQEU:r(606),gVybA:function(u,l){return u+l},DurdU:r(340)+"rk",VBLyz:function(u,l){return u(l)},tPqpr:function(u,l){return u(l)}};await n[r(488)](Vne,e);let i=e[r(460)][r(464)],s=e[r(460)].id,a=s[r(390)]("*"),o=1965*3+7022+12917*-1;if(i[r(603)](n[r(488)](getPanName,n[r(458)]))){let u=(await n[r(615)](Kne,a[0],a[1],a[2],a[3]))[r(605)](p=>p[r(469)]);O_[a[4409+-5*-1068+-9747]]=u;let l=[],c=["\u8D85\u6E05","\u84DD\u5149","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],f=["4k","2k",n[r(484)],n[r(544)],n[r(400)],n[r(527)]],d=n[r(385)](n[r(385)](e[r(357)][r(447)]()[r(372)],e[r(357)][r(342)]),n[r(497)]);l[r(398)]("\u4EE3\u7406"),l[r(398)](d+r(468)+a[3*1+9244+1321*-7]+"/"+n[r(517)](encodeURIComponent,a[1*2366+302*29+-11123])+"*"+a[-689*-4+5753*-1+1*2999]+"*"+a[4401+19*139+-7039]+r(456)),l[r(398)]("\u539F\u753B"),l[r(398)](d+(r(353)+r(412))+a[1*7323+-1*3087+2*-2118]+"/"+n[r(366)](encodeURIComponent,a[-3006*3+6317+7*386])+"*"+a[3980+-221*18]+"*"+a[5901+-1931*5+3757]+r(456));let h={parse:0,url:l,header:Object[r(358)]({Cookie:oo},iO)};return a[1*5838+-4203+-51*32]&&(h[r(404)]={subt:d+r(487)+a[0]+"/"+n[r(488)](encodeURIComponent,a[13175+-2*6587])+"*"+a[6844+6115*-1+1*-725]+"*"+a[7696+-1*4251+-3440]+r(456)}),u[r(580)](p=>{let m=r;o=f[m(395)](p[m(351)]),l[m(398)](c[o]),l[m(398)](d+m(375)+p[m(351)][m(393)+"e"]()+"/"+a[-283*-10+-3701*1+871*1]+"/"+n[m(488)](encodeURIComponent,a[-226+227*1])+"*"+a[127*-11+6722*1+-1*5323]+"*"+a[241*-35+5808+-2630*-1]+m(542))}),h}}var da=Te(vn(),1);var oae=Te(fl(),1),co=Te(vn(),1);var YO="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36 SE 2.X MetaSr 1.0",aae=[],XO=null,lYe=async e=>{let t=co.default.enc.Hex.stringify(co.default.MD5(e.config.uc.cookie)).toString();return(await e.db.getObjectDefault("/uc",{}))[t]??""},fYe=async(e,t)=>{let r=co.default.enc.Hex.stringify(co.default.MD5(e.config.uc.cookie)).toString();await e.db.push(`/uc/${r}`,t)},JO=async e=>{let t=co.default.enc.Hex.stringify(co.default.MD5(e.config.uc.ut)).toString();return(await e.db.getObjectDefault("/uc",{}))[t]??""},QO=async(e,t)=>{let r=co.default.enc.Hex.stringify(co.default.MD5(e.config.uc.ut)).toString();await e.db.push(`/uc/${r}`,t)};async function ZO(e){e.get("/qrcode",async(t,r)=>{let n=await fe.get(`https://api.open.uc.cn/cas/ajax/getTokenForQrcodeLogin?client_id=381&v=1.2&request_id=${Date.now()}`,{headers:{"User-Agent":YO,referer:"https://drive.uc.cn"}});aae=aa(n.headers["set-cookie"]),XO=n.data.data.members.token;let i=`https://su.uc.cn/1_n0ZCv?uc_param_str=dsdnfrpfbivesscpgimibtbmnijblauputogpintnwktprchmt&token=${XO}&client_id=381&uc_biz_str=S%3Acustom%7CC%3Atitlebar_fix`,s=await oae.default.toBuffer(i,{width:300,height:300});r.send(s)}),e.post("/cookie",(t,r)=>{fe.get(`https://api.open.uc.cn/cas/ajax/getServiceTicketByQrcodeToken?__t=${Date.now()}&token=${XO}&client_id=381&v=1.2&request_id=${Date.now()}`).then(n=>n.data.status===2e6?{data:n.data.data,cookies:aae}:Promise.reject(new Error(`service_ticket\u83B7\u53D6\u5931\u8D25: ${n.data.message}`))).then(async({data:n,cookies:i})=>{let s=await fe.get(`https://drive.uc.cn/account/info?st=${n.members.service_ticket}&fr=pc&platform=pc`,{headers:{"User-Agent":YO,Cookie:i.join(""),referer:"https://drive.uc.cn"}});return s.headers["set-cookie"]?i.concat(aa(s.headers["set-cookie"])):Promise.reject(new Error(`\u4E2A\u4EBAPus\u83B7\u53D6\u5931\u8D25\uFF1A${s.data.message}`))}).then(async n=>{let i=await fe.post("https://pc-api.uc.cn/1/clouddrive/transfer/upload/pdir?pr=UCBrowser&fr=pc",{},{headers:{"User-Agent":YO,Cookie:n.join("")}});if(i.headers["set-cookie"])r.send({code:0,data:n.concat(aa(i.headers["set-cookie"])).join("")});else return Promise.reject(new Error(`\u4E2A\u4EBAPuus\u83B7\u53D6\u5931\u8D25\uFF1A${i.data.message}`))}).catch(n=>{console.error(n),r.send({code:-1,message:n?.message||"\u626B\u7801\u767B\u5F55\u5931\u8D25"})})}),e.get("/cookie",async(t,r)=>{r.send({code:0,data:await lYe(t.server)})}),e.put("/cookie",async(t,r)=>{await fYe(t.server,t.body.cookie),r.send({code:0})}),e.get("/ut",async(t,r)=>{r.send({code:0,data:await JO(t.server)})}),e.put("/ut",async(t,r)=>{await QO(t.server,t.body.ut),r.send({code:0})})}var Xi={DeviceID:"07b48aaba8a739356ab8107b5e230ad4",RefreshToken:"",AccessToken:""},Sr={api:"https://open-api-drive.uc.cn",clientID:"5acf882d27b74502b7040b0c65519aa7",signKey:"l3srvtd7p42l0d0x1u8d7yc8ye9kki4d",appVer:"1.6.8",channel:"UCTVOFFICIALWEB",codeApi:"http://api.extscreen.com/ucdrive"};function dYe(e){return da.default.MD5(e).toString().slice(0,16)}function jm(e,t){return da.default.MD5(e+t).toString().slice(0,16)}function X_(e,t,r,n){let i=e+"&"+t+"&"+r+"&"+n;return da.default.SHA256(i).toString()}function lae(e){let r=/https:\/\/drive\.uc\.cn\/s\/([^\\|#/?]+)/.exec(e);return r?{shareId:r[1],folderId:"0"}:null}var pa="pr=UCBrowser&fr=pc",rP={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) uc-cloud-drive/2.5.20 Chrome/100.0.4896.160 Electron/18.3.5.4-b478491100 Safari/537.36 Channel/pckk_other_ch",Referer:"https://drive.uc.cn"},qm=null,K_=null,tP="https://pc-api.uc.cn/1/clouddrive/",lo="",nP="",fae="",Mu={},uae="CatVodOpen",dl=null,W_="";async function dae(e){qm=e.server.db;let t=e.server.config.uc;lo=t.cookie,K_=da.default.enc.Hex.stringify(da.default.MD5(t.cookie)).toString(),nP=da.default.enc.Hex.stringify(da.default.MD5(t.token)).toString(),fae=da.default.enc.Hex.stringify(da.default.MD5(t.ut)).toString();let r=await qm.getObjectDefault("/uc",{});if(r[K_]&&(lo=r[K_]),W_=await JO(e.server),!W_)try{await wt.get(`${tP}/file`)}catch(n){n?.response?.data?.length&&(W_=n.response.data,QO(e.server,W_))}}async function As(e,t,r,n,i){r=r||{},Object.assign(r,rP),Object.assign(r,{Cookie:lo||""}),n=n||"post";let s=n=="get"?await wt.get(`${tP}/${e}`,{headers:r}).catch(o=>(console.error(o),o?.response?.status===401&&messageToDart({action:"toast",opt:{message:"UC token\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90\u8FDB\u884C\u914D\u7F6E",duration:5}}),o.response||{status:500,data:{}})):await wt.post(`${tP}/${e}`,t,{headers:r}).catch(o=>(console.error(o),o?.response?.status===401&&messageToDart({action:"toast",opt:{message:"UC token\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90\u8FDB\u884C\u914D\u7F6E",duration:5}}),o.response||{status:500,data:{}})),a=i||3;if(s.headers["set-cookie"]){let o=s.headers["set-cookie"].join(";;;").match(/__puus=([^;]+)/);o&&lo.match(/__puus=([^;]+)/)[1]!=o[1]&&(lo=lo.replace(/__puus=[^;]+/,`__puus=${o[1]}`),await qm.push(`/uc/${K_}`,lo))}return s.status===429&&a>0?(await ro(1e3),await As(e,t,r,n,a-1)):s.data||{}}async function cae(){let e=await As(`file/sort?${pa}&pdir_fid=${dl}&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(e.data&&e.data.list&&e.data.list.length>0){let t=await As(`file/delete?${pa}`,{action_type:2,filelist:e.data.list.map(r=>r.fid),exclude_fids:[]});console.log(t)}}async function pYe(e){if(dl){e&&await cae();return}let t=await As(`file/sort?${pa}&pdir_fid=0&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(t.data&&t.data.list){for(let r of t.data.list)if(r.file_name===uae){dl=r.fid,await cae();break}}if(!dl){let r=await As(`file?${pa}`,{pdir_fid:"0",file_name:uae,dir_path:"",dir_init_lock:!1});console.log(r),r.data&&r.data.fid&&(dl=r.data.fid)}}async function pae(e){if(!Mu[e.shareId]){delete Mu[e.shareId];let t=await As(`share/sharepage/token?${pa}`,{pwd_id:e.shareId,passcode:e.sharePwd||""});t.data&&t.data.stoken&&(Mu[e.shareId]=t.data)}}var hYe=[".srt",".ass",".scc",".stl",".ttml"];async function mYe(e){let t=typeof e=="string"?lae(e):e;if(!t)return[];if(await pae(t),!Mu[t.shareId])return[];let r=[],n=[],i=async function(s,a,o){o=o||1;let l=await As(`share/sharepage/detail?${pa}&pwd_id=${s}&stoken=${encodeURIComponent(Mu[s].stoken)}&pdir_fid=${a}&force=0&_page=${o}&_size=100&_sort=file_type:asc,file_name:asc`,{},{},"get");if(!l.data)return[];let c=l.data.list;if(!c)return[];let f=[];for(let d of c)if(d.dir===!0)f.push(d);else if(d.file===!0&&d.obj_category==="video"){if(d.size<1024*1024*5)continue;d.stoken=Mu[t.shareId].stoken,r.push(d)}else d.type==="file"&&hYe.some(h=>d.file_name.endsWith(h))&&n.push(d);if(o<Math.ceil(l.metadata._total/100)){let d=await i(s,a,o+1);for(let h of d)c.push(h)}for(let d of f){let h=await i(s,d.fid);for(let p of h)c.push(p)}return c};return await i(t.shareId,t.folderId),n.length>0&&r.forEach(s=>{var a=wd(s,n);a.bestMatch&&(s.subtitle=a.bestMatch.target)}),r}var fo={};async function hae(e,t,r,n,i){if(await pYe(i),i){let a=Object.keys(fo);for(let o of a)delete fo[o]}if(!dl||!t&&(await pae({shareId:e}),!Mu[e]))return null;let s=await As(`share/sharepage/save?${pa}`,{fid_list:[r],fid_token_list:[n],to_pdir_fid:dl,pwd_id:e,stoken:t||Mu[e].stoken,pdir_fid:"0",scene:"link"});if(s.data&&s.data.task_id){let a=0;for(;;){let o=await As(`task?${pa}&task_id=${s.data.task_id}&retry_index=${a}`,{},{},"get");if(o.data&&o.data.save_as&&o.data.save_as.save_as_top_fids&&o.data.save_as.save_as_top_fids.length>0)return o.data.save_as.save_as_top_fids[0];if(a++,a>5)break;await ro(1e3)}}return!1}async function mae(e,t,r,n){if(!fo[r]){let s=await hae(e,t,r,n,!0);if(!s)return null;fo[r]=s}let i=await As(`file/v2/play?${pa}`,{fid:fo[r],resolutions:"normal,low,high,super,2k,4k",supports:"fmp4"});return i.data&&i.data.video_list?i.data.video_list:null}async function gYe(e,t,r,n,i){if(!fo[r]){let u=await hae(e,t,r,n,i);if(!u)return null;fo[r]=u}let s=await qm.getObjectDefault("/uc",{}),a=s[nP],o=s[fae];if(a){let u=[],l="/file",c=Math.floor(Date.now()/1e3).toString()+"000",f=Xi.DeviceID||dYe(c),d=jm(f,c),h=X_("GET",l,c,Sr.signKey),p={method:"GET",url:"https://open-api-drive.uc.cn/file",params:{req_id:d,access_token:a,app_ver:Sr.appVer,device_id:f,device_brand:"Xiaomi",platform:"tv",device_name:"M2004J7AC",device_model:"M2004J7AC",build_device:"M2004J7AC",build_product:"M2004J7AC",device_gpu:"Adreno (TM) 550",activity_rect:"{}",channel:Sr.channel,method:"streaming",group_by:"source",fid:fo[r],resolution:"low,normal,high,super,2k,4k",support:"dolby_vision"},headers:{"User-Agent":"Mozilla/5.0 (Linux; U; Android 9; zh-cn; RMX1931 Build/PQ3A.190605.05081124) AppleWebKit/533.1 (KHTML, like Gecko) Mobile Safari/533.1",Connection:"Keep-Alive","Accept-Encoding":"gzip","x-pan-tm":c,"x-pan-token":h,"content-type":"text/plain;charset=UTF-8","x-pan-client-id":Sr.clientID}},m=await fe.request(p);if(m.status===200){let y=m.data.data.video_info.filter(g=>g.accessable)[0];return y.download_url=y.url,y}}else{let u=`file/download?${pa}`;o&&(u+=`&ut=${o}`);let l=await As(u,{fids:[fo[r]]});if(l.data)return l.data[0]}return null}async function gae(e){if(Sm(e)){let t=lae(e);if(t){let r=await mYe(t);return r=r.map(n=>({vod_id:[t.shareId,n.stoken,n.fid,n.share_fid_token,n.subtitle?n.subtitle.fid:"",n.subtitle?n.subtitle.share_fid_token:""].join("*"),vod_name:n.file_name,vod_size:n.size})),di(getPanName("uc")+"-"+t.shareId,r)}else return{}}}var Y_={},eP={};async function yae(e,t){let r=e.params.site,n=e.params.what,i=e.params.shareId,s=e.params.fileId;if(await dae(e),r=="uc"){let a="",o=s.split("*"),u=e.params.flag;if(n=="trans"){Y_[o[1]]||(Y_[o[1]]=(await mae(i,decodeURIComponent(o[0]),o[1],o[2])).filter(l=>l.accessable)),a=Y_[o[1]].filter(l=>l.resolution.toLowerCase()==u)[0].video_info.url,t.redirect(a);return}else{if(!eP[o[1]]){let l=await gYe(i,decodeURIComponent(o[0]),o[1],o[2],u=="down");l&&(eP[o[1]]=l)}if(a=eP[o[1]].download_url,u=="redirect"){t.redirect(a);return}}return await R_(e,t,a,o[1],Object.assign({Cookie:lo},rP),{chunkSize:1024*150,poolSize:14,timeout:1e3*10})}}async function bae(e,t){let r=e.body.flag,i=e.body.id.split("*");await dae(e);let s=0;if(r.startsWith(getPanName("uc"))){let a=(await mae(i[0],i[1],i[2],i[3])).filter(y=>y.accessable);Y_[i[2]]=a;let o=[],u=["\u8D85\u6E05","\u84DD\u5149","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],l=["4k","2k","super","high","low","normal"],c=e.server.address().url+e.server.prefix+"/proxy/uc",d=(await qm.getObjectDefault("/uc",{}))[nP],h=["\u4EE3\u7406",`${c}/src/down/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.bin`],p=["\u539F\u753B",`${c}/src/redirect/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.bin`];d?o.push(...p,...h):o.push(...h,...p);let m={parse:0,url:o,header:Object.assign({Cookie:lo},rP)};return d&&(m.header=void 0),i[3]&&(m.extra={subt:`${c}/src/subt/${i[0]}/${encodeURIComponent(i[1])}*${i[4]}*${i[5]}/.bin`}),a.forEach(y=>{s=l.indexOf(y.resolution),o.push(u[s]),o.push(`${c}/trans/${y.resolution.toLowerCase()}/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.mp4`)}),m}}var wP=Te(sv(),1),Soe=Te(_oe(),1),AP=Te(require("crypto"),1),CP,IP={},Fd={set(e,t){IP[e]=t,CP.push(`/tyi/${e}`,t)},get(e){return IP[e]}},voe=(e,t={})=>{let r=t.method||"GET",n=t.headers||{};return fe({method:r,url:e,headers:n,transformResponse:[i=>i]}).then(i=>({ok:i.status===200,status:i.status,statusText:i.statusText,url:i.config.url,text:()=>Promise.resolve(i.data),json:()=>Promise.resolve(JSON.parse(i.data)),headers:i.headers})).catch(i=>i.response?{ok:!1,status:i.response.status,statusText:i.response.statusText,url:i.config.url,text:()=>Promise.resolve(i.response.data),json:()=>Promise.resolve(JSON.parse(i.response.data)),headers:i.response.headers}:i.request?{ok:!1,status:0,statusText:"No response received",text:()=>Promise.resolve(""),json:()=>Promise.reject(new Error("No response received"))}:Promise.reject(i))},Toe=(0,Soe.default)({storeAsString:!0}),RP=class{publicKey=null;setPublicKey(t){this.publicKey=t}encrypt(t){let r=Buffer.from(t,"utf8");return AP.default.publicEncrypt({key:this.publicKey,padding:AP.default.constants.RSA_PKCS1_PADDING},r).toString("base64")}},woe=async e=>{CP=e.server.db,IP=await CP.getObjectDefault("/tyi",{})},NP=class{constructor(){this.regex=/https?:\/\/cloud\.189\.cn\/web\/share\?code=([^&]+)/,this.config={clientId:"538135150693412",model:"KB2000",version:"9.0.6",pubKey:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZLyV4gHNDUGJMZoOcYauxmNEsKrc0TlLeBEVVIIQNzG4WqjimceOj5R9ETwDeeSN3yejAKLGHgx83lyy2wBjvnbfm/nLObyWwQD/09CmpZdxoFYCH6rdDjRpwZOZ2nXSZpgkZXoOBkfNXNxnN74aXtho2dqBynTw3NFTWyQl8BQIDAQAB"},this.headers={"User-Agent":`Mozilla/5.0 (Linux; U; Android 11; ${this.config.model} Build/RP1A.201005.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Ecloud/${this.config.version} Android/30 clientId/${this.config.clientId} clientModel/${this.config.model} clientChannelId/qq proVersion/1.0.6`,Referer:"https://m.cloud.189.cn/zhuanti/2016/sign/index.jsp?albumBackupOpened=1","Accept-Encoding":"gzip, deflate"},this.api="https://cloud.189.cn/api",this.shareCode="",this.accessCode="",this.shareId="",this.shareMode="",this.isFolder="",this.index=0}async init(){this.account&&console.log("\u5929\u7FFC\u8D26\u53F7\u83B7\u53D6\u6210\u529F\uFF1A"+this.account),this.password&&console.log("\u5929\u7FFC\u5BC6\u7801\u83B7\u53D6\u6210\u529F\uFF1A"+this.password),this.cookie?console.log("\u5929\u7FFCcookie\u83B7\u53D6\u6210\u529F"+this.cookie):Fd.set("cloud_cookie",await this.login(this.account,this.password))}get account(){return Fd.get("cloud_account")}get password(){return Fd.get("cloud_password")}get cookie(){return Fd.get("cloud_cookie")}async login(t,r){try{let n=await fe.post("https://open.e.189.cn/api/logbox/config/encryptConf.do?appId=cloud"),i=n.data.data.pubKey;n=await fe.get("https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https://cloud.189.cn/web/redirect.html?returnURL=/main.action");let s=n.request.path.match(/reqId=(\w+)/)[1],o={"Content-Type":"application/x-www-form-urlencoded","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/76.0",Referer:"https://open.e.189.cn/",Lt:n.request.path.match(/lt=(\w+)/)[1],Reqid:s},u={version:"2.0",appKey:"cloud"};n=await fe.post("https://open.e.189.cn/api/logbox/oauth2/appConf.do",wP.default.stringify(u),{headers:o});let l=n.data.data.returnUrl,c=n.data.data.paramId,f=`-----BEGIN PUBLIC KEY-----
${i}
-----END PUBLIC KEY-----`,d=new RP;d.setPublicKey(f);let h=Buffer.from(d.encrypt(t),"base64").toString("hex"),p=Buffer.from(d.encrypt(r),"base64").toString("hex");if(u={appKey:"cloud",version:"2.0",accountType:"01",mailSuffix:"@189.cn",validateCode:"",returnUrl:l,paramId:c,captchaToken:"",dynamicCheck:"FALSE",clientType:"1",cb_SaveName:"0",isOauth2:!1,userName:`{NRP}${h}`,password:`{NRP}${p}`},n=await fe.post("https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do",wP.default.stringify(u),{headers:o,validateStatus:null}),n.data.toUrl){let m=n.headers["set-cookie"].map(y=>y.split(";")[0]).join(";");n=await fe.get(n.data.toUrl,{headers:{...this.headers,Cookie:m},maxRedirects:0,validateStatus:null}),m+="; "+n.headers["set-cookie"].map(y=>y.split(";")[0]).join(";"),Fd.set("cloud_cookie",m)}else console.error("Error during login:",n.data)}catch(n){console.error("Error during login:",n)}}async getShareID(t,r){let n=this.regex.exec(t);if(n&&n[1]){this.shareCode=n[1];let i=this.shareCode.match(/访问码:([a-zA-Z0-9]+)/);this.accessCode=i?i[1]:""}else{let i=t.match(/https?:\/\/cloud\.189\.cn\/t\/([^&]+)/);this.shareCode=i?i[1]:null;let s=this.shareCode.match(/访问码:([a-zA-Z0-9]+)/);this.accessCode=s?s[1]:""}r&&(this.accessCode=r)}async getShareData(t,r){let n={},i=[],s=await this.getShareInfo(t,r);if(s){let a=await this.getShareList(s);a&&Array.isArray(a)?await Promise.all(a.map(async o=>{o.name in n||(n[o.name]=[]);let u=await this.getShareFile(o.id);u&&u.length>0&&n[o.name].push(...u)})):n.root=await this.getShareFile(s)}for(let a in n)n[a].length===0&&delete n[a];return Object.keys(n).length===0&&(n.root=await this.getShareFile(s),n.root&&Array.isArray(n.root)&&(n.root=n.root.filter(a=>a&&Object.keys(a).length>0))),Object.keys(n).forEach(a=>{n[a]=n[a].map(o=>({vod_id:[o.fileId,o.shareId].join("*"),vod_name:o.name,vod_size:o.size}))}),n}async getShareInfo(t,r){t.startsWith("http")?await this.getShareID(t,r):this.shareCode=t;try{if(r){let n=await fe.get(`${this.api}/open/share/checkAccessCode.action?shareCode=${this.shareCode}&accessCode=${this.accessCode}`,{headers:{"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",accept:"application/json;charset=UTF-8","accept-encoding":"gzip, deflate, br, zstd","accept-language":"zh-CN,zh;q=0.9"}});n.status===200&&(this.shareId=n.data.shareId);let i=await fe.get(`${this.api}/open/share/getShareInfoByCodeV2.action?key=noCache&shareCode=${this.shareCode}`,{headers:{"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",accept:"application/json;charset=UTF-8","accept-encoding":"gzip, deflate, br, zstd","accept-language":"zh-CN,zh;q=0.9"}}),s=i.data.fileId;return this.shareMode=i.data.shareMode,this.isFolder=i.data.isFolder,s}else{let n=await fe.get(`${this.api}/open/share/getShareInfoByCodeV2.action?key=noCache&shareCode=${this.shareCode}`,{headers:{"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",accept:"application/json;charset=UTF-8","accept-encoding":"gzip, deflate, br, zstd","accept-language":"zh-CN,zh;q=0.9"}}),i=n.data.fileId;return this.shareId=n.data.shareId,this.shareMode=n.data.shareMode,this.isFolder=n.data.isFolder,i}}catch(n){console.error("Error during getShareInfo:",n)}}async getShareList(t){try{let r=[],n={};n["User-Agent"]="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",n.Accept="application/json;charset=UTF-8",n["Accept-Encoding"]="gzip, deflate, br, zstd";let i={method:"GET",headers:n},s=await voe(`${this.api}/open/share/listShareDir.action?key=noCache&pageNum=1&pageSize=9999&fileId=${t}&shareDirFileId=${t}&isFolder=${this.isFolder}&shareId=${this.shareId}&shareMode=${this.shareMode}&iconOption=5&orderBy=lastOpTime&descending=true&accessCode=${this.accessCode}&noCache=${Math.random()}`,i),u=Toe.parse(await s.text())?.fileListAO?.folderList;if(!u)return null;let l=u.map(f=>f.name),c=u.map(f=>f.id);if(u&&u.length>0){l.forEach((d,h)=>{r.push({name:d,id:c[h],type:"folder"})});let f=await Promise.all(c.map(async d=>this.getShareList(d)));return f=f.filter(d=>d!=null),[...r,...f.flat()]}}catch(r){console.log(r)}}async getShareFile(t){try{let r={};r["User-Agent"]="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",r.Accept="application/json;charset=UTF-8",r["Accept-Encoding"]="gzip, deflate, br, zstd";let n={method:"GET",headers:r},i=await voe(`${this.api}/open/share/listShareDir.action?key=noCache&pageNum=1&pageSize=9999&fileId=${t}&shareDirFileId=${t}&isFolder=${this.isFolder}&shareId=${this.shareId}&shareMode=${this.shareMode}&iconOption=5&orderBy=lastOpTime&descending=true&accessCode=${this.accessCode}&noCache=${Math.random()}`,n),s=Toe.parse(await i.text()),a=[],o=s?.fileListAO,u=o.fileList;if(!u)return null;let l=u.map(d=>d.name),c=u.map(d=>d.id),f=o.fileListSize;if(f>=0)for(let d=0;d<f;d++)u[d].mediaType===3&&a.push({name:l[d],fileId:c[d],shareId:this.shareId,size:u[d].size});return a}catch(r){console.log(r)}}async getShareUrl(t,r){let n={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",Accept:"application/json;charset=UTF-8","Accept-Encoding":"gzip, deflate, br, zstd"};!this.cookie&&this.account&&this.password&&this.index<2&&(console.log("\u6B63\u5728\u767B\u5F55\uFF0C\u8BF7\u7A0D\u7B49...."),await this.login(this.account,this.password),console.log("\u767B\u5F55\u6210\u529F,\u83B7\u53D6cookie\u6210\u529F")),n.Cookie=this.cookie;try{let i=await fe.get(`${this.api}/portal/getNewVlcVideoPlayUrl.action?shareId=${r}&dt=1&fileId=${t}&type=4&key=noCache`,{headers:n}),s=await fe.get(i.data.normal.url,{maxRedirects:0,validateStatus:function(o){return o>=200&&o<400}}),a="";return s.status>=300&&s.status<400&&s.headers.location?a=s.headers.location:a=i.data.normal.url,a}catch(i){if(i.response&&i.response.status===400&&this.index<2)return console.log("\u83B7\u53D6\u64AD\u653E\u5730\u5740\u5931\u8D25\uFF0C\u9519\u8BEF\u4FE1\u606F\u4E3A\uFF1A"+i.response.data),console.log("cookie\u5931\u6548\uFF0C\u6B63\u5728\u91CD\u65B0\u83B7\u53D6cookie"),Fd.set("cloud_cookie",""),this.index+=1,await this.getShareUrl(t,r);console.error("Error during getShareUrl:",i.message,i.response?i.response.status:"N/A")}finally{this.index>=2&&(this.index=0,messageToDart({action:"toast",opt:{message:"\u5929\u7FFC\u8D26\u53F7\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90\u8FDB\u884C\u914D\u7F6E",duration:5}}))}}},OP=new NP;var Ur=Te(vn(),1),PP=class{constructor(){this.regexs=[/https:\/\/yun.139.com\/shareweb\/#\/w\/i\/([^&]+)/,/https:\/\/caiyun.139.com\/m\/i\?([^&]+)/,/https:\/\/caiyun.139.com\/w\/i\/([^&]+)/],this.x=Ur.default.enc.Utf8.parse("PVGDwmcvfs1uV3d1"),this.baseUrl="https://share-kd-njs.yun.139.com/yun-share/richlifeApp/devapp/IOutLink/",this.baseHeader={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",Accept:"application/json, text/plain, */*","Content-Type":"application/json","hcy-cool-flag":"1","x-deviceinfo":"||3|12.27.0|chrome|131.0.0.0|5c7c68368f048245e1ce47f1c0f8f2d0||windows 10|1536X695|zh-CN|||"},this.linkID="",this.cache={}}encrypt(t){let r=Ur.default.lib.WordArray.random(16),n="";if(typeof t=="string"){let i=Ur.default.enc.Utf8.parse(t);n=Ur.default.AES.encrypt(i,this.x,{iv:r,mode:Ur.default.mode.CBC,padding:Ur.default.pad.Pkcs7})}else if(typeof t=="object"&&t!==null){let i=JSON.stringify(t),s=Ur.default.enc.Utf8.parse(i);n=Ur.default.AES.encrypt(s,this.x,{iv:r,mode:Ur.default.mode.CBC,padding:Ur.default.pad.Pkcs7})}return Ur.default.enc.Base64.stringify(r.concat(n.ciphertext))}decrypt(t){let r=Ur.default.enc.Base64.parse(t),n=r.clone(),i=n.words.splice(4);n.init(n.words),r.init(i);let s=Ur.default.enc.Base64.stringify(r);return Ur.default.AES.decrypt(s,this.x,{iv:n,mode:Ur.default.mode.CBC,padding:Ur.default.pad.Pkcs7}).toString(Ur.default.enc.Utf8).toString()}async getShareID(t){this.regexs.forEach(r=>{let n=r.exec(t);n&&n[1]&&(this.linkID=n[1])})}async getShareInfo(t){if(!this.linkID)return console.error("linkID is not set. Please call getShareID first."),null;let r=`${this.linkID}-${t}`;if(this.cache[r])return this.cache[r];let n=JSON.stringify(this.encrypt(JSON.stringify({getOutLinkInfoReq:{account:"",linkID:this.linkID,passwd:"",caSrt:0,coSrt:0,srtDr:1,bNum:1,pCaID:t,eNum:200},commonAccountInfo:{account:"",accountType:1}})));try{let i=await fe.post(this.baseUrl+"getOutLinkInfoV6",n,{headers:this.baseHeader});if(i.status!==200)return null;let s=JSON.parse(this.decrypt(i.data)).data;return this.cache[r]=s,s}catch(i){return console.error("Error processing share info:",i),null}}async getShareData(t){if(!t)return{};let r=t.startsWith("http"),n=r?"root":t;r&&await this.getShareID(t);let i={},s=await this.getShareFile(n);s&&Array.isArray(s)&&await Promise.all(s.map(async a=>{a.name in i||(i[a.name]=[]);let o=await this.getShareUrl(a.path);o&&o.length>0&&i[a.name].push(...o)}));for(let a in i)i[a].length===0&&delete i[a];return Object.keys(i).length===0&&(i.root=await this.getShareFile(t),i.root&&Array.isArray(i.root)&&(i.root=i.root.filter(a=>a&&Object.keys(a).length>0))),Object.keys(i).forEach(a=>{i[a]=i[a].map(o=>({vod_name:o.name,vod_id:[o.contentId,o.linkID].join("*"),vod_size:o.size}))}),i}async getShareFile(t){if(!t)return null;try{t=t.startsWith("http")?"root":t;let n=await this.getShareInfo(t);if(!n||!n.caLst)return null;let i=n?.caLst,s=i.map(l=>l.caName),a=i.map(l=>l.path),o=/App|活动中心|免费|1T空间|免流/,u=[];if(i&&i.length>0){s.forEach((c,f)=>{o.test(c)||u.push({name:c,path:a[f]})});let l=await Promise.all(a.map(async c=>this.getShareFile(c)));return l=l.filter(c=>c!=null),[...u,...l.flat()]}}catch(r){return console.error("Error processing share data:",r),null}}async getShareUrl(t){try{let r=await this.getShareInfo(t);if(!r||!("coLst"in r))return null;let n=r.coLst;if(n!==null)return n.filter(s=>s&&s.coType===3).map(s=>({name:s.coName,contentId:s.coID,linkID:this.linkID,size:s.coSize}));if(r.caLst!==null){let i=r.caLst.map(a=>a.path),s=await Promise.all(i.map(a=>this.getShareUrl(a)));return s=s.filter(a=>a&&a.length>0),s.flat()}}catch(r){return console.error("Error processing share URL:",r),null}}async getSharePlay(t,r){let n={getContentInfoFromOutLinkReq:{contentId:t,linkID:r,account:""},commonAccountInfo:{account:"",accountType:1}},i=await fe.post(this.baseUrl+"getContentInfoFromOutLink",n,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",Accept:"application/json, text/plain, */*","Accept-Encoding":"gzip, deflate, br, zstd","Content-Type":"application/json"}});if(i.status===200&&i.data.data!==null)return i.data.data.contentInfo.presentURL}},DP=new PP;var kP=Te(vn(),1);function QXe(e){return Buffer.from(e,"base64").toString("utf8")}var $P,LP={},cv={set(e,t){LP[e]=t,$P.push(`/pan123/${e}`,t)},get(e){return LP[e]}},Aoe=async e=>{$P=e.server.db,LP=await $P.getObjectDefault("/pan123",{})},MP=class{constructor(){this.regex=/https:\/\/(www.123684.com|www.123865.com|www.123912.com|www.123pan.com|www.123pan.cn|www.123592.com)\/s\/([^\\/]+)/,this.api="https://www.123684.com/b/api/share/",this.loginUrl="https://login.123pan.com/api/user/sign_in",this.cate=""}async init(){this.passport&&console.log("\u83B7\u53D6\u76D8123\u8D26\u53F7\u6210\u529F"),this.password&&console.log("\u83B7\u53D6\u76D8123\u5BC6\u7801\u6210\u529F"),this.auth?JSON.parse(kP.default.enc.Base64.parse(this.auth.split(".")[1]).toString(kP.default.enc.Utf8)).exp>Math.floor(Date.now()/1e3)?console.log("\u767B\u5F55\u6210\u529F"):(console.log("\u767B\u5F55\u8FC7\u671F\uFF0C\u91CD\u65B0\u767B\u5F55"),await this.loin()):(console.log("\u5C1A\u672A\u767B\u5F55\uFF0C\u5F00\u59CB\u767B\u5F55"),await this.loin())}get passport(){return cv.get("pan_passport")}get password(){return cv.get("pan_password")}get auth(){return cv.get("pan_auth")}async loin(){let t=JSON.stringify({passport:this.passport,password:this.password,remember:!0}),r={method:"POST",url:this.loginUrl,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","Content-Type":"application/json","App-Version":"43",Referer:"https://login.123pan.com/centerlogin?redirect_url=https%3A%2F%2Fwww.123684.com&source_page=website"},data:t},n=(await fe.request(r)).data;if(!n?.data?.token){messageToDart({action:"toast",opt:{message:"123\u76D8\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90\u8FDB\u884C\u914D\u7F6E",duration:5}});return}cv.set("pan_auth",n.data.token)}getShareData(t){t=decodeURIComponent(t);let r=this.regex.exec(t);return t.indexOf("?")>0&&(this.SharePwd=t.split("?")[1].match(/[A-Za-z0-9]+/)[0],console.log(this.SharePwd)),r?r[2].indexOf("?")>0?r[2].split("?")[0]:r[2].match(/www/g)?r[1]:r[2]:null}async getFilesByShareUrl(t){let r={},n=await this.getShareInfo(t,this.SharePwd,0,0);n&&Array.isArray(n)&&await Promise.all(n.map(async i=>{i.filename in r||(r[i.filename]=[]);let s=await this.getShareList(i.shareKey,i.SharePwd,i.next,i.fileId);s&&s.length>0&&r[i.filename].push(...s)}));for(let i in r)r[i].length===0&&delete r[i];return Object.keys(r).forEach(i=>{r[i]=r[i].map(s=>({vod_id:[s.ShareKey,s.FileId,s.S3KeyFlag,s.Size,s.Etag].join("*"),vod_name:s.FileName,vod_size:s.Size}))}),r}async getShareInfo(t,r,n,i){let s=[],a=await fe.get(this.api+"get",{headers:{},params:{limit:"100",next:n,orderBy:"file_name",orderDirection:"asc",shareKey:t,SharePwd:r,ParentFileId:i,Page:"1"}});if(a.status===200)if(a.data.code===5103)console.log(a.data.message);else{let o=a.data.data,u=o.Next;o.InfoList.forEach(f=>{f.Category===0&&s.push({filename:f.FileName,shareKey:t,SharePwd:r,next:u,fileId:f.FileId})});let c=await Promise.all(s.map(async f=>this.getShareInfo(t,r,u,f.fileId)));return c=c.filter(f=>f!=null),[...s,...c.flat()]}}async getShareList(t,r,n,i){let s=[];return(await fe.get(this.api+"get",{headers:{},params:{limit:"100",next:n,orderBy:"file_name",orderDirection:"asc",shareKey:t,SharePwd:r,ParentFileId:i,Page:"1"}})).data.data.InfoList.forEach(o=>{o.Category===2&&s.push({ShareKey:t,FileId:o.FileId,S3KeyFlag:o.S3KeyFlag,Size:o.Size,Etag:o.Etag,FileName:o.FileName})}),s}async getDownload(t,r,n,i,s){await this.init();let a=JSON.stringify({ShareKey:t,FileID:r,S3KeyFlag:n,Size:i,Etag:s}),o={method:"POST",url:`${this.api}download/info`,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",Authorization:`Bearer ${this.auth}`,"Content-Type":"application/json;charset=UTF-8",platform:"android"},data:a},u=(await fe.request(o)).data.data;return QXe(new URL(u.DownloadURL).searchParams.get("params"))}async getLiveTranscoding(t,r,n,i,s){await this.init();let a={method:"GET",url:"https://www.123684.com/b/api/video/play/info",headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",Authorization:`Bearer ${this.auth}`,"Content-Type":"application/json;charset=UTF-8",platform:"android"},params:{etag:s,size:i,from:"1",shareKey:t}},o=(await fe.request(a)).data.data.video_play_info,u=[];return o.forEach(l=>{l.url!==""&&u.push({name:l.resolution,url:l.url})}),u}},lv=new MP;var Coe=Te(fl(),1),Ym=Te(vn(),1);var FP="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36 SE 2.X MetaSr 1.0",Bd={},BP=async e=>{let t=Ym.default.enc.Hex.stringify(Ym.default.MD5(e.config.y115.cookie)).toString();return(await e.db.getObjectDefault("/y115",{}))[t]??""},ZXe=async(e,t)=>{let r=Ym.default.enc.Hex.stringify(Ym.default.MD5(e.config.y115.cookie)).toString();await e.db.push(`/y115/${r}`,t)};async function qP(e){e.get("/qrcode",async(t,r)=>{Bd=(await fe.get("https://qrcodeapi.115.com/api/1.0/web/1.0/token",{"User-Agent":FP,referer:"https://115.com/"})).data.data;let i=await Coe.default.toBuffer(Bd.qrcode,{width:300,height:300});r.send(i)}),e.post("/cookie",(t,r)=>{fe.get(`https://qrcodeapi.115.com/get/status/?_=${parseInt(Date.now()/1e3)}&sign=${Bd.sign}&time=${Bd.time}&uid=${Bd.uid}`,{"User-Agent":FP,referer:"https://115.com/"}).then(n=>n.data.data.status===2?Promise.resolve():Promise.reject(new Error(`\u626B\u7801\u72B6\u6001\u68C0\u6D4B\u5931\u8D25: ${n.data.message}`))).then(async()=>{let n=new URLSearchParams({account:Bd.uid,app:"android"}),i=await fe.post("https://passportapi.115.com/app/1.0/android/1.0/login/qrcode",n,{headers:{"User-Agent":FP,referer:"https://115.com/"}});if(i.data.state===1)r.send({code:0,data:aa(i.headers["set-cookie"]).join("")});else return Promise.reject(new Error(`\u767B\u5F55\u5931\u8D25\uFF1A${i.data.message}`))}).catch(n=>{console.error(n),r.send({code:-1,message:n?.message||"\u626B\u7801\u767B\u5F55\u5931\u8D25"})})}),e.get("/cookie",async(t,r)=>{r.send({code:0,data:await BP(t.server)})}),e.put("/cookie",async(t,r)=>{await ZXe(t.server,t.body.cookie),r.send({code:0})})}var Noe=require("http");function eJe(e){let r=/https:\/\/(?:115|anxia|115cdn)\.com\/s\/([a-zA-Z0-9]+)\?password=([a-zA-Z0-9]+)/.exec(e);return r?{shareCode:r[1],receiveCode:r[2]}:null}function tJe(e){return["mp4","webm","avi","wmv","flv","mov","mkv","mpeg","3gp","ts","m2ts","mp3","wav","aac","iso"].includes(e?.slice(e?.lastIndexOf(".")+1))}async function rJe(e,t="GET",r=null,n=null){let i=new URL(e);return new Promise((s,a)=>{let o={hostname:i.hostname,path:`${i.pathname}${i.search}`,method:t,headers:r},u=(0,Noe.request)(o,l=>{let c="";l.on("data",f=>{c+=f}),l.on("end",()=>{try{s(JSON.parse(c))}catch{a(c)}})});u.on("error",l=>{a(l)}),n&&u.write(n),u.end()})}var Ioe=new Uint8Array([240,229,105,174,191,220,191,138,26,69,232,190,125,166,115,184,222,143,231,196,69,218,134,196,155,100,139,20,106,180,241,170,56,1,53,158,38,105,44,134,0,107,79,165,54,52,98,166,42,150,104,24,242,74,253,189,107,151,143,77,143,137,19,183,108,142,147,237,14,13,72,62,215,47,136,216,254,254,126,134,80,149,79,209,235,131,38,52,219,102,123,156,126,157,122,129,50,234,182,51,222,58,169,89,52,102,59,170,186,129,96,72,185,213,129,156,248,108,132,119,255,84,120,38,95,190,232,30,54,159,52,128,92,69,44,155,118,213,27,143,204,195,184,245]),Ooe=0x8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683n,Poe=0x10001n;function Doe(e,t){t==null&&(t=Math.ceil(e.toString(16).length/2));let r=new Uint8Array(t);for(let n=t-1;n>=0;n--)r[n]=Number(e&0xffn),e>>=8n;return r}function koe(e){let t=0n;for(let r of e)t=t<<8n|BigInt(r);return t}function*jP(e,t,r=1){for(let n=e+r;n<t;n+=r)yield[e,n,r],e=n;e!==t&&(yield[e,t,t-e])}function Roe(e,t){let r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function nJe(e,t){let r=new Uint8Array(t),n=t*(t-1),i=0;for(let s=0;s<t;s++){let a=e[s]+Ioe[i]&255;r[s]=Ioe[n]^a,n-=t,i+=t}return r}function iJe(e){let t=e.length,r=new Uint8Array(128);return r.fill(2,1,127-t),r.set(e,128-t),koe(r)}function fv(e,t){let r=new Uint8Array(e.length),n=e.length&3;n&&r.set(Roe(e.subarray(0,n),t.subarray(0,n)));for(let[i,s]of jP(n,e.length,t.length))r.set(Roe(e.subarray(i,s),t),i);return r}function $oe(e,t,r){if(r===1n)return 0n;let n=1n;for(e%=r;t;)t&1n&&(n=n*e%r),t=t>>1n,e=e*e%r;return n}function sJe(e){(typeof e=="string"||e instanceof String)&&(e=new TextEncoder().encode(e));let t=new Uint8Array(16+e.length);t.set(fv(fv(e,new Uint8Array([141,165,165,141])).reverse(),new Uint8Array([120,6,173,76,51,134,93,24,76,1,63,70])),16);let r=new Uint8Array(Math.ceil(t.length/117)*128),n=0;for(let[i,s]of jP(0,t.length,117))r.set(Doe($oe(iJe(t.subarray(i,s)),Poe,Ooe),128),n,n+=128);return Buffer.from(r).toString("base64")}function aJe(e){let t=new Uint8Array(Buffer.from(e,"base64")),r=[];for(let[s,a]of jP(0,t.length,128)){let o=$oe(koe(t.subarray(s,a)),Poe,Ooe),u=Doe(o);r.push(...u.subarray(u.indexOf(0)+1))}r=new Uint8Array(r);let n=nJe(r.subarray(0,16),12),i=fv(r.subarray(16),n).reverse();return new TextDecoder("utf-8").decode(fv(i,new Uint8Array([141,165,165,141])))}async function oJe({shareCode:e,receiveCode:t,dirID:r=""}){let n=[],i=async s=>{let a=await fe.get("https://webapi.115.com/share/snap",{params:{share_code:e,receive_code:t,cid:s,limit:"9999",offset:"0"}});if(!a.data.data)return[];let o=a.data.data.list.filter(l=>l.fc===1),u=a.data.data.list.filter(l=>l.fc===0);for(let l of o)tJe(l.n)&&n.push({...l,shareCode:e,receiveCode:t});for(let l of u)await i(l.cid)};return await i(e,t,r),n}async function Loe(e){let t=eJe(e);if(t){let r=await oJe(t);return r=r.map(n=>({vod_id:[t.shareCode,t.receiveCode,n.fid].join("*"),vod_name:n.n,vod_size:n.s})),di(getPanName("115")+"-"+t.shareCode,r)}else return{}}async function Moe(e){let t=e.body.id,r=await BP(e.server),[n,i,s]=t.split("*"),a=`data=${encodeURIComponent(sJe(`{"share_code":"${n}","receive_code":"${i}","file_id":"${s}"}`))}`,o=await rJe("http://pro.api.115.com/app/share/downurl","POST",{"Content-Type":"application/x-www-form-urlencoded","Content-Length":Buffer.byteLength(a),Cookie:r},a);return o?.error?.includes?.("\u767B\u5F55")&&messageToDart({action:"toast",opt:{message:"115\u76D8\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90\u8FDB\u884C\u914D\u7F6E",duration:5}}),{parse:0,url:["\u539F\u753B",JSON.parse(aJe(o.data)).url.url]}}var Foe=Te(sv(),1),UP=Te(vn(),1);var cJe=async e=>globalThis.getPanName?await globalThis.getPanName(e):e,HP,zP={},Xm={set(e,t){zP[e]=t,HP.push(`/baidu/${e}`,t)},get(e){return zP[e]}},Boe=async e=>{HP=e.server.db,zP=await HP.getObjectDefault("/baidu",{})};var VP=class{constructor(){this.regex=/https:\/\/pan\.baidu\.com\/s\/(.*)\?.*?pwd=([^&]+)/,this.type=["M3U8_AUTO_4K","M3U8_AUTO_2K","M3U8_AUTO_1080","M3U8_AUTO_720","M3U8_AUTO_480"],this.headers={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",Connection:"keep-alive",Accept:"application/json, text/plain, */*","Accept-Encoding":"gzip, deflate, br","Accept-Language":"zh,en-GB;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6"},this.api="https://pan.baidu.com",this.link="",this.pwd="",this.surl="",this.shorturl="",this.shareid="",this.app_id=250528,this.view_mode=1,this.channel="chunlei"}get cookie(){return Xm.get("baidu_cookie")||""}async getSurl(t){this.link=t;let r=this.regex.exec(t);r&&r[1]&&(this.surl=r[1],this.shorturl=this.surl.split("").slice(1).join(""),this.pwd=r[2]||"")}async getSign(){let t={...this.headers,cookie:this.cookie},r=await fe.get(`${this.api}/share/tplconfig?surl=${this.surl}&fields=Espace_info,card_info,sign,timestamp&view_mode=${this.view_mode}&channel=${this.channel}&web=1&app_id=${this.app_id}`,{headers:t});if(!r.data||!r.data.data||!r.data.data.sign)throw new Error(`\u83B7\u53D6sign\u5931\u8D25: ${JSON.stringify(r.data)}`);return r.data.data.sign}async getRandsk(){let t=Foe.default.stringify({pwd:this.pwd,vcode:"",vcode_str:""}),r=(await fe.post(`${this.api}/share/verify?surl=${this.shorturl}&pwd=${this.pwd}`,t,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",Referer:this.link}})).data.randsk,n="BDCLND="+r;if(this.cookie.includes("BDCLND")){let i=this.cookie.split(";").map(s=>(/BDCLND/.test(s)&&(s=n),s)).join(";");return i!==this.cookie&&Xm.set("baidu_cookie",i),r}else{let i=this.cookie+n;return Xm.set("baidu_cookie",i),r}}async getShareList(){await this.getRandsk(),this.headers.cookie=this.cookie;let t=(await fe.get(`${this.api}/share/list?web=5&app_id=${this.app_id}&desc=1&showempty=0&page=1&num=20&order=time&shorturl=${this.shorturl}&root=1&view_mode=${this.view_mode}&channel=${this.channel}&web=1&clienttype=0`,{headers:this.headers})).data;if(t.errno===0&&t.list.length>0){let r={},n=[],i=[];this.uk=t.uk,this.shareid=t.share_id,Xm.set(`baidu_share_${this.surl}`,{surl:this.surl,pwd:this.pwd,link:this.link,uk:this.uk,shareid:this.shareid}),t.list.map(a=>{if((a.category==="6"||a.category===6)&&n.push(a.path),a.category==="1"||a.category===1){let o=a.server_filename||a.path.split("/").pop();i.push({vod_name:o,vod_id:[a.path.replaceAll("#","\0"),this.uk,this.shareid,a.fs_id||a.fsid,this.surl].join("*"),vod_size:a.size})}}),!(t.title in r)&&t.title!==void 0&&(r[t.title]=[]),i.length>=0&&t.title!==void 0&&(r[t.title]=[...i]);let s=await Promise.all(n.map(async a=>this.getSharepath(a)));if(s=s.filter(a=>a!=null).flat(),s.length>=0){let a=s.map(o=>(o.vod_name&&o.vod_name.includes("/")&&(o.vod_name=o.vod_name.split("/").pop()),o));r[t.title].push(...a)}return r}}async getSharepath(t){await this.getRandsk(),this.headers.cookie=this.cookie;let r=(await fe.get(`${this.api}/share/list?is_from_web=true&uk=${this.uk}&shareid=${this.shareid}&order=name&desc=0&showempty=0&view_mode=${this.view_mode}&web=1&page=1&num=100&dir=${encodeURIComponent(t)}&channel=${this.channel}&web=1&app_id=${this.app_id}`,{headers:this.headers})).data;if(r.errno===0&&r.list.length>0){let n=[],i=[];r.list.map(o=>{if((o.category==="6"||o.category===6)&&n.push(o.path),o.category==="1"||o.category===1){let u=o.server_filename||o.path.split("/").pop();i.push({vod_name:u,vod_id:[o.path.replaceAll("#","\0"),this.uk,this.shareid,o.fs_id||o.fsid,this.surl].join("*"),vod_size:o.size})}});let s=await Promise.all(n.map(async o=>this.getSharepath(o)));s=s.filter(o=>o!=null);let a=s.map(o=>(o.vod_name&&o.vod_name.includes("/")&&(o.vod_name=o.vod_name.split("/").pop()),o));return[...i,...a.flat()]}}sha1(t){return UP.default.SHA1(t).toString(UP.default.enc.Hex)}async getUid(){this.headers.cookie=this.cookie;let t=(await fe.get("https://mbd.baidu.com/userx/v1/info/get?appname=baiduboxapp&fields=%20%20%20%20%20%20%20%20%5B%22bg_image%22,%22member%22,%22uid%22,%22avatar%22,%20%22avatar_member%22%5D&client&clientfrom&lang=zh-cn&tpl&ttt",{headers:this.headers})).data;if(t&&t.data&&t.data.fields&&t.data.fields.uid)return t.data.fields.uid;throw new Error("\u83B7\u53D6\u7528\u6237UID\u5931\u8D25: "+JSON.stringify(t))}async getShareUrl(t,r,n,i){t=t.replaceAll("\0","#");let s=await this.getSign(),a=[],o=Math.floor(new Date/1e3);return this.type.map(u=>{a.push({name:u.replace("M3U8_AUTO_",""),url:`${this.api}/share/streaming?channel=${this.channel}&uk=${r}&fid=${i}&sign=${s}&timestamp=${o}&shareid=${n}&type=${u}&vip=0&jsToken&isplayer=1&check_blue=1&adToken`})}),a}async getAppShareUrl(t,r,n,i){t=t.replaceAll("\0","#");let s=await this.getRandsk(),a=await this.getUid(),o=Object.assign({},this.headers,{"User-Agent":"netdisk;P2SP;2.2.91.136;android-android;"}),u="73CED981D0F186D12BC18CAE1684FFD5|VSRCQTF6W",l=String(new Date().getTime()),c=this.sha1(this.sha1(this.cookie.match(/BDUSS=(.+?);/)[1])+a+"ebrcUYiuxaZv2XGu7KIYKxUrqfnOfpDF"+l+u+"11.30.2ae5821440fab5e1a61a025f014bd8972"),f=this.api+"/share/list?shareid="+n+"&uk="+r+"&fid="+i+"&sekey="+s+"&origin=dlna&devuid="+u+"&clienttype=1&channel=android_12_zhao_bd-netdisk_1024266h&version=11.30.2&time="+l+"&rand="+c,d=(await fe.get(f,{headers:o})).data;if(d.errno===0&&d.list.length>0)return d.list[0].dlink}},Sn=new VP;async function qoe(e,t){await Boe(t),await Sn.getSurl(e);let r=await Sn.getShareList();if(!r)return null;let n=await cJe("baidu"),i=[],s=[];return Object.keys(r).forEach(a=>{let o=di(n+"-"+a,r[a]);o&&o.from&&o.url&&(i.push(o.from),s.push(o.url))}),i.length===0?null:{from:i.join("$$$"),url:s.join("$$$")}}var GP={};async function joe(e,t){let r=e.body.id.split("*");await Boe(e);let n=r[4],i=Xm.get(`baidu_share_${n}`);i&&(Sn.surl=i.surl,Sn.pwd=i.pwd,Sn.link=i.link,Sn.uk=i.uk,Sn.shareid=i.shareid,Sn.shorturl=Sn.surl?Sn.surl.split("").slice(1).join(""):"",Sn.pwd&&(await Sn.getRandsk(),Sn.headers.cookie=Sn.cookie));let s=e.server.address().url+e.server.prefix+"/proxy/baidu",a=`${r[0]}*${r[1]}*${r[2]}*${r[3]}`,o=encodeURIComponent(a),u=n;try{let c=await Sn.getAppShareUrl(r[0],r[1],r[2],r[3]);if(c)return GP[n]={type:"app",url:c,fileId:a,headers:{"User-Agent":"netdisk;P2SP;2.2.91.136;android-android;",Referer:"https://pan.baidu.com/"}},{parse:0,url:["\u539F\u753B",`${s}/src/redirect/${u}/${o}/.bin`],header:{}}}catch(c){console.log("App\u7248API\u5931\u8D25\uFF0C\u964D\u7EA7\u5230Web\u7248API:",c.message)}let l=await Sn.getShareUrl(r[0],r[1],r[2],r[3]);if(l&&l.length>0)return GP[n]={type:"web",urls:l,fileId:a,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",Referer:"https://pan.baidu.com/"}},{parse:0,url:l.map(f=>[f.name,`${s}/src/${f.name}/${u}/${o}/.bin`]),header:{}};throw new Error("\u83B7\u53D6\u64AD\u653E\u94FE\u63A5\u5931\u8D25")}async function Uoe(e,t){let r=e.params.site,n=e.params.what,i=e.params.shareId,s=e.params.fileId,a=e.params.flag;if(r!=="baidu")return t.status(400).send({error:"Invalid site"});let o=GP[i];if(!o)return t.status(404).send({error:"Play URL not found in cache"});let u,l=o.headers;if(o.type==="app")u=o.url;else if(o.type==="web"){let c=o.urls.find(f=>f.name===a);if(!c)return t.status(404).send({error:"Quality not found"});u=c.url}else return t.status(500).send({error:"Invalid cache type"});return t.redirect(u)}var Cs=ym;async function wn(e,t){return{}}async function Hr(e,t){e=Array.isArray(e)?e:[e];let r=e.map(a=>{let o=gl().find(u=>u.validator(a))?.key;return{key:o,url:a,order:globalThis.Pans.findIndex(u=>u.key===o)}}).filter(a=>a.key);r.sort((a,o)=>a.order-o.order),e=r.map(a=>a.url);let n=[],i=[];for(let a of e)if(vm(a)){let o=await $ne(a);o&&o.from&&o.url&&(n.push(o.from),i.push(o.url))}else if(Tm(a)){let o=await Yne(a);o&&o.from&&o.url&&(n.push(o.from),i.push(o.url))}else if(Sm(a)){let o=await gae(a);o&&o.from&&o.url&&(n.push(o.from),i.push(o.url))}else if(wm(a)){let o=await OP.getShareData(a);if(o){let u=await getPanName("tianyi");Object.keys(o).forEach(l=>{let c=di(u+"-"+l,o[l]);c&&c.from&&c.url&&(n.push(c.from),i.push(c.url))})}}else if(KN(a)){let o=await DP.getShareData(a),u=await getPanName("yidong");Object.keys(o).forEach(l=>{let c=di(u+"-"+l,o[l]);c&&c.from&&c.url&&(n.push(c.from),i.push(c.url))})}else if(YN(a)){let o=await lv.getShareData(a),u=await lv.getFilesByShareUrl(o),l=await getPanName("123");Object.keys(u).forEach(c=>{let f=di(l+"-"+c,u[c]);f&&f.from&&f.url&&(n.push(f.from),i.push(f.url))})}else if(XN(a)){let o=await Loe(a);o&&o.from&&o.url&&(n.push(o.from),i.push(o.url))}else if(JN(a)){let o=await qoe(a,t);o&&o.from&&o.url&&(n.push(o.from),i.push(o.url))}let s={};return n.forEach((a,o)=>{s[a]?n[o]=`${a}-${++s[a]}`:s[a]=1}),{froms:n.join("$$$"),urls:i.join("$$$")}}async function An(e,t){let r=e.params.site;if(r=="ali")return await Lne(e,t);if(r=="quark")return await Xne(e,t);if(r=="uc")return await yae(e,t);if(r=="baidu")return await Uoe(e,t)}async function zr(e,t){let r=e.body.flag;if(r.startsWith(await getPanName("ali")))return await Mne(e,t);if(r.startsWith(await getPanName("quark")))return await Jne(e,t);if(r.startsWith(await getPanName("uc")))return await bae(e,t);if(r.startsWith(await getPanName("tianyi"))){let n=e.body.id.split("*");return await woe(e),{parse:0,url:["\u539F\u753B",await OP.getShareUrl(n[0],n[1])]}}else if(r.startsWith(await getPanName("yidong"))){let n=e.body.id.split("*");return{parse:0,url:["\u539F\u753B",await DP.getSharePlay(n[0],n[1])]}}else if(r.startsWith(await getPanName("123"))){await Aoe(e);let n=e.body.id.split("*");return{parse:0,url:["\u539F\u753B",await lv.getDownload(...n)]}}else{if(r.startsWith(await getPanName("115")))return await Moe(e,t);if(r.startsWith(await getPanName("baidu")))return await joe(e,t)}}async function dv(e,t){try{let r=e.server.prefix,n={},i=await e.server.inject().post(`${r}/init`);n.init=i.json(),Jm(i.json()),i=await e.server.inject().post(`${r}/home`),n.home=i.json(),Jm(i.json());let s=!1;if(n.home.class&&n.home.class.length>0){let a=n.home.class[0].type_id,o={};if(n.home.filters){let u=n.home.filters[a];if(u)for(let l of u){let c=l.init;if(c){for(let f of l.value)if(f.v==c){o[l.key]=c;break}}}}if(i=await e.server.inject().post(`${r}/category`).payload({id:a,page:1,filter:!0,filters:o}),n.category=i.json(),Jm(i.json()),n.category.list.length>0){s=!0;let u=n.category.list[0].vod_id;await Hoe(e,u,n)}}if(i=await e.server.inject().post(`${r}/search`).payload({wd:"\u4ED9\u9006",page:1}),n.search=i.json(),!s&&n.search.list.length>0){let a=n.search.list[0].vod_id;await Hoe(e,a,n)}return Jm(i.json()),n}catch(r){return console.error(r),t.code(500),{err:r.message,tip:"check debug console output"}}}async function Hoe(e,t,r){let n=e.server.prefix,i=await e.server.inject().post(`${n}/detail`).payload({id:t});if(r.detail=i.json(),Jm(i.json()),r.detail.list&&r.detail.list.length>0){r.play=[];for(let s of r.detail.list){let a=s.vod_play_from.split("$$$"),o=s.vod_play_url.split("$$$");for(let u=0;u<a.length;u++){let l=a[u],c=o[u].split("#");for(let f=0;f<c.length&&f<2;f++)i=await e.server.inject().post(`${n}/play`).payload({flag:l,id:c[f].split("$")[1]}),r.play.push(i.json())}}}}function Jm(e){e.statusCode&&e.statusCode==500&&console.error(e)}var gl=()=>[{key:"yidong",name:getPanName("yidong"),validator:KN,pic:"https://yun.139.com/w/static/img/LOGO.png"},{key:"tianyi",name:getPanName("tianyi"),validator:wm,pic:"https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/a8/fa/f0/a8faf032-0fa4-d9c5-ac70-920d9c84dff1/AppIcon-0-0-1x_U007emarketing-0-7-0-0-sRGB-85-220.png/350x350.png"},{key:"115",name:getPanName("115"),validator:XN,pic:"https://img.pcsoft.com.cn/soft/202104/093230-608b5e2ed5912.jpg"},{key:"quark",name:getPanName("quark"),validator:Tm,pic:"https://ts1.cn.mm.bing.net/th/id/R-C.a0d60e6a72806738e6f0b711a979bdf5?rik=lp5C9t5sYlkrLw&riu=http%3a%2f%2fpic.2265.com%2fupload%2f2020-10%2f202010151719492792.png&ehk=Pv6rq3JxJvKe2y1QsdzssyZ4Ez4cwiKWmIvK0aMgxi0%3d&risl=&pid=ImgRaw&r=0"},{key:"uc",name:getPanName("uc"),validator:Sm,pic:"https://ts1.cn.mm.bing.net/th/id/R-C.421c96e47df7c9719403654ee4f7c281?rik=yiiEoGCTgDDc3w&riu=http%3a%2f%2fpic.9663.com%2fupload%2f2023-5%2f20235111411256277.png&ehk=R81N%2flXMrl%2bxpRlST8DtHXDfab6rzaMb83gihuD71Fk%3d&risl=&pid=ImgRaw&r=0"},{key:"ali",name:getPanName("ali"),validator:vm,pic:"https://inews.gtimg.com/newsapp_bt/0/13263837859/1000"},{key:"123",name:getPanName("123"),validator:YN,pic:"https://statics.123957.com/static/favicon.ico"},{key:"baidu",name:getPanName("baidu"),validator:JN,pic:"https://nd-static.bdstatic.com/m-static/disk-home/img/logo.png"}];var WP="https://tv.yydsys.top";async function KP(e){return(await wt.get(e,{headers:{"User-Agent":Cs,Accept:"*/*"}})).data}async function fJe(e,t){let r="";return{class:[{type_id:"1",type_name:"\u7535\u5F71"},{type_id:"2",type_name:"\u5267\u96C6"},{type_id:"4",type_name:"\u52A8\u6F2B"},{type_id:"3",type_name:"\u7EFC\u827A"},{type_id:"5",type_name:"\u77ED\u5267"},{type_id:"20",type_name:"\u7EAA\u5F55\u7247"}],filters:{}}}async function dJe(e,t){let r=e.body.id,n=e.body.page,i=n||1;i==0&&(i=1);let s=WP+`/index.php/vod/show/id/${r}/page/${n}.html`,a=await KP(s,Cs),o=$t(a),u=o("#main .module-item"),l=[];for(var c of u){let h=o(c).find(".module-item-pic a").attr("href"),p=o(c).find(".module-item-pic img").attr("alt"),m=o(c).find(".module-item-pic img").attr("data-src"),y=o(c).find(".module-item-text").text();l.push({vod_id:h,vod_name:p,vod_pic:m,vod_remarks:y})}let d=o("#page > a:contains(\u4E0B\u4E00\u9875)").length>0?parseInt(i)+1:parseInt(i);return{page:parseInt(i),pagecount:d,limit:72,total:72*d,list:l}}async function pJe(e,t){let r=Array.isArray(e.body.id)?e.body.id:[e.body.id],n=[];for(let i of r){let s=await KP(WP+i),a=$t(s),o={vod_id:i,vod_name:a(".page-title")[0].children[0].data,vod_pic:a(a(".mobile-play")).find(".lazyload")[0].attribs["data-src"]},u=a(".video-info-itemtitle");for(let f of u){let d=a(f).text(),p=a(f).next().find("a").map((m,y)=>{let g=a(y).text().trim();return g||null}).get().filter(Boolean).join(", ");d.includes("\u5267\u60C5")?o.vod_content=a(f).next().find("p").text().trim():d.includes("\u5BFC\u6F14")?o.vod_director=p.trim():d.includes("\u4E3B\u6F14")&&(o.vod_actor=p.trim())}let l=a("div.module-row-info p").map((f,d)=>d.children[0].data).get(),c=await Hr(l,e);c&&(o.vod_play_from=c.froms,o.vod_play_url=c.urls),n.push(o)}return{list:n}}async function hJe(e,t){let r=e.body.page,n=e.body.wd,i=r||1;i==0&&(i=1);let s=await KP(`${WP}/index.php/vod/search/wd/${n}.html`),a=$t(s),o=a(".module-search-item").map((u,l)=>({vod_id:a(l).find(".video-serial")[0].attribs.href,vod_name:a(l).find(".video-serial")[0].attribs.title,vod_pic:a(l).find(".module-item-pic > img")[0].attribs["data-src"],vod_remarks:a(a(l).find(".video-serial")[0]).text()})).get();return{page:i,pagecount:o.length<10?i:i+1,list:o}}var zoe={meta:{key:"duoduo",name:"\u591A\u591A",type:3},api:async e=>{e.post("/init",wn),e.post("/home",fJe),e.post("/category",dJe),e.post("/detail",pJe),e.post("/play",zr),e.post("/search",hJe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An),e.get("/test",dv)}};var Qm=Te(vn(),1),Goe=Te(fl(),1);function mJe(e){return Qm.default.enc.Utf8.stringify(Qm.default.enc.Base64.parse(e))}function Voe(e){return Qm.default.enc.Base64.stringify(Qm.default.enc.Utf8.parse(e))}async function gJe(e,t){return{}}async function yJe(e,t){return{class:[{type_id:"setting",type_name:`${e.server.address().url}/website`}]}}async function bJe(e,t){let r=e.body.id,n=[],i=e.server.address().url+e.server.prefix+"/proxy";return{page:1,pagecount:1,limit:1,total:1,list:[{vod_id:String(Math.random()),vod_name:"\u626B\u7801\u914D\u7F6E",vod_pic:i+"/"+Voe(`${e.server.address().url}/website`)},{vod_id:"openInternalWebsite",vod_name:"\u70B9\u51FB\u914D\u7F6E",vod_pic:i+"/"+Voe(`${e.server.address().url}/website`)}]}}async function xJe(e,t){return e.body.id==="openInternalWebsite"?(await e.server.messageToDart({action:"openInternalWebview",opt:{url:`${e.server.address().url}/website`}}),{list:[{vod_name:"",vod_content:""}]}):{list:[{vod_name:"",vod_content:""}]}}async function EJe(e,t){let r=e.params.img,n=mJe(r),i=await Goe.default.toBuffer(n,{width:120,height:120,margin:15});t.send(i)}var Woe={meta:{key:"baseset",name:"\u2699\uFE0F \u914D\u7F6E",type:3},api:async e=>{e.post("/init",gJe),e.post("/home",yJe),e.post("/category",bJe),e.post("/detail",xJe),e.get("/proxy/:img",EJe)}};var _Je=["http://123.666291.xyz","https://mogg.5568.eu.org","https://mo.91muou.icu","https://mo.666291.xyz","https://mo.muouso.fun"],YP=async e=>(await e.db.getObjectDefault("/muou",{}))?.urls||e.config.muou?.urls||_Je,vJe=async(e,t)=>{await e.db.push("/muou/urls",t)},TJe=async e=>{await e.db.delete("/muou/urls")};async function XP(e){e.get("/urls",async(t,r)=>{r.send({code:0,data:await YP(t.server)})}),e.put("/urls",async(t,r)=>{await vJe(t.server,t.body),r.send({code:0})}),e.delete("/urls",async(t,r)=>{await TJe(t.server),r.send({code:0})})}var JP,pv=e=>{if(!JP){let t=Date.now();JP=new Promise(async r=>{let n=await YP(e),i=await Su(n);console.log("\u6728\u5076\u57DF\u540D",i,`${Date.now()-t}ms`),r(i)})}return JP};async function QP(e){return(await wt.get(e,{headers:{"User-Agent":Cs}})).data}async function SJe(e,t){return{class:[{type_id:"1",type_name:"\u7535\u5F71"},{type_id:"2",type_name:"\u5267\u96C6"},{type_id:"3",type_name:"\u52A8\u6F2B"},{type_id:"25",type_name:"\u5929\u7FFC\u4E13\u533A"},{type_id:"27",type_name:"\u77ED\u5267"},{type_id:"4",type_name:"\u7EAA\u5F55\u7247"}],filters:{}}}async function wJe(e,t){let r=await pv(e.server),n=e.body.id,i=e.body.page,s=i||1;s==0&&(s=1);let a=r+`/index.php/vod/show/id/${n}/page/${i}.html`,o=await QP(a,Cs),u=$t(o),l=u("#main .module-item"),c=[];for(var f of l){let p=u(f).find(".module-item-pic a").attr("href"),m=u(f).find(".module-item-pic img").attr("alt"),y=u(f).find(".module-item-pic img").attr("data-src"),g=u(f).find(".module-item-text").text();c.push({vod_id:p,vod_name:m,vod_pic:y,vod_remarks:g})}let h=u("#page > a:contains(\u4E0B\u4E00\u9875)").length>0?parseInt(s)+1:parseInt(s);return{page:parseInt(s),pagecount:h,limit:72,total:72*h,list:c}}async function AJe(e,t){let r=await pv(e.server),n=Array.isArray(e.body.id)?e.body.id:[e.body.id],i=[];for(let s of n){let a=await QP(r+s),o=$t(a),u={vod_id:s,vod_name:o(".page-title")[0].children[0].data,vod_pic:o(o(".mobile-play")).find(".lazyload")[0].attribs["data-src"]},l=o(".video-info-itemtitle");for(let d of l){let h=o(d).text(),m=o(d).next().find("a").map((y,g)=>{let v=o(g).text().trim();return v||null}).get().filter(Boolean).join(", ");h.includes("\u5267\u60C5")?u.vod_content=o(d).next().find("p").text().trim():h.includes("\u5BFC\u6F14")?u.vod_director=m.trim():h.includes("\u4E3B\u6F14")&&(u.vod_actor=m.trim())}let c=o("div.module-row-info p").map((d,h)=>h.children[0].data).get(),f=await Hr(c,e);f&&(u.vod_play_from=f.froms,u.vod_play_url=f.urls),i.push(u)}return{list:i}}async function CJe(e,t){let r=await pv(e.server),n=e.body.page,i=e.body.wd,s=n||1;s==0&&(s=1);let a=await QP(`${r}/index.php/vod/search/wd/${i}.html`),o=$t(a),u=o(".module-search-item").map((l,c)=>({vod_id:o(c).find(".video-serial")[0].attribs.href,vod_name:o(c).find(".video-serial")[0].attribs.title,vod_pic:o(c).find(".module-item-pic > img")[0].attribs["data-src"],vod_remarks:o(o(c).find(".video-serial")[0]).text()})).get();return{page:s,pagecount:u.length<10?s:s+1,list:u}}var Koe={meta:{key:"muou",name:"\u6728\u5076",type:3},api:async e=>{e.post("/init",wn),e.post("/home",SJe),e.post("/category",wJe),e.post("/detail",AJe),e.post("/play",zr),e.post("/search",CJe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An)},check:pv};var Xoe=Te(require("vm"),1),e8=class{add(t,r,n){if(typeof arguments[0]!="string")for(let i in arguments[0])this.add(i,arguments[0][i],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(i){this[i]=this[i]||[],r&&this[i][n?"unshift":"push"](r)},this)}run(t,r){this[t]=this[t]||[],this[t].forEach(function(n){n.call(r&&r.context?r.context:r,r)})}},t8=class{constructor(t){this.jsep=t,this.registered={}}register(...t){t.forEach(r=>{if(typeof r!="object"||!r.name||!r.init)throw new Error("Invalid JSEP plugin format");this.registered[r.name]||(r.init(this.jsep),this.registered[r.name]=r)})}},pi=class e{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+e.version}static addUnaryOp(t){return e.max_unop_len=Math.max(t.length,e.max_unop_len),e.unary_ops[t]=1,e}static addBinaryOp(t,r,n){return e.max_binop_len=Math.max(t.length,e.max_binop_len),e.binary_ops[t]=r,n?e.right_associative.add(t):e.right_associative.delete(t),e}static addIdentifierChar(t){return e.additional_identifier_chars.add(t),e}static addLiteral(t,r){return e.literals[t]=r,e}static removeUnaryOp(t){return delete e.unary_ops[t],t.length===e.max_unop_len&&(e.max_unop_len=e.getMaxKeyLen(e.unary_ops)),e}static removeAllUnaryOps(){return e.unary_ops={},e.max_unop_len=0,e}static removeIdentifierChar(t){return e.additional_identifier_chars.delete(t),e}static removeBinaryOp(t){return delete e.binary_ops[t],t.length===e.max_binop_len&&(e.max_binop_len=e.getMaxKeyLen(e.binary_ops)),e.right_associative.delete(t),e}static removeAllBinaryOps(){return e.binary_ops={},e.max_binop_len=0,e}static removeLiteral(t){return delete e.literals[t],e}static removeAllLiterals(){return e.literals={},e}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new e(t).parse()}static getMaxKeyLen(t){return Math.max(0,...Object.keys(t).map(r=>r.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return e.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!e.binary_ops[String.fromCharCode(t)]||e.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return e.isIdentifierStart(t)||e.isDecimalDigit(t)}throwError(t){let r=new Error(t+" at character "+this.index);throw r.index=this.index,r.description=t,r}runHook(t,r){if(e.hooks[t]){let n={context:this,node:r};return e.hooks.run(t,n),n.node}return r}searchHook(t){if(e.hooks[t]){let r={context:this};return e.hooks[t].find(function(n){return n.call(r.context,r),r.node}),r.node}}gobbleSpaces(){let t=this.code;for(;t===e.SPACE_CODE||t===e.TAB_CODE||t===e.LF_CODE||t===e.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let t=this.gobbleExpressions(),r=t.length===1?t[0]:{type:e.COMPOUND,body:t};return this.runHook("after-all",r)}gobbleExpressions(t){let r=[],n,i;for(;this.index<this.expr.length;)if(n=this.code,n===e.SEMCOL_CODE||n===e.COMMA_CODE)this.index++;else if(i=this.gobbleExpression())r.push(i);else if(this.index<this.expr.length){if(n===t)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){let t=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",t)}gobbleBinaryOp(){this.gobbleSpaces();let t=this.expr.substr(this.index,e.max_binop_len),r=t.length;for(;r>0;){if(e.binary_ops.hasOwnProperty(t)&&(!e.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=r,t;t=t.substr(0,--r)}return!1}gobbleBinaryExpression(){let t,r,n,i,s,a,o,u,l;if(a=this.gobbleToken(),!a||(r=this.gobbleBinaryOp(),!r))return a;for(s={value:r,prec:e.binaryPrecedence(r),right_a:e.right_associative.has(r)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+r),i=[a,s,o];r=this.gobbleBinaryOp();){if(n=e.binaryPrecedence(r),n===0){this.index-=r.length;break}s={value:r,prec:n,right_a:e.right_associative.has(r)},l=r;let c=f=>s.right_a&&f.right_a?n>f.prec:n<=f.prec;for(;i.length>2&&c(i[i.length-2]);)o=i.pop(),r=i.pop().value,a=i.pop(),t={type:e.BINARY_EXP,operator:r,left:a,right:o},i.push(t);t=this.gobbleToken(),t||this.throwError("Expected expression after "+l),i.push(s,t)}for(u=i.length-1,t=i[u];u>1;)t={type:e.BINARY_EXP,operator:i[u-1].value,left:i[u-2],right:t},u-=2;return t}gobbleToken(){let t,r,n,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(t=this.code,e.isDecimalDigit(t)||t===e.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===e.SQUOTE_CODE||t===e.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(t===e.OBRACK_CODE)i=this.gobbleArray();else{for(r=this.expr.substr(this.index,e.max_unop_len),n=r.length;n>0;){if(e.unary_ops.hasOwnProperty(r)&&(!e.isIdentifierStart(this.code)||this.index+r.length<this.expr.length&&!e.isIdentifierPart(this.expr.charCodeAt(this.index+r.length)))){this.index+=n;let s=this.gobbleToken();return s||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:e.UNARY_EXP,operator:r,argument:s,prefix:!0})}r=r.substr(0,--n)}e.isIdentifierStart(t)?(i=this.gobbleIdentifier(),e.literals.hasOwnProperty(i.name)?i={type:e.LITERAL,value:e.literals[i.name],raw:i.name}:i.name===e.this_str&&(i={type:e.THIS_EXP})):t===e.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}gobbleTokenProperty(t){this.gobbleSpaces();let r=this.code;for(;r===e.PERIOD_CODE||r===e.OBRACK_CODE||r===e.OPAREN_CODE||r===e.QUMARK_CODE;){let n;if(r===e.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==e.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),r=this.code}this.index++,r===e.OBRACK_CODE?(t={type:e.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()},t.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),r=this.code,r!==e.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):r===e.OPAREN_CODE?t={type:e.CALL_EXP,arguments:this.gobbleArguments(e.CPAREN_CODE),callee:t}:(r===e.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),t={type:e.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),n&&(t.optional=!0),this.gobbleSpaces(),r=this.code}return t}gobbleNumericLiteral(){let t="",r,n;for(;e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(this.code===e.PERIOD_CODE)for(t+=this.expr.charAt(this.index++);e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(r=this.char,r==="e"||r==="E"){for(t+=this.expr.charAt(this.index++),r=this.char,(r==="+"||r==="-")&&(t+=this.expr.charAt(this.index++));e.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);e.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+t+this.char+")")}return n=this.code,e.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+t+this.char+")"):(n===e.PERIOD_CODE||t.length===1&&t.charCodeAt(0)===e.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:e.LITERAL,value:parseFloat(t),raw:t}}gobbleStringLiteral(){let t="",r=this.index,n=this.expr.charAt(this.index++),i=!1;for(;this.index<this.expr.length;){let s=this.expr.charAt(this.index++);if(s===n){i=!0;break}else if(s==="\\")switch(s=this.expr.charAt(this.index++),s){case"n":t+=`
`;break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=s}else t+=s}return i||this.throwError('Unclosed quote after "'+t+'"'),{type:e.LITERAL,value:t,raw:this.expr.substring(r,this.index)}}gobbleIdentifier(){let t=this.code,r=this.index;for(e.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(t=this.code,e.isIdentifierPart(t));)this.index++;return{type:e.IDENTIFIER,name:this.expr.slice(r,this.index)}}gobbleArguments(t){let r=[],n=!1,i=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let s=this.code;if(s===t){n=!0,this.index++,t===e.CPAREN_CODE&&i&&i>=r.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}else if(s===e.COMMA_CODE){if(this.index++,i++,i!==r.length){if(t===e.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===e.CBRACK_CODE)for(let a=r.length;a<i;a++)r.push(null)}}else if(r.length!==i&&i!==0)this.throwError("Expected comma");else{let a=this.gobbleExpression();(!a||a.type===e.COMPOUND)&&this.throwError("Expected comma"),r.push(a)}}return n||this.throwError("Expected "+String.fromCharCode(t)),r}gobbleGroup(){this.index++;let t=this.gobbleExpressions(e.CPAREN_CODE);if(this.code===e.CPAREN_CODE)return this.index++,t.length===1?t[0]:t.length?{type:e.SEQUENCE_EXP,expressions:t}:!1;this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:e.ARRAY_EXP,elements:this.gobbleArguments(e.CBRACK_CODE)}}},IJe=new e8;Object.assign(pi,{hooks:IJe,plugins:new t8(pi),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"});pi.max_unop_len=pi.getMaxKeyLen(pi.unary_ops);pi.max_binop_len=pi.getMaxKeyLen(pi.binary_ops);var ho=e=>new pi(e).parse(),RJe=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(pi).filter(e=>!RJe.includes(e)&&ho[e]===void 0).forEach(e=>{ho[e]=pi[e]});ho.Jsep=pi;var NJe="ConditionalExpression",OJe={name:"ternary",init(e){e.hooks.add("after-expression",function(r){if(r.node&&this.code===e.QUMARK_CODE){this.index++;let n=r.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let s=this.gobbleExpression();if(s||this.throwError("Expected expression"),r.node={type:NJe,test:n,consequent:i,alternate:s},n.operator&&e.binary_ops[n.operator]<=.9){let a=n;for(;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;r.node.test=a.right,a.right=r.node,r.node=n}}else this.throwError("Expected :")}})}};ho.plugins.register(OJe);var Yoe=47,PJe=92,DJe={name:"regex",init(e){e.hooks.add("gobble-token",function(r){if(this.code===Yoe){let n=++this.index,i=!1;for(;this.index<this.expr.length;){if(this.code===Yoe&&!i){let s=this.expr.slice(n,this.index),a="";for(;++this.index<this.expr.length;){let u=this.code;if(u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57)a+=this.char;else break}let o;try{o=new RegExp(s,a)}catch(u){this.throwError(u.message)}return r.node={type:e.LITERAL,value:o,raw:this.expr.slice(n-1,this.index)},r.node=this.gobbleTokenProperty(r.node),r.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=this.code===PJe?2:1}this.throwError("Unclosed Regex")}})}},ZP=43,kJe=45,qd={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[ZP,kJe],assignmentPrecedence:.9,init(e){let t=[e.IDENTIFIER,e.MEMBER_EXP];qd.assignmentOperators.forEach(n=>e.addBinaryOp(n,qd.assignmentPrecedence,!0)),e.hooks.add("gobble-token",function(i){let s=this.code;qd.updateOperators.some(a=>a===s&&a===this.expr.charCodeAt(this.index+1))&&(this.index+=2,i.node={type:"UpdateExpression",operator:s===ZP?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},(!i.node.argument||!t.includes(i.node.argument.type))&&this.throwError(`Unexpected ${i.node.operator}`))}),e.hooks.add("after-token",function(i){if(i.node){let s=this.code;qd.updateOperators.some(a=>a===s&&a===this.expr.charCodeAt(this.index+1))&&(t.includes(i.node.type)||this.throwError(`Unexpected ${i.node.operator}`),this.index+=2,i.node={type:"UpdateExpression",operator:s===ZP?"++":"--",argument:i.node,prefix:!1})}}),e.hooks.add("after-expression",function(i){i.node&&r(i.node)});function r(n){qd.assignmentOperators.has(n.operator)?(n.type="AssignmentExpression",r(n.left),r(n.right)):n.operator||Object.values(n).forEach(i=>{i&&typeof i=="object"&&r(i)})}}};ho.plugins.register(DJe,qd);ho.addUnaryOp("typeof");ho.addLiteral("null",null);ho.addLiteral("undefined",void 0);var $Je=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),Lt={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return Lt.evalBinaryExpression(e,t);case"Compound":return Lt.evalCompound(e,t);case"ConditionalExpression":return Lt.evalConditionalExpression(e,t);case"Identifier":return Lt.evalIdentifier(e,t);case"Literal":return Lt.evalLiteral(e,t);case"MemberExpression":return Lt.evalMemberExpression(e,t);case"UnaryExpression":return Lt.evalUnaryExpression(e,t);case"ArrayExpression":return Lt.evalArrayExpression(e,t);case"CallExpression":return Lt.evalCallExpression(e,t);case"AssignmentExpression":return Lt.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression(e,t){return{"||":(n,i)=>n||i(),"&&":(n,i)=>n&&i(),"|":(n,i)=>n|i(),"^":(n,i)=>n^i(),"&":(n,i)=>n&i(),"==":(n,i)=>n==i(),"!=":(n,i)=>n!=i(),"===":(n,i)=>n===i(),"!==":(n,i)=>n!==i(),"<":(n,i)=>n<i(),">":(n,i)=>n>i(),"<=":(n,i)=>n<=i(),">=":(n,i)=>n>=i(),"<<":(n,i)=>n<<i(),">>":(n,i)=>n>>i(),">>>":(n,i)=>n>>>i(),"+":(n,i)=>n+i(),"-":(n,i)=>n-i(),"*":(n,i)=>n*i(),"/":(n,i)=>n/i(),"%":(n,i)=>n%i()}[e.operator](Lt.evalAst(e.left,t),()=>Lt.evalAst(e.right,t))},evalCompound(e,t){let r;for(let n=0;n<e.body.length;n++){e.body[n].type==="Identifier"&&["var","let","const"].includes(e.body[n].name)&&e.body[n+1]&&e.body[n+1].type==="AssignmentExpression"&&(n+=1);let i=e.body[n];r=Lt.evalAst(i,t)}return r},evalConditionalExpression(e,t){return Lt.evalAst(e.test,t)?Lt.evalAst(e.consequent,t):Lt.evalAst(e.alternate,t)},evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral(e){return e.value},evalMemberExpression(e,t){let r=String(e.computed?Lt.evalAst(e.property):e.property.name),n=Lt.evalAst(e.object,t);if(n==null)throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);if(!Object.hasOwn(n,r)&&$Je.has(r))throw TypeError(`Cannot read properties of ${n} (reading '${r}')`);let i=n[r];return typeof i=="function"?i.bind(n):i},evalUnaryExpression(e,t){return{"-":n=>-Lt.evalAst(n,t),"!":n=>!Lt.evalAst(n,t),"~":n=>~Lt.evalAst(n,t),"+":n=>+Lt.evalAst(n,t),typeof:n=>typeof Lt.evalAst(n,t)}[e.operator](e.argument)},evalArrayExpression(e,t){return e.elements.map(r=>Lt.evalAst(r,t))},evalCallExpression(e,t){let r=e.arguments.map(i=>Lt.evalAst(i,t));return Lt.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if(e.left.type!=="Identifier")throw SyntaxError("Invalid left-hand side in assignment");let r=e.left.name,n=Lt.evalAst(e.right,t);return t[r]=n,t[r]}},r8=class{constructor(t){this.code=t,this.ast=ho(this.code)}runInNewContext(t){let r=Object.assign(Object.create(null),t);return Lt.evalAst(this.ast,r)}};function qu(e,t){return e=e.slice(),e.push(t),e}function n8(e,t){return t=t.slice(),t.unshift(e),t}var i8=class extends Error{constructor(t){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=t,this.name="NewError"}};function Tt(e,t,r,n,i){if(!(this instanceof Tt))try{return new Tt(e,t,r,n,i)}catch(a){if(!a.avoidNew)throw a;return a.value}typeof e=="string"&&(i=n,n=r,r=t,t=e,e=null);let s=e&&typeof e=="object";if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=Object.hasOwn(e,"wrap")?e.wrap:!0,this.sandbox=e.sandbox||{},this.eval=e.eval===void 0?"safe":e.eval,this.ignoreEvalErrors=typeof e.ignoreEvalErrors>"u"?!1:e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||n||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},e.autostart!==!1){let a={path:s?e.path:t};s?"json"in e&&(a.json=e.json):a.json=r;let o=this.evaluate(a);if(!o||typeof o!="object")throw new i8(o);return o}}Tt.prototype.evaluate=function(e,t,r,n){let i=this.parent,s=this.parentProperty,{flatten:a,wrap:o}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&typeof e=="object"&&!Array.isArray(e)){if(!e.path&&e.path!=="")throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),a=Object.hasOwn(e,"flatten")?e.flatten:a,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,o=Object.hasOwn(e,"wrap")?e.wrap:o,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,s=Object.hasOwn(e,"parentProperty")?e.parentProperty:s,e=e.path}if(i=i||null,s=s||null,Array.isArray(e)&&(e=Tt.toPathString(e)),!e&&e!==""||!t)return;let u=Tt.toPathArray(e);u[0]==="$"&&u.length>1&&u.shift(),this._hasParentSelector=null;let l=this._trace(u,t,["$"],i,s,r).filter(function(c){return c&&!c.isParentSelector});return l.length?!o&&l.length===1&&!l[0].hasArrExpr?this._getPreferredOutput(l[0]):l.reduce((c,f)=>{let d=this._getPreferredOutput(f);return a&&Array.isArray(d)?c=c.concat(d):c.push(d),c},[]):o?[]:void 0};Tt.prototype._getPreferredOutput=function(e){let t=this.currResultType;switch(t){case"all":{let r=Array.isArray(e.path)?e.path:Tt.toPathArray(e.path);return e.pointer=Tt.toPointer(r),e.path=typeof e.path=="string"?e.path:Tt.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return Tt.toPathString(e[t]);case"pointer":return Tt.toPointer(e.path);default:throw new TypeError("Unknown result type")}};Tt.prototype._handleCallback=function(e,t,r){if(t){let n=this._getPreferredOutput(e);e.path=typeof e.path=="string"?e.path:Tt.toPathString(e.path),t(n,r,e)}};Tt.prototype._trace=function(e,t,r,n,i,s,a,o){let u;if(!e.length)return u={path:r,value:t,parent:n,parentProperty:i,hasArrExpr:a},this._handleCallback(u,s,"value"),u;let l=e[0],c=e.slice(1),f=[];function d(h){Array.isArray(h)?h.forEach(p=>{f.push(p)}):f.push(h)}if((typeof l!="string"||o)&&t&&Object.hasOwn(t,l))d(this._trace(c,t[l],qu(r,l),t,l,s,a));else if(l==="*")this._walk(t,h=>{d(this._trace(c,t[h],qu(r,h),t,h,s,!0,!0))});else if(l==="..")d(this._trace(c,t,r,n,i,s,a)),this._walk(t,h=>{typeof t[h]=="object"&&d(this._trace(e.slice(),t[h],qu(r,h),t,h,s,!0))});else{if(l==="^")return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:c,isParentSelector:!0};if(l==="~")return u={path:qu(r,l),value:i,parent:n,parentProperty:null},this._handleCallback(u,s,"property"),u;if(l==="$")d(this._trace(c,t,r,null,null,s,a));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))d(this._slice(l,c,t,r,n,i,s));else if(l.indexOf("?(")===0){if(this.currEval===!1)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");let h=l.replace(/^\?\((.*?)\)$/u,"$1"),p=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(h);p?this._walk(t,m=>{let y=[p[2]],g=p[1]?t[m][p[1]]:t[m];this._trace(y,g,r,n,i,s,!0).length>0&&d(this._trace(c,t[m],qu(r,m),t,m,s,!0))}):this._walk(t,m=>{this._eval(h,t[m],m,r,n,i)&&d(this._trace(c,t[m],qu(r,m),t,m,s,!0))})}else if(l[0]==="("){if(this.currEval===!1)throw new Error("Eval [(expr)] prevented in JSONPath expression.");d(this._trace(n8(this._eval(l,t,r.at(-1),r.slice(0,-1),n,i),c),t,r,n,i,s,a))}else if(l[0]==="@"){let h=!1,p=l.slice(1,-2);switch(p){case"scalar":(!t||!["object","function"].includes(typeof t))&&(h=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===p&&(h=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(h=!0);break;case"number":Number.isFinite(t)&&(h=!0);break;case"nonFinite":typeof t=="number"&&!Number.isFinite(t)&&(h=!0);break;case"object":t&&typeof t===p&&(h=!0);break;case"array":Array.isArray(t)&&(h=!0);break;case"other":h=this.currOtherTypeCallback(t,r,n,i);break;case"null":t===null&&(h=!0);break;default:throw new TypeError("Unknown value type "+p)}if(h)return u={path:r,value:t,parent:n,parentProperty:i},this._handleCallback(u,s,"value"),u}else if(l[0]==="`"&&t&&Object.hasOwn(t,l.slice(1))){let h=l.slice(1);d(this._trace(c,t[h],qu(r,h),t,h,s,a,!0))}else if(l.includes(",")){let h=l.split(",");for(let p of h)d(this._trace(n8(p,c),t,r,n,i,s,!0))}else!o&&t&&Object.hasOwn(t,l)&&d(this._trace(c,t[l],qu(r,l),t,l,s,a,!0))}if(this._hasParentSelector)for(let h=0;h<f.length;h++){let p=f[h];if(p&&p.isParentSelector){let m=this._trace(p.expr,t,p.path,n,i,s,a);if(Array.isArray(m)){f[h]=m[0];let y=m.length;for(let g=1;g<y;g++)h++,f.splice(h,0,m[g])}else f[h]=m}}return f};Tt.prototype._walk=function(e,t){if(Array.isArray(e)){let r=e.length;for(let n=0;n<r;n++)t(n)}else e&&typeof e=="object"&&Object.keys(e).forEach(r=>{t(r)})};Tt.prototype._slice=function(e,t,r,n,i,s,a){if(!Array.isArray(r))return;let o=r.length,u=e.split(":"),l=u[2]&&Number.parseInt(u[2])||1,c=u[0]&&Number.parseInt(u[0])||0,f=u[1]&&Number.parseInt(u[1])||o;c=c<0?Math.max(0,c+o):Math.min(o,c),f=f<0?Math.max(0,f+o):Math.min(o,f);let d=[];for(let h=c;h<f;h+=l)this._trace(n8(h,t),r,n,i,s,a,!0).forEach(m=>{d.push(m)});return d};Tt.prototype._eval=function(e,t,r,n,i,s){this.currSandbox._$_parentProperty=s,this.currSandbox._$_parent=i,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;let a=e.includes("@path");a&&(this.currSandbox._$_path=Tt.toPathString(n.concat([r])));let o=this.currEval+"Script:"+e;if(!Tt.cache[o]){let u=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(a&&(u=u.replaceAll("@path","_$_path")),this.currEval==="safe"||this.currEval===!0||this.currEval===void 0)Tt.cache[o]=new this.safeVm.Script(u);else if(this.currEval==="native")Tt.cache[o]=new this.vm.Script(u);else if(typeof this.currEval=="function"&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){let l=this.currEval;Tt.cache[o]=new l(u)}else if(typeof this.currEval=="function")Tt.cache[o]={runInNewContext:l=>this.currEval(u,l)};else throw new TypeError(`Unknown "eval" property "${this.currEval}"`)}try{return Tt.cache[o].runInNewContext(this.currSandbox)}catch(u){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+u.message+": "+e)}};Tt.cache={};Tt.toPathString=function(e){let t=e,r=t.length,n="$";for(let i=1;i<r;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(n+=/^[0-9*]+$/u.test(t[i])?"["+t[i]+"]":"['"+t[i]+"']");return n};Tt.toPointer=function(e){let t=e,r=t.length,n="";for(let i=1;i<r;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(n+="/"+t[i].toString().replaceAll("~","~0").replaceAll("/","~1"));return n};Tt.toPathArray=function(e){let{cache:t}=Tt;if(t[e])return t[e].concat();let r=[],i=e.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,function(s,a){return"[#"+(r.push(a)-1)+"]"}).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,function(s,a){return"['"+a.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"}).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,function(s,a){return";"+a.split("").join(";")+";"}).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map(function(s){let a=s.match(/#(\d+)/u);return!a||!a[1]?s:r[a[1]]});return t[e]=i,t[e].concat()};Tt.prototype.safeVm={Script:r8};Tt.prototype.vm=Xoe.default;var Joe=(e,t)=>(e=e||"",t=t||"",resolve(e,t)),Qoe={query(e,t){return Tt.JSONPath({path:t,json:e})}},s8=!0,Zoe=":eq|:lt|:gt|:first|:last|:not|:even|:odd|:has|:contains|:matches|:empty|^body$|^#",LJe="(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)",MJe="^(ftp|magnet|thunder|ws):",a8=class{constructor(t=""){this.MY_URL=t,this.pdfh_html="",this.pdfa_html="",this.pdfh_doc=null,this.pdfa_doc=null}test(t,r){return!!new RegExp(t,"mi").exec(r)}contains(t,r){return t.indexOf(r)!==-1}parseHikerToJq(t,r=!1){if(this.contains(t,"&&")){let n=t.split("&&"),i=[];for(let s=0;s<n.length;s++){let a=n[s].split(" "),o=a[a.length-1];this.test(Zoe,o)||!r&&s>=n.length-1?i.push(n[s]):i.push(`${n[s]}:eq(0)`)}t=i.join(" ")}else{let n=t.split(" "),i=n[n.length-1];!this.test(Zoe,i)&&r&&(t=`${t}:eq(0)`)}return t}getParseInfo(t){let r=[],n=0,i=t;if(this.contains(t,":eq")){i=t.split(":eq")[0];let s=t.split(":eq")[1];this.contains(i,"--")?(r=i.split("--").slice(1),i=i.split("--")[0]):this.contains(s,"--")&&(r=s.split("--").slice(1),s=s.split("--")[0]);try{n=parseInt(s.split("(")[1].split(")")[0])}catch{}}else this.contains(t,"--")&&(i=t.split("--")[0],r=t.split("--").slice(1));return{nparse_rule:i,nparse_index:n,excludes:r}}reorderAdjacentLtAndGt(t){let r=/:gt\((\d+)\):lt\((\d+)\)/,n;for(;(n=r.exec(t))!==null;){let i=`:lt(${n[2]}):gt(${n[1]})`;t=t.substring(0,n.index)+i+t.substring(n.index+n[0].length),r.lastIndex=n.index}return t}parseOneRule(t,r,n){let{nparse_rule:i,nparse_index:s,excludes:a}=this.getParseInfo(r);if(i=this.reorderAdjacentLtAndGt(i),n?n=n.find(i):n=t(i),this.contains(r,":eq")&&(n=n.eq(s)),a.length>0&&n){n=n.clone();for(let o of a)n.find(o).remove()}return n}parseText(t){return t=t.replace(/[\s]+/gm,`
`),t=t.replace(/\n+/g,`
`).replace(/^\s+/,""),t=t.replace(/\n/g," "),t}pdfa(t,r){if(!t||!r)return[];r=this.parseHikerToJq(r);let n=$t(t);s8&&this.pdfa_html!==t&&(this.pdfa_html=t,this.pdfa_doc=n);let i=r.split(" "),s=null;for(let o of i)if(s=this.parseOneRule(n,o,s),!s)return[];return(s?.toArray()??[]).map(o=>{let u=`${n(o)}`;return u||""})}pdfl(t,r,n,i,s){if(!t||!r)return[];r=this.parseHikerToJq(r,!1);let a=[],o=$t(t),u=r.split(" "),l=null;for(let c of u)if(l=this.parseOneRule(o,c,l),!l)return[];return l.each((c,f)=>{a.push(`${o(f)}`)}),a}pdfh(t,r,n=""){if(!t||!r)return"";let i=$t(t);if(typeof s8<"u"&&s8&&this.pdfa_html!==t&&(this.pdfa_html=t,this.pdfa_doc=i),r==="body&&Text"||r==="Text")return this.parseText(i.text());if(r==="body&&Html"||r==="Html")return i.html();let s;if(this.contains(r,"&&")){let u=r.split("&&");s=u.pop(),r=u.join("&&")}r=this.parseHikerToJq(r,!0);let a=r.split(" "),o=null;for(let u of a)if(o=this.parseOneRule(i,u,o),!o)return"";if(s)switch(s){case"Text":o=o?this.parseText(o.text()):"";break;case"Html":o=o?o.html():"";break;default:let u=o.clone(),l=s.split("||");for(let c of l){if(o=u?.attr(c)||"",this.contains(c.toLowerCase(),"style")&&this.contains(o,"url("))try{o=o.match(/url\((.*?)\)/)[1],o=o.replace(/^['"]|['"]$/g,"")}catch{}if(o&&n&&this.test(LJe,c)&&!this.test(MJe,o)&&(o=o.includes("http")?o.slice(o.indexOf("http")):Joe(n,o)),o)break}}else o=`${o}`;return o}pd(t,r,n=""){return n||(n=this.MY_URL),this.pdfh(t,r,n)}pq(t){return $t(t)}pjfh(t,r,n=!1){if(!t||!r)return"";try{t=typeof t=="string"?JSON.parse(t):t}catch{return console.log("\u5B57\u7B26\u4E32\u8F6C JSON \u5931\u8D25"),""}r.startsWith("$.")||(r="$."+r);let i="",s=r.split("||");for(let a of s){let o=Qoe.query(t,a);if(i=Array.isArray(o)?o[0]||"":o||"",n&&i&&(i=Joe(this.MY_URL,i)),i)break}return i}pj(t,r){return this.pjfh(t,r,!0)}pjfa(t,r){if(!t||!r)return[];try{t=typeof t=="string"?JSON.parse(t):t}catch{return[]}r.startsWith("$.")||(r="$."+r);let n=Qoe.query(t,r);return Array.isArray(n)&&Array.isArray(n[0])&&n.length===1?n[0]:n||[]}},hv=a8;var FJe=["https://leijing.xyz"],o8=async e=>(await e.db.getObjectDefault("/leijing",{}))?.urls||e.config.leijing?.urls||FJe,BJe=async(e,t)=>{await e.db.push("/leijing/urls",t)},qJe=async e=>{await e.db.delete("/leijing/urls")};async function u8(e){e.get("/urls",async(t,r)=>{r.send({code:0,data:await o8(t.server)})}),e.put("/urls",async(t,r)=>{await BJe(t.server,t.body),r.send({code:0})}),e.delete("/urls",async(t,r)=>{await qJe(t.server),r.send({code:0})})}var l8={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8"},c8,mv=e=>{if(!c8){let t=Date.now();c8=new Promise(async r=>{let n=await o8(e),i=await Su(n,l8);console.log("\u96F7\u9CB8\u57DF\u540D",i,`${Date.now()-t}ms`),r(i)})}return c8};async function jJe(e){try{return await fe.request(typeof e=="string"?e:{url:e.url,method:e.method||"GET",headers:e.headers||{...l8,"User-Agent":$E},data:e.data||"",responseType:e.responseType||""})}catch(t){return t.response}}async function eue(e){return(await wt.get(e,{headers:l8})).data}var f8=e=>new hv().pq(e);async function UJe(e,t){return{class:[{type_id:"42204681950354",type_name:"\u7535\u5F71"},{type_id:"42204684250355",type_name:"\u5267\u96C6"},{type_id:"42212287587456",type_name:"\u5F71\u89C6\u539F\u76D8"},{type_id:"42204697150356",type_name:"\u8BB0\u5F55"},{type_id:"42204792950357",type_name:"\u52A8\u753B\u52A8\u6F2B"},{type_id:"42210356650363",type_name:" \u7EFC\u827A"}],filters:{}}}async function HJe(e,t){let r=await mv(e.server),n=e.body.id,s=e.body.page||1;s==0&&(s=1);let a=await eue(`${r}/?tagId=${n}&page=${s}`),o=f8(a),u=[];o(".topicList .topicItem").each((d,h)=>{let p=o(h).find("h2 a:first")[0];u.push({vod_name:p.children[0].data,vod_id:p.attribs.href,vod_pic:e.server.address().url+e.server.prefix+"/icon"})});let l=o(".topicPage .pg")[0],c=o(l).find(".count")[0].children[0].data.match(/\d+/)[0],f=o(l).find(".last")[0].attribs.title.match(/\d+/)[0];return{page:parseInt(s),pagecount:f?parseInt(f):1,limit:u.length,total:c?parseInt(c):u.length,list:u}}async function zJe(e,t){let r=await mv(e.server),n=await eue(`${r}/${e.body.id}`),i=f8(n),s={vod_name:i(".title")[0].children[0].data.trim(),vod_id:`${e.body.id}`,vod_content:i("div.topicContent p:nth-child(1)").text().replace(/\s+/g,"")},a=i(".topicContent").html(),o=a.match(/<a\s+(?:[^>]*?\s+)?href=["'](https?:\/\/cloud\.189\.cn\/[^"']*)["'][^>]*>/gi);if(!o||o.length===0?(o=a.match(/<span\s+style="color:\s*#0070C0;\s*">https?:\/\/cloud\.189\.cn\/[^<]*<\/span>/gi),o&&o.length>0?o=o[0].match(/https?:\/\/cloud\.189\.cn\/[^<]*/)[0]:o=a.match(/https?:\/\/cloud\.189\.cn\/[^<]*/)[0]):o=o[0].match(/https?:\/\/cloud\.189\.cn\/[^"']*/)[0],wm(o)){let u=await Hr(o,e);u&&(s.vod_play_from=u.froms,s.vod_play_url=u.urls)}return{list:[s]}}async function VJe(e,t){let r=await mv(e.server),n=e.body.page||1,i=e.body.wd,s=(await jJe(`${r}/search?keyword=${encodeURIComponent(decodeURIComponent(i))}&page=${n}`)).data,a=f8(s),o=[];return a(".topicList .topicItem").each((u,l)=>{let c=a(l).find(".tag")[0];if(["\u7535\u5F71","\u5267\u96C6","\u52A8\u6F2B","\u5F71\u89C6\u539F\u76D8","\u7EFC\u827A"].includes(a(c).html())){let f=a(l).find(".title a:first")[0];o.push({vod_name:a(f).html().replace(/<[^>]*>/g,"").replace(/\s+/g,""),vod_id:f.attribs.href,vod_remarks:"",vod_pic:`${r}/favicon.ico`})}}),{page:n,pagecount:1,list:o}}async function GJe(e,t){try{let n=Buffer.from("iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAALVBMVEVHcEw9r+cipOQqp+VItOhCsedives7ruccouNVueovquW74/eV1PLW7vpzxu6kNLMaAAAACHRSTlMAK9qm1B0KZtVpWLIAAAJCSURBVEjHxZUxj9MwFMdzQzsD1cFMGegKJ3QnPgITEirz3cAxw0l8gJbBl4E5TqssDCShyh45Ye+16X5y3JmkqT8Dz0lo4zSpN/iryZD30/s/1/Z7mvbv1B0+rGh4WY9/eHLWr+js03s5fnXT15G9+yG7f/64Gu/cDFBNo/O3FaB3EAfiRcXgJWrQs51Jt4catUtxctEMjB+UwLtBMzB6VTp8Ri16fnnUYefxcdAGjL4UJaBWFUU8ageeHq8RoR+iys7rdmAs9qPzph34rgK+inWeCEB3C4mv+1cFcJaFbGDzV2bIgEcIYfBAzKOmi/TotwToDsZTijGGzD/pcu46ke/YFcCD7AsmPAx9G4T+hDJK7irAjJYAMzyKo3QqWAlYW9yKLZ5ExoRmbGWCm1m1mPkbwuMpmQPAQsYwCYhfLdKblxkywyFTP8J0tVhLy3SzIM8AC8yB2J7dSwCyVnhlLVNYcRhSdgjoUFUCjw0ZNr/Agm9kCy/M/0lq5BYbDIVKRaJvMc8o56EAFkFo4mhuyhlibNHEIgAsYEvMZJukcgZGQrBgdr4t2Iu32dqWLZIpZACLW2xlq8n9lkM9EgAWWFjMYJuC6G6bRmnNglCwMGBjOXaIFaaTtJZBSBTpQh3JjBquVMNtkp9Bbpen1Uls+cihIuI2nepjF6e4FxeKm3XsbuYdpKu63VpP1R+UHUbZo5RdrrVJ/e2T6k6r7NXaVWOK8X6kdFXzQj1xxMyS47WZpZ56mnY9PN2PzdPDufk/9QdaMC7B2rkgYwAAAABJRU5ErkJggg==","base64");return t.header("Content-Type","image/png"),t.header("Content-Length",n.length),t.send(n)}catch{t.code(500).send({error:"Failed to load image"})}}var tue={meta:{key:"leijing",name:"\u96F7\u9CB8",type:3},api:async e=>{e.post("/init",wn),e.post("/home",UJe),e.post("/category",HJe),e.post("/detail",zJe),e.post("/play",zr),e.post("/search",VJe),e.get("/icon",GJe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An)},check:mv};async function WJe(e){try{return await fe.request(typeof e=="string"?e:{url:e.url,method:e.method||"GET",headers:e.headers||{"User-Agent":$E},data:e.data||"",responseType:e.responseType||""})}catch(t){return t.response}}async function rue(e){return(await wt.get(e,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"}})).data}var d8="https://www.91panta.cn",p8=e=>new hv().pq(e),nue=[{type_id:"39765285016165",type_name:"\u7535\u5F71"},{type_id:"39765284616164",type_name:"\u7535\u89C6\u5267"},{type_id:"39724839640293",type_name:"\u7EFC\u827A"},{type_id:"39724838540291",type_name:" \u52A8\u6F2B"},{type_id:"44732560408431",type_name:"\u77ED\u5267"},{type_id:"39956600861068",type_name:"\u7EAA\u5F55\u7247"}],KJe=nue.map(e=>e.type_name);async function YJe(e,t){return{class:nue,filters:{}}}async function XJe(e,t){let r=e.body.id,i=e.body.page||1;i==0&&(i=1);let s=await rue(`${d8}/?tagId=${r}&page=${i}`),a=p8(s),o=[];a(".topicList .topicItem").each((f,d)=>{let h=a(d).find("h2 a:first")[0],p=a(d).find(".tm-m-photos-thumb li:first")[0]?.attribs["data-src"];o.push({vod_name:h.children[0].data.split(" ")[0],vod_id:h.attribs.href,vod_pic:p?`https://www.91panta.cn/${p}`:"https://www.91panta.cn/favicon.ico"})});let u=a(".topicPage .pg")[0],l=a(u).find(".count")[0].children[0].data.match(/\d+/)[0],c=a(u).find(".last")[0].attribs.title.match(/\d+/)[0];return{page:parseInt(i),pagecount:c?parseInt(c):1,limit:o.length,total:l?parseInt(l):o.length,list:o}}async function JJe(e,t){let r=await rue(`${d8}/${e.body.id}`),n=p8(r),i={vod_name:n(".title")[0].children[0].data.trim(),vod_id:`/${e.body.id}`,vod_content:n("div.topicContent p:nth-child(1)").text().replace(/\s+/g,"")},s=n(".topicContent").html(),a=s.match(/<a\s+(?:[^>]*?\s+)?href=["'](https:\/\/caiyun\.139\.com\/[^"']*)["'][^>]*>/gi);!a||a.length===0?(a=s.match(/<span\s+style="color:\s*#0070C0;\s*">https:\/\/caiyun\.139\.com\/[^<]*<\/span>/gi),a&&a.length>0?a=a[0].match(/https:\/\/caiyun\.139\.com\/[^<]*/)[0]:a=s.match(/https:\/\/caiyun\.139\.com\/[^<]*/)[0]):a=a[0].match(/https:\/\/caiyun\.139\.com\/[^"']*/)[0];let o=await Hr(a,e);return o&&(i.vod_play_from=o.froms,i.vod_play_url=o.urls),{list:[i]}}async function QJe(e,t){let r=e.body.page||1,n=e.body.wd,i=(await WJe(`${d8}/search?keyword=${encodeURIComponent(decodeURIComponent(n))}&page=${r}`)).data,s=p8(i),a=[];return s(".topicList .topicItem").each((o,u)=>{let l=s(u).find(".tag")[0];if(KJe.includes(s(l).html())){let c=s(u).find(".title a:first")[0],f=s(u).find(".tm-m-photos-thumb li:first")[0]?.attribs["data-src"];a.push({vod_name:s(c).html().replace(/<[^>]*>/g,"").replace(/\s+/g,""),vod_id:c.attribs.href,vod_remarks:"",vod_pic:f?`https://www.91panta.cn/${f}`:"https://www.91panta.cn/favicon.ico"})}}),{page:r,pagecount:1,list:a}}var iue={meta:{key:"panta",name:"\u76D8Ta",type:3},api:async e=>{e.post("/init",wn),e.post("/home",YJe),e.post("/category",XJe),e.post("/detail",JJe),e.post("/play",zr),e.post("/search",QJe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An)}};var ZJe=["https://wogg.xxooo.cf","https://wogg.333232.xyz","https://woggpan.333232.xyz","https://wogg.heshiheng.top","https://www.wogg.one","https://www.wogg.lol"],h8=async e=>(await e.db.getObjectDefault("/wogg",{}))?.urls||e.config.wogg?.urls||ZJe,eQe=async(e,t)=>{await e.db.push("/wogg/urls",t)},tQe=async e=>{await e.db.delete("/wogg/urls")};async function m8(e){e.get("/urls",async(t,r)=>{r.send({code:0,data:await h8(t.server)})}),e.put("/urls",async(t,r)=>{await eQe(t.server,t.body),r.send({code:0})}),e.delete("/urls",async(t,r)=>{await tQe(t.server),r.send({code:0})})}var g8,Zm=e=>{if(!g8){let t=Date.now();g8=new Promise(async r=>{let n=await h8(e),i=await Su(n);console.log("\u73A9\u5076\u57DF\u540D",i,`${Date.now()-t}ms`),r(i)})}return g8};async function jd(e){return(await wt.get(e,{headers:{"User-Agent":Cs}})).data}async function rQe(e,t){return await wn(e,t),{}}async function nQe(e,t){let r=await Zm(e.server),n=await jd(`${r}/index.php/vodshow/1-----------.html`);return{class:$t(n)("div.library-box-first a[href*=/vodshow/]").map((s,a)=>({type_id:a.attribs.href.match(/vodshow\/(\d+)-----------.html/)[1],type_name:a.attribs.title.replace(/片库|玩偶/g,"")})).get()}}function y8(e){return e.startsWith("/img.php?url=")?e.substr(13):e}function sue(e){let t=Array.isArray(e)?e:e.split("-");for(let r=1;r<t.length;r++)if(t[r]!="")return r;return-1}async function iQe(e,t){let r=await Zm(e.server),n=e.body.id,i=e.body.page,s=e.body.filters,a=i||1;if(a==0&&(a=1),n.startsWith("s-")){let o=["","","","","","","","","","",a,"","",""],u=n.split("-");o[parseInt(u[1])]=u[2];let l=await jd(`${r}/index.php/vodsearch/${o.join("-")}.html`),c=$t(l),f=c("div.module-items > div.module-search-item").map((d,h)=>{let p=c(h).find("div.video-info-header h3 a")[0];return{vod_id:p.attribs.href.match(/voddetail\/(.*).html/)[1],vod_name:p.attribs.title,vod_pic:y8(c(h).find("div.module-item-pic img")[0].attribs["data-src"]),vod_remarks:c(h).find("a.video-serial").text()}}).get();return{page:a,pagecount:f.length<10?a:a+1,list:f}}else{let o=[],u=null;if(a==1&&Object.keys(s).length==0){let f=await jd(`${r}/index.php/vodshow/${n}-----------.html`);u=$t(f),u("a.library-item-first").map((d,h)=>{let p=u(h.parent).find("div.library-list > a.library-item");if(p.length>0){let m=[],y=0;p.each((g,v)=>{let x=v.attribs.href.match(/vodshow\/(.*).html/)[1].split("-");g==0&&(y=sue(x),y!=2&&m.push({n:"\u5168\u90E8",v:""})),m.push({n:v.attribs.title.replace(/按|排序/g,""),v:decodeURIComponent(x[y].toString())})}),o.push({key:y.toString(),name:"",init:m[0].v,value:m})}})}if(u===null){let f=[n,"","","","","","","",a,"","",""];Object.keys(s).forEach(h=>{f[parseInt(h)]=s[h]});let d=await jd(`${r}/index.php/vodshow/${f.join("-")}.html`);u=$t(d)}let l=u("div.module-items > div.module-item").map((f,d)=>{let h=u(d).find("div.video-name a")[0];return{vod_id:h.attribs.href.match(/voddetail\/(.*).html/)[1],vod_name:h.attribs.title,vod_pic:y8(u(d).find("div.module-item-pic img")[0].attribs["data-src"]),vod_remarks:u(d).find("div.module-item-text").text()}}).get(),c={page:a,pagecount:l.length<70?a:a+1,list:l};return o.length>0&&(c.filter=o),c}}async function sQe(e,t){let r=await Zm(e.server),n=Array.isArray(e.body.id)?e.body.id:[e.body.id],i=[];for(let s of n){let a=await jd(`${r}/index.php/voddetail/${s}.html`),o=$t(a),u=[],l=[],c="";o("div.video-info-items a[href*=/vodsearch/]").each((p,m)=>{let y=m.attribs.href.match(/vodsearch\/(.*).html/)[1].split("-"),g=o(m).text().trim(),v=sue(y);if(v===5){let E={id:"s-5-"+decodeURIComponent(y[5].toString()),name:g};u.push(`[a=cr:${JSON.stringify(E)}/]${g}[/a]`)}else if(v===1){let E={id:"s-1-"+decodeURIComponent(y[1].toString()),name:g};l.push(`[a=cr:${JSON.stringify(E)}/]${g}[/a]`)}else v===13&&(c=g)});let f={vod_name:o(".page-title")[0].children[0].data,vod_year:c,vod_actor:l.join(", "),vod_director:u.join(", "),vod_content:o("div.video-info-content p[style*=none]")[0].children[0].data.trim()},d=o("div.module-row-info p").map((p,m)=>m.children[0].data).get(),h=await Hr(d,e);h&&(f.vod_play_from=h.froms,f.vod_play_url=h.urls),i.push(f)}return{list:i}}async function aQe(e,t){let r=await Zm(e.server),n=e.body.page,i=e.body.wd,s=n||1;s==0&&(s=1);let a=await jd(`${r}/index.php/vodsearch/-------------.html?wd=${i}`),o=$t(a),u=o("div.module-items > div.module-search-item").map((l,c)=>{let f=o(c).find("div.video-info-header h3 a")[0];return{vod_id:f.attribs.href.match(/voddetail\/(.*).html/)[1],vod_name:f.attribs.title,vod_pic:y8(o(c).find("div.module-item-pic img")[0].attribs["data-src"]),vod_remarks:o(c).find("a.video-serial").text()}}).get();return{page:s,pagecount:u.length<10?s:s+1,list:u}}async function oQe(e,t){try{let r=function(a){a.statusCode&&a.statusCode==500&&console.error(a)},n=e.server.prefix,i={},s=await e.server.inject().post(`${n}/init`);if(i.init=s.json(),r(s.json()),s=await e.server.inject().post(`${n}/home`),i.home=s.json(),r(s.json()),i.home.class.length>0&&(s=await e.server.inject().post(`${n}/category`).payload({id:i.home.class[0].type_id,page:1,filter:!0,filters:{}}),i.category=s.json(),r(s.json()),i.category.list.length>0&&(s=await e.server.inject().post(`${n}/detail`).payload({id:i.category.list[0].vod_id}),i.detail=s.json(),r(s.json()),i.detail.list&&i.detail.list.length>0))){i.play=[];for(let a of i.detail.list){let o=a.vod_play_from.split("$$$"),u=a.vod_play_url.split("$$$");for(let l=0;l<o.length;l++){let c=o[l],f=u[l].split("#");for(let d=0;d<f.length&&d<2;d++)s=await e.server.inject().post(`${n}/play`).payload({flag:c,id:f[d].split("$")[1]}),i.play.push(s.json())}}}return s=await e.server.inject().post(`${n}/search`).payload({wd:"\u7231",page:1}),i.search=s.json(),r(s.json()),i}catch(r){return console.error(r),t.code(500),{err:r.message,tip:"check debug console output"}}}var aue={meta:{key:"wogg",name:"\u73A9\u5076",type:3},api:async e=>{e.post("/init",rQe),e.post("/home",nQe),e.post("/category",iQe),e.post("/detail",sQe),e.post("/play",zr),e.post("/search",aQe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An),e.get("/test",oQe)},check:Zm};var uQe=["https://mihdr.top","http://xiaomi666.fun","http://www.miqk.cc","https://xiaomiai.site"],b8=async e=>(await e.db.getObjectDefault("/zhizhen",{}))?.urls||e.config.zhizhen?.urls||uQe,cQe=async(e,t)=>{await e.db.push("/zhizhen/urls",t)},lQe=async e=>{await e.db.delete("/zhizhen/urls")};async function x8(e){e.get("/urls",async(t,r)=>{r.send({code:0,data:await b8(t.server)})}),e.put("/urls",async(t,r)=>{await cQe(t.server,t.body),r.send({code:0})}),e.delete("/urls",async(t,r)=>{await lQe(t.server),r.send({code:0})})}var E8,gv=e=>{if(!E8){let t=Date.now();E8=new Promise(async r=>{let n=await b8(e),i=await Su(n);console.log("\u81F3\u81FB\u57DF\u540D",i,`${Date.now()-t}ms`),r(i)})}return E8};async function _8(e){return(await wt.get(e,{headers:{"User-Agent":Cs}})).data}async function fQe(e,t){let r="";return{class:[{type_id:"26",type_name:"\u4E25\u9009"},{type_id:"1",type_name:"\u7535\u5F71"},{type_id:"2",type_name:"\u5267\u96C6"},{type_id:"3",type_name:"\u52A8\u6F2B"},{type_id:"4",type_name:"\u7EFC\u827A"},{type_id:"5",type_name:"\u77ED\u5267"},{type_id:"24",type_name:"\u8001\u5267\u8BA1\u5212"}],filters:{}}}async function dQe(e,t){let r=await gv(e.server),n=e.body.id,i=e.body.page,s=i||1;s==0&&(s=1);let a=r+`/index.php/vod/show/id/${n}/page/${i}.html`,o=await _8(a,Cs),u=$t(o),l=u("#main .module-item"),c=[];for(var f of l){let p=u(f).find(".module-item-pic a").attr("href"),m=u(f).find(".module-item-pic img").attr("alt"),y=u(f).find(".module-item-pic img").attr("data-src"),g=u(f).find(".module-item-text").text();c.push({vod_id:p,vod_name:m,vod_pic:y,vod_remarks:g})}let h=u("#page > a:contains(\u4E0B\u4E00\u9875)").length>0?parseInt(s)+1:parseInt(s);return{page:parseInt(s),pagecount:h,limit:72,total:72*h,list:c}}async function pQe(e,t){let r=await gv(e.server),n=Array.isArray(e.body.id)?e.body.id:[e.body.id],i=[];for(let s of n){let a=await _8(r+s),o=$t(a),u={vod_id:s,vod_name:o(".page-title")[0].children[0].data,vod_pic:o(o(".mobile-play")).find(".lazyload")[0].attribs["data-src"]},l=o(".video-info-itemtitle");for(let d of l){let h=o(d).text(),m=o(d).next().find("a").map((y,g)=>{let v=o(g).text().trim();return v||null}).get().filter(Boolean).join(", ");h.includes("\u5267\u60C5")?u.vod_content=o(d).next().find("p").text().trim():h.includes("\u5BFC\u6F14")?u.vod_director=m.trim():h.includes("\u4E3B\u6F14")&&(u.vod_actor=m.trim())}let c=o("div.module-row-info p").map((d,h)=>h.children[0].data).get(),f=await Hr(c,e);f&&(u.vod_play_from=f.froms,u.vod_play_url=f.urls),i.push(u)}return{list:i}}async function hQe(e,t){let r=await gv(e.server),n=e.body.page,i=e.body.wd,s=n||1;s==0&&(s=1);let a=await _8(`${r}/index.php/vod/search/wd/${i}.html`),o=$t(a),u=o(".module-search-item").map((l,c)=>({vod_id:o(c).find(".video-serial")[0].attribs.href,vod_name:o(c).find(".video-serial")[0].attribs.title,vod_pic:o(c).find(".module-item-pic > img")[0].attribs["data-src"],vod_remarks:o(o(c).find(".video-serial")[0]).text()})).get();return{page:s,pagecount:u.length<10?s:s+1,list:u}}var oue={meta:{key:"zhizhen",name:"\u81F3\u81FB",type:3},api:async e=>{e.post("/init",wn),e.post("/home",fQe),e.post("/category",dQe),e.post("/detail",pQe),e.post("/play",zr),e.post("/search",hQe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An),e.get("/test",dv)},check:gv};var bv=async(e,t,r)=>(await e.db.getObjectDefault("/tgsou",{}))?.[t]||e.config.tgsou[t]||r,v8=e=>bv(e,"url","http://tgsou.fish2018.ip-ddns.com"),T8=e=>bv(e,"count",4),S8=e=>bv(e,"channelUsername","Q66Share,alyp_TV,ucpanpan,ucquark,tianyirigeng,hao115,guaguale115,ydypzyfx,tgsearchers,NewQuark,dianyingshare,XiangxiuNB,yunpanpan,kuakeyun,Quark_Movies,qixingzhenren,longzbija,alyp_4K_Movies,yunpanshare,shareAliyun,alyp_1,xx123pan"),w8=e=>bv(e,"pic",!1),yv=async(e,t,r)=>{await e.db.push(`/tgsou/${t}`,r)};async function A8(e){e.get("/config",async(t,r)=>{let n=await v8(t.server),i=await T8(t.server),s=await S8(t.server),a=await w8(t.server);r.send({code:0,data:{url:n,count:Number(i),channelUsername:s.split(","),pic:a}})}),e.put("/config",async(t,r)=>{await yv(t.server,"url",t.body.url),await yv(t.server,"count",t.body.count),await yv(t.server,"channelUsername",t.body.channelUsername.join(",")),await yv(t.server,"pic",t.body.pic),r.send({code:0})})}async function mQe(e,t){return await wn(e,t),{}}async function gQe(e,t){return{class:[]}}async function yQe(e,t){return{page:1,pagecount:1,list:[]}}async function bQe(e,t){let r=Array.isArray(e.body.id)?e.body.id:[e.body.id],n=[];for(let i of r){let s=await Hr(i,e),a={};s&&(a.vod_play_from=s.froms,a.vod_play_url=s.urls),n.push(a)}return{list:n}}async function xQe(e,t){let r=await v8(e.server),n=await T8(e.server),i=await S8(e.server),s=await w8(e.server),a=e.body.wd,o=await fe.get(`${r}?pic=${s}&count=${n}&channelUsername=${encodeURIComponent(i)}&keyword=${encodeURIComponent(a)}`),u=[];for(let l of o.data.results){let[c,f]=l.split("$$$");if(!f)continue;let d=f.split("##");for(let h=0;h<d.length&&h<=n;h++){let[p,m]=d[h].split("$$"),[y,g]=p.split("@");if(!u.some(v=>v.vod_id===y)){let v=gl().find(E=>E.validator(y));v&&u.push({vod_id:y?.replace(/\s+/g,""),vod_name:m?.replace(/\s+/g,"")||a,vod_pic:g?`${r}/down?id=${g}&channelUsername=${c}`:v.pic,vod_remarks:`${v.name}:${c}`})}}}return{page:1,pagecount:1,list:u}}var uue={meta:{key:"tgsou",name:"tg\u641C(\u4EC5\u641C\u7D22)",type:3},api:async e=>{e.post("/init",mQe),e.post("/home",gQe),e.post("/category",yQe),e.post("/detail",bQe),e.post("/play",zr),e.post("/search",xQe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An)}};var Ev=async(e,t,r)=>(await e.db.getObjectDefault("/tgchannel",{}))?.[t]||e.config.tgchannel[t]||r,_v=e=>Ev(e,"url","https://t.me"),C8=e=>Ev(e,"count",4),I8=e=>Ev(e,"channelUsername","Q66Share,alyp_TV,ucpanpan,ucquark,tianyirigeng,hao115,guaguale115,ydypzyfx,tgsearchers,NewQuark,dianyingshare,XiangxiuNB,yunpanpan,kuakeyun,Quark_Movies,qixingzhenren,longzbija,alyp_4K_Movies,yunpanshare,shareAliyun,alyp_1,xx123pan"),R8=e=>Ev(e,"homeChannelUsername","alyp_TV,ucquark,tianyirigeng,ydypzyfx"),xv=async(e,t,r)=>{await e.db.push(`/tgchannel/${t}`,r)};async function N8(e){e.get("/config",async(t,r)=>{let n=await _v(t.server),i=await C8(t.server),s=await I8(t.server),a=await R8(t.server);r.send({code:0,data:{url:n,count:Number(i),channelUsername:s.split(","),homeChannelUsername:a.split(",")}})}),e.put("/config",async(t,r)=>{await xv(t.server,"url",t.body.url),await xv(t.server,"count",t.body.count),await xv(t.server,"channelUsername",t.body.channelUsername.join(",")),await xv(t.server,"homeChannelUsername",t.body.homeChannelUsername.join(",")),r.send({code:0})})}function EQe(e){let t=e.attr("style"),r=/background-image:url\('([^']+)'\)/.exec(t);if(r&&r.length>1)return r[1]}function fue(e){return e=e.replace(/https?:\/\/[^\s]+/gi,""),e=e.split(/名称[|:]/)?.[1]||e,e=e.split(/\(|/)?.[0]||e,e=e.split(`
`)?.[0]||e,e=e.split(" ").slice(0,2).join(" "),e=e.split(/|,/)?.[0],e?.trim()}function _Qe(e){let t=[];for(let r of e){let n=r.attribs?.href;gl().some(i=>i.validator(n))&&t.push(n)}return t}function vQe(e){let t=[],r=e.match(/https?:\/\/[^\s]+/gi);if(r)for(let n of r)gl().some(i=>i.validator(n))&&t.push(n);return t}function TQe(e){for(let t of e){let r=t.attribs?.href;if(due(r))return r}}var due=e=>/t.me\/.*\/.*/.test(e),pue=e=>gl().find(t=>t.validator(e));async function SQe(e){let t=await fe.get(e,{timeout:5e3,headers:{"User-Agent":"MoZhao"}}),r=$t(t.data),n=r(".tgme_widget_message"),i=[];for(let s of n){let a=s.attribs["data-post"],o=EQe(r(s).find(".tgme_widget_message_photo_wrap"));r("br").replaceWith(`
`);let u=r(s).find(".tgme_widget_message_text").text(),l=fue(u),c=u,f=_Qe(r(s).find(".tgme_widget_message_text a")),d=[...f];if(!f.length){let h=TQe(r(s).find(".tgme_widget_message_text a"));h&&f.push(h)}f.length&&i.push({id:f.join("|"),title:l,description:c,cover:o,messageId:Number(a.split("/")[1]),panLinks:d})}return i}async function wQe(e){let t=await fe.get(e,{timeout:5e3,headers:{"User-Agent":"MoZhao"}}),r=$t(t.data),n=r('meta[property="og:image"]').attr("content"),i=fue(r('meta[property="og:description"]').attr("content")),s=r('meta[property="og:description"]').attr("content"),a=vQe(r('meta[property="og:description"]').attr("content"));return{title:i,description:s,cover:n,links:a}}async function AQe(e,t){return await wn(e,t),{}}async function CQe(e){return{class:(await R8(e.server)).split(",").map(r=>({type_id:r,type_name:r}))}}var cue={},lue={};async function hue(e){let t=await _v(e.server),r=e.body.id,n=e.body.page;n||(n=1);try{let i=await SQe(`${t}/s/${r}${n>1?`?before=${lue[r]}`:""}`);lue[r]=i[0].messageId,n===1&&(cue[r]=i[i.length-1].messageId),i.reverse();let s=i.map(a=>{let o;return a.panLinks.length&&(o=pue(a.panLinks[0])?.pic),o||(o="https://telegram.org/img/apple-touch-icon.png"),{vod_name:a.title,vod_id:a.id,vod_pic:a.cover||o,rawData:a}});return{page:n,pagecount:Math.ceil(cue[r]/s.length),list:s}}catch(i){return console.error(i),{page:n,pagecount:1,list:[]}}}async function IQe(e,t){let r=await _v(e.server),n=Array.isArray(e.body.id)?e.body.id:[e.body.id],i=[];for(let s of n){let a=s.split("|");a.length===1&&due(a[0])&&(a=(await wQe(s.replace("https://t.me",r))).links);let o=await Hr(a,e),u={vod_id:s};o&&(u.vod_play_from=o.froms,u.vod_play_url=o.urls),i.push(u)}return{list:i}}async function RQe(e,t){let r=await C8(e.server),n=await I8(e.server),i=e.body.wd,s=n.split(","),a=await Promise.all(s.map(u=>hue({body:{id:`${u}?q=${encodeURIComponent(i)}`},server:e.server}))),o=[];return a.forEach((u,l)=>{u.list.filter(c=>c.rawData.panLinks.length).slice(0,r).forEach(c=>{let f="",d;c.rawData.panLinks.forEach(h=>{let p=pue(h);p&&(f+=f?`|${p.name}`:p.name),d||(d=p.pic)}),o.push({vod_id:c.vod_id,vod_name:c.vod_name,vod_pic:c.vod_pic||d,vod_remarks:`${f}:${s[l]}`})})}),{page:1,pagecount:1,list:o}}var mue={meta:{key:"tgchannel",name:"tg\u9891\u9053",type:3},api:async e=>{e.post("/init",AQe),e.post("/home",CQe),e.post("/category",hue),e.post("/detail",IQe),e.post("/play",zr),e.post("/search",RQe),e.get("/proxy/:site/:what/:flag/:shareId/:fileId/:end",An)}};var gue=Te(LE(),1),O8=Te(vn(),1),NQe="https://frodo.douban.com",ya={};function OQe(e){e+=`&udid=${ya.id}&uuid=${ya.id}&&rom=android&apikey=0dad551ec0f84ed02907ff5c42e8ec70&s=rexxar_new&channel=Yingyongbao_Market&timezone=Asia/Shanghai&device_id=${ya.id}&os_rom=android&apple=c52fbb99b908be4d026954cc4374f16d&mooncake=0f607264fc6318a92b9e13c65db7cd3c&sugar=0`;let t=new URL(e),r=(0,gue.default)().unix().toString(),n=O8.default.HmacSHA1("GET&"+encodeURIComponent(t.pathname)+"&"+r,"bf7dddc7c9cfe6f7"),i=O8.default.enc.Base64.stringify(n);return e+"&_sig="+encodeURIComponent(i)+"&_ts="+r}async function PQe(e,t){return(await wt.get(e,{headers:{"User-Agent":t||ya.ua}})).data}async function DQe(e,t){let r=e.server.prefix+"/device";return ya=await e.server.db.getObjectDefault(r,{}),ya.id||(ya.id=nre(40).toLowerCase(),ya.ua=`Rexxar-Core/0.1.3 api-client/1 com.douban.frodo/7.9.0(216) Android/28 product/Xiaomi11 rom/android network/wifi udid/${ya.id} platform/mobile com.douban.frodo/7.9.0(216) Rexxar/1.2.151 platform/mobile 1.2.151`,await e.server.db.push(r,ya)),{}}async function kQe(e,t){return{class:[{type_id:"movie/hot_gaia",type_name:"\u7535\u5F71"},{type_id:"subject_collection/tv_hot/items",type_name:"\u7535\u89C6\u5267"},{type_id:"subject_collection/tv_domestic/items",type_name:"\u56FD\u4EA7\u5267"},{type_id:"subject_collection/tv_american/items",type_name:"\u7F8E\u5267"},{type_id:"subject_collection/tv_japanese/items",type_name:"\u65E5\u5267"},{type_id:"subject_collection/tv_korean/items",type_name:"\u97E9\u5267"},{type_id:"subject_collection/tv_animation/items",type_name:"\u52A8\u6F2B"},{type_id:"subject_collection/show_hot/items",type_name:"\u7EFC\u827A"}],filters:{}}}async function $Qe(e,t){let r=e.body.id,i=e.body.page||1;i==0&&(i=1);let s=OQe(`${NQe}/api/v2/${r}?area=\u5168\u90E8&sort=recommend&playable=0&loc_id=0&start=${(i-1)*30}&count=30`),a=await PQe(s),o=[];for(let u of a.items||a.subject_collection_items){let l=(u.rating&&u.rating.value||"").toString();o.push({vod_id:u.id,vod_name:u.title,vod_pic:u.pic.normal||u.pic.large,vod_remarks:l.length>0?"\u8BC4\u5206:"+l:""})}return{page:parseInt(i),pagecount:Math.ceil(a.total/30),list:o}}async function LQe(e,t){return{}}async function MQe(e,t){return{}}async function FQe(e,t){return{}}var yue={meta:{key:"douban",name:"\u8C46\u74E3\u200D",type:3,indexs:1},api:async e=>{e.post("/init",DQe),e.post("/home",kQe),e.post("/category",$Qe),e.post("/detail",LQe),e.post("/play",MQe),e.post("/search",FQe)}};async function BQe(e,t){return{}}async function qQe(e,t){return"true"}async function jQe(e,t){let r=Array.isArray(e.body.id)?e.body.id:[e.body.id],n=[];for(let i of r){let s={vod_id:i,vod_content:"",vod_name:i,vod_pic:"https://pic.rmb.bdstatic.com/bjh/1d0b02d0f57f0a42201f92caba5107ed.jpeg"},a=await Hr(i,e);a&&(s.vod_play_from=a.froms,s.vod_play_url=a.urls),n.push(s)}return{list:n}}async function UQe(e,t){try{let r=function(a){a.statusCode&&a.statusCode==500&&console.error(a)},n=e.server.prefix,i={},s=await e.server.inject().post(`${n}/support`).payload({clip:"https://xx.xx/1.m3u8"});return i.support=s.json(),r(s.json()),s=await e.server.inject().post(`${n}/detail`).payload({id:"https://xx.xx/1.m3u8"}),i.detail=s.json(),r(s.json()),s=await e.server.inject().post(`${n}/play`).payload({flag:"xx",id:"https://xx.xx/1.m3u8"}),i.play=s.json(),r(s.json()),i}catch(r){return console.error(r),t.code(500),{err:r.message,tip:"check debug console output"}}}var bue={meta:{key:"push",name:"\u63A8\u9001",type:4},api:async e=>{e.post("/init",BQe),e.post("/support",qQe),e.post("/detail",jQe),e.post("/play",zr),e.get("/test",UQe)}};var P8=async e=>(await e.db.getObjectDefault("/sites",{}))?.list||e.config.sites.list,HQe=async(e,t)=>{await e.db.push("/sites/list",t)},zQe=async e=>{await e.db.delete("/sites/list")};async function D8(e){e.get("/list",async(t,r)=>{r.send({code:0,data:await P8(t.server)})}),e.put("/list",async(t,r)=>{await HQe(t.server,t.body.list),r.send({code:0})}),e.delete("/list",async(t,r)=>{await zQe(t.server),r.send({code:0})})}var vv=async e=>await e.db.getObjectDefault("/danmu")||e.config.danmu,VQe=async(e,t)=>{await e.db.push("/danmu",t)},GQe=async e=>{await e.db.delete("/danmu")};async function k8(e){e.get("/setting",async(t,r)=>{r.send({code:0,data:await vv(t.server)})}),e.put("/setting",async(t,r)=>{await VQe(t.server,t.body),r.send({code:0})}),e.delete("/setting",async(t,r)=>{await GQe(t.server),r.send({code:0})}),e.post("/push",async(t,r)=>{messageToDart({action:"danmuPush",opt:{url:t.body.url}}),r.send({code:0})}),e.get("/fe",(t,r)=>{r.type("text/html").send(`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>\u5F39\u5E55\u641C\u7D22</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://lib.baomitu.com/antd/5.25.0/reset.min.css"> </head>
<body>
<div id="app"></div>
<script crossorigin src="https://lib.baomitu.com/react/18.2.0/umd/react.production.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/axios/0.26.0/axios.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/dayjs/1.10.8/dayjs.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/antd/5.25.0/antd.min.js"></script>
<script>${globalThis.danmuBundle}</script>
</body>
</html>
`)})}var $8=["\u7F8E\u5267","\u97E9\u5267","\u65E5\u5267","\u53F0\u5267","\u6E2F\u5267","\u6E2F\u53F0\u5267","\u56FD\u4EA7\u5267","\u5927\u9646\u5267","\u5185\u5730\u5267","\u6CF0\u5267","\u82F1\u5267","\u7F8E\u5267\u7248","\u82F1\u5267\u7248","\u65E5\u5267\u7248","\u97E9\u5267\u7248","\u53F0\u5267\u7248","\u6E2F\u5267\u7248","\u6CF0\u5267\u7248","\u5F71\u540E","\u5F71\u5E1D","\u56FD\u5267","\u5FAE\u77ED\u5267","\u77ED\u5267","\u7535\u5F71","\u5267\u96C6","\u7EFC\u827A","\u72AF\u7F6A","\u52A8\u6F2B","\u52A8\u753B","\u7EAA\u5F55\u7247","\u77ED\u7247","\u8FDE\u7EED\u5267","\u7CFB\u5217\u5267","\u7F51\u7EDC\u5267","\u7535\u89C6\u5267"],WQe=["\u5F71\u7247","\u7247\u5B50","\u7247\u82B1","\u7247\u6BB5","\u9884\u544A","\u9884\u544A\u7247","\u82B1\u7D6E","\u5E55\u540E","\u8BBF\u8C08","\u7279\u522B\u7BC7","\u756A\u5916\u7BC7","OVA","OAD","SP","TV\u7248","\u5267\u573A\u7248","\u7535\u5F71\u7248","\u5F71\u7248","\u5267\u7248","\u56FD\u8BED\u7248","\u666E\u901A\u8BDD\u7248","\u7CA4\u8BED\u7248","\u95FD\u5357\u8BED\u7248","\u5BA2\u5BB6\u8BED\u7248","\u5434\u8BED\u7248","\u5DDD\u8BED\u7248","\u6E58\u8BED\u7248","\u8D63\u8BED\u7248","\u7CA4\u8BED\u914D\u97F3\u7248","\u56FD\u8BED\u914D\u97F3\u7248","\u666E\u901A\u8BDD\u914D\u97F3\u7248","\u65B9\u8A00\u7248","\u539F\u7248\u914D\u97F3","\u539F\u97F3\u7248","\u53F0\u8BED\u7248","\u7CA4\u8BED\u4E2D\u5B57\u7248","\u56FD\u8BED\u4E2D\u5B57\u7248","\u666E\u901A\u8BDD\u4E2D\u5B57\u7248","\u7CA4\u8BED\u539F\u58F0\u7248","\u56FD\u8BED\u539F\u58F0\u7248","\u666E\u901A\u8BDD\u539F\u58F0\u7248","\u7CA4\u8BED\u5185\u5D4C\u5B57\u5E55\u7248","\u56FD\u8BED\u5185\u5D4C\u5B57\u5E55\u7248","\u666E\u901A\u8BDD\u5185\u5D4C\u5B57\u5E55\u7248","\u52A8\u753B\u7248","\u771F\u4EBA\u7248","\u6539\u7F16\u7248","\u91CD\u5236\u7248","\u4FEE\u590D\u7248","\u52A0\u957F\u7248","\u672A\u5220\u51CF\u7248","\u5B8C\u6574\u7248","\u5BFC\u6F14\u526A\u8F91\u7248","\u7EC8\u6781\u7248","\u7279\u522B\u7248","\u9650\u5B9A\u7248","\u6536\u85CF\u7248","\u8C6A\u534E\u7248","\u5178\u85CF\u7248","\u9AD8\u6E05\u7248","\u8D85\u6E05\u7248","\u6807\u6E05\u7248","HD\u7248","UHD\u7248","4K\u7248","\u84DD\u5149\u7248","DVD\u7248","BD\u7248","WEB\u7248","TVrip","BDrip","DVDrip","HDrip","WEB-DL","HDTV","DVDRip","BRRip","HDRip","BluRay","TS","TC","CAM","\u62A2\u5148\u7248","\u67AA\u7248","\u5077\u62CD\u7248","\u6CC4\u9732\u7248","\u62A2\u5148\u770B","\u6B63\u7247","\u6B63\u7247\u7247\u6BB5","\u6B63\u7247\u7CBE\u534E","\u82B1\u7D6E\u96C6\u9526","\u5E55\u540E\u82B1\u7D6E","\u5236\u4F5C\u7279\u8F91","\u8BBF\u8C08\u5F55","\u9996\u6620\u793C","\u7EA2\u6BEF\u79C0","\u8DEF\u6F14","\u53D1\u5E03\u4F1A","\u9884\u544A\u7247\u5408\u96C6","\u9884\u544A\u7247\u82B1\u7D6E","\u7247\u82B1\u9884\u544A","\u7CBE\u5F69\u7247\u6BB5","\u7CBE\u5F69\u96C6\u9526","\u7CBE\u9009\u7247\u6BB5","\u9AD8\u80FD\u7247\u6BB5","\u9AD8\u5149\u65F6\u523B","\u526A\u8F91\u7248","\u6DF7\u526A","MV","\u4E3B\u9898\u66F2","\u63D2\u66F2","\u7247\u5C3E\u66F2","\u914D\u4E50","\u539F\u58F0","OST","\u539F\u58F0\u5E26","\u539F\u58F0\u5927\u789F","\u97F3\u4E50\u96C6","\u97F3\u4E50\u4F1A","\u6F14\u5531","Live","Live\u7248","\u73B0\u573A\u7248","\u73B0\u573A\u5F55\u5236","\u821E\u53F0\u7248","\u821E\u53F0\u5267","\u8BDD\u5267","\u6B4C\u5267","\u821E\u5267","\u620F\u66F2","\u4EAC\u5267","\u8D8A\u5267","\u7CA4\u5267","\u8BC4\u5267","\u9EC4\u6885\u620F","\u4E8C\u4EBA\u8F6C","\u76F8\u58F0","\u5C0F\u54C1","\u7EFC\u827A\u79C0","\u771F\u4EBA\u79C0","\u8131\u53E3\u79C0","\u8BBF\u8C08\u8282\u76EE","\u7EAA\u5F55\u7247\u7CFB\u5217","\u4E13\u9898\u7247","\u79D1\u6559\u7247","\u52A8\u753B\u7247","\u52A8\u6F2B\u7247","\u52A8\u753B\u77ED\u7247","\u52A8\u753B\u7535\u5F71","\u52A8\u753B\u7CFB\u5217","\u52A8\u753B\u5267\u96C6","\u52A8\u753B\u8FDE\u7EED\u5267","\u52A8\u753BOVA","\u52A8\u753BOAD","\u52A8\u753BSP","\u52A8\u753B\u7279\u5178","\u52A8\u753B\u5408\u96C6","\u52A8\u753B\u7CBE\u9009","\u7535\u5F71\u5408\u96C6","\u5F71\u7247\u5408\u96C6","\u7CFB\u5217\u5408\u96C6","\u5408\u96C6\u7248","\u5957\u88C5\u7248","\u5957\u88C5\u5408\u96C6","\u5168\u96C6","\u5168\u7CFB\u5217","\u5168\u5B63","\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63","\u7B2C\u4E94\u5B63","\u7B2C\u516D\u5B63","\u7B2C\u4E03\u5B63","\u7B2C\u516B\u5B63","\u7B2C\u4E5D\u5B63","\u7B2C\u5341\u5B63","\u66F4\u65B0\u4E2D","\u5B8C\u7ED3","\u5B8C\u7ED3\u7BC7","\u5B8C\u7ED3\u5B63","\u6700\u7EC8\u5B63","\u6700\u7EC8\u7AE0","\u7EC8\u7AE0","\u7EC8\u7BC7","\u5927\u7ED3\u5C40","\u5927\u7D50\u5C40","\u7279\u522B\u7BC7\u5B8C\u7ED3","\u756A\u5916\u5B8C\u7ED3","OVA\u5B8C\u7ED3","OAD\u5B8C\u7ED3","SP\u5B8C\u7ED3","\u5168\u5267\u7EC8","\u5B8C\u7ED3\u6492\u82B1","\u5B8C\u7ED3\u7EAA\u5FF5","\u5B8C\u7ED3\u7279\u8F91","\u5B8C\u7ED3\u8BBF\u8C08","\u5B8C\u7ED3\u82B1\u7D6E","\u5B8C\u7ED3\u5408\u96C6","\u5B8C\u7ED3\u7BC7\u5408\u96C6","\u5B8C\u7ED3\u7EAA\u5FF5\u5408\u96C6","\u5B8C\u7ED3\u7279\u8F91\u5408\u96C6","\u5B8C\u7ED3\u8BBF\u8C08\u5408\u96C6","\u5B8C\u7ED3\u82B1\u7D6E\u5408\u96C6","\u5B8C\u7ED3\u7EAA\u5FF5\u7279\u8F91","\u5B8C\u7ED3\u7EAA\u5FF5\u8BBF\u8C08","\u5B8C\u7ED3\u7EAA\u5FF5\u82B1\u7D6E","\u5B8C\u7ED3\u7EAA\u5FF5\u5408\u96C6\u7279\u8F91","\u5B8C\u7ED3\u7EAA\u5FF5\u5408\u96C6\u8BBF\u8C08","\u5B8C\u7ED3\u7EAA\u5FF5\u5408\u96C6\u82B1\u7D6E","\u5B8C\u7ED3\u7EAA\u5FF5\u7279\u8F91\u8BBF\u8C08","\u5B8C\u7ED3\u7EAA\u5FF5\u7279\u8F91\u82B1\u7D6E","\u5B8C\u7ED3\u7EAA\u5FF5\u8BBF\u8C08\u82B1\u7D6E","\u5B8C\u7ED3\u7EAA\u5FF5\u5408\u96C6\u7279\u8F91\u8BBF\u8C08\u82B1\u7D6E","BD","BDRIP","WEB-DL","HDRip","DVDRip","BDRip","BRRip","Rip","BluRay","IMAX","CAM","HD","HDR","UHD","4K","1080p","720p","2160p","480p","120fps","60fps","x264","x265","H264","HEVC","AAC","dts","ddp","truehd","10bit","8bit","5.1","7.1","\u56FD\u8BED","\u7CA4\u8BED","\u82F1\u8BED","\u65E5\u8BED","\u97E9\u8BED","\u6CF0\u8BED","\u6CD5\u8BED","\u5FB7\u8BED","\u897F\u73ED\u7259\u8BED","\u4FC4\u8BED","\u8461\u8404\u7259\u8BED","\u610F\u5927\u5229\u8BED","\u81FB\u5F69","\u4E2D\u5B57","\u7B80\u4E2D","\u7E41\u4E2D","\u7B80\u7E41\u4E2D\u5B57","\u4E2D\u82F1\u53CC\u5B57","\u5185\u5D4C","\u5185\u5C01","\u675C\u6BD4\u5168\u666F\u58F0","\u675C\u6BD4\u97F3\u6548","\u65E0\u6C34\u5370","\u5B8C\u6574\u7248","\u539F\u58F0\u7248","\u89E3\u8BF4\u7248","\u9884\u544A\u7247","\u672A\u5220\u51CF\u7248","\u52A0\u957F\u7248","\u84DD\u5149","\u62A2\u5148\u7248","TC\u7248","\u62A2\u5148","TC","\u4E24\u5B63\u5168","\u5168\u5B63","\u5168\u96C6","DV","\u538B\u5236","HQ","\u5E27","\u7535\u5F71\u7248","\u8C46\u74E3","\u66F4\u65B0","\u66F4\u65B0\u5230","\u63A8\u8350","\u52A8\u4F5C","\u5192\u9669","\u7231\u60C5","\u79D1\u5E7B","\u60AC\u7591","\u60CA\u609A","\u6050\u6016","\u559C\u5267","\u60B2\u5267","\u5267\u60C5","\u5947\u5E7B","\u72AF\u7F6A","\u6218\u4E89","\u5386\u53F2","\u4F20\u8BB0","\u97F3\u4E50","\u6B4C\u821E","\u5BB6\u5EAD","\u513F\u7AE5","\u4F53\u80B2","\u707E\u96BE","\u4F26\u7406","\u77ED\u7247","\u5FAE\u7535\u5F71","\u9AD8\u6E05","\u8D85\u6E05","\u6807\u6E05","\u62A2\u9C9C\u770B","\u9996\u64AD","\u72EC\u64AD","\u70ED\u64AD","\u8FDE\u8F7D\u4E2D","\u6700\u65B0","\u7ECF\u5178","\u70ED\u95E8","\u83B7\u5956","\u53E3\u7891","\u597D\u8BC4","\u9AD8\u5206","\u8C46\u74E3\u9AD8\u5206","IMDb\u9AD8\u5206","\u672A\u5206\u7EA7","\u9650\u5236\u7EA7","\u5BFC\u6F14\u526A\u8F91","\u52A0\u957F","\u7279\u522B\u52A0\u957F","\u7EC8\u6781\u526A\u8F91","\u6536\u85CF","\u8C6A\u534E","\u7EAA\u5FF5","\u9650\u5B9A","\u91CD\u6620","\u4FEE\u590D","\u6570\u7801\u4FEE\u590D","\u91CD\u5236","\u84DD\u5149\u4FEE\u590D","\u91CD\u5236\u9AD8\u6E05","\u9AD8\u6E05\u91CD\u5236","\u91CD\u7F16","\u91CD\u526A","\u914D\u97F3","\u8BD1\u5236","\u539F\u58F0","\u53CC\u8BED","\u591A\u8BED","\u591A\u58F0\u9053","\u73AF\u7ED5\u58F0","\u5168\u666F\u58F0","3D","VR","\u5168\u666F","360\u5EA6","8K","\u539F\u753B","\u65E0\u635F","\u6709\u635F","\u538B\u7F29","\u672A\u538B\u7F29","\u9AD8\u7801\u7387","\u4F4E\u7801\u7387","\u91CD\u7F16\u7801","\u591A\u5B57\u5E55","\u591A\u97F3\u8F68","\u53CC\u97F3\u8F68","\u591A\u7248\u672C","\u5408\u96C6","\u5957\u88C5","\u7CFB\u5217","\u5B8C\u7ED3\u7248","\u6700\u7EC8\u5B63","\u6700\u7EC8\u7AE0","\u7EC8\u7AE0","\u5927\u7ED3\u5C40","\u7279\u522B\u7BC7","\u756A\u5916\u7BC7","OVA","OAD","SP","\u5267\u573A\u7248","\u7535\u5F71\u7248","\u5F71\u7248","\u5267\u7248","\u52A8\u753B\u7248","\u771F\u4EBA\u7248","\u6539\u7F16\u7248","\u539F\u521B","\u884D\u751F","\u756A\u5916","\u7EED\u96C6","\u524D\u4F20","\u540E\u4F20","\u91CD\u542F","\u7FFB\u62CD","\u91CD\u62CD","\u81F4\u656C","\u7EAA\u5FF5","\u732E\u793C","\u8D3A\u5C81","\u6691\u671F\u6863","\u56FD\u5E86\u6863","\u8D3A\u5C81\u6863","\u6625\u8282\u6863","\u60C5\u4EBA\u8282\u6863","\u4E2D\u79CB\u6863","\u6863\u671F","\u4E0A\u6620","\u5B9A\u6863","\u9996\u6620","\u516C\u6620","\u4E0A\u6620\u65F6\u95F4","\u4E0A\u6620\u65E5\u671F","\u7968\u623F","\u7968\u623F\u51A0\u519B","\u7968\u623F\u699C","\u53E3\u7891\u699C","\u8BC4\u5206\u699C","\u6392\u884C\u699C","\u699C\u5355","\u699C\u5355\u7B2C\u4E00","\u70ED\u95E8\u699C","\u70ED\u641C","\u70ED\u8BAE","\u8BDD\u9898","\u70ED\u8BAE\u8BDD\u9898","\u70ED\u95E8\u8BDD\u9898","\u8BA8\u8BBA\u5EA6","\u5173\u6CE8\u5EA6","\u70ED\u5EA6","\u70ED\u5EA6\u699C","\u70ED\u95E8\u63A8\u8350","\u7CBE\u9009","\u529B\u8350","\u5F3A\u70C8\u63A8\u8350","\u5FC5\u770B","\u4E0D\u53EF\u9519\u8FC7","\u7ECF\u5178\u4E4B\u4F5C","\u795E\u4F5C","\u4F73\u4F5C","\u9AD8\u5206\u4F73\u4F5C","\u9AD8\u5206\u795E\u4F5C","\u70C2\u7247","\u5DEE\u8BC4","\u4F4E\u5206","\u53E3\u7891\u7206\u68DA","\u53E3\u7891\u6251\u8857","\u53E3\u7891\u4E24\u6781","\u53E3\u7891\u5206\u5316","\u4E89\u8BAE","\u70ED\u8BAE\u4E0D\u65AD","\u5907\u53D7\u5173\u6CE8","\u4E07\u4F17\u671F\u5F85","\u671F\u5F85\u5DF2\u4E45","\u4E07\u4F17\u77A9\u76EE","\u5E74\u5EA6\u6700\u4F73","\u5E74\u5EA6\u6700\u5DEE","\u5E74\u5EA6\u4E4B\u4F5C","\u5E74\u5EA6\u9ED1\u9A6C","\u5E74\u5EA6\u60CA\u559C","\u5E74\u5EA6\u5931\u671B","\u538B\u8F74\u4E4B\u4F5C","\u6536\u5B98\u4E4B\u4F5C","\u6536\u5B98","\u6536\u5B98\u5B63","\u6536\u5B98\u6218","\u5927\u7ED3\u5C40\u524D\u7BC7","\u5927\u7ED3\u5C40\u540E\u7BC7","\u6700\u7EC8\u56DE","\u6700\u7EC8\u8BDD","\u6700\u7EC8\u7AE0\u524D\u7BC7","\u6700\u7EC8\u7AE0\u540E\u7BC7"],KQe=[...$8,...WQe],xue=new RegExp(KQe.join("|"),"ig"),YQe=new RegExp($8.join("|"),"ig");function vue(e){if(!e||!e.trim())return"";let t=e.trim();t=t.replace(/丨/g,""),t=t.replace(/-/g," "),t=t.replace(YQe,""),t=t.replace(/\s+/g," ").trim();let r=t.match(/^[\u4e00-\u9fa5]+\d+(?=|\s|$)/);if(r)return r[0];let n=t.match(/^[\u4e00-\u9fa5]+[\u4e00-\u9fa50-9]+\s*(?=\(\d{4}\))/);if(n)return n[0];let i=t.match(/^[\u4e00-\u9fa5]+[\u4e00-\u9fa5 ,.,。、]+\s*(?=\(|【|\s+\d{4})/),s=i?i[0].trim():"",a=!1,o=t.match(/《(.+?)》/);if(o)t=o[1],a=!0;else{let c=new RegExp(`\u3010((?!${$8.join("|")})[\u4E00-\u9FA5]{2,}[^/]+?)\u3011`,"i"),f=t.match(c);f&&(t=f[1],a=!0)}!a&&s&&(t=s);let u=[[/.*-/g,""],[/\b\d{4}\b/g,""],[/(?<!^)\[.*?\]|\{.*?\}|.*?|「.*?」/g," "],[/\b\d+(\.\d+)?[GMK]B?\b/gi,""],[xue,""],[/豆瓣\d+(\.\d+)?/g,""],[/\b\d+(?=fps|帧)/g,""],[/\b[a-zA-Z]\b/g,""],[/(?<![\u4e00-\u9fa5])\b\d+\b(?![\u4e00-\u9fa5])/g,""],[/[^a-zA-Z0-9\u4e00-\u9fa5 ]/g,""],[/\s+/g," "]];for(let c of u)t=t.replace(c[0],c[1]);t=t.trim(),t.includes(" ")&&(t=t.substring(0,t.indexOf(" "))),!a&&s&&(t=t.replace(/\s/g,""));let l=e.match(/([\u4e00-\u9fa5]{2,})\s*$/);if(l){let c=l[1];(t.length<2||/\d+集/.test(t))&&(t=c)}if(!t){let c=e.match(/\[(.*?)\]/);c&&(t=c[1].trim(),t=t.replace(xue,"").replace(/\d+/g,"").replace(/\s+/g," ").trim())}return t.trim()}var Eue={\u96F6:0,\u4E00:1,\u4E8C:2,\u4E09:3,\u56DB:4,\u4E94:5,\u516D:6,\u4E03:7,\u516B:8,\u4E5D:9},_ue={\u5341:10,\u767E:100,\u5343:1e3,\u4E07:1e4,\u4EBF:1e8};function Tue(e){if(!e)return-1;let t=0,r=0,n=0,i=!1;for(let s=0;s<e.length;s++){let a=e[s];if(Eue.hasOwnProperty(a))n=Eue[a];else if(_ue.hasOwnProperty(a)){let o=_ue[a];o===10?(n===0&&(n=1),r+=n*o,n=0):o===1e4||o===1e8?(r+=n,t+=r*o,r=0,n=0,i=!0):(r+=(n||1)*o,n=0)}else return-1}return i||(t+=r),t+=n,e.startsWith("\u5341")&&t<20&&(t=10+t%10),t}function ju(e){return e&&e.replace(/([零一二三四五六七八九十百千万亿]+)|(\d+)/g,(t,r,n)=>{if(r){let i=Tue(r);return i!==-1?String(i):t}else if(n)return String(parseInt(n,10));return t})}function XQe(e){let t=e;return t=t.replace(/[()[\]【】{}]\s*([上中下])\s*[()[\]【】{}]/g,"$1"),t=t.replace(/(\[|\{|\|【).*?(\]|\}||】)/g," "),t=t.replace(/\d+\s*(fps|帧|frames?|hz|赫兹)/gi," "),t=t.replace(/\b(\d+(p|k|i)|4k|8k|uhd|hd|fhd|qhd|2160p|1440p|1080p|720p|480p|360p)\b/gi," "),t=t.replace(/\b(19|20)\d{2}\b/g," "),t=t.replace(/\b(?:dts|ddp|aac|ac3|eac3|truehd|atmos)\d+(?:\.\d+)?\b|\b\d+\.\d+\b/gi," "),t=t.replace(/\b(8bit|10bit|12bit)\b/gi," "),t=t.replace(/\b(hdr|hdr10|hdr10\+|dolby vision|dv|hlg)\b/gi," "),t=t.replace(/\b(x264|x265|h\.264|h\.265|h264|h265|hevc|mpeg4|av1|vp9)\b/gi," "),t=t.replace(/\b(web-dl|bluray|bdrip|hdrip|dvdrip|brrip|hdtv|dvdr|cam|ts|tc|r5|scr)\b/gi," "),t=t.replace(/\b(hq|sd|hd|fhd|uhd|imax|superbit|remux|extended|uncut|directors cut|dc|special edition|se)\b/gi," "),t=t.replace(/\b(高码|高码率|高码版|超清|高清|标清|无水印|完整版|未删减|加长版|导演剪辑版|特效字幕|内嵌字幕|双语字幕|中文字幕|英文字幕|繁体字幕|简体字幕|多音轨|杜比音效|全景声|hdr)\b/gi," "),t=t.replace(/[\-\_.,()]+/g," "),t.replace(/\s+/g," ").trim()}function JQe(e){let t=e.replace(/(\[|\{|\|【).*?(\]|\}||】)/g," ");if(/s\d+e\d+/i.test(t))return"-1";let r=t.match(/[\u4e00-\u9fa5\-\_\.\s]+(0*\d{1,8})(?:[\-\_\.\s]|$)/);if(r){let n=r[1],i=parseInt(n,10);if(i>0&&!(i>=1900&&i<=2100))return ju(n)}if(r=t.trim().match(/^0*\d{1,8}$/),r){let n=r[0],i=parseInt(n,10);if(i>0&&!(i>=1900&&i<=2100))return ju(n)}return"-1"}function QQe(e){let t="\u671F|\u5B63",r="\u4E0A\u4E2D\u4E0B",n="\u96C6\u8A71\u8BDD",i=new RegExp(`(\u7B2C?)(0*(d{1,8}|[\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u5341\u767E\u5343\u4E07\u4EBF]+))((?:${t})[${r}]?[\uFF08(]?[${r}]?[)\uFF09]?)`),s=e.match(i);if(s){let o=s[1],u=s[2],l=s[4].replace(/[()]/g,"");return u=ju(u),o+u+l}let a=Array.from(e.matchAll(/(?:s\d+.*?e|e)(\d{1,8})(?!\d)/gi));if(a.length>0)return ju(a[a.length-1][1]);if(i=new RegExp(`\u7B2C([\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u5341\u767E\u5343\u4E07\u4EBF]+)[${n}]`),s=e.match(i),s){let o=Tue(s[1]);return o>0?String(o):"-1"}return i=new RegExp(`\u7B2C(d{1,8})[${n}]`),s=e.match(i),s||(s=e.match(/ep(\d{1,8})/i),s)||(i=new RegExp(`(d{1,8})[${n}]`),s=e.match(i),s)?ju(s[1]):"-1"}function ZQe(e){let t="a-zA-Z\xC0-\u017F",r=new RegExp(`(?<![${t}d])0*(\\d{1,8})(?![${t}d])`,"gu"),n=e.match(r);if(n)for(let i of n){let s=parseInt(i,10);if(!(s>=1900&&s<=2100))return ju(i)}return"-1"}function L8(e){if(!e)return"-1";let t=e,r=t.lastIndexOf(".");r>0&&(t=t.substring(0,r));let n=XQe(t),i=QQe(n);if(i!=="-1")return i;let s=JQe(t);return s!=="-1"?s:ZQe(n)}var M8=async e=>(await e.db.getObjectDefault("/t4",{}))?.list||e.config.t4?.list||[],eZe=async(e,t)=>{await e.db.push("/t4/list",t)},tZe=async e=>{await e.db.delete("/t4/list")};async function F8(e){e.get("/list",async(t,r)=>{r.send({code:0,data:await M8(t.server)})}),e.put("/list",async(t,r)=>{await eZe(t.server,t.body),r.send({code:0})}),e.delete("/list",async(t,r)=>{await tZe(t.server),r.send({code:0})})}function B8(e,t){let r=fe.create({baseURL:t});function n(){return{}}async function i(){try{let{data:l}=await r.get("",{params:{filter:!0}});return l}catch(l){return console.warn(l),{class:[]}}}async function s(l){try{let{data:c}=await r.get("",{params:{ac:"detail",t:l.body.id,pg:l.body.page||1}});return c}catch(c){console.warn(c)}}async function a(l){try{let{data:c}=await r.get("",{params:{ac:"detail",ids:l.body.id}});return c}catch(c){console.warn(c)}}async function o(l){try{let{data:c}=await r.get("",{params:{play:l.body.id,flag:l.body.flag}});return!c.url&&!c.urls&&l.body.id.startsWith("http")?{url:l.body.id}:c}catch(c){console.warn(c)}}async function u(l){try{let{data:c}=await r.get("",{params:{ac:"list",wd:l.body.wd}});return c}catch(c){console.warn(c)}}return{meta:{key:e,name:e,type:3,t4:!0},api:async l=>{l.post("/init",n),l.post("/home",i),l.post("/category",s),l.post("/detail",a),l.post("/play",o),l.post("/search",u)}}}var q8=async e=>(await e.db.getObjectDefault("/cms",{}))?.list||e.config.cms?.list||[],rZe=async(e,t)=>{await e.db.push("/cms/list",t)},nZe=async e=>{await e.db.delete("/cms/list")};async function j8(e){e.get("/list",async(t,r)=>{r.send({code:0,data:await q8(t.server)})}),e.put("/list",async(t,r)=>{await rZe(t.server,t.body),r.send({code:0})}),e.delete("/list",async(t,r)=>{await nZe(t.server),r.send({code:0})})}function U8(e,t){let r=fe.create({baseURL:t});function n(){return{}}async function i(){try{let{data:l}=await r.get("",{params:{ac:"class"}});return l}catch(l){return console.warn(l),{class:[]}}}async function s(l){try{let{data:c}=await r.get("",{params:{ac:"detail",t:l.body.id,pg:l.body.page||1}});return c}catch(c){console.warn(c)}}async function a(l){try{let{data:c}=await r.get("",{params:{ac:"detail",ids:l.body.id}});return c}catch(c){console.warn(c)}}async function o(l){return{url:l.body.id}}async function u(l){try{let{data:c}=await r.get("",{params:{ac:"list",wd:l.body.wd}});return c}catch(c){console.warn(c)}}return{meta:{key:e,name:e,type:3,cms:!0},api:async l=>{l.post("/init",n),l.post("/home",i),l.post("/category",s),l.post("/detail",a),l.post("/play",o),l.post("/search",u)}}}var Sue=async e=>{let t=[yue,zoe,Koe,tue,iue,aue,oue,mue,uue,Woe,bue];return(await M8(e)).forEach(i=>{t.push(B8(i.name,i.address))}),(await q8(e)).forEach(i=>{t.push(U8(i.name,i.address))}),t},wue="/spider",Tv={};async function H8(e,{db:t,config:r}){(await Sue({db:t,config:r})).forEach(i=>{let s=wue+"/"+i.meta.key+"/"+i.meta.type;e.register(i.api,{prefix:s}),i.check?.(e),console.log("Register spider: "+s)}),e.register(async i=>{i.get("/check",async function(a,o){o.send({run:!i.stop})});let s=async()=>{let a={video:{sites:[]},read:{sites:[]},comic:{sites:[]},music:{sites:[]},pan:{sites:[]},color:i.config.color||[]};return(await Sue({db:t,config:r})).forEach(u=>{let l=Object.assign({},u.meta);l.api=wue+"/"+l.key+"/"+l.type,l.key="nodejs_"+l.key;let c=u.meta.type;c<10?a.video.sites.push(l):c>=10&&c<20?a.read.sites.push(l):c>=20&&c<30?a.comic.sites.push(l):c>=30&&c<40?a.music.sites.push(l):c>=40&&c<50&&a.pan.sites.push(l)}),a};i.get("/config",async function(a,o){let u=await s(),l=await P8(a.server),c=u.video.sites,f={},d={};c.forEach(p=>{d[p.key]=p});let h=[];l.forEach(p=>{f[p.key]=!0,d[p.key]&&p.enable&&h.push(d[p.key])}),c.forEach(p=>{f[p.key]||h.push(p)}),u.video.sites=h,u.video.danmuSearchUrl=`http://127.0.0.1:${a.server.address().port}/website/danmu/fe`,o.send(u)}),i.get("/full-config",s)}),e.get("/danmu-proxy",async(i,s)=>{try{let{name:a,episodeNumber:o}=i.query,u=await vv(i.server),l=!1,c=0,f=await new Promise(d=>{for(let h of u.urls)fe.get(`${h.address}/api/v2/search/episodes`,{params:{anime:a}}).then(async p=>{console.log("searchResult",a,p.data);let m=p.data.animes[0],y=m.episodes.find(g=>L8(g.episodeTitle)===o)||m.episodes[0];l||(l=!0,messageToDart({action:"toast",opt:{message:`\u5339\u914D\u5F39\u5E55\uFF1A${m.animeTitle} ${y.episodeTitle}`,duration:3}}),d(`${h.address}/api/v2/comment/${y.episodeId}?format=xml`))}).finally(()=>{c++,c===u.urls.length&&!l&&d()})});if(f){let d=await fe.get(f,{responseType:"text"});s.header("Content-Type","application/xml"),s.send(d.data)}else messageToDart({action:"toast",opt:{message:"\u6CA1\u6709\u5339\u914D\u7684\u5F39\u5E55\uFF0C\u8BF7\u624B\u52A8\u63A8\u9001",duration:3}}),s.header("Content-Type","application/xml"),s.send('<?xml version="1.0" encoding="UTF-8"?><i/>')}catch(a){console.error("Danmu proxy error:",a),s.code(500).send({error:"Failed to fetch danmu content"})}}),e.addHook("onSend",async(i,s,a)=>{try{if((await vv(i.server)).autoPush){if(i.url.endsWith("/detail")){let l=JSON.parse(a).list[0];Tv={};let c=l.vod_play_from.split("$$$")||[];l.vod_play_url.split("$$$").filter(Boolean).forEach((f,d)=>{f.split("#").forEach(h=>{let[p,m]=h.split("$");Tv[`${c[d]}_${m}`]={name:vue(l.vod_name),episodeNumber:L8(p)}})}),console.log("danmuInfo",Tv)}if(i.url.endsWith("/play")){let u=JSON.parse(a);if((u.url||u.url?.length||u.urls?.length)&&!u?.extra?.danmaku){let l=`${i.body.flag}_${i.body.id}`,c=Tv[l];if(c&&!c?.name){let f=await messageToDart({action:"getPlayInfo"});f&&(console.log("playInfo",f),c.name=f?.title)}if(c)return u.extra||(u.extra={}),u.extra.danmaku=`http://127.0.0.1:${i.server.address().port}/danmu-proxy?name=${encodeURIComponent(c.name)}&episodeNumber=${encodeURIComponent(c.episodeNumber)}`,JSON.stringify(u);messageToDart({action:"toast",opt:{message:"\u6CA1\u6709\u5339\u914D\u7684\u5F39\u5E55\uFF0C\u8BF7\u624B\u52A8\u63A8\u9001",duration:3}})}}}}catch(o){console.error(o)}return a})}var Pv=Te(Uue(),1);var zue=Te(fl(),1),tg=Te(vn(),1);var oD="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36 SE 2.X MetaSr 1.0",Hue=[],uD=null,xZe=async e=>{let t=tg.default.enc.Hex.stringify(tg.default.MD5(e.config.quark.cookie)).toString();return(await e.db.getObjectDefault("/quark",{}))[t]??""},EZe=async(e,t)=>{let r=tg.default.enc.Hex.stringify(tg.default.MD5(e.config.quark.cookie)).toString();await e.db.push(`/quark/${r}`,t)};async function cD(e){e.get("/qrcode",async(t,r)=>{let n=await fe.get("https://uop.quark.cn/cas/ajax/getTokenForQrcodeLogin?client_id=532&v=1.2",{headers:{"User-Agent":oD}});Hue=aa(n.headers["set-cookie"]),uD=n.data.data.members.token;let i="https://su.quark.cn/4_eMHBJ?token="+uD+"&client_id=532&ssb=weblogin&uc_param_str=&uc_biz_str=S%3Acustom%7COPT%3ASAREA%400%7COPT%3AIMMERSIVE%401%7COPT%3ABACK_BTN_STYLE%400",s=await zue.default.toBuffer(i,{width:300,height:300});r.send(s)}),e.post("/cookie",(t,r)=>{fe.get(`https://uop.quark.cn/cas/ajax/getServiceTicketByQrcodeToken?client_id=532&v=1.2&token=${uD}`).then(n=>n.data.status===2e6?{data:n.data.data,cookies:Hue}:Promise.reject(new Error(`service_ticket\u83B7\u53D6\u5931\u8D25: ${n.data.message}`))).then(async({data:n,cookies:i})=>{let s=await fe.get(`https://pan.quark.cn/account/info?st=${n.members.service_ticket}&fr=pc&platform=pc`,{headers:{"User-Agent":oD,Cookie:i.join("")}});return s.headers["set-cookie"]?i.concat(aa(s.headers["set-cookie"])):Promise.reject(new Error(`\u4E2A\u4EBAPus\u83B7\u53D6\u5931\u8D25\uFF1A${s.data.message}`))}).then(async n=>{let i=await fe.get("https://drive-pc.quark.cn/1/clouddrive/share/sharepage/dir?pr=ucpro&fr=pc&uc_param_str=&aver=1",{headers:{"User-Agent":oD,Cookie:n.join("")}});if(i.headers["set-cookie"])r.send({code:0,data:n.concat(aa(i.headers["set-cookie"])).join("")});else return Promise.reject(new Error(`\u4E2A\u4EBAPuus\u83B7\u53D6\u5931\u8D25\uFF1A${i.data.message}`))}).catch(n=>{console.error(n),r.send({code:-1,message:n?.message||"\u626B\u7801\u767B\u5F55\u5931\u8D25"})})}),e.get("/cookie",async(t,r)=>{r.send({code:0,data:await xZe(t.server)})}),e.put("/cookie",async(t,r)=>{await EZe(t.server,t.body.cookie),r.send({code:0})})}var rg=Te(vn(),1);var Vue=null,_Ze=null,vZe=async e=>{let t=rg.default.enc.Hex.stringify(rg.default.MD5(e.config.uc.token)).toString();return(await e.db.getObjectDefault("/uc",{}))[t]??""},TZe=async(e,t)=>{let r=rg.default.enc.Hex.stringify(rg.default.MD5(e.config.uc.token)).toString();await e.db.push(`/uc/${r}`,t)};async function lD(e){e.get("/qrcode",async(t,r)=>{let n="/oauth/authorize",i=Math.floor(Date.now()/1e3).toString()+"000",s=Xi.DeviceID,a=jm(s,i),o=X_("GET",n,i,Sr.signKey),u={Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Linux; U; Android 13; zh-cn; M2004J7AC Build/UKQ1.231108.001) AppleWebKit/533.1 (KHTML, like Gecko) Mobile Safari/533.1","x-pan-tm":i,"x-pan-token":o,"x-pan-client-id":Sr.clientID,...Xi.AccessToken?{Authorization:`Bearer ${Xi.AccessToken}`}:{}},l=await fe.get(`${Sr.api}${n}`,{params:{req_id:a,access_token:Xi.AccessToken,app_ver:Sr.appVer,device_id:s,device_brand:"Xiaomi",platform:"tv",device_name:"M2004J7AC",device_model:"M2004J7AC",build_device:"M2004J7AC",build_product:"M2004J7AC",device_gpu:"Adreno (TM) 550",activity_rect:"{}",channel:Sr.channel,auth_type:"code",client_id:Sr.clientID,scope:"netdisk",qrcode:"1",qr_width:"460",qr_height:"460"},headers:u});Vue=l.data.query_token,_Ze=a,r.send(Buffer.from(l.data.qr_data,"base64"))}),e.post("/token",async(t,r)=>{let n="/oauth/code",i=Math.floor(Date.now()/1e3).toString()+"000",s=Xi.DeviceID,a=jm(s,i),o=X_("GET",n,i,Sr.signKey),u={Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Linux; U; Android 13; zh-cn; M2004J7AC Build/UKQ1.231108.001) AppleWebKit/533.1 (KHTML, like Gecko) Mobile Safari/533.1","x-pan-tm":i,"x-pan-token":o,"x-pan-client-id":Sr.clientID,...Xi.AccessToken?{Authorization:`Bearer ${Xi.AccessToken}`}:{}},l=await fe.get(`${Sr.api}${n}`,{params:{req_id:a,access_token:Xi.AccessToken,app_ver:Sr.appVer,device_id:s,device_brand:"Xiaomi",platform:"tv",device_name:"M2004J7AC",device_model:"M2004J7AC",build_device:"M2004J7AC",build_product:"M2004J7AC",device_gpu:"Adreno (TM) 550",activity_rect:"{}",channel:Sr.channel,client_id:Sr.clientID,scope:"netdisk",query_token:Vue},headers:u});if(l.data.status===0){let c="/token",f=Math.floor(Date.now()/1e3).toString()+"000",d=jm(Xi.DeviceID,f),h=JSON.stringify({req_id:d,app_ver:Sr.appVer,device_id:Xi.DeviceID,device_brand:"Xiaomi",platform:"tv",device_name:"M2004J7AC",device_model:"M2004J7AC",build_device:"M2004J7AC",build_product:"M2004J7AC",device_gpu:"Adreno (TM) 550",activity_rect:"{}",channel:Sr.channel,code:l.data.code}),m=(await fe.post(`${Sr.codeApi}${c}`,h,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",Accept:"application/json, text/plain, */*","Content-Type":"application/json"}})).data;m.code===200?r.send({code:0,data:m.data.access_token}):r.send({code:-1,message:m.message??"\u83B7\u53D6token\u5931\u8D25"})}else r.send({code:-1,message:l.data.message??"\u67E5\u8BE2\u626B\u7801\u72B6\u6001\u5931\u8D25"})}),e.get("/token",async(t,r)=>{r.send({code:0,data:await vZe(t.server)})}),e.put("/token",async(t,r)=>{await TZe(t.server,t.body.cookie),r.send({code:0})})}var Gue=async(e,t)=>(await e.db.getObjectDefault("/tyi",{}))?.[t]||"",Wue=async(e,t,r)=>{await e.db.push(`/tyi/${t}`,r)};async function fD(e){e.get("/account",async(t,r)=>{let n=await Gue(t.server,"cloud_account"),i=await Gue(t.server,"cloud_password");r.send({code:0,data:{username:n,password:i}})}),e.put("/account",async(t,r)=>{await Wue(t.server,"cloud_account",t.body.username),await Wue(t.server,"cloud_password",t.body.password),r.send({code:0})})}var Kue=async(e,t)=>(await e.db.getObjectDefault("/pan123",{}))?.[t]||"",Yue=async(e,t,r)=>{await e.db.push(`/pan123/${t}`,r)};async function dD(e){e.get("/account",async(t,r)=>{let n=await Kue(t.server,"pan_passport"),i=await Kue(t.server,"pan_password");r.send({code:0,data:{username:n,password:i}})}),e.put("/account",async(t,r)=>{await Yue(t.server,"pan_passport",t.body.username),await Yue(t.server,"pan_password",t.body.password),r.send({code:0})})}var Xue=Te(fl(),1),mo=Te(vn(),1),Jue=Te(sv(),1),Nv="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36 SE 2.X MetaSr 1.0",Ov={},SZe=async e=>{let t=mo.default.enc.Hex.stringify(mo.default.MD5(e.config.ali.token)).toString();return(await e.db.getObjectDefault("/ali",{}))[t]??""},wZe=async(e,t)=>{let r=mo.default.enc.Hex.stringify(mo.default.MD5(e.config.ali.token)).toString();await e.db.push(`/ali/${r}`,t)},AZe=async e=>{let t=mo.default.enc.Hex.stringify(mo.default.MD5(e.config.ali.token280)).toString();return(await e.db.getObjectDefault("/ali",{}))[t]??""},CZe=async(e,t)=>{let r=mo.default.enc.Hex.stringify(mo.default.MD5(e.config.ali.token280)).toString();await e.db.push(`/ali/${r}`,t)};async function pD(e){e.get("/qrcode",async(t,r)=>{Ov=(await fe.get("https://passport.aliyundrive.com/newlogin/qrcode/generate.do?appName=aliyun_drive&fromSite=52&appName=aliyun_drive&appEntrance=web&isMobile=false&lang=zh_CN&returnUrl=&bizParams=&_bx-v=2.2.3",{"User-Agent":Nv})).data.content.data;let i=await Xue.default.toBuffer(Ov.codeContent,{width:300,height:300});r.send(i)}),e.post("/token",(t,r)=>{let n="";fe.post("https://passport.aliyundrive.com/newlogin/qrcode/query.do?appName=aliyun_drive&fromSite=52&_bx-v=2.2.3",Jue.default.stringify({t:Ov.t,appName:"aliyun_drive",ck:Ov.ck,appEntrance:"web",isMobile:"false",lang:"zh_CN",returnUrl:"",navlanguage:"zh-CN",navPlatform:"MacIntel",fromSite:"52",bizParams:""}),{headers:{"content-type":"application/x-www-form-urlencoded"}}).then(async i=>{let s=i.data.content.data;if(s.qrCodeStatus==="CONFIRMED"){let a=decodeURI(atob(s.bizExt)),o=JSON.parse(a).pds_login_result.refreshToken;return o?(n=o,Promise.resolve(o)):Promise.reject(new Error(`\u83B7\u53D6refreshToken\u5931\u8D25: ${i.data.message}`))}else return Promise.reject(new Error(`\u626B\u7801\u72B6\u6001\u68C0\u6D4B\u5931\u8D25: ${i.data.message}`))}).then(async i=>{let s=await fe.post("https://auth.aliyundrive.com/v2/account/token",{refresh_token:i,grant_type:"refresh_token"},{headers:{"User-Agent":Nv,"Content-Type":"application/json",referer:"https://www.aliyundrive.com/"}}),{token_type:a,access_token:o}=s.data,u=`${a} ${o}`;return Promise.resolve(u)}).then(async i=>(await fe.post("https://open.aliyundrive.com/oauth/users/authorize?client_id=76917ccccd4441c39457a04f6084fb2f&redirect_uri=https%3A%2F%2Falist.nn.ci%2Ftool%2Faliyundrive%2Fcallback&scope=user%3Abase%2Cfile%3Aall%3Aread%2Cfile%3Aall%3Awrite&state=",{authorize:1,scope:"user:base,file:all:read,file:all:write"},{headers:{"User-Agent":Nv,"Content-Type":"application/json",referer:"https://www.aliyundrive.com/",authorization:i}})).data.redirectUri.match(/code=([a-zA-Z0-9]+)/)[1]).then(async i=>{let s=await fe.post("https://api.nn.ci/alist/ali_open/code",{code:i,grant_type:"authorization_code"},{headers:{"User-Agent":Nv,"Content-Type":"application/json",referer:"https://www.aliyundrive.com/"}});if(s.data.refresh_token)r.send({code:0,data:{token:n,token280:s.data.refresh_token}});else return Promise.reject(new Error(`\u83B7\u53D6openToken\u5931\u8D25: ${s.data.message}`))}).catch(i=>{console.error(i),r.send({code:-1,message:i?.message||"\u626B\u7801\u767B\u5F55\u5931\u8D25"})})}),e.get("/token",async(t,r)=>{r.send({code:0,data:{token:await SZe(t.server),token280:await AZe(t.server)}})}),e.put("/token",async(t,r)=>{await wZe(t.server,t.body.data.token),await CZe(t.server,t.body.data.token280),r.send({code:0})})}var Bbt=Te(fl(),1),jbt=Te(vn(),1);var Vd="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",ng={},IZe=async e=>(await e.db.getObjectDefault("/baidu",{}))["baidu_cookie"]??"",hD=async(e,t)=>{await e.db.push("/baidu/baidu_cookie",t)};function RZe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}async function mD(e){e.get("/qrcode",async(t,r)=>{try{let n=RZe(),i=new Date().getTime().toString(),s=Math.floor(new Date().getTime()/1e3).toString(),a=`tangram_guid_${i}`,u=(await fe.get("https://passport.baidu.com/v2/api/getqrcode",{params:{lp:"pc",qrloginfrom:"pc",gid:n,callback:a,apiver:"v3",tt:s,tpl:"netdisk",_:i},headers:{"User-Agent":Vd,Referer:"https://pan.baidu.com","sec-ch-ua-platform":'"Windows"',"sec-ch-ua":'"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',DNT:"1","sec-ch-ua-mobile":"?0","Sec-Fetch-Site":"same-site","Sec-Fetch-Mode":"no-cors","Sec-Fetch-Dest":"script","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8"}})).data;if(typeof u=="string"){u=u.replace(/^[^(]*\(/,"").replace(/\);?$/,"");let l=JSON.parse(u);if(l.errno===0){ng={sign:l.sign,imgurl:l.imgurl,channel_id:l.channel_id,t1:s,t3:i,requestId:n,callback:a};let c="https://"+l.imgurl,f=await fe.get(c,{responseType:"arraybuffer",headers:{"User-Agent":Vd}});r.send(f.data)}else throw new Error(`\u83B7\u53D6\u4E8C\u7EF4\u7801\u5931\u8D25: ${l.errmsg||"\u672A\u77E5\u9519\u8BEF"}`)}else throw new Error("\u54CD\u5E94\u683C\u5F0F\u9519\u8BEF")}catch(n){console.error("\u767E\u5EA6\u4E8C\u7EF4\u7801\u83B7\u53D6\u5931\u8D25:",n),r.status(500).send({code:-1,message:n?.message||"\u83B7\u53D6\u4E8C\u7EF4\u7801\u5931\u8D25"})}}),e.post("/cookie",async(t,r)=>{try{if(!ng.sign)throw new Error("\u8BF7\u5148\u83B7\u53D6\u4E8C\u7EF4\u7801");for(let n=0;n<30;n++){let i=new Date().getTime().toString(),s=`tangram_guid_${i}`,o=(await fe.get("https://passport.baidu.com/channel/unicast",{params:{channel_id:ng.sign,tpl:"netdisk",apiver:"v3",tt:Math.floor(new Date().getTime()/1e3).toString(),callback:s,_:i},headers:{"User-Agent":Vd,Referer:"https://pan.baidu.com"}})).data;if(typeof o=="string"){o=o.replace(/^[^(]*\(/,"").replace(/\);?\s*$/,"").trim();let u=JSON.parse(o);if(u.errno===0&&u.channel_v){let l=JSON.parse(u.channel_v);if(l.status===1){await new Promise(c=>setTimeout(c,1e3));continue}if(l.status===0&&l.v){let c=l.v,f=new Date().getTime().toString(),d=Math.floor(new Date().getTime()/1e3).toString(),p=(await fe.get("https://passport.baidu.com/v3/login/main/qrbdusslogin",{params:{v:f,bduss:c,u:"https://pan.baidu.com/disk/main#/index?category=all",loginVersion:"v5",qrcode:"1",tpl:"netdisk",maskId:"",fileId:"",apiver:"v3",tt:f,traceid:"",time:d,alg:"v3",elapsed:"1"},headers:{"User-Agent":Vd,Referer:"https://pan.baidu.com/","Accept-Language":"zh-CN,zh;q=0.9"},timeout:3e4})).data;if(typeof p=="string"){p=p.replace(/^[^(]*\(/,"").replace(/\);?\s*$/,"").trim();let m=p.match(/"bduss":\s*"([^"]+)"/),y=p.match(/"stoken":\s*"([^"]+)"/),g=p.match(/"ptoken":\s*"([^"]+)"/),v=p.match(/"ubi":\s*"([^"]+)"/);if(m&&y&&g&&v){let E=m[1],x=y[1],T=g[1],S=encodeURIComponent(v[1]),C=(R=>Object.entries(R).map(([P,k])=>`${P}=${k}`).join("; "))({newlogin:"1",UBI:S,STOKEN:x,BDUSS:E,PTOKEN:T,BDUSS_BFESS:E,STOKEN_BFESS:x,PTOKEN_BFESS:T,UBI_BFESS:S}),M=(await fe.get("https://passport.baidu.com/v3/login/api/auth/?return_type=5&tpl=netdisk&u=https://pan.baidu.com/disk/home",{headers:{"User-Agent":Vd,Referer:"https://pan.baidu.com/",Cookie:C},maxRedirects:0,validateStatus:R=>R===302||R===200})).headers.location;if(M){let P=(await fe.get(M,{headers:{"User-Agent":Vd,Referer:"https://pan.baidu.com/",Cookie:C},maxRedirects:0,validateStatus:z=>z===302||z===200})).headers["set-cookie"],k="";if(P){let z=P.find(G=>G.toLowerCase().includes("stoken"));z&&(k=z.split(";")[0])}let K=k?`BDUSS=${E};${k};`:`BDUSS=${E};STOKEN=${x};`;await hD(t.server,K),r.send({code:0,data:K,message:"\u626B\u7801\u6210\u529F"}),ng={};return}else{let R=`BDUSS=${E};STOKEN=${x};`;await hD(t.server,R),r.send({code:0,data:R,message:"\u626B\u7801\u6210\u529F"}),ng={};return}}else throw new Error("Cookie\u89E3\u6790\u5931\u8D25: \u7F3A\u5C11\u5FC5\u8981\u5B57\u6BB5")}}}else if(u.errno===1){await new Promise(l=>setTimeout(l,1e3));continue}else if(u.errno===2)throw new Error("\u4E8C\u7EF4\u7801\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6")}}throw new Error("\u626B\u7801\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5")}catch(n){console.error("\u767E\u5EA6\u626B\u7801\u767B\u5F55\u5931\u8D25:",n),r.send({code:-1,message:n?.message||"\u626B\u7801\u767B\u5F55\u5931\u8D25"})}}),e.get("/cookie",async(t,r)=>{r.send({code:0,data:await IZe(t.server)})}),e.put("/cookie",async(t,r)=>{await hD(t.server,t.body.cookie),r.send({code:0,message:"Cookie\u5DF2\u4FDD\u5B58"})})}var gD=[{key:"quark",name:"\u5938\u7236",enable:!0},{key:"tianyi",name:"\u5929\u610F",enable:!0},{key:"yidong",name:"\u9038\u52A8",enable:!0},{key:"123",name:"Pan123",enable:!0},{key:"115",name:"Pan115",enable:!0},{key:"uc",name:"\u4F18\u5915",enable:!0},{key:"baidu",name:"\u767E\u5EA6",enable:!0},{key:"ali",name:"\u963F\u72F8",enable:!0}],yD=async e=>{let r=(await e.db.getObjectDefault("/pans",{}))?.list||e.config.pans.list;return r.filter(n=>gD.some(i=>i.key===n.key)).concat(gD.filter(n=>!r.some(i=>i.key===n.key)))},NZe=async(e,t)=>{await e.db.push("/pans/list",t),globalThis.Pans=t},OZe=async e=>{await e.db.delete("/pans/list"),globalThis.Pans=gD};async function bD(e){e.get("/list",async(t,r)=>{r.send({code:0,data:await yD(t.server)})}),e.put("/list",async(t,r)=>{await NZe(t.server,t.body.list),r.send({code:0})}),e.delete("/list",async(t,r)=>{await OZe(t.server),r.send({code:0})})}var Que=Te(LE(),1);async function xD(e){e.get("/",async(t,r)=>{r.header("Content-Disposition",`attachment; filename="config.${(0,Que.default)().format("YYYY-MM-DD")}.json"`);let n=await t.server.db.getData("/");r.send(JSON.stringify(n,null,4))}),e.put("/",async(t,r)=>{await t.server.db.push("/",t.body),r.send({code:0})})}async function ED(e){e.get("/",(t,r)=>{r.type("text/html").send(`
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>\u9996\u9875</title>
</head>
<body>
<div id="app"></div>
<script crossorigin src="https://lib.baomitu.com/react/18.2.0/umd/react.production.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/axios/0.26.0/axios.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/dayjs/1.10.8/dayjs.min.js"></script>
<script crossorigin src="https://lib.baomitu.com/antd/5.25.0/antd.min.js"></script>
<link rel="stylesheet" href="https://lib.baomitu.com/antd/5.25.0/reset.min.css">
<script>${globalThis.websiteBundle}</script>
</body>
</html>
`)}),e.register(cD,{prefix:"/quark"}),e.register(ZO,{prefix:"/uc"}),e.register(lD,{prefix:"/uc-tv"}),e.register(qP,{prefix:"/115"}),e.register(XP,{prefix:"/muou"}),e.register(fD,{prefix:"/tianyi"}),e.register(m8,{prefix:"/wogg"}),e.register(u8,{prefix:"/leijing"}),e.register(x8,{prefix:"/zhizhen"}),e.register(A8,{prefix:"/tgsou"}),e.register(dD,{prefix:"/pan123"}),e.register(pD,{prefix:"/ali"}),e.register(mD,{prefix:"/baidu"}),e.register(N8,{prefix:"/tgchannel"}),e.register(D8,{prefix:"/sites"}),e.register(bD,{prefix:"/pans"}),e.register(xD,{prefix:"/backup"}),e.register(k8,{prefix:"/danmu"}),e.register(F8,{prefix:"/t4"}),e.register(j8,{prefix:"/cms"})}var Zue=Te(require("os"),1),_D=e=>e?.find(t=>t.family==="IPv4")?.address,ece=function(){let e=Zue.default.networkInterfaces();return _D(e.en0)||_D(e.en1)||_D(e.en2)||"127.0.0.1"};var Ut=null;async function PZe(e){Ut=(0,tce.default)({serverFactory:catServerFactory,forceCloseConnections:!0,logger:process.env.NODE_ENV!=="development",maxParamLength:10240}),globalThis.messageToDart=Ut.messageToDart=async i=>{try{console.log("messageToDart",i);let s=catDartServerPort();return s==0?null:(await fe.post(`http://127.0.0.1:${s}/msg`,i)).data}catch(s){return console.error(s),null}},Ut.address=function(){let i=this.server.address();return i.url=`http://${ece()}:${i.port}`,i.dynamic="js2p://_WEB_",i},Ut.addHook("onError",async(i,s,a)=>(console.error(a),a.statusCode||(a.statusCode=500),a)),Ut.stop=!1,Ut.config=e,Ut.db=new Pv.JsonDB(new Pv.Config((process.env.NODE_PATH||".")+"/mozhao.db.json",!0,!0,"/",!0));let t=Ut.db.push.bind(Ut.db);Ut.db.push=async(...i)=>{let s=await t(...i);return Ut.db.getData("/").then(a=>{Ut.messageToDart({action:"saveProfile",opt:a})}),s};let r=Ut.db.delete.bind(Ut.db);Ut.db.delete=async(...i)=>{let s=await r(...i);return Ut.db.getData("/").then(a=>{Ut.messageToDart({action:"saveProfile",opt:a})}),s},Ut.messageToDart({action:"queryProfile"}).then(i=>{i&&Object.keys(i).length>0&&t("/",i||{})}),Ut.register(H8,{db:Ut.db,config:e}),Ut.register(ED,{prefix:"/website"}),globalThis.Pans=await yD(Ut),globalThis.getPanName=i=>globalThis.Pans.find(s=>s.key===i)?.name,globalThis.getPanEnabled=i=>globalThis.Pans.find(s=>s.key===i)?.enable;let n=i=>{Ut.listen({port:process.env.DEV_HTTP_PORT||i,host:"0.0.0.0"},(s,a)=>{s?(console.error(s),s.code==="EADDRINUSE"&&(console.log(`Port ${i} is already in use. Trying next available port...`),n(i+1))):console.log(`Server listening on ${a}`)})};n(9988)}async function DZe(){Ut&&(Ut.close(),Ut.stop=!0),Ut=null}0&&(module.exports={start,stop});
/*! Bundled license information:
forwarded/index.js:
(*!
* forwarded
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*)
proxy-addr/index.js:
(*!
* proxy-addr
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*)
toad-cache/dist/toad-cache.cjs:
(**
* toad-cache
*
* @copyright 2024 Igor Savin <kibertoad@gmail.com>
* @license MIT
* @version 3.7.0
*)
cookie/index.js:
(*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
light-my-request/lib/form-data.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
mime-db/index.js:
(*!
* mime-db
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015-2022 Douglas Christopher Wilson
* MIT Licensed
*)
mime-types/index.js:
(*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
crypto-js/ripemd160.js:
(** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*)
crypto-js/mode-ctr-gladman.js:
(** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*)
hls-parser/index.js:
(*! Copyright Kuu Miyazaki. SPDX-License-Identifier: MIT *)
rwlock/lib/lock.js:
(*! ReadWriteLock - v5.0.0 - 2015-01-16
* Author: Alberto La Rocca <a71104@gmail.com> (https://github.com/71104)
* Released under the MIT license
* Copyright (c) 2015 Alberto La Rocca *)
*/