From bd61533871acf4a0f6d8498f6b9d33bbd6a62390 Mon Sep 17 00:00:00 2001 From: cluntop <85211716+cluntop@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:43:10 +0800 Subject: [PATCH] cluntop remove /js/index.js --- js/index.js | 560 ---------------------------------------------------- 1 file changed, 560 deletions(-) delete mode 100755 js/index.js diff --git a/js/index.js b/js/index.js deleted file mode 100755 index d091a00c3..000000000 --- a/js/index.js +++ /dev/null @@ -1,560 +0,0 @@ - -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,Dt=Object.getOwnPropertySymbols,Da=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable;var Qr=(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)&&Qr(e,r,t[r]);if(Dt)for(var r of Dt(t))Jr.call(t,r)&&Qr(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&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&Jr.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})},Zr=(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)):{},Zr(t||!e||!e.__esModule?ut(r,\"default\",{value:e,enumerable:!0}):r,e)),Ia=e=>Zr(ut({},\"__esModule\",{value:!0}),e);var Y=Se((Yi,eo)=>{eo.exports=window.React});var mr=Se((Xi,to)=>{to.exports=window.ReactDOM});var oo=Se(pr=>{\"use strict\";var ro=mr();pr.createRoot=ro.createRoot,pr.hydrateRoot=ro.hydrateRoot;var Ki});var ao=Se((Ji,no)=>{no.exports=window.antd});var io=Se((Zi,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{\"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 m=fo[t.format]||fo.default;window.clipboardData.setData(m,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(m){r&&console.error(\"unable to copy using clipboardData: \",m),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,At)=>{(function(){\"use strict\";var e={}.hasOwnProperty;function t(){for(var n=\"\",a=0;a$i});module.exports=Ia(Vi);var l=_(Y(),1),da=_(oo(),1),d=_(ao(),1),ir=_(io(),1),fa=_(mo(),1);var po=_(Y()),La=(0,po.createContext)({}),kt=La;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,o=Array(t);rparseFloat(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){R(this,\"isValid\",!0),R(this,\"r\",0),R(this,\"g\",0),R(this,\"b\",0),R(this,\"a\",1),R(this,\"_h\",void 0),R(this,\"_s\",void 0),R(this,\"_l\",void 0),R(this,\"_v\",void 0),R(this,\"_max\",void 0),R(this,\"_min\",void 0),R(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=z(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g\"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:z(a(\"r\")),g:z(a(\"g\")),b:z(a(\"b\")),a:z(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=>z((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=z(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=z(this.getSaturation()*100),o=z(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=z(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 m=o-f/2;this.r=z((a+m)*255),this.g=z((u+m)*255),this.b=z((s+m)*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=z(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=z(o*(1-r)*255),c=z(o*(1-r*i)*255),m=z(o*(1-r*(1-i))*255);switch(s){case 0:this.g=m,this.b=f;break;case 1:this.r=c,this.b=f;break;case 2:this.r=f,this.b=m;break;case 3:this.r=f,this.g=c;break;case 4:this.r=m,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(\"%\")?z(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Pt=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)-Pt*t:Math.round(e.h)+Pt*t:o=r?Math.round(e.h)+Pt*t:Math.round(e.h)-Pt*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 Mt(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,m=f.amount;return new Pe(t.backgroundColor||\"#141414\").mix(r[c],m).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 Lt=[\"#e6f4ff\",\"#bae0ff\",\"#91caff\",\"#69b1ff\",\"#4096ff\",\"#1677ff\",\"#0958d9\",\"#003eb3\",\"#002c8c\",\"#001d66\"];Lt.primary=Lt[5];var _o=[\"#f0f5ff\",\"#d6e4ff\",\"#adc6ff\",\"#85a5ff\",\"#597ef7\",\"#2f54eb\",\"#1d39c4\",\"#10239e\",\"#061178\",\"#030852\"];_o.primary=_o[5];var Uo=[\"#f9f0ff\",\"#efdbff\",\"#d3adf7\",\"#b37feb\",\"#9254de\",\"#722ed1\",\"#531dab\",\"#391085\",\"#22075e\",\"#120338\"];Uo.primary=Uo[5];var Ho=[\"#fff0f6\",\"#ffd6e7\",\"#ffadd2\",\"#ff85c0\",\"#f759ab\",\"#eb2f96\",\"#c41d7f\",\"#9e1068\",\"#780650\",\"#520339\"];Ho.primary=Ho[5];var Ro=[\"#a6a6a6\",\"#999999\",\"#8c8c8c\",\"#808080\",\"#737373\",\"#666666\",\"#404040\",\"#1a1a1a\",\"#000000\",\"#000000\"];Ro.primary=Ro[5];var zo=[\"#2a1215\",\"#431418\",\"#58181c\",\"#791a1f\",\"#a61d24\",\"#d32029\",\"#e84749\",\"#f37370\",\"#f89f9a\",\"#fac8c3\"];zo.primary=zo[5];var jo=[\"#2b1611\",\"#441d12\",\"#592716\",\"#7c3118\",\"#aa3e19\",\"#d84a1b\",\"#e87040\",\"#f3956a\",\"#f8b692\",\"#fad4bc\"];jo.primary=jo[5];var Wo=[\"#2b1d11\",\"#442a11\",\"#593815\",\"#7c4a15\",\"#aa6215\",\"#d87a16\",\"#e89a3c\",\"#f3b765\",\"#f8cf8d\",\"#fae3b7\"];Wo.primary=Wo[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 Xo=[\"#112123\",\"#113536\",\"#144848\",\"#146262\",\"#138585\",\"#13a8a8\",\"#33bcb7\",\"#58d1c9\",\"#84e2d8\",\"#b2f1e8\"];Xo.primary=Xo[5];var Ko=[\"#111a2c\",\"#112545\",\"#15325b\",\"#15417e\",\"#1554ad\",\"#1668dc\",\"#3c89e8\",\"#65a9f3\",\"#8dc5f8\",\"#b7dcfa\"];Ko.primary=Ko[5];var Qo=[\"#131629\",\"#161d40\",\"#1c2755\",\"#203175\",\"#263ea0\",\"#2b4acb\",\"#5273e0\",\"#7f9ef3\",\"#a8c1f8\",\"#d2e0fa\"];Qo.primary=Qo[5];var Jo=[\"#1a1325\",\"#24163a\",\"#301c4d\",\"#3e2069\",\"#51258f\",\"#642ab5\",\"#854eca\",\"#ab7ae0\",\"#cda8f0\",\"#ebd7fa\"];Jo.primary=Jo[5];var Zo=[\"#291321\",\"#40162f\",\"#551c3b\",\"#75204f\",\"#a02669\",\"#cb2b83\",\"#e0529c\",\"#f37fb7\",\"#f8a8cc\",\"#fad2e3\"];Zo.primary=Zo[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;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith(\"data-\")?t:\"data-\".concat(t):Ua}function yr(e){if(e.attachTo)return e.attachTo;var t=document.querySelector(\"head\");return t||document.body}function Ha(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=Ha(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 m=(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(m.length)return f.insertBefore(i,m[m.length-1].nextSibling),i}f.insertBefore(i,c)}else f.appendChild(i);return i}function Ra(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 za(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});za(o,a);var u=Ra(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={},Wa=[],$a=function(t){Wa.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 Nt(e,t){dn(Va,e,t)}function Xa(e,t){dn(Ga,e,t)}Nt.preMessage=$a;Nt.resetWarned=Ya;Nt.noteOnce=Xa;var fn=Nt;var Me=_(Y());function Ka(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function mn(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[Ka(r)]=o}return t},{})}function Bt(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 Bt(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 Bt(o,\"\".concat(t,\"-\").concat(e.tag,\"-\").concat(n))}))}function Tr(e){return Mt(e)[0]}function qt(e){return e?Array.isArray(e)?e:[e]:[]}var Qa=\"\\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\",pn=function(t){var r=(0,Me.useContext)(kt),o=r.csp,n=r.prefixCls,a=r.layer,u=Qa;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 Ja=[\"icon\",\"className\",\"onClick\",\"style\",\"primaryColor\",\"secondaryColor\"],ft={primaryColor:\"#333\",secondaryColor:\"#E6E6E6\",calculated:!1};function Za(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 _t=function(t){var r=t.icon,o=t.className,n=t.onClick,a=t.style,u=t.primaryColor,s=t.secondaryColor,i=Et(t,Ja),f=xn.useRef(),c=ft;if(u&&(c={primaryColor:u,secondaryColor:s||Tr(u)}),pn(f),mn(Or(r),\"icon should be icon definiton, but got \".concat(r)),!Or(r))return null;var m=r;return m&&typeof m.icon==\"function\"&&(m=ee(ee({},m),{},{icon:m.icon(c.primaryColor,c.secondaryColor)})),Bt(m.icon,\"svg-\".concat(m.name),ee(ee({className:o,onClick:n,style:a,\"data-icon\":m.name,width:\"1em\",height:\"1em\",fill:\"currentColor\",\"aria-hidden\":\"true\"},i),{},{ref:f}))};_t.displayName=\"IconReact\";_t.getTwoToneColors=el;_t.setTwoToneColors=Za;var ct=_t;function Sr(e){var t=qt(e),r=It(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(Lt.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=Et(e,tl),c=Le.useContext(kt),m=c.prefixCls,x=m===void 0?\"anticon\":m,h=c.rootClassName,w=(0,hn.default)(h,x,R(R({},\"\".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=qt(i),T=It(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 Ht=_(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 Ht.createElement(Fe,re({},t,{ref:r,icon:bn}))},nl=Ht.forwardRef(ol),Rt=nl;var zt=_(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 zt.createElement(Fe,re({},t,{ref:r,icon:vn}))},il=zt.forwardRef(ll),De=il;var jt=_(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 jt.createElement(Fe,re({},t,{ref:r,icon:yn}))},dl=jt.forwardRef(ul),ke=dl;var Wt=_(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 Wt.createElement(Fe,re({},t,{ref:r,icon:wn}))},ml=Wt.forwardRef(cl),$t=ml;var p=_(Y()),He=_(mr());var N=_(Y());function On(){for(var e=arguments.length,t=new Array(e),r=0;ro=>{t.forEach(n=>n(o))},t)}var mt=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 Vt(e){return\"nodeType\"in e}function V(e){var t,r;return e?Ne(e)?e:Vt(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Gt(e){let{Document:t}=V(e);return e instanceof t}function Qe(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:Vt(e)?Gt(e)?e:Qe(e)||Dr(e)?e.ownerDocument:document:document:document}var oe=mt?N.useLayoutEffect:N.useEffect;function Yt(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{e.current=setInterval(o,n)},[]),r=(0,N.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Je(e,t){t===void 0&&(t=[e]);let r=(0,N.useRef)(e);return oe(()=>{r.current!==e&&(r.current=e)},t),r}function Ze(e,t){let r=(0,N.useRef)();return(0,N.useMemo)(()=>{let o=e(r.current);return r.current=o,o},[...t])}function pt(e){let t=Yt(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{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 pl(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 pl(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 Ue=_(Y()),gl={display:\"none\"};function Dn(e){let{id:t,value:r}=e;return Ue.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 Ue.default.createElement(\"div\",{id:t,style:n,role:\"status\",\"aria-live\":o,\"aria-atomic\":!0},r)}function In(){let[e,t]=(0,Ue.useState)(\"\");return{announce:(0,Ue.useCallback)(o=>{o!=null&&t(o)},[]),announcement:e}}var Hn=(0,p.createContext)(null);function hl(e){let t=(0,p.useContext)(Hn);(0,p.useEffect)(()=>{if(!t)throw new Error(\"useDndMonitor must be used within a children of \");return t(e)},[e,t])}function bl(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(o=>(e.add(o),()=>e.delete(o)),[e]);return[(0,p.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,p.useState)(!1);if((0,p.useEffect)(()=>{f(!0)},[]),hl((0,p.useMemo)(()=>({onDragStart(m){let{active:x}=m;a(t.onDragStart({active:x}))},onDragMove(m){let{active:x,over:h}=m;t.onDragMove&&a(t.onDragMove({active:x,over:h}))},onDragOver(m){let{active:x,over:h}=m;a(t.onDragOver({active:x,over:h}))},onDragEnd(m){let{active:x,over:h}=m;a(t.onDragEnd({active:x,over:h}))},onDragCancel(m){let{active:x,over:h}=m;a(t.onDragCancel({active:x,over:h}))}}),[a,t])),!i)return null;let c=p.default.createElement(p.default.Fragment,null,p.default.createElement(Dn,{id:o,value:n.draggable}),p.default.createElement(kn,{id:s,announcement:u}));return r?(0,He.createPortal)(c,r):c}var U;(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\"})(U||(U={}));function Qt(){}function Br(e,t){return(0,p.useMemo)(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function qr(){for(var e=arguments.length,t=new Array(e),r=0;r[...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 Rn(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{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 zn(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;av(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,m=a?e.height/a:e.height;return{width:c,height:m,top:f,right:i+c,bottom:f+m,left:i}}var El={ignoreTransform:!1};function We(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 We(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 er(e,t){let r=[];function o(n){if(t!=null&&r.length>=t||!n)return r;if(Gt(n)&&n.scrollingElement!=null&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!Qe(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]=er(e,1);return t!=null?t:null}function kr(e){return!mt||!e?null:Ne(e)?e:Vt(e)?Gt(e)||e===Be(e).scrollingElement?window:Qe(e)?e:null:null}function Wn(e){return Ne(e)?e.scrollX:e.scrollLeft}function $n(e){return Ne(e)?e.scrollY:e.scrollTop}function Ar(e){return{x:Wn(e),y:$n(e)}}var j;(function(e){e[e.Forward=1]=\"Forward\",e[e.Backward=-1]=\"Backward\"})(j||(j={}));function Vn(e){return!mt||!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:m,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)):!m&&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+Wn(r),0)}function _l(e){return e.reduce((t,r)=>t+$n(r),0)}function Ul(e,t){if(t===void 0&&(t=We),!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 Hl=[[\"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=er(r),n=Yn(o);this.rect=g({},t),this.width=t.width,this.height=t.height;for(let[a,u,s]of Hl)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})}},Re=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 Rl(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 zl(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 Xn={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 Re(Be(r)),this.windowListeners=new Re(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&&Ul(o),r(ie)}handleKeyDown(t){if(xt(t)){let{active:r,context:o,options:n}=this.props,{keyboardCodes:a=Xn,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 m=u(t,{active:r,context:o.current,currentCoordinates:c});if(m){let x=et(m,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,m.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,m.y))},q=y===k.Right&&!T||y===k.Left&&!C,H=y===k.Down&&!I||y===k.Up&&!O;if(q&&F.x!==m.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(H&&F.y!==m.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(m,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=Xn,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=Rl(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 Re(this.document),this.listeners=new Re(o),this.windowListeners=new Re(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,zl,{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()}},Wl={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,Wl,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 Zt;(function(e){e[e.TreeOrder=0]=\"TreeOrder\",e[e.ReversedTreeOrder=1]=\"ReversedTreeOrder\"})(Zt||(Zt={}));function Vl(e){let{acceleration:t,activator:r=ht.Pointer,canScroll:o,draggingRect:n,enabled:a,interval:u=5,order:s=Zt.TreeOrder,pointerCoordinates:i,scrollableAncestors:f,scrollableAncestorRects:c,delta:m,threshold:x}=e,h=Yl({delta:m,disabled:!a}),[w,b]=Tn(),y=(0,p.useRef)({x:0,y:0}),O=(0,p.useRef)({x:0,y:0}),T=(0,p.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,p.useRef)(null),I=(0,p.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,p.useMemo)(()=>s===Zt.TreeOrder?[...f].reverse():f,[s,f]);(0,p.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:H}=Nl(A,F,T,t,x);for(let M of[\"x\",\"y\"])h[M][q[M]]||(H[M]=0,q[M]=0);if(H.x>0||H.y>0){b(),C.current=A,w(I,u),y.current=H,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 Ze(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 Xl(e,t){let r=t!=null?e.get(t):void 0,o=r?r.node.current:null;return Ze(n=>{var a;return t==null?null:(a=o!=null?o:n)!=null?a:null},[o,t])}function Kl(e,t){return(0,p.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 Ql(e,t){let{dragging:r,dependencies:o,config:n}=t,[a,u]=(0,p.useState)(null),{frequency:s,measure:i,strategy:f}=n,c=(0,p.useRef)(e),m=y(),x=Je(m),h=(0,p.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,p.useRef)(null),b=Ze(O=>{if(m&&!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,m,i]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{m||h()},[r,m]),(0,p.useEffect)(()=>{a&&a.length>0&&u(null)},[JSON.stringify(a)]),(0,p.useEffect)(()=>{m||typeof s!=\"number\"||w.current!==null||(w.current=setTimeout(()=>{h(),w.current=null},s))},[s,m,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 Kn(e,t){return Ze(r=>e?r||(typeof t==\"function\"?t(e):e):null,[t,e])}function Jl(e,t){return Kn(e,t)}function Zl(e){let{callback:t,disabled:r}=e,o=Yt(t),n=(0,p.useMemo)(()=>{if(r||typeof window>\"u\"||typeof window.MutationObserver>\"u\")return;let{MutationObserver:a}=window;return new a(o)},[o,r]);return(0,p.useEffect)(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function tr(e){let{callback:t,disabled:r}=e,o=Yt(t),n=(0,p.useMemo)(()=>{if(r||typeof window>\"u\"||typeof window.ResizeObserver>\"u\")return;let{ResizeObserver:a}=window;return new a(o)},[r]);return(0,p.useEffect)(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function ei(e){return new bt(We(e),e)}function Nn(e,t,r){t===void 0&&(t=ei);let[o,n]=(0,p.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=Zl({callback(i){if(e)for(let f of i){let{type:c,target:m}=f;if(c===\"childList\"&&m instanceof HTMLElement&&m.contains(e)){a();break}}}}),s=tr({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=Kn(e);return zn(e,t)}var Bn=[];function ri(e){let t=(0,p.useRef)(e),r=Ze(o=>e?o&&o!==Bn&&e&&t.current&&e.parentNode===t.current.parentNode?o:er(e):Bn,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),r}function oi(e){let[t,r]=(0,p.useState)(null),o=(0,p.useRef)(e),n=(0,p.useCallback)(a=>{let u=kr(a.target);u&&r(s=>s?(s.set(u,Ar(u)),new Map(s)):null)},[]);return(0,p.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,p.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,p.useRef)(null);return(0,p.useEffect)(()=>{r.current=null},t),(0,p.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,p.useEffect)(()=>{if(!mt)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,p.useMemo)(()=>e.reduce((r,o)=>{let{eventName:n,handler:a}=o;return r[n]=u=>{a(u,t)},r},{}),[e,t])}function Qn(e){return(0,p.useMemo)(()=>e?Al(e):null,[e])}var _n=[];function li(e,t){t===void 0&&(t=We);let[r]=e,o=Qn(r?V(r):null),[n,a]=(0,p.useState)(_n);function u(){a(()=>e.length?e.map(i=>Vn(i)?o:new bt(t(i),i)):_n)}let s=tr({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 Qe(t)?t:e}function si(e){let{measure:t}=e,[r,o]=(0,p.useState)(null),n=(0,p.useCallback)(f=>{for(let{target:c}of f)if(Qe(c)){o(m=>{let x=t(c);return m?v(g({},m),{width:x.width,height:x.height}):x});break}},[t]),a=tr({callback:n}),u=(0,p.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]=pt(u);return(0,p.useMemo)(()=>({nodeRef:s,rect:r,setRef:i}),[r,s,i])}var ui=[{sensor:je,options:{}},{sensor:Jt,options:{}}],di={current:{}},Kt={draggable:{measure:En},droppable:{measure:En,strategy:yt.WhileDragging,frequency:Nr.Optimized},dragOverlay:{measure:We}},ze=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 ze,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kt,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},rr=(0,p.createContext)(ci),Jn=(0,p.createContext)(fi);function mi(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ze}}}function pi(e,t){switch(t.type){case U.DragStart:return v(g({},e),{draggable:v(g({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case U.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 U.DragEnd:case U.DragCancel:return v(g({},e),{draggable:v(g({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case U.RegisterDroppable:{let{element:r}=t,{id:o}=r,n=new ze(e.droppable.containers);return n.set(o,r),v(g({},e),{droppable:v(g({},e.droppable),{containers:n})})}case U.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 ze(e.droppable.containers);return u.set(r,v(g({},a),{disabled:n})),v(g({},e),{droppable:v(g({},e.droppable),{containers:u})})}case U.UnregisterDroppable:{let{id:r,key:o}=t,n=e.droppable.containers.get(r);if(!n||o!==n.key)return e;let a=new ze(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,p.useContext)(rr),a=Xt(o),u=Xt(r==null?void 0:r.id);return(0,p.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 m=Fn(c);if(m){m.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,p.useMemo)(()=>({draggable:g(g({},Kt.draggable),e==null?void 0:e.draggable),droppable:g(g({},Kt.droppable),e==null?void 0:e.droppable),dragOverlay:g(g({},Kt.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,p.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),m=zn(c,o);if(u||(m.x=0),s||(m.y=0),a.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){let x=jn(f);x&&x.scrollBy({top:m.y,left:m.x})}},[t,u,s,o,r])}var Zn=(0,p.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,p.memo)(function(t){var r,o,n,a;let Kr=t,{id:u,accessibility:s,autoScroll:i=!0,children:f,sensors:c=ui,collisionDetection:m=Tl,measuring:x,modifiers:h}=Kr,w=cr(Kr,[\"id\",\"accessibility\",\"autoScroll\",\"children\",\"sensors\",\"collisionDetection\",\"measuring\",\"modifiers\"]),b=(0,p.useReducer)(pi,void 0,mi),[y,O]=b,[T,C]=bl(),[I,E]=(0,p.useState)(Ee.Uninitialized),A=I===Ee.Initialized,{draggable:{active:D,nodes:F,translate:q},droppable:{containers:H}}=y,M=D!=null?F.get(D):null,ae=(0,p.useRef)({initial:null,translated:null}),le=(0,p.useMemo)(()=>{var $;return D!=null?{id:D,data:($=M==null?void 0:M.data)!=null?$:di,rect:ae}:null},[D,M]),se=(0,p.useRef)(null),[tt,wt]=(0,p.useState)(null),[X,Ct]=(0,p.useState)(null),me=Je(w,Object.values(w)),rt=qe(\"DndDescribedBy\",u),Ot=(0,p.useMemo)(()=>H.getEnabled(),[H]),G=hi(x),{droppableRects:pe,measureDroppableContainers:Ae,measuringScheduled:ot}=Ql(Ot,{dragging:A,dependencies:[q.x,q.y],config:G.droppable}),K=Xl(F,D),Tt=(0,p.useMemo)(()=>X?gt(X):null,[X]),ve=wa(),xe=Jl(K,G.draggable.measure);bi({activeNode:D!=null?F.get(D):null,config:ve.layoutShiftCompensation,initialRect:xe,measure:G.draggable.measure});let P=Nn(K,G.draggable.measure,xe),nt=Nn(K?K.parentElement:null),ue=(0,p.useRef)({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:pe,draggableNodes:F,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),$e=H.getNodeFor((r=ue.current.over)==null?void 0:r.id),ge=si({measure:G.dragOverlay.measure}),Ve=(o=ge.nodeRef.current)!=null?o:K,Ge=A?(n=ge.rect)!=null?n:P:null,zr=!!(ge.nodeRef.current&&ge.rect),jr=ti(zr?null:P),sr=Qn(Ve?V(Ve):null),ye=ri(A?$e!=null?$e:K:null),St=li(ye),Ft=gi(h,{transform:{x:q.x-jr.x,y:q.y-jr.y,scaleX:1,scaleY:1},activatorEvent:X,active:le,activeNodeRect:P,containerNodeRect:nt,draggingNodeRect:Ge,over:ue.current.over,overlayNodeRect:ge.rect,scrollableAncestors:ye,scrollableAncestorRects:St,windowRect:sr}),Wr=Tt?_e(Tt,q):null,$r=oi(ye),pa=qn($r),xa=qn($r,[P]),Ye=_e(Ft,pa),Xe=Ge?Dl(Ge,Ft):null,at=le&&Xe?m({active:le,collisionRect:Xe,droppableRects:pe,droppableContainers:Ot,pointerCoordinates:Wr}):null,Vr=Rn(at,\"id\"),[we,Gr]=(0,p.useState)(null),ga=zr?Ft:_e(Ft,xa),ha=Sl(ga,(a=we==null?void 0:we.rect)!=null?a:null,P),ur=(0,p.useRef)(null),Yr=(0,p.useCallback)(($,Q)=>{let{sensor:J,options:Ce}=Q;if(se.current==null)return;let te=F.get(se.current);if(!te)return;let Z=$.nativeEvent,de=new J({active:se.current,activeNode:te,event:Z,options:Ce,context:ue,onAbort(W){if(!F.get(W))return;let{onDragAbort:fe}=me.current,he={id:W};fe==null||fe(he),T({type:\"onDragAbort\",event:he})},onPending(W,Oe,fe,he){if(!F.get(W))return;let{onDragPending:it}=me.current,Te={id:W,constraint:Oe,initialCoordinates:fe,offset:he};it==null||it(Te),T({type:\"onDragPending\",event:Te})},onStart(W){let Oe=se.current;if(Oe==null)return;let fe=F.get(Oe);if(!fe)return;let{onDragStart:he}=me.current,lt={activatorEvent:Z,active:{id:Oe,data:fe.data,rect:ae}};(0,He.unstable_batchedUpdates)(()=>{he==null||he(lt),E(Ee.Initializing),O({type:U.DragStart,initialCoordinates:W,active:Oe}),T({type:\"onDragStart\",event:lt}),wt(ur.current),Ct(Z)})},onMove(W){O({type:U.DragMove,coordinates:W})},onEnd:Ke(U.DragEnd),onCancel:Ke(U.DragCancel)});ur.current=de;function Ke(W){return async function(){let{active:fe,collisions:he,over:lt,scrollAdjustedTranslate:it}=ue.current,Te=null;if(fe&&it){let{cancelDrop:st}=me.current;Te={activatorEvent:Z,active:fe,collisions:he,delta:it,over:lt},W===U.DragEnd&&typeof st==\"function\"&&await Promise.resolve(st(Te))&&(W=U.DragCancel)}se.current=null,(0,He.unstable_batchedUpdates)(()=>{O({type:W}),E(Ee.Uninitialized),Gr(null),wt(null),Ct(null),ur.current=null;let st=W===U.DragEnd?\"onDragEnd\":\"onDragCancel\";if(Te){let dr=me.current[st];dr==null||dr(Te),T({type:st,event:Te})}})}}},[F]),ba=(0,p.useCallback)(($,Q)=>(J,Ce)=>{let te=J.nativeEvent,Z=F.get(Ce);if(se.current!==null||!Z||te.dndKit||te.defaultPrevented)return;let de={active:Z};$(J,Q.options,de)===!0&&(te.dndKit={capturedBy:Q.sensor},se.current=Ce,Yr(J,Q))},[F,Yr]),Xr=Kl(c,ba);ni(c),oe(()=>{P&&I===Ee.Initializing&&E(Ee.Initialized)},[P,I]),(0,p.useEffect)(()=>{let{onDragMove:$}=me.current,{active:Q,activatorEvent:J,collisions:Ce,over:te}=ue.current;if(!Q||!J)return;let Z={active:Q,activatorEvent:J,collisions:Ce,delta:{x:Ye.x,y:Ye.y},over:te};(0,He.unstable_batchedUpdates)(()=>{$==null||$(Z),T({type:\"onDragMove\",event:Z})})},[Ye.x,Ye.y]),(0,p.useEffect)(()=>{let{active:$,activatorEvent:Q,collisions:J,droppableContainers:Ce,scrollAdjustedTranslate:te}=ue.current;if(!$||se.current==null||!Q||!te)return;let{onDragOver:Z}=me.current,de=Ce.get(Vr),Ke=de&&de.rect.current?{id:de.id,rect:de.rect.current,data:de.data,disabled:de.disabled}:null,W={active:$,activatorEvent:Q,collisions:J,delta:{x:te.x,y:te.y},over:Ke};(0,He.unstable_batchedUpdates)(()=>{Gr(Ke),Z==null||Z(W),T({type:\"onDragOver\",event:W})})},[Vr]),oe(()=>{ue.current={activatorEvent:X,active:le,activeNode:K,collisionRect:Xe,collisions:at,droppableRects:pe,draggableNodes:F,draggingNode:Ve,draggingNodeRect:Ge,droppableContainers:H,over:we,scrollableAncestors:ye,scrollAdjustedTranslate:Ye},ae.current={initial:Ge,translated:Xe}},[le,K,at,Xe,F,Ve,Ge,pe,H,we,ye,Ye]),Vl(v(g({},ve),{delta:q,draggingRect:Xe,pointerCoordinates:Wr,scrollableAncestors:ye,scrollableAncestorRects:St}));let va=(0,p.useMemo)(()=>({active:le,activeNode:K,activeNodeRect:P,activatorEvent:X,collisions:at,containerNodeRect:nt,dragOverlay:ge,draggableNodes:F,droppableContainers:H,droppableRects:pe,over:we,measureDroppableContainers:Ae,scrollableAncestors:ye,scrollableAncestorRects:St,measuringConfiguration:G,measuringScheduled:ot,windowRect:sr}),[le,K,P,X,at,nt,ge,F,H,pe,we,Ae,ye,St,G,ot,sr]),ya=(0,p.useMemo)(()=>({activatorEvent:X,activators:Xr,active:le,activeNodeRect:P,ariaDescribedById:{draggable:rt},dispatch:O,draggableNodes:F,over:we,measureDroppableContainers:Ae}),[X,Xr,le,P,O,rt,F,we,Ae]);return p.default.createElement(Hn.Provider,{value:C},p.default.createElement(rr.Provider,{value:ya},p.default.createElement(Jn.Provider,{value:va},p.default.createElement(Zn.Provider,{value:ha},f)),p.default.createElement(xi,{disabled:(s==null?void 0:s.restoreFocus)===!1})),p.default.createElement(wl,v(g({},s),{hiddenTextDescribedById:rt})));function wa(){let $=(tt==null?void 0:tt.autoScrollEnabled)===!1,Q=typeof i==\"object\"?i.enabled===!1:i===!1,J=A&&!$&&!Q;return typeof i==\"object\"?v(g({},i),{enabled:J}):{enabled:J}}}),vi=(0,p.createContext)(null),Un=\"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:m,over:x}=(0,p.useContext)(rr),{role:h=Un,roleDescription:w=\"draggable\",tabIndex:b=0}=n!=null?n:{},y=(i==null?void 0:i.id)===t,O=(0,p.useContext)(y?Zn:vi),[T,C]=pt(),[I,E]=pt(),A=ai(u,t),D=Je(r);oe(()=>(m.set(t,{id:t,key:a,node:T,activatorNode:I,data:D}),()=>{let q=m.get(t);q&&q.key===a&&m.delete(t)}),[m,t]);let F=(0,p.useMemo)(()=>({role:h,tabIndex:b,\"aria-disabled\":o,\"aria-pressed\":y&&h===Un?!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,p.useContext)(Jn)}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,p.useContext)(rr),c=(0,p.useRef)({disabled:r}),m=(0,p.useRef)(!1),x=(0,p.useRef)(null),h=(0,p.useRef)(null),{disabled:w,updateMeasurementsFor:b,timeout:y}=g(g({},Ci),n),O=Je(b!=null?b:o),T=(0,p.useCallback)(()=>{if(!m.current){m.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=tr({callback:T,disabled:w||!u}),I=(0,p.useCallback)((F,q)=>{C&&(q&&(C.unobserve(q),m.current=!1),F&&C.observe(F))},[C]),[E,A]=pt(I),D=Je(t);return(0,p.useEffect)(()=>{!C||!E.current||(C.disconnect(),m.current=!1,C.observe(E.current))},[E,C]),(0,p.useEffect)(()=>(s({type:U.RegisterDroppable,element:{id:o,key:a,disabled:r,node:E,rect:x,data:D}}),()=>s({type:U.UnregisterDroppable,key:a,id:o})),[o]),(0,p.useEffect)(()=>{r!==c.current.disabled&&(s({type:U.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 Ur=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 or(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{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 nr={scaleX:1,scaleY:1},Hr=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:rr&&n<=u?g({x:0,y:-s.height-i},nr):n=u?g({x:0,y:s.height+i},nr):g({x:0,y:0},nr)};function Fi(e,t,r){let o=e[t],n=e[t-1],a=e[t+1];return o?ro.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:m,disabled:I,disableTransforms:C,items:h,overIndex:y,useDragOverlay:x,sortedRects:Oi(h,i),strategy:n}),[b,m,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=We(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:m,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:m,index:I,items:c}},n),[m,n,I,c]),A=(0,B.useMemo)(()=>c.slice(c.indexOf(u)),[c,u]),{rect:D,node:F,isOver:q,setNodeRef:H}=ra({id:u,data:E,disabled:C.droppable,resizeObserverConfig:g({updateMeasurementsFor:A},i)}),{active:M,activatorEvent:ae,activeNodeRect:le,attributes:se,setNodeRef:tt,listeners:wt,isDragging:X,over:Ct,setActivatorNodeRef:me,transform:rt}=ea({id:u,data:E,attributes:g(g({},Ai),r),disabled:C.draggable}),Ot=On(H,tt),G=!!M,pe=G&&!w&&or(x)&&or(y),Ae=!O&&X,ot=Ae&&pe?rt:null,K=s!=null?s:T,Tt=pe?ot!=null?ot:K({rects:b,activeNodeRect:le,activeIndex:x,overIndex:y,index:I}):null,ve=or(x)&&or(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:m}),nt=c!==P.current.items,ue=t({active:M,containerId:m,isDragging:X,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),m!==P.current.containerId&&(P.current.containerId=m),c!==P.current.items&&(P.current.items=c)},[G,ve,m,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:X,listeners:wt,node:F,overIndex:y,over:Ct,setNodeRef:Ot,setActivatorNodeRef:me,setDroppableNodeRef:H,setDraggableNodeRef:tt,transform:$e!=null?$e:Tt,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=\"\",document.head.appendChild(e)}var sa=\"data:image/jpeg,\";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 ar({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:m})=>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:m})))),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 ma=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 Ui(){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:m=>{e[c].enable=m,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($t,null),style:{marginRight:8},onClick:()=>{t(m=>be(m,c,c-1))}}),l.default.createElement(d.Button,{icon:l.default.createElement(Rt,null),onClick:()=>{t(m=>be(m,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 m=c.findIndex(h=>h.key===i.id),x=c.findIndex(h=>h.key===(f==null?void 0:f.id));return be(c,m,x)})},a=async()=>{let f=(await ir.default.get(\"/full-config\")).data.video.sites,c=await S.get(\"/sites/list\"),m={},x={};f.forEach(w=>{x[w.key]=w});let h=c.filter(w=>(m[w.key]=!0,x[w.key]));f.forEach(w=>{m[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:[Ur],onDragEnd:n},l.default.createElement(Rr,{items:e.map(i=>i.key),strategy:Hr},l.default.createElement(d.Table,{components:{body:{row:ma}},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 Hi(){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:m=>{e[c]=v(g({},f),{name:m.target.value}),t([...e])}})}},{title:\"\\u662F\\u5426\\u542F\\u7528\",dataIndex:\"enable\",render(i,f,c){return l.default.createElement(d.Switch,{value:i,onChange:m=>{e[c].enable=m,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($t,null),style:{marginRight:8},onClick:()=>{t(m=>be(m,c,c-1))}}),l.default.createElement(d.Button,{icon:l.default.createElement(Rt,null),onClick:()=>{t(m=>be(m,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 m=c.findIndex(h=>h.key===i.id),x=c.findIndex(h=>h.key===(f==null?void 0:f.id));return be(c,m,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:[Ur],onDragEnd:n},l.default.createElement(Rr,{items:e.map(i=>i.key),strategy:Hr},l.default.createElement(d.Table,{components:{body:{row:ma}},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 Ri(){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((m,x)=>l.default.createElement(d.Form.Item,v(g({label:x===0?\"API\\u5217\\u8868\":\"\",required:!1,key:m.key},x===0?t:r),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},m),{name:[m.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({},m),{name:[m.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(m.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 zi(){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((m,x)=>l.default.createElement(d.Form.Item,v(g({required:!1,key:m.key},t),{style:{marginBottom:12}}),l.default.createElement(d.Form.Item,v(g({},m),{name:[m.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({},m),{name:[m.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(m.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))}},m=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:m},\"\\u6E05\\u7A7A\")))}function Wi(){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(ar,{qrcodeUrl:\"/website/quark/qrcode\",cacheUrl:\"/quark/cookie\"})),l.default.createElement(L,{tab:\"UC Cookie\",key:\"uc-cookie\"},l.default.createElement(ar,{qrcodeUrl:\"/website/uc/qrcode\",cacheUrl:\"/uc/cookie\"})),l.default.createElement(L,{tab:\"UC token\",key:\"uc-token\"},l.default.createElement(ar,{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(ar,{qrcodeUrl:\"/website/115/qrcode\",cacheUrl:\"/115/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(Ui,null)),l.default.createElement(L,{tab:\"T4\\u63A5\\u53E3\",key:\"t4\"},l.default.createElement(zi,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(Hi,null)),l.default.createElement(L,{tab:\"\\u5F39\\u5E55\\u8BBE\\u7F6E\",key:\"danmu\"},l.default.createElement(Ri,null)))))))}function $i(){(0,da.createRoot)(document.getElementById(\"app\")).render(l.default.createElement(Wi,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})},Ce=(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 C=(t,e,r)=>(r=t!=null?Nt(Wt(t)):{},Ce(e||!t||!t.__esModule?M(r,\"default\",{value:t,enumerable:!0}):r,t)),Gt=t=>Ce(M({},\"__esModule\",{value:!0}),t);var y=R((Rr,Fe)=>{Fe.exports=window.React});var we=R((Dr,be)=>{be.exports=window.ReactDOM});var Se=R(ee=>{\"use strict\";var ye=we();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{_t.exports=window.axios});var Pr={};zt(Pr,{Danmu:()=>Lt,renderDanmu:()=>kr});module.exports=Gt(Pr);var s=C(y(),1),Bt=C(Se(),1),x=C(ke(),1);var Pe=C(y()),$t=(0,Pe.createContext)({}),L=$t;function S(){return S=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,o=Array(e);rparseFloat(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 f=l/255;return f<=.03928?f/12.92:Math.pow((f+.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\"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=i=>(o[i]-this[i])*a+this[i],f={r:h(l(\"r\")),g:h(l(\"g\")),b:h(l(\"b\")),a:h(l(\"a\")*100)/100};return this._c(f)}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,f=0,i=0,d=e/60,n=(1-Math.abs(2*o-1))*r,m=n*(1-Math.abs(d%2-1));d>=0&&d<1?(l=n,f=m):d>=1&&d<2?(l=m,f=n):d>=2&&d<3?(f=n,i=m):d>=3&&d<4?(f=m,i=n):d>=4&&d<5?(l=m,i=n):d>=5&&d<6&&(l=n,i=m);let u=o-n/2;this.r=h((l+u)*255),this.g=h((f+u)*255),this.b=h((i+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 f=e/60,i=Math.floor(f),d=f-i,n=h(o*(1-r)*255),m=h(o*(1-r*d)*255),u=h(o*(1-r*(1-d))*255);switch(i){case 0:this.g=u,this.b=n;break;case 1:this.r=m,this.b=n;break;case 2:this.r=n,this.b=u;break;case 3:this.r=n,this.g=m;break;case 4:this.r=u,this.g=n;break;case 5:default:this.g=n,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 f=new v({h:He(a,l,!0),s:qe(a,l,!0),v:Ue(a,l,!0)});r.push(f)}r.push(o);for(var i=1;i<=We;i+=1){var d=new v({h:He(a,i),s:qe(a,i),v:Ue(a,i)});r.push(d)}return e.theme===\"dark\"?Kt.map(function(n){var m=n.index,u=n.amount;return new v(e.backgroundColor||\"#141414\").mix(r[m],u).toHexString()}):r.map(function(n){return n.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 ft=[\"#2b2611\",\"#443b11\",\"#595014\",\"#7c6e14\",\"#aa9514\",\"#d8bd14\",\"#e8d639\",\"#f3ea62\",\"#f8f48b\",\"#fafab5\"];ft.primary=ft[5];var dt=[\"#1f2611\",\"#2e3c10\",\"#3e4f13\",\"#536d13\",\"#6f9412\",\"#8bbb11\",\"#a9d134\",\"#c9e75d\",\"#e4f88b\",\"#f0fab5\"];dt.primary=dt[5];var nt=[\"#162312\",\"#1d3712\",\"#274916\",\"#306317\",\"#3c8618\",\"#49aa19\",\"#6abe39\",\"#8fd460\",\"#b2e58b\",\"#d5f2bb\"];nt.primary=nt[5];var it=[\"#112123\",\"#113536\",\"#144848\",\"#146262\",\"#138585\",\"#13a8a8\",\"#33bcb7\",\"#58d1c9\",\"#84e2d8\",\"#b2f1e8\"];it.primary=it[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;e0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith(\"data-\")?e:\"data-\".concat(e):Zt}function fe(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 de(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,f=Xt(o),i=f===\"prependQueue\",d=document.createElement(\"style\");d.setAttribute(ht,f),i&&l&&d.setAttribute(Ot,\"\".concat(l)),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=t;var n=fe(e),m=n.firstChild;if(o){if(i){var u=(e.styles||de(n)).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 n.insertBefore(d,u[u.length-1].nextSibling),d}n.insertBefore(d,m)}else n.appendChild(d);return d}function er(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=fe(e);return(e.styles||de(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 Ct(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=fe(r),a=de(o),l=g(g({},r),{},{styles:a});tr(o,l);var f=er(e,l);if(f){var i,d;if((i=l.csp)!==null&&i!==void 0&&i.nonce&&f.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var n;f.nonce=(n=l.csp)===null||n===void 0?void 0:n.nonce}return f.innerHTML!==t&&(f.innerHTML=t),f}var m=Tt(t,l);return m.setAttribute(gt(l),e),m}function Ft(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function rr(t){return Ft(t)instanceof ShadowRoot}function bt(t){return rr(t)?Ft(t):null}var ne={},or=[],ar=function(e){or.push(e)};function lr(t,e){if(0)var r}function fr(t,e){if(0)var r}function dr(){ne={}}function wt(t,e,r){!e&&!ne[r]&&(t(!1,r),ne[r]=!0)}function V(t,e){wt(lr,t,e)}function nr(t,e){wt(fr,t,e)}V.preMessage=ar;V.resetWarned=dr;V.noteOnce=nr;var yt=V;var k=C(y());function ir(t){return t.replace(/-(.)/g,function(e,r){return r.toUpperCase()})}function vt(t,e){yt(t,\"[@ant-design/icons] \".concat(e))}function ie(t){return F(t)===\"object\"&&typeof t.name==\"string\"&&typeof t.theme==\"string\"&&(F(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[ir(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,f=ur;a&&(f=f.replace(/anticon/g,a)),l&&(f=\"@layer \".concat(l,\" {\\n\").concat(f,\"\\n}\")),(0,k.useEffect)(function(){var i=e.current,d=bt(i);Ct(f,\"@ant-design-icons\",{prepend:!l,csp:o,attachTo:d})},[])};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,f=e.primaryColor,i=e.secondaryColor,d=H(e,sr),n=Pt.useRef(),m=E;if(f&&(m={primaryColor:f,secondaryColor:i||ue(f)}),kt(n),vt(ie(r),\"icon should be icon definiton, but got \".concat(r)),!ie(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\"},d),{},{ref:n}))};$.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,f=t.tabIndex,i=t.onClick,d=t.twoToneColor,n=H(t,xr),m=P.useContext(L),u=m.prefixCls,p=u===void 0?\"anticon\":u,O=m.rootClassName,w=(0,Rt.default)(O,p,c(c({},\"\".concat(p,\"-\").concat(o.name),!!o.name),\"\".concat(p,\"-spin\"),!!a||o.name===\"loading\"),r),A=f;A===void 0&&i&&(A=-1);var D=l?{msTransform:\"rotate(\".concat(l,\"deg)\"),transform:\"rotate(\".concat(l,\"deg)\")}:void 0,T=G(d),b=N(T,2),B=b[0],X=b[1];return P.createElement(\"span\",S({role:\"img\",\"aria-label\":o.name},n,{ref:e,tabIndex:A,onClick:i,className:w}),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=C(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=C(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}))},Cr=K.forwardRef(Tr),pe=Cr;var Z=C(Et(),1);if(typeof window<\"u\"){let t=document.createElement(\"style\");t.textContent=\"\",document.head.appendChild(t)}var{Search:Fr}=x.Input,{Title:br}=x.Typography,xe=\"danmu_search_cache\",It=\"danmu_search_order\",wr=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>wr){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),[f,i]=(0,s.useState)(!1),d=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\")}},n=u=>{l(u),o(!0),i(!1)},m=()=>{a&&(l(Te(ge({},a),{episodes:[...a.episodes].reverse()})),i(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:()=>n(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},className:\"drawer\",extra:s.default.createElement(x.Button,{icon:f?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:()=>d(u)},u.episodeTitle)})))};function Lt(){let[t,e]=(0,s.useState)([]),[r,o]=(0,s.useState)(!1),[a,l]=(0,s.useState)([]),[f,i]=(0,s.useState)(!1),[d,n]=(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 w=p.trim();if(!w){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(n(w),!O){let T=new URL(window.location);T.searchParams.set(\"keyword\",w),window.history.pushState({},\"\",T)}if(O){let T=yr(w);if(T){l(T),i(!0),o(!1),x.message.success(\"\\u4ECE\\u7F13\\u5B58\\u52A0\\u8F7D\\u4E86\\u7ED3\\u679C\");return}}o(!0),i(!0),l([]);let A=0,D=[];t.forEach(T=>{Z.default.get(\"\".concat(T.url,\"/api/v2/search/episodes\"),{params:{anime:w}}).then(b=>{if(b.data.success&&b.data.animes&&b.data.animes.length>0){let B={sourceName:T.name,sourceUrl:T.url,data:b.data};D.push(B),l(X=>[...X,B])}}).catch(b=>console.error(\"Search from \".concat(T.name,\" failed:\"),b)).finally(()=>{A++,A===t.length&&(o(!1),D.length>0&&Sr(w,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(br,{level:2,className:\"main-title \".concat(f?\"hidden\":\"\")},\"\\u5F39\\u5E55\\u641C\\u7D22\"),s.default.createElement(Fr,{placeholder:\"\\u8F93\\u5165\\u5F71\\u89C6\\u540D\\u79F0...\",enterButton:\"\\u641C\\u7D22\",size:\"large\",onSearch:p=>m(p),loading:r,className:\"search-input\",value:d,onChange:p=>n(p.target.value)}),s.default.createElement(\"div\",{className:\"result-container\"},f&&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\"}),f&&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 KZ=Object.create;var ph=Object.defineProperty;var XZ=Object.getOwnPropertyDescriptor;var YZ=Object.getOwnPropertyNames;var JZ=Object.getPrototypeOf,QZ=Object.prototype.hasOwnProperty;var _=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),LO=(t,e)=>{for(var r in e)ph(t,r,{get:e[r],enumerable:!0})},qO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of YZ(e))!QZ.call(t,i)&&i!==r&&ph(t,i,{get:()=>e[i],enumerable:!(n=XZ(e,i))||n.enumerable});return t};var $e=(t,e,r)=>(r=t!=null?KZ(JZ(t)):{},qO(e||!t||!t.__esModule?ph(r,"default",{value:t,enumerable:!0}):r,t)),ZZ=t=>qO(ph({},"__esModule",{value:!0}),t);var FO=_((NMe,jO)=>{"use strict";function eee(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}jO.exports=eee});var BO=_((kMe,Nx)=>{"use strict";var tee=FO();function MO(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=tee(ree),i=null,s=null,o=0,a=null,c={push:m,drain:nn,saturated:nn,pause:u,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,!c.paused)for(;i&&o=r||c.paused?s?(s.next=A,s=A):(i=A,s=A,c.saturated()):(o++,e.call(t,A.value,A.worked))}function g(S,w){var A=n.get();A.context=t,A.release=y,A.value=S,A.callback=w||nn,A.errorHandler=a,o>=r||c.paused?i?(A.next=i,i=A):(i=A,s=A,c.saturated()):(o++,e.call(t,A.value,A.worked))}function y(S){S&&n.release(S);var w=i;w&&o<=r?c.paused?o--:(s===i&&(s=null),i=w.next,w.next=null,e.call(t,w.value,w.worked),s===null&&c.empty()):--o===0&&c.drain()}function b(){i=null,s=null,c.drain=nn}function x(){i=null,s=null,c.drain(),c.drain=nn}function v(){var S=i;for(i=null,s=null;S;){var w=S.next,A=S.callback,T=S.errorHandler,$=S.value,k=S.context;S.value=null,S.callback=nn,S.errorHandler=null,T&&T(new Error("abort"),$),A.call(k,new Error("abort")),S.release(S),S=w}c.drain=nn}function E(S){a=S}}function nn(){}function ree(){this.value=null,this.callback=nn,this.next=null,this.release=nn,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=nn,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function nee(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,f){e.call(this,u).then(function(d){f(null,d)},f)}var i=MO(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=l,i;function a(u){var f=new Promise(function(d,h){s(u,function(p,m){if(p){h(p);return}d(m)})});return f.catch(nn),f}function c(u){var f=new Promise(function(d,h){o(u,function(p,m){if(p){h(p);return}d(m)})});return f.catch(nn),f}function l(){var u=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 u}}Nx.exports=MO;Nx.exports.promise=nee});var Dx=_((DMe,hh)=>{"use strict";var{format:iee}=require("node:util");function see(){return`${this.name} [${this.code}]: ${this.message}`}function kx(t,e,r=500,n=Error){if(!t)throw new Error("Fastify error code must not be empty");if(!e)throw new Error("Fastify error message must not be empty");t=t.toUpperCase(),!r&&(r=void 0);function i(...s){if(!new.target)return new i(...s);this.code=t,this.name="FastifyError",this.statusCode=r;let o=s.length-1;o!==-1&&s[o]&&typeof s[o]=="object"&&"cause"in s[o]&&(this.cause=s.pop().cause),this.message=iee(e,...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=see,i}hh.exports=kx;hh.exports.default=kx;hh.exports.createError=kx});var mh=_((LMe,UO)=>{"use strict";var{createError:Qs}=Dx();UO.exports={AVV_ERR_EXPOSE_ALREADY_DEFINED:Qs("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' is already defined, specify an expose option for '%s'"),AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:Qs("AVV_ERR_ATTRIBUTE_ALREADY_DEFINED","'%s' is already defined"),AVV_ERR_CALLBACK_NOT_FN:Qs("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Qs("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Qs("AVV_ERR_ROOT_PLG_BOOTED","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Qs("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Qs("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:Qs("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 Pc=_((qMe,zO)=>{"use strict";var oee=Symbol("avvio.Boot"),aee=Symbol("isOnCloseHandler"),cee=Symbol("avvio.ThenifyDoNotWrap"),uee=Symbol("avvio.TimeTree.untrackNode"),lee=Symbol("avvio.TimeTree.trackNode"),fee=Symbol("avvio.TimeTree.getParent"),dee=Symbol("avvio.TimeTree.getNode"),pee=Symbol("avvio.TimeTree.addNode"),hee=Symbol.for("plugin-meta");zO.exports={kAvvio:oee,kIsOnCloseHandler:aee,kThenifyDoNotWrap:cee,kUntrackNode:uee,kTrackNode:lee,kGetParent:fee,kGetNode:dee,kAddNode:pee,kPluginMeta:hee}});var YO=_((jMe,XO)=>{"use strict";var{kUntrackNode:HO,kTrackNode:Lx,kGetParent:VO,kGetNode:WO,kAddNode:GO}=Pc(),qx=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Lx](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[HO](e){this.tableId.delete(e.id);let r=this.tableLabel.get(e.label);r.pop(),r.length===0&&this.tableLabel.delete(e.label)}[VO](e){if(e===null)return null;if(this.tableLabel.has(e)){let r=this.tableLabel.get(e);return r[r.length-1]}else return null}[WO](e){return this.tableId.get(e)}[GO](e,r,n){let i=this[VO](e);if(i===null)return this.root={parent:null,id:"root",label:r,nodes:[],start:n,stop:null,diff:-1},this[Lx](this.root),this.root.id;let o=`${r}-${Math.random()}`,a={parent:e,id:o,label:r,nodes:[],start:n,stop:null,diff:-1};return i.nodes.push(a),this[Lx](a),o}start(e,r,n=Date.now()){return this[GO](e,r,n)}stop(e,r=Date.now()){let n=this[WO](e);n&&(n.stop=r,n.diff=n.stop-n.start||0,this[HO](n))}toJSON(){return Object.assign({},this.root)}prettyPrint(){return KO(this.toJSON())}};function KO(t,e=""){let r=e,n=t.nodes.length,i=n-1;r+=`${t.label} ${t.diff} ms -`;for(let s=0;s{"use strict";var{debuglog:mee}=require("node:util"),yee=mee("avvio");JO.exports={debug:yee}});var ZO=_((MMe,QO)=>{"use strict";function gee(){let t={resolve:null,reject:null,promise:null};return t.promise=new Promise((e,r)=>{t.resolve=e,t.reject=r}),t}QO.exports={createPromise:gee}});var tI=_((BMe,eI)=>{"use strict";var{kPluginMeta:jx}=Pc();function vee(t,e){return t[jx]&&t[jx].name?t[jx].name:e&&e.name?e.name:t.name?t.name:t.toString().split(` -`).slice(0,2).map(r=>r.trim()).join(" -- ")}eI.exports={getPluginName:vee}});var gh=_((UMe,rI)=>{"use strict";function xee(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}rI.exports={isPromiseLike:xee}});var iI=_((zMe,nI)=>{"use strict";var{EventEmitter:_ee}=require("node:events"),{inherits:bee}=require("node:util"),{debug:mr}=yh(),{createPromise:Eee}=ZO(),{AVV_ERR_PLUGIN_EXEC_TIMEOUT:wee}=mh(),{getPluginName:See}=tI(),{isPromiseLike:Aee}=gh();function Cc(t,e,r,n,i){this.queue=t,this.func=e,this.options=r,this.isAfter=n,this.timeout=i,this.started=!1,this.name=See(e,r),this.queue.pause(),this._error=null,this.loaded=!1,this._promise=null,this.startTime=null}bee(Cc,_ee);Cc.prototype.exec=function(t,e){mr("exec",this.name),this.server=t;let r=this.func,n=this.name,i=!1;this.options=typeof this.options=="function"?this.options(this.server):this.options;let s=null,o=c=>{if(i){mr("loading complete",n);return}this._error=c,mr(c?"exec errored":"exec completed",n),i=!0,s&&clearTimeout(s),e(c)};this.timeout>0&&(mr("setting up timeout",n,this.timeout),s=setTimeout(function(){mr("timed out",n),s=null;let c=new wee(n);c.fn=r,o(c)},this.timeout)),this.started=!0,this.startTime=Date.now(),this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=r(this.server,this.options,o);Aee(a)&&(mr("exec: resolving promise",n),a.then(()=>process.nextTick(o),c=>process.nextTick(o,c)))};Cc.prototype.loadedSoFar=function(){if(mr("loadedSoFar",this.name),this.loaded)return Promise.resolve();let t=()=>{this.server.after((r,n)=>{this._error=r,this.queue.pause(),this._promise&&(r?(mr("rejecting promise",this.name,r),this._promise.reject(r)):(mr("resolving promise",this.name),this._promise.resolve()),this._promise=null),process.nextTick(n,r)}),this.queue.resume()},e;return this._promise?e=Promise.resolve():(this._promise=Eee(),e=this._promise.promise,this.server?t():this.on("start",t)),e};Cc.prototype.enqueue=function(t,e){mr("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.queue.push(t,e)};Cc.prototype.finish=function(t,e){mr("finish",this.name,t);let r=()=>{this.loaded||(mr("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),r();return}let n=()=>{if(mr("check",this.name,this.queue.length(),this.queue.running(),this._promise),this.queue.length()===0&&this.queue.running()===0)if(this._promise){let i=()=>{mr("wrap"),queueMicrotask(n)};this._promise.resolve(),this._promise.promise.then(i,i),this._promise=null}else r();else mr("delayed",this.name),this.queue.drain=()=>{mr("drain",this.name),this.queue.drain=Tee,queueMicrotask(n)}};queueMicrotask(n),this.queue.resume()};function Tee(){}nI.exports={Plugin:Cc}});var oI=_((HMe,sI)=>{"use strict";var{AVV_ERR_PLUGIN_NOT_VALID:Fx}=mh();function $ee(t){if(!(t&&(typeof t=="function"||typeof t.then=="function")))throw Array.isArray(t)?new Fx("array"):t===null?new Fx("null"):new Fx(typeof t)}sI.exports={validatePlugin:$ee}});var cI=_((VMe,aI)=>{"use strict";function Ree(t){return t!==null&&typeof t=="object"&&typeof t.default=="function"}aI.exports={isBundledOrTypescriptPlugin:Ree}});var fI=_((WMe,lI)=>{"use strict";var{debug:uI}=yh(),{kThenifyDoNotWrap:Mx}=Pc();function Pee(){if(this.booted){uI("thenify returning undefined because we are already booted");return}if(this[Mx]){this[Mx]=!1;return}return uI("thenify"),(t,e)=>this._loadRegistered().then(()=>(this[Mx]=!0,t(this._server)),e)}lI.exports={thenify:Pee}});var pI=_((GMe,dI)=>{"use strict";var{isPromiseLike:Cee}=gh(),{kAvvio:Oee}=Pc();function Iee(t,e,r){let n=t.apply(t,e);Cee(n)&&!n[Oee]?n.then(()=>process.nextTick(r),i=>process.nextTick(r,i)):r&&process.nextTick(r)}dI.exports={executeWithThenable:Iee}});var bI=_((KMe,Ux)=>{"use strict";var vh=BO(),Nee=require("node:events").EventEmitter,kee=require("node:util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ll,AVV_ERR_CALLBACK_NOT_FN:Oc,AVV_ERR_ROOT_PLG_BOOTED:Dee,AVV_ERR_READY_TIMEOUT:Lee,AVV_ERR_ATTRIBUTE_ALREADY_DEFINED:qee}=mh(),{kAvvio:yI,kIsOnCloseHandler:gI}=Pc(),{TimeTree:jee}=YO(),{Plugin:vI}=iI(),{debug:Ic}=yh(),{validatePlugin:Fee}=oI(),{isBundledOrTypescriptPlugin:Mee}=cI(),{isPromiseLike:Bee}=gh(),{thenify:xI}=fI(),{executeWithThenable:hI}=pI();function jt(t,e,r){if(typeof t=="function"&&arguments.length===1&&(r=t,e={},t=null),typeof e=="function"&&(r=e,e={}),e=e||{},e.autostart=e.autostart!==!1,e.timeout=Number(e.timeout)||0,e.expose=e.expose||{},!new.target)return new jt(t,e,r);this._server=t||this,this._opts=e,t&&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 jee,this._readyQ=vh(this,_I,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=mI},this._closeQ=vh(this,zee,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=mI},this._doStart=null;let n=this;this._root=new vI(vh(this,this._loadPluginNextTick,1),function(s,o,a){n._doStart=a,o.autostart&&n.start()},e,!1,0),this._trackPluginLoading(this._root),this._loadPlugin(this._root,i=>{Ic("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()})}kee(jt,Nee);jt.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};jt.prototype.override=function(t,e,r){return t};jt.prototype[yI]=!0;jt.prototype.use=function(t,e){return this._lastUsed=this._addPlugin(t,e,!1),this};jt.prototype._loadRegistered=function(){let t=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.queue.resume()),t?t.loadedSoFar():Promise.resolve()};Object.defineProperty(jt.prototype,"then",{get:xI});jt.prototype._addPlugin=function(t,e,r){if(Mee(t)&&(t=t.default),Fee(t),e=e||{},this.booted)throw new Dee;let n=this._current[0],i=this._opts.timeout;if(!n.loaded&&n.timeout>0){let o=Date.now()-n.startTime;i=n.timeout-(o+3)}let s=new vI(vh(this,this._loadPluginNextTick,1),t,e,r,i);if(this._trackPluginLoading(s),n.loaded)throw new Error(s.name,n.name);return n.enqueue(s,o=>{o&&(this._error=o)}),s};jt.prototype._expose=function(){let e=this,r=e._server,{use:n="use",after:i="after",ready:s="ready",onClose:o="onClose",close:a="close"}=this._opts.expose;if(r[n])throw new Ll(n,"use");if(r[n]=function(c,l){return e.use(c,l),this},r[i])throw new Ll(i,"after");if(r[i]=function(c){return typeof c!="function"?e._loadRegistered():(e.after(Bx(c,this)),this)},r[s])throw new Ll(s,"ready");if(r[s]=function(c){if(c&&typeof c!="function")throw new Oc(s,typeof c);return e.ready(c?Bx(c,this):void 0)},r[o])throw new Ll(o,"onClose");if(r[o]=function(c){if(typeof c!="function")throw new Oc(o,typeof c);return e.onClose(Hee(c,this)),this},r[a])throw new Ll(a,"close");if(r[a]=function(c){if(c&&typeof c!="function")throw new Oc(a,typeof c);return c?(e.close(Bx(c,this)),this):e.close()},r.then)throw new qee("then");Object.defineProperty(r,"then",{get:xI.bind(e)}),r[yI]=!0};jt.prototype.after=function(t){if(!t)return this._loadRegistered();this._addPlugin(e.bind(this),{},!0);function e(r,n,i){_I.call(this,t,i)}return this};jt.prototype.onClose=function(t){if(typeof t!="function")throw new Oc("onClose",typeof t);return t[gI]=!0,this._closeQ.unshift(t,e=>{e&&(this._error=e)}),this};jt.prototype.close=function(t){let e;if(t){if(typeof t!="function")throw new Oc("close",typeof t)}else e=new Promise(function(r,n){t=function(i){if(i)return n(i);r()}});return this.ready(()=>{this._error=null,this._closeQ.push(t),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),e};jt.prototype.ready=function(t){if(t){if(typeof t!="function")throw new Oc("ready",typeof t);this._readyQ.push(t),queueMicrotask(this.start.bind(this));return}return new Promise((e,r)=>{this._readyQ.push(i),this.start();let n=this._current[0].server;function i(s,o,a){s?r(s):e(n),process.nextTick(a)}})};jt.prototype._trackPluginLoading=function(t){let e=this._current[0]?.name||null;t.once("start",(r,n,i)=>{let s=this.pluginTree.start(e||null,n,i);t.once("loaded",(o,a,c)=>{this.pluginTree.stop(s,c)})})};jt.prototype.prettyPrint=function(){return this.pluginTree.prettyPrint()};jt.prototype.toJSON=function(){return this.pluginTree.toJSON()};jt.prototype._loadPlugin=function(t,e){let r=this;if(Bee(t.func)){t.func.then(o=>{typeof o.default=="function"&&(o=o.default),t.func=o,this._loadPlugin(t,e)},e);return}let n=r._current[0];if(r._current.unshift(t),r._error&&!t.isAfter){Ic("skipping loading of plugin as instance errored and it is not an after",t.name),process.nextTick(s);return}let i=n&&n.server||r._server;if(!t.isAfter)try{i=r.override(i,t.func,t.options)}catch(o){return Ic("override errored",t.name),s(o)}t.exec(i,s);function s(o){t.finish(o,a=>{r._current.shift(),e(a)})}};jt.prototype._loadPluginNextTick=function(t,e){process.nextTick(this._loadPlugin.bind(this),t,e)};function mI(){}function _I(t,e){let r=this._server,n=this._error;if(this._error=null,t.length===0)this._error=n,hI(t,[],e);else if(t.length===1)hI(t,[n],e);else if(this._opts.timeout===0){let i=s=>{this._error=s,e(this._error)};t.length===2?t(n,i):t(n,r,i)}else Uee.call(this,t,n,r,e)}function Uee(t,e,r,n){let i=t.unwrappedName??t.name;Ic("setting up ready timeout",i,this._opts.timeout);let s=setTimeout(()=>{Ic("timed out",i),s=null;let a=new Lee(i);a.fn=t,this._error=a,n(a)},this._opts.timeout);t.length===2?t(e,o.bind(this)):t(e,r,o.bind(this));function o(a){s&&(clearTimeout(s),this._error=a,n(this._error))}}function zee(t,e){let r=this._server,n=t[gI];if(t.length===0||t.length===1){let i;n?i=t(r):i=t(this._error),i&&typeof i.then=="function"?(Ic("resolving close/onClose promise"),i.then(()=>process.nextTick(e),s=>process.nextTick(e,s))):process.nextTick(e)}else t.length===2?t(n?r:this._error,e):n?t(r,e):t(this._error,r,e)}function Hee(t,e){return r.bind(e);function r(n,i){let s;t.length===0?(s=t(),s&&s.then?s.then(function(){process.nextTick(i)},i):process.nextTick(i)):t.length===1?(s=t(this),s&&s.then?s.then(function(){process.nextTick(i)},i):process.nextTick(i)):t(this,i)}}function Bx(t,e){let r=n.bind(e);return r.unwrappedName=t.name,r;function n(i,s){let o;t?t.length===0?(o=t(),o&&o.then?o.then(function(){process.nextTick(s,i)},s):process.nextTick(s,i)):t.length===1?(o=t(i),o&&o.then?o.then(function(){process.nextTick(s)},s):process.nextTick(s)):t.length===2?t(i,s):t(i,this,s):process.nextTick(s)}}Ux.exports=jt;Ux.exports.express=function(t){return jt(t,{expose:{use:"load"}})}});var or=_((XMe,EI)=>{"use strict";var Vee={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")};EI.exports=Vee});var Vx=_((YMe,xh)=>{"use strict";var{format:zx}=require("node:util");function Wee(t){return wI({...t,name:"DeprecationWarning"})}function wI({name:t,code:e,message:r,unlimited:n=!1}={}){if(!t)throw new Error("Warning name must not be empty");if(!e)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");e=e.toUpperCase();let i={[t]:function(o,a,c){s.emitted===!0&&s.unlimited!==!0||(s.emitted=!0,process.emitWarning(s.format(o,a,c),s.name,s.code))}};n&&(i={[t]:function(o,a,c){s.emitted=!0,process.emitWarning(s.format(o,a,c),s.name,s.code)}});let s=i[t];return s.emitted=!1,s.message=r,s.unlimited=n,s.code=e,s.format=function(o,a,c){let l;return o&&a&&c?l=zx(r,o,a,c):o&&a?l=zx(r,o,a):o?l=zx(r,o):l=r,l},s}var Hx={createWarning:wI,createDeprecation:Wee};xh.exports=Hx;xh.exports.default=Hx;xh.exports.processWarning=Hx});var us=_((JMe,AI)=>{"use strict";var{createDeprecation:Sr,createWarning:SI}=Vx(),Gee=Sr({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),Kee=Sr({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"}),Xee=Sr({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.'}),Yee=Sr({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),Jee=Sr({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),Qee=Sr({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),Zee=Sr({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),ete=Sr({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`.'}),tte=Sr({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`.'}),rte=Sr({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."}),nte=Sr({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`.'}),ite=Sr({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`.'}),ste=Sr({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`.'}),ote=Sr({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`.'}),ate=Sr({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`.'}),cte=Sr({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`.'}),ute=SI({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),lte=SI({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});AI.exports={FSTDEP005:Gee,FSTDEP006:Kee,FSTDEP007:Xee,FSTDEP008:Yee,FSTDEP009:Jee,FSTDEP010:Qee,FSTDEP011:Zee,FSTDEP012:ete,FSTDEP013:tte,FSTDEP014:rte,FSTDEP015:nte,FSTDEP016:ite,FSTDEP017:ste,FSTDEP018:ote,FSTDEP019:ate,FSTDEP020:cte,FSTWRN001:ute,FSTWRN002:lte}});var Ar=_((QMe,_h)=>{"use strict";var ne=Dx(),Nc={FST_ERR_NOT_FOUND:ne("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:ne("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:ne("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:ne("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:ne("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:ne("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:ne("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:ne("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:ne("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:ne("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:ne("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:ne("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:ne("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:ne("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:ne("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:ne("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:ne("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:ne("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:ne("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:ne("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:ne("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:ne("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:ne("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:ne("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:ne("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:ne("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:ne("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:ne("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:ne("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:ne("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:ne("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:ne("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:ne("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:ne("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:ne("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:ne("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:ne("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:ne("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:ne("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:ne("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:ne("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:ne("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:ne("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:ne("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:ne("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:ne("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:ne("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:ne("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:ne("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:ne("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:ne("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:ne("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:ne("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:ne("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:ne("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:ne("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:ne("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:ne("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:ne("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:ne("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:ne("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:ne("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:ne("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:ne("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:ne("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:ne("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:ne("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:ne("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:ne("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:ne("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:ne("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:ne("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:ne("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:ne("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:ne("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:ne("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:ne("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:ne("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:ne("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function fte(t,e){return e.cause=t,e}_h.exports=Nc;_h.exports.appendStackTrace=fte;_h.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:Nc.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:Nc.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:Nc.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:Nc.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:Nc.FST_ERR_PLUGIN_TIMEOUT}});var Zs=_((ZMe,kI)=>{"use strict";var dte=["onRoute","onRegister","onReady","onListen","preClose","onClose"],PI=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],pte=PI.concat(dte),{FST_ERR_HOOK_INVALID_TYPE:hte,FST_ERR_HOOK_INVALID_HANDLER:mte,FST_ERR_SEND_UNDEFINED_ERR:bh,FST_ERR_HOOK_TIMEOUT:yte,FST_ERR_HOOK_NOT_SUPPORTED:gte,AVVIO_ERRORS_MAP:TI,appendStackTrace:$I}=Ar(),{kChildren:ql,kHooks:CI,kRequestPayloadStream:RI}=or();function jl(){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=[]}jl.prototype=Object.create(null);jl.prototype.validate=function(t,e){if(typeof t!="string")throw new hte;if(Array.isArray(this[t])===!1)throw new gte(t);if(typeof e!="function")throw new mte(t,Object.prototype.toString.call(e))};jl.prototype.add=function(t,e){this.validate(t,e),this[t].push(e)};function vte(t){let e=new jl;return e.onRequest=t.onRequest.slice(),e.preParsing=t.preParsing.slice(),e.preValidation=t.preValidation.slice(),e.preSerialization=t.preSerialization.slice(),e.preHandler=t.preHandler.slice(),e.onSend=t.onSend.slice(),e.onResponse=t.onResponse.slice(),e.onError=t.onError.slice(),e.onRoute=t.onRoute.slice(),e.onRegister=t.onRegister.slice(),e.onTimeout=t.onTimeout.slice(),e.onRequestAbort=t.onRequestAbort.slice(),e.onReady=[],e.onListen=[],e.preClose=[],e}function OI(t,e,r,n){let i=r[CI][t],s=0,o=0;c();function a(u){if(u){u.code==="AVV_ERR_READY_TIMEOUT"?u=$I(u,new yte(t)):u=TI[u.code]!=null?$I(u,new TI[u.code](u.message)):u,n(u);return}n()}function c(u){if(u){a(u);return}if(s===i.length&&o===r[ql].length){s===0&&o===0?a():e(function(d,h){a(d),h(d)});return}if(s===i.length&&o{"use strict";var Rte=require("node:http"),Pte=require("node:https"),Cte=require("node:dns"),{FSTDEP011:DI}=us(),{kState:Tr,kOptions:Ote,kServerBindings:Ite}=or(),{onListenHookRunner:Eh}=Zs(),{FST_ERR_HTTP2_INVALID_VERSION:Nte,FST_ERR_REOPENED_CLOSE_SERVER:jI,FST_ERR_REOPENED_SERVER:FI,FST_ERR_LISTEN_OPTIONS_INVALID:kte}=Ar();Gx.exports.createServer=Dte;Gx.exports.compileValidateHTTPVersion=qte;function MI(t){return`Server listening at ${t}`}function Dte(t,e){let r=UI(t,e);function n(i,...s){let o=s.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)i=Wx([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")DI(),i=Wx(Array.from(arguments)),o=i.cb;else if(s.length>1){DI();let l=i.path?[i.path]:[i.port??0,i.host??"localhost"];Object.assign(i,Wx([...l,...s]))}else i.cb=o;if(i.signal){if(typeof i.signal.on!="function"&&typeof i.signal.addEventListener!="function")throw new kte("Invalid options.signal");if(i.signal.aborted)this.close();else{let l=()=>{this.close()};i.signal.addEventListener("abort",l,{once:!0})}}let c;if(i.path==null?c=i.host??"localhost":c=i.host,Object.prototype.hasOwnProperty.call(i,"host")===!1&&(i.host=c),c==="localhost"?i.cb=(l,u)=>{if(l){o(l,u);return}LI.call(this,r,e,t,i,()=>{this[Tr].listening=!0,o(null,u),Eh(this)})}:i.cb=(l,u)=>{if(l){o(l,u);return}this[Tr].listening=!0,o(null,u),Eh(this)},o===void 0)return Lte.call(this,r,i).then(u=>new Promise((f,d)=>{c==="localhost"?LI.call(this,r,e,t,i,()=>{this[Tr].listening=!0,f(u),Eh(this)}):(f(u),Eh(this))}));this.ready(BI.call(this,r,i))}return{server:r,listen:n}}function LI(t,e,r,n,i){this[Tr].listening=!1,Cte.lookup(n.host,{all:!0},(s,o)=>{if(s){i();return}let a=t.listening&&r.serverFactory,c=0,l=0;if(!a){let f=t.address();for(let d of o)if(d.address!==f.address){c++;let h=Object.assign({},n,{host:d.address,port:f.port,cb:g=>{l++,g||this[Ite].push(p),l===c&&i()}}),p=UI(r,e),m=()=>{p.close(()=>{}),r.forceCloseConnections==="idle"?p.closeIdleConnections():typeof p.closeAllConnections=="function"&&r.forceCloseConnections&&p.closeAllConnections()};p.on("upgrade",t.emit.bind(t,"upgrade")),t.on("unref",m),t.on("close",m),t.on("error",m),this[Tr].listening=!1,BI.call(this,p,h)()}}if(c===0){i();return}let u=t.unref;t.unref=function(){u.call(t),t.emit("unref")}})}function BI(t,e){let r=n=>{if(t.removeListener("error",r),n)this[Tr].listening=!1,e.cb(n,null);else{let i=zI.call(this,t,e.listenTextResolver||MI);e.cb(null,i)}};return n=>{if(n!=null)return e.cb(n);if(this[Tr].listening&&this[Tr].closing)return e.cb(new jI,null);if(this[Tr].listening)return e.cb(new FI,null);t.once("error",r),this[Tr].closing||(t.listen(e,r),this[Tr].listening=!0)}}function Lte(t,e){return this[Tr].listening&&this[Tr].closing?Promise.reject(new jI):this[Tr].listening?Promise.reject(new FI):this.ready().then(()=>{let r,n=new Promise((s,o)=>{r=a=>{this[Tr].listening=!1,o(a)},t.once("error",r)}),i=new Promise((s,o)=>{t.listen(e,()=>{t.removeListener("error",r),s(zI.call(this,t,e.listenTextResolver||MI))}),this[Tr].listening=!0});return Promise.race([n,i])})}function qte(t){let e=!1,r=new Map;return t.serverFactory&&(e=!0),t.http2?(r.set("2.0",!0),t.https&&t.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 e||r.has(i)}}function UI(t,e){let r=null,n=t.https===!0?{}:t.https;return t.serverFactory?r=t.serverFactory(e,t):t.http2?(typeof n=="object"?r=qI().createSecureServer(n,e):r=qI().createServer(e),r.on("session",Fte(t.http2SessionTimeout))):(n?r=Pte.createServer(n,e):r=Rte.createServer(t.http,e),r.keepAliveTimeout=t.keepAliveTimeout,r.requestTimeout=t.requestTimeout,t.maxRequestsPerSocket>0&&(r.maxRequestsPerSocket=t.maxRequestsPerSocket)),t.serverFactory||r.setTimeout(t.connectionTimeout),r}function Wx(t){if(t.length===0)return{port:0,host:"localhost"};let r={cb:typeof t[t.length-1]=="function"?t.pop():void 0},n=t[0],i=t.length,s=t[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:jte(n),r.host=i>=2&&t[1]?t[1]:"localhost",r.backlog=i>=3?t[2]:void 0),r}function jte(t){let e=Number(t);return e>=0&&!Number.isNaN(e)&&Number.isInteger(e)?e:0}function zI(t,e){let r=t.address(),n=typeof r=="string";n||(r.address.indexOf(":")===-1?r=r.address+":"+r.port:r="["+r.address+"]:"+r.port),r=(n?"":"http"+(this[Ote].https?"s":"")+"://")+r;let i=e(r);return this.log.info(i),r}function qI(){try{return require("node:http2")}catch{throw new Nte}}function Fte(t){return function(e){e.setTimeout(t,Mte)}}function Mte(){this.close()}});var Jx=_((tBe,WI)=>{"use strict";var{kSchemaHeaders:Ah,kSchemaParams:Kx,kSchemaQuerystring:Xx,kSchemaBody:Yx,kSchemaResponse:VI}=or(),Bte=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:Ute}=Ar(),{FSTWRN001:wh}=us();function zte(t,e){if(!t.schema||!t.schema.response)return;let{method:r,url:n}=t.config||{};t[VI]=Object.keys(t.schema.response).reduce(function(i,s){let o=t.schema.response[s];if(s=s.toLowerCase(),!Bte.exec(s))throw new Ute;if(o.content){let a={};for(let c of Object.keys(o.content)){let l=o.content[c].schema;a[c]=e({schema:l,url:n,method:r,httpStatus:s,contentType:c})}i[s]=a}else i[s]=e({schema:o,url:n,method:r,httpStatus:s});return i},{})}function Hte(t,e,r){let{schema:n}=t;if(!n)return;let{method:i,url:s}=t.config||{},o=n.headers;if(o&&(r||Object.getPrototypeOf(o)!==Object.prototype))t[Ah]=e({schema:o,method:i,url:s,httpPart:"headers"});else if(o){let a={};Object.keys(o).forEach(c=>{a[c]=o[c]}),a.required instanceof Array&&(a.required=a.required.map(c=>c.toLowerCase())),o.properties&&(a.properties={},Object.keys(o.properties).forEach(c=>{a.properties[c.toLowerCase()]=o.properties[c]})),t[Ah]=e({schema:a,method:i,url:s,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(n,"headers")&&wh("headers",i,s);n.body?t[Yx]=e({schema:n.body,method:i,url:s,httpPart:"body"}):Object.prototype.hasOwnProperty.call(n,"body")&&wh("body",i,s),n.querystring?t[Xx]=e({schema:n.querystring,method:i,url:s,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(n,"querystring")&&wh("querystring",i,s),n.params?t[Kx]=e({schema:n.params,method:i,url:s,httpPart:"params"}):Object.prototype.hasOwnProperty.call(n,"params")&&wh("params",i,s)}function Sh(t,e,r){let n=e[r]===void 0,i=t&&t(n?null:e[r]);if(i?.then)return i.then(o=>s(o)).catch(o=>o);return s(i);function s(o){return o===!1?t.errors:o&&o.error?o.error:(o&&o.value&&(e[r]=o.value),!1)}}function Th(t,e,r){let n=r===void 0;if(n||!r.skipParams){let s=Sh(t[Kx],e,"params");if(s)return typeof s.then!="function"?eo(s,"params",t.schemaErrorFormatter):Vte(s,t,e)}if(n||!r.skipBody){let s=Sh(t[Yx],e,"body");if(s)return typeof s.then!="function"?eo(s,"body",t.schemaErrorFormatter):Wte(s,t,e)}if(n||!r.skipQuery){let s=Sh(t[Xx],e,"query");if(s)return typeof s.then!="function"?eo(s,"querystring",t.schemaErrorFormatter):Gte(s,t,e)}let i=Sh(t[Ah],e,"headers");return i?typeof i.then!="function"?eo(i,"headers",t.schemaErrorFormatter):Kte(i,t,e):!1}function Vte(t,e,r){return t.then(n=>n?eo(n,"params",e.schemaErrorFormatter):Th(e,r,{skipParams:!0}))}function Wte(t,e,r){return t.then(n=>n?eo(n,"body",e.schemaErrorFormatter):Th(e,r,{skipParams:!0,skipBody:!0}))}function Gte(t,e,r){return t.then(n=>n?eo(n,"querystring",e.schemaErrorFormatter):Th(e,r,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function Kte(t,e,r){return t.then(n=>n?eo(n,"headers",e.schemaErrorFormatter):!1)}function eo(t,e,r){if(t instanceof Error)return t.statusCode=t.statusCode||400,t.code=t.code||"FST_ERR_VALIDATION",t.validationContext=t.validationContext||e,t;let n=r(t,e);return n.statusCode=n.statusCode||400,n.code=n.code||"FST_ERR_VALIDATION",n.validation=t,n.validationContext=e,n}WI.exports={symbols:{bodySchema:Yx,querystringSchema:Xx,responseSchema:VI,paramsSchema:Kx,headersSchema:Ah},compileSchemasForValidation:Hte,compileSchemasForSerialization:zte,validate:Th}});var Qx=_((rBe,KI)=>{"use strict";var{kReplyIsError:GI,kReplyHijacked:Xte}=or();function Yte(t,e){t.then(function(r){if(e[Xte]!==!0&&(r!==void 0||e.sent===!1&&e.raw.headersSent===!1&&e.request.raw.aborted===!1))try{e.send(r)}catch(n){e[GI]=!0,e.send(n)}},function(r){if(e.sent===!0){e.log.error({err:r},"Promise errored, but reply.sent = true was set");return}e[GI]=!0;try{e.send(r)}catch(n){e.send(n)}})}KI.exports=Yte});var r_=_((nBe,t_)=>{"use strict";var{validate:Jte}=Jx(),{preValidationHookRunner:Qte,preHandlerHookRunner:Zte}=Zs(),ere=Qx(),{kReplyIsError:$h,kRouteContext:ro}=or();function tre(t,e,r){if(r.sent===!0)return;if(t!=null){r[$h]=!0,r.send(t);return}let n=e.raw.method,i=e.headers,s=e[ro];if(n==="GET"||n==="HEAD"){to(e,r);return}let o=i["content-type"];if(n==="POST"||n==="PUT"||n==="PATCH"||n==="TRACE"||n==="SEARCH"){o===void 0?i["transfer-encoding"]===void 0&&(i["content-length"]==="0"||i["content-length"]===void 0)?to(e,r):s.contentTypeParser.run("",to,e,r):s.contentTypeParser.run(o,to,e,r);return}if(n==="OPTIONS"||n==="DELETE"){o!==void 0&&(i["transfer-encoding"]!==void 0||i["content-length"]!==void 0)?s.contentTypeParser.run(o,to,e,r):to(e,r);return}to(e,r)}function to(t,e){try{t[ro].preValidation!==null?Qte(t[ro].preValidation,t,e,Zx):Zx(null,t,e)}catch(r){Zx(r,t,e)}}function Zx(t,e,r){if(r.sent===!0)return;if(t!=null){r[$h]=!0,r.send(t);return}let n=Jte(r[ro],e);if(n&&typeof n.then=="function"||!1){let s=XI.bind(null,e,r);n.then(s,s)}else XI(e,r,n)}function XI(t,e,r){if(r){if(e[ro].attachValidation===!1){e.send(r);return}e.request.validationError=r}t[ro].preHandler!==null?Zte(t[ro].preHandler,t,e,e_):e_(null,t,e)}function e_(t,e,r){if(r.sent)return;if(t!=null){r[$h]=!0,r.send(t);return}let n;try{n=e[ro].handler(e,r)}catch(i){r[$h]=!0,r.send(i);return}n!==void 0&&(n!==null&&typeof n.then=="function"?ere(n,r):r.send(n))}t_.exports=tre;t_.exports[Symbol.for("internals")]={handler:to,preHandlerCallback:e_}});var JI=_((iBe,YI)=>{"use strict";function Dc(){}var rre={fatal:Dc,error:Dc,warn:Dc,info:Dc,debug:Dc,trace:Dc};Object.defineProperty(YI,"exports",{get(){return Object.create(rre)}})});var i_=_((sBe,eN)=>{"use strict";var Ml=t=>t&&typeof t.message=="string",n_=t=>{if(!t)return;let e=t.cause;if(typeof e=="function"){let r=t.cause();return Ml(r)?r:void 0}else return Ml(e)?e:void 0},QI=(t,e)=>{if(!Ml(t))return"";let r=t.stack||"";if(e.has(t))return r+` -causes have become circular...`;let n=n_(t);return n?(e.add(t),r+` -caused by: `+QI(n,e)):r},nre=t=>QI(t,new Set),ZI=(t,e,r)=>{if(!Ml(t))return"";let n=r?"":t.message||"";if(e.has(t))return n+": ...";let i=n_(t);if(i){e.add(t);let s=typeof t.cause=="function";return n+(s?"":": ")+ZI(i,e,s)}else return n},ire=t=>ZI(t,new Set);eN.exports={isErrorLike:Ml,getErrorCause:n_,stackWithCauses:nre,messageWithCauses:ire}});var s_=_((oBe,rN)=>{"use strict";var sre=Symbol("circular-ref-tag"),Rh=Symbol("pino-raw-err-ref"),tN=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[Rh]},set:function(t){this[Rh]=t}}});Object.defineProperty(tN,Rh,{writable:!0,value:{}});rN.exports={pinoErrProto:tN,pinoErrorSymbols:{seen:sre,rawSymbol:Rh}}});var sN=_((aBe,iN)=>{"use strict";iN.exports=a_;var{messageWithCauses:ore,stackWithCauses:are,isErrorLike:nN}=i_(),{pinoErrProto:cre,pinoErrorSymbols:ure}=s_(),{seen:o_}=ure,{toString:lre}=Object.prototype;function a_(t){if(!nN(t))return t;t[o_]=void 0;let e=Object.create(cre);e.type=lre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=ore(t),e.stack=are(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(r=>a_(r)));for(let r in t)if(e[r]===void 0){let n=t[r];nN(n)?r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,o_)&&(e[r]=a_(n)):e[r]=n}return delete t[o_],e.raw=t,e}});var aN=_((cBe,oN)=>{"use strict";oN.exports=Ch;var{isErrorLike:c_}=i_(),{pinoErrProto:fre,pinoErrorSymbols:dre}=s_(),{seen:Ph}=dre,{toString:pre}=Object.prototype;function Ch(t){if(!c_(t))return t;t[Ph]=void 0;let e=Object.create(fre);e.type=pre.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(r=>Ch(r))),c_(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,Ph)&&(e.cause=Ch(t.cause));for(let r in t)if(e[r]===void 0){let n=t[r];c_(n)?Object.prototype.hasOwnProperty.call(n,Ph)||(e[r]=Ch(n)):e[r]=n}return delete t[Ph],e.raw=t,e}});var fN=_((uBe,lN)=>{"use strict";lN.exports={mapHttpRequest:hre,reqSerializer:uN};var u_=Symbol("pino-raw-req-ref"),cN=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[u_]},set:function(t){this[u_]=t}}});Object.defineProperty(cN,u_,{writable:!0,value:{}});function uN(t){let e=t.info||t.socket,r=Object.create(cN);if(r.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),r.method=t.method,t.originalUrl)r.url=t.originalUrl;else{let n=t.path;r.url=typeof n=="string"?n:t.url?t.url.path||t.url:void 0}return t.query&&(r.query=t.query),t.params&&(r.params=t.params),r.headers=t.headers,r.remoteAddress=e&&e.remoteAddress,r.remotePort=e&&e.remotePort,r.raw=t.raw||t,r}function hre(t){return{req:uN(t)}}});var mN=_((lBe,hN)=>{"use strict";hN.exports={mapHttpResponse:mre,resSerializer:pN};var l_=Symbol("pino-raw-res-ref"),dN=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[l_]},set:function(t){this[l_]=t}}});Object.defineProperty(dN,l_,{writable:!0,value:{}});function pN(t){let e=Object.create(dN);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function mre(t){return{res:pN(t)}}});var d_=_((fBe,yN)=>{"use strict";var f_=sN(),yre=aN(),Oh=fN(),Ih=mN();yN.exports={err:f_,errWithCause:yre,mapHttpRequest:Oh.mapHttpRequest,mapHttpResponse:Ih.mapHttpResponse,req:Oh.reqSerializer,res:Ih.resSerializer,wrapErrorSerializer:function(e){return e===f_?e:function(n){return e(f_(n))}},wrapRequestSerializer:function(e){return e===Oh.reqSerializer?e:function(n){return e(Oh.reqSerializer(n))}},wrapResponseSerializer:function(e){return e===Ih.resSerializer?e:function(n){return e(Ih.resSerializer(n))}}}});var p_=_((dBe,gN)=>{"use strict";function gre(t,e){return e}gN.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=gre;let r=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(r))return;let n=r.slice(2),i=[];for(let s of n)s&&i.push(s.getFileName());return i}});var xN=_((pBe,vN)=>{"use strict";vN.exports=vre;function vre(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:r=n=>`fast-redact \u2013 Invalid path (${n})`}=t;return function({paths:i}){i.forEach(s=>{if(typeof s!="string")throw Error(e());try{if(/〇/.test(s))throw Error();let o=(s[0]==="["?"":".")+s.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(o)||/\/\*/.test(o))throw Error();Function(` - 'use strict' - const o = new Proxy({}, { get: () => o, set: () => { throw Error() } }); - const \u3007 = null; - o${o} - if ([o${o}].length !== 1) throw Error()`)()}catch{throw Error(r(s))}})}}});var Nh=_((hBe,_N)=>{"use strict";_N.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var EN=_((mBe,bN)=>{"use strict";var xre=Nh();bN.exports=_re;function _re({paths:t}){let e=[];var r=0;let n=t.reduce(function(i,s,o){var a=s.match(xre).map(u=>u.replace(/'|"|`/g,""));let c=s[0]==="[";a=a.map(u=>u[0]==="["?u.substr(1,u.length-2):u);let l=a.indexOf("*");if(l>-1){let u=a.slice(0,l),f=u.join("."),d=a.slice(l+1,a.length),h=d.length>0;r++,e.push({before:u,beforeStr:f,after:d,nested:h})}else i[s]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(s),leadingBracket:c};return i},{});return{wildcards:e,wcLen:r,secret:n}}});var SN=_((yBe,wN)=>{"use strict";var bre=Nh();wN.exports=Ere;function Ere({secret:t,serialize:e,wcLen:r,strict:n,isCensorFct:i,censorFctTakesPath:s},o){let a=Function("o",` - if (typeof o !== 'object' || o == null) { - ${Tre(n,e)} - } - 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]] - } - - ${wre(t,i,s)} - this.compileRestore() - ${Sre(r>0,i,s)} - this.secret = originalSecret - ${Are(e)} - `).bind(o);return a.state=o,e===!1&&(a.restore=c=>o.restore(c)),a}function wre(t,e,r){return Object.keys(t).map(n=>{let{escPath:i,leadingBracket:s,path:o}=t[n],a=s?1:0,c=s?"":".",l=[];for(var u;(u=bre.exec(n))!==null;){let[,p]=u,{index:m,input:g}=u;m>a&&l.push(g.substring(0,m-(p?0:1)))}var f=l.map(p=>`o${c}${p}`).join(" && ");f.length===0?f+=`o${c}${n} != null`:f+=` && o${c}${n} != null`;let d=` - switch (true) { - ${l.reverse().map(p=>` - case o${c}${p} === censor: - secret[${i}].circle = ${JSON.stringify(p)} - break - `).join(` -`)} - } - `,h=r?`val, ${JSON.stringify(o)}`:"val";return` - if (${f}) { - const val = o${c}${n} - if (val === censor) { - secret[${i}].precensored = true - } else { - secret[${i}].val = val - o${c}${n} = ${e?`censor(${h})`:"censor"} - ${d} - } - } - `}).join(` -`)}function Sre(t,e,r){return t===!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, ${e}, ${r}) - } else secret[beforeStr] = groupRedact(o, before, censor, ${e}, ${r}) - } - } - `:""}function Are(t){return t===!1?"return o":` - var s = this.serialize(o) - this.restore(o) - return s - `}function Tre(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var m_=_((gBe,$N)=>{"use strict";$N.exports={groupRedact:Rre,groupRestore:$re,nestedRedact:Cre,nestedRestore:Pre};function $re({keys:t,values:e,target:r}){if(r==null||typeof r=="string")return;let n=t.length;for(var i=0;i0;o--)s=s[n[o]];s[n[0]]=i}}function Cre(t,e,r,n,i,s,o){let a=AN(e,r);if(a==null)return;let c=Object.keys(a),l=c.length;for(var u=0;u{"use strict";var{groupRestore:Nre,nestedRestore:kre}=m_();RN.exports=Dre;function Dre(){return function(){if(this.restore){this.restore.state.secret=this.secret;return}let{secret:e,wcLen:r}=this,n=Object.keys(e),i=Lre(e,n),s=r>0,o=s?{secret:e,groupRestore:Nre,nestedRestore:kre}:{secret:e};this.restore=Function("o",qre(i,n,s)).bind(o),this.restore.state=o}}function Lre(t,e){return e.map(r=>{let{circle:n,escPath:i,leadingBracket:s}=t[r],a=n?`o.${n} = secret[${i}].val`:`o${s?"":"."}${r} = secret[${i}].val`,c=`secret[${i}].val = undefined`;return` - if (secret[${i}].val !== undefined) { - try { ${a} } catch (e) {} - ${c} - } - `}).join("")}function qre(t,e,r){return` - const secret = this.secret - ${r===!0?` - const keys = Object.keys(secret) - const len = keys.length - for (var i = len - 1; i >= ${e.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 - } - } - `:""} - ${t} - return o - `}});var ON=_((xBe,CN)=>{"use strict";CN.exports=jre;function jre(t){let{secret:e,censor:r,compileRestore:n,serialize:i,groupRedact:s,nestedRedact:o,wildcards:a,wcLen:c}=t,l=[{secret:e,censor:r,compileRestore:n}];return i!==!1&&l.push({serialize:i}),c>0&&l.push({groupRedact:s,nestedRedact:o,wildcards:a,wcLen:c}),Object.assign(...l)}});var kN=_((_Be,NN)=>{"use strict";var IN=xN(),Fre=EN(),Mre=SN(),Bre=PN(),{groupRedact:Ure,nestedRedact:zre}=m_(),Hre=ON(),Vre=Nh(),Wre=IN(),y_=t=>t;y_.restore=y_;var Gre="[REDACTED]";g_.rx=Vre;g_.validator=IN;NN.exports=g_;function g_(t={}){let e=Array.from(new Set(t.paths||[])),r="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,n=t.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 t?t.censor:Gre,s=typeof i=="function",o=s&&i.length>1;if(e.length===0)return r||y_;Wre({paths:e,serialize:r,censor:i});let{wildcards:a,wcLen:c,secret:l}=Fre({paths:e,censor:i}),u=Bre(),f="strict"in t?t.strict:!0;return Mre({secret:l,wcLen:c,serialize:r,strict:f,isCensorFct:s,censorFctTakesPath:o},Hre({secret:l,censor:i,compileRestore:u,serialize:r,groupRedact:Ure,nestedRedact:zre,wildcards:a,wcLen:c}))}});var Lc=_((bBe,DN)=>{"use strict";var Kre=Symbol("pino.setLevel"),Xre=Symbol("pino.getLevel"),Yre=Symbol("pino.levelVal"),Jre=Symbol("pino.levelComp"),Qre=Symbol("pino.useLevelLabels"),Zre=Symbol("pino.useOnlyCustomLevels"),ene=Symbol("pino.mixin"),tne=Symbol("pino.lsCache"),rne=Symbol("pino.chindings"),nne=Symbol("pino.asJson"),ine=Symbol("pino.write"),sne=Symbol("pino.redactFmt"),one=Symbol("pino.time"),ane=Symbol("pino.timeSliceIndex"),cne=Symbol("pino.stream"),une=Symbol("pino.stringify"),lne=Symbol("pino.stringifySafe"),fne=Symbol("pino.stringifiers"),dne=Symbol("pino.end"),pne=Symbol("pino.formatOpts"),hne=Symbol("pino.messageKey"),mne=Symbol("pino.errorKey"),yne=Symbol("pino.nestedKey"),gne=Symbol("pino.nestedKeyStr"),vne=Symbol("pino.mixinMergeStrategy"),xne=Symbol("pino.msgPrefix"),_ne=Symbol("pino.wildcardFirst"),bne=Symbol.for("pino.serializers"),Ene=Symbol.for("pino.formatters"),wne=Symbol.for("pino.hooks"),Sne=Symbol.for("pino.metadata");DN.exports={setLevelSym:Kre,getLevelSym:Xre,levelValSym:Yre,levelCompSym:Jre,useLevelLabelsSym:Qre,mixinSym:ene,lsCacheSym:tne,chindingsSym:rne,asJsonSym:nne,writeSym:ine,serializersSym:bne,redactFmtSym:sne,timeSym:one,timeSliceIndexSym:ane,streamSym:cne,stringifySym:une,stringifySafeSym:lne,stringifiersSym:fne,endSym:dne,formatOptsSym:pne,messageKeySym:hne,errorKeySym:mne,nestedKeySym:yne,wildcardFirstSym:_ne,needsMetadataGsym:Sne,useOnlyCustomLevelsSym:Zre,formattersSym:Ene,hooksSym:wne,nestedKeyStrSym:gne,mixinMergeStrategySym:vne,msgPrefixSym:xne}});var __=_((EBe,FN)=>{"use strict";var x_=kN(),{redactFmtSym:Ane,wildcardFirstSym:kh}=Lc(),{rx:v_,validator:Tne}=x_,LN=Tne({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),qN="[Redacted]",jN=!1;function $ne(t,e){let{paths:r,censor:n}=Rne(t),i=r.reduce((a,c)=>{v_.lastIndex=0;let l=v_.exec(c),u=v_.exec(c),f=l[1]!==void 0?l[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):l[0];if(f==="*"&&(f=kh),u===null)return a[f]=null,a;if(a[f]===null)return a;let{index:d}=u,h=`${c.substr(d,c.length-1)}`;return a[f]=a[f]||[],f!==kh&&a[f].length===0&&a[f].push(...a[kh]||[]),f===kh&&Object.keys(a).forEach(function(p){a[p]&&a[p].push(h)}),a[f].push(h),a},{}),s={[Ane]:x_({paths:r,censor:n,serialize:e,strict:jN})},o=(...a)=>e(typeof n=="function"?n(...a):n);return[...Object.keys(i),...Object.getOwnPropertySymbols(i)].reduce((a,c)=>{if(i[c]===null)a[c]=l=>o(l,[c]);else{let l=typeof n=="function"?(u,f)=>n(u,[c,...f]):n;a[c]=x_({paths:i[c],censor:l,serialize:e,strict:jN})}return a},s)}function Rne(t){if(Array.isArray(t))return t={paths:t,censor:qN},LN(t),t;let{paths:e,censor:r=qN,remove:n}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return n===!0&&(r=void 0),LN({paths:e,censor:r}),{paths:e,censor:r}}FN.exports=$ne});var BN=_((wBe,MN)=>{"use strict";var Pne=()=>"",Cne=()=>`,"time":${Date.now()}`,One=()=>`,"time":${Math.round(Date.now()/1e3)}`,Ine=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;MN.exports={nullTime:Pne,epochTime:Cne,unixTime:One,isoTime:Ine}});var zN=_((SBe,UN)=>{"use strict";function Nne(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}UN.exports=kne;function kne(t,e,r){var n=r&&r.stringify||Nne,i=1;if(typeof t=="object"&&t!==null){var s=e.length+i;if(s===1)return t;var o=new Array(s);o[0]=n(t);for(var a=1;a-1?f:0,t.charCodeAt(h+1)){case 100:case 102:if(u>=c||e[u]==null)break;f=c||e[u]==null)break;f=c||e[u]===void 0)break;f",f=h+2,h++;break}l+=n(e[u]),f=h+2,h++;break;case 115:if(u>=c)break;f{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let e=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(t,0,0,Number(r))},t=new Int32Array(new SharedArrayBuffer(4));b_.exports=e}else{let t=function(e){if((e>0&&e<1/0)===!1)throw typeof e!="number"&&typeof e!="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(e);for(;n>Date.now(););};b_.exports=t}});var JN=_((TBe,YN)=>{"use strict";var Ft=require("fs"),Dne=require("events"),Lne=require("util").inherits,HN=require("path"),S_=E_(),Dh=100,Lh=Buffer.allocUnsafe(0),qne=16*1024,VN="buffer",WN="utf8";function GN(t,e){e._opening=!0,e._writing=!0,e._asyncDrainScheduled=!1;function r(s,o){if(s){e._reopening=!1,e._writing=!1,e._opening=!1,e.sync?process.nextTick(()=>{e.listenerCount("error")>0&&e.emit("error",s)}):e.emit("error",s);return}let a=e._reopening;e.fd=o,e.file=t,e._reopening=!1,e._opening=!1,e._writing=!1,e.sync?process.nextTick(()=>e.emit("ready")):e.emit("ready"),!e.destroyed&&(!e._writing&&e._len>e.minLength||e._flushPending?e._actualWrite():a&&process.nextTick(()=>e.emit("drain")))}let n=e.append?"a":"w",i=e.mode;if(e.sync)try{e.mkdir&&Ft.mkdirSync(HN.dirname(t),{recursive:!0});let s=Ft.openSync(t,n,i);r(null,s)}catch(s){throw r(s),s}else e.mkdir?Ft.mkdir(HN.dirname(t),{recursive:!0},s=>{if(s)return r(s);Ft.open(t,n,i,r)}):Ft.open(t,n,i,r)}function ti(t){if(!(this instanceof ti))return new ti(t);let{fd:e,dest:r,minLength:n,maxLength:i,maxWrite:s,sync:o,append:a=!0,mkdir:c,retryEAGAIN:l,fsync:u,contentMode:f,mode:d}=t||{};e=e||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||qne,this.sync=o||!1,this.writable=!0,this._fsync=u||!1,this.append=a||!1,this.mode=d,this.retryEAGAIN=l||(()=>!0),this.mkdir=c||!1;let h,p;if(f===VN)this._writingBuf=Lh,this.write=Mne,this.flush=Une,this.flushSync=Hne,this._actualWrite=Wne,h=()=>Ft.writeSync(this.fd,this._writingBuf),p=()=>Ft.write(this.fd,this._writingBuf,this.release);else if(f===void 0||f===WN)this._writingBuf="",this.write=Fne,this.flush=Bne,this.flushSync=zne,this._actualWrite=Vne,h=()=>Ft.writeSync(this.fd,this._writingBuf,"utf8"),p=()=>Ft.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${WN}" and "${VN}", but passed ${f}`);if(typeof e=="number")this.fd=e,process.nextTick(()=>this.emit("ready"));else if(typeof e=="string")GN(e,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,g)=>{if(m){if((m.code==="EAGAIN"||m.code==="EBUSY")&&this.retryEAGAIN(m,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{S_(Dh),this.release(void 0,0)}catch(x){this.release(x)}else setTimeout(p,Dh);else this._writing=!1,this.emit("error",m);return}this.emit("write",g);let y=w_(this._writingBuf,this._len,g);if(this._len=y.len,this._writingBuf=y.writingBuf,this._writingBuf.length){if(!this.sync){p();return}try{do{let x=h(),v=w_(this._writingBuf,this._len,x);this._len=v.len,this._writingBuf=v.writingBuf}while(this._writingBuf.length)}catch(x){this.release(x);return}}this._fsync&&Ft.fsyncSync(this.fd);let b=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):b>this.minLength?this._actualWrite():this._ending?b>0?this._actualWrite():(this._writing=!1,qh(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(jne,this)):this.emit("drain"))},this.on("newListener",function(m){m==="drain"&&(this._asyncDrainScheduled=!1)})}function w_(t,e,r){return typeof t=="string"&&Buffer.byteLength(t)!==r&&(r=Buffer.from(t).subarray(0,r).toString().length),e=Math.max(e-r,0),t=t.slice(r),{writingBuf:t,len:e}}function jne(t){t.listenerCount("drain")>0&&(t._asyncDrainScheduled=!1,t.emit("drain"))}Lne(ti,Dne);function KN(t,e){return t.length===0?Lh:t.length===1?t[0]:Buffer.concat(t,e)}function Fne(t){if(this.destroyed)throw new Error("SonicBoom destroyed");let e=this._len+t.length,r=this._bufs;return this.maxLength&&e>this.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?r.push(""+t):r[r.length-1]+=t,this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._lenthis.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?(r.push([t]),n.push(t.length)):(r[r.length-1].push(t),n[n.length-1]+=t.length),this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len{this._fsync?(this._flushPending=!1,t()):Ft.fsync(this.fd,n=>{this._flushPending=!1,t(n)}),this.off("error",r)},r=n=>{this._flushPending=!1,t(n),this.off("drain",e)};this.once("drain",e),this.once("error",r)}function Bne(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&XN.call(this,t),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function Une(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&XN.call(this,t),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}ti.prototype.reopen=function(t){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(t)});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(t&&(this.file=t),this._reopening=!0,this._writing)return;let e=this.fd;this.once("ready",()=>{e!==this.fd&&Ft.close(e,r=>{if(r)return this.emit("error",r)})}),GN(this.file,this)};ti.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():qh(this)))};function zne(){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 t="";for(;this._bufs.length||t;){t.length<=0&&(t=this._bufs[0]);try{let e=Ft.writeSync(this.fd,t,"utf8"),r=w_(t,this._len,e);t=r.writingBuf,this._len=r.len,t.length<=0&&this._bufs.shift()}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;S_(Dh)}}try{Ft.fsyncSync(this.fd)}catch{}}function Hne(){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=Lh);let t=Lh;for(;this._bufs.length||t.length;){t.length<=0&&(t=KN(this._bufs[0],this._lens[0]));try{let e=Ft.writeSync(this.fd,t);t=t.subarray(e),this._len=Math.max(this._len-e,0),t.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;S_(Dh)}}}ti.prototype.destroy=function(){this.destroyed||qh(this)};function Vne(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let e=Ft.writeSync(this.fd,this._writingBuf,"utf8");t(null,e)}catch(e){t(e)}else Ft.write(this.fd,this._writingBuf,"utf8",t)}function Wne(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:KN(this._bufs.shift(),this._lens.shift()),this.sync)try{let e=Ft.writeSync(this.fd,this._writingBuf);t(null,e)}catch(e){t(e)}else Ft.write(this.fd,this._writingBuf,t)}function qh(t){if(t.fd===-1){t.once("ready",qh.bind(null,t));return}t.destroyed=!0,t._bufs=[],t._lens=[],Ft.fsync(t.fd,e);function e(){t.fd!==1&&t.fd!==2?Ft.close(t.fd,r):r()}function r(n){if(n){t.emit("error",n);return}t._ending&&!t._writing&&t.emit("finish"),t.emit("close")}}ti.SonicBoom=ti;ti.default=ti;YN.exports=ti});var A_=_(($Be,rk)=>{"use strict";var ri={exit:[],beforeExit:[]},QN={exit:Xne,beforeExit:Yne},qc;function Gne(){qc===void 0&&(qc=new FinalizationRegistry(Jne))}function Kne(t){ri[t].length>0||process.on(t,QN[t])}function ZN(t){ri[t].length>0||(process.removeListener(t,QN[t]),ri.exit.length===0&&ri.beforeExit.length===0&&(qc=void 0))}function Xne(){ek("exit")}function Yne(){ek("beforeExit")}function ek(t){for(let e of ri[t]){let r=e.deref(),n=e.fn;r!==void 0&&n(r,t)}ri[t]=[]}function Jne(t){for(let e of["exit","beforeExit"]){let r=ri[e].indexOf(t);ri[e].splice(r,r+1),ZN(e)}}function tk(t,e,r){if(e===void 0)throw new Error("the object can't be undefined");Kne(t);let n=new WeakRef(e);n.fn=r,Gne(),qc.register(e,n),ri[t].push(n)}function Qne(t,e){tk("exit",t,e)}function Zne(t,e){tk("beforeExit",t,e)}function eie(t){if(qc!==void 0){qc.unregister(t);for(let e of["exit","beforeExit"])ri[e]=ri[e].filter(r=>{let n=r.deref();return n&&n!==t}),ZN(e)}}rk.exports={register:Qne,registerBeforeExit:Zne,unregister:eie}});var nk=_((RBe,tie)=>{tie.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 ",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var sk=_((PBe,ik)=>{"use strict";function rie(t,e,r,n,i){let s=Date.now()+n,o=Atomics.load(t,e);if(o===r){i(null,"ok");return}let a=o,c=l=>{Date.now()>s?i(null,"timed-out"):setTimeout(()=>{a=o,o=Atomics.load(t,e),o===a?c(l>=1e3?1e3:l*2):o===r?i(null,"ok"):i(null,"not-equal")},l)};c(1)}function nie(t,e,r,n,i){let s=Date.now()+n,o=Atomics.load(t,e);if(o!==r){i(null,"ok");return}let a=c=>{Date.now()>s?i(null,"timed-out"):setTimeout(()=>{o=Atomics.load(t,e),o!==r?i(null,"ok"):a(c>=1e3?1e3:c*2)},c)};a(1)}ik.exports={wait:rie,waitDiff:nie}});var ak=_((CBe,ok)=>{"use strict";ok.exports={WRITE_INDEX:4,READ_INDEX:8}});var dk=_((OBe,fk)=>{"use strict";var{version:iie}=nk(),{EventEmitter:sie}=require("events"),{Worker:oie}=require("worker_threads"),{join:aie}=require("path"),{pathToFileURL:cie}=require("url"),{wait:uie}=sk(),{WRITE_INDEX:sn,READ_INDEX:Ai}=ak(),lie=require("buffer"),fie=require("assert"),ee=Symbol("kImpl"),die=lie.constants.MAX_STRING_LENGTH,Ul=class{constructor(e){this._value=e}deref(){return this._value}},Fh=class{register(){}unregister(){}},pie=process.env.NODE_V8_COVERAGE?Fh:global.FinalizationRegistry||Fh,hie=process.env.NODE_V8_COVERAGE?Ul:global.WeakRef||Ul,ck=new pie(t=>{t.exited||t.terminate()});function mie(t,e){let{filename:r,workerData:n}=e,s=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||aie(__dirname,"lib","worker.js"),o=new oie(s,{...e.workerOpts,trackUnmanagedFds:!1,workerData:{filename:r.indexOf("file://")===0?r:cie(r).href,dataBuf:t[ee].dataBuf,stateBuf:t[ee].stateBuf,workerData:{$context:{threadStreamVersion:iie},...n}}});return o.stream=new Ul(t),o.on("message",yie),o.on("exit",lk),ck.register(t,o),o}function uk(t){fie(!t[ee].sync),t[ee].needDrain&&(t[ee].needDrain=!1,t.emit("drain"))}function jh(t){let e=Atomics.load(t[ee].state,sn),r=t[ee].data.length-e;if(r>0){if(t[ee].buf.length===0){t[ee].flushing=!1,t[ee].ending?C_(t):t[ee].needDrain&&process.nextTick(uk,t);return}let n=t[ee].buf.slice(0,r),i=Buffer.byteLength(n);i<=r?(t[ee].buf=t[ee].buf.slice(r),Mh(t,n,jh.bind(null,t))):t.flush(()=>{if(!t.destroyed){for(Atomics.store(t[ee].state,Ai,0),Atomics.store(t[ee].state,sn,0);i>t[ee].data.length;)r=r/2,n=t[ee].buf.slice(0,r),i=Buffer.byteLength(n);t[ee].buf=t[ee].buf.slice(r),Mh(t,n,jh.bind(null,t))}})}else if(r===0){if(e===0&&t[ee].buf.length===0)return;t.flush(()=>{Atomics.store(t[ee].state,Ai,0),Atomics.store(t[ee].state,sn,0),jh(t)})}else Ti(t,new Error("overwritten"))}function yie(t){let e=this.stream.deref();if(e===void 0){this.exited=!0,this.terminate();return}switch(t.code){case"READY":this.stream=new hie(e),e.flush(()=>{e[ee].ready=!0,e.emit("ready")});break;case"ERROR":Ti(e,t.err);break;case"EVENT":Array.isArray(t.args)?e.emit(t.name,...t.args):e.emit(t.name,t.args);break;case"WARNING":process.emitWarning(t.err);break;default:Ti(e,new Error("this should not happen: "+t.code))}}function lk(t){let e=this.stream.deref();e!==void 0&&(ck.unregister(e),e.worker.exited=!0,e.worker.off("exit",lk),Ti(e,t!==0?new Error("the worker thread exited"):null))}var $_=class extends sie{constructor(e={}){if(super(),e.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[ee]={},this[ee].stateBuf=new SharedArrayBuffer(128),this[ee].state=new Int32Array(this[ee].stateBuf),this[ee].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[ee].data=Buffer.from(this[ee].dataBuf),this[ee].sync=e.sync||!1,this[ee].ending=!1,this[ee].ended=!1,this[ee].needDrain=!1,this[ee].destroyed=!1,this[ee].flushing=!1,this[ee].ready=!1,this[ee].finished=!1,this[ee].errored=null,this[ee].closed=!1,this[ee].buf="",this.worker=mie(this,e),this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(e){if(this[ee].destroyed)return R_(this,new Error("the worker has exited")),!1;if(this[ee].ending)return R_(this,new Error("the worker is ending")),!1;if(this[ee].flushing&&this[ee].buf.length+e.length>=die)try{T_(this),this[ee].flushing=!0}catch(r){return Ti(this,r),!1}if(this[ee].buf+=e,this[ee].sync)try{return T_(this),!0}catch(r){return Ti(this,r),!1}return this[ee].flushing||(this[ee].flushing=!0,setImmediate(jh,this)),this[ee].needDrain=this[ee].data.length-this[ee].buf.length-Atomics.load(this[ee].state,sn)<=0,!this[ee].needDrain}end(){this[ee].destroyed||(this[ee].ending=!0,C_(this))}flush(e){if(this[ee].destroyed){typeof e=="function"&&process.nextTick(e,new Error("the worker has exited"));return}let r=Atomics.load(this[ee].state,sn);uie(this[ee].state,Ai,r,1/0,(n,i)=>{if(n){Ti(this,n),process.nextTick(e,n);return}if(i==="not-equal"){this.flush(e);return}process.nextTick(e)})}flushSync(){this[ee].destroyed||(T_(this),P_(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[ee].ready}get destroyed(){return this[ee].destroyed}get closed(){return this[ee].closed}get writable(){return!this[ee].destroyed&&!this[ee].ending}get writableEnded(){return this[ee].ending}get writableFinished(){return this[ee].finished}get writableNeedDrain(){return this[ee].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[ee].errored}};function R_(t,e){setImmediate(()=>{t.emit("error",e)})}function Ti(t,e){t[ee].destroyed||(t[ee].destroyed=!0,e&&(t[ee].errored=e,R_(t,e)),t.worker.exited?setImmediate(()=>{t[ee].closed=!0,t.emit("close")}):t.worker.terminate().catch(()=>{}).then(()=>{t[ee].closed=!0,t.emit("close")}))}function Mh(t,e,r){let n=Atomics.load(t[ee].state,sn),i=Buffer.byteLength(e);return t[ee].data.write(e,n),Atomics.store(t[ee].state,sn,n+i),Atomics.notify(t[ee].state,sn),r(),!0}function C_(t){if(!(t[ee].ended||!t[ee].ending||t[ee].flushing)){t[ee].ended=!0;try{t.flushSync();let e=Atomics.load(t[ee].state,Ai);Atomics.store(t[ee].state,sn,-1),Atomics.notify(t[ee].state,sn);let r=0;for(;e!==-1;){if(Atomics.wait(t[ee].state,Ai,e,1e3),e=Atomics.load(t[ee].state,Ai),e===-2){Ti(t,new Error("end() failed"));return}if(++r===10){Ti(t,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{t[ee].finished=!0,t.emit("finish")})}catch(e){Ti(t,e)}}}function T_(t){let e=()=>{t[ee].ending?C_(t):t[ee].needDrain&&process.nextTick(uk,t)};for(t[ee].flushing=!1;t[ee].buf.length!==0;){let r=Atomics.load(t[ee].state,sn),n=t[ee].data.length-r;if(n===0){P_(t),Atomics.store(t[ee].state,Ai,0),Atomics.store(t[ee].state,sn,0);continue}else if(n<0)throw new Error("overwritten");let i=t[ee].buf.slice(0,n),s=Buffer.byteLength(i);if(s<=n)t[ee].buf=t[ee].buf.slice(n),Mh(t,i,e);else{for(P_(t),Atomics.store(t[ee].state,Ai,0),Atomics.store(t[ee].state,sn,0);s>t[ee].buf.length;)n=n/2,i=t[ee].buf.slice(0,n),s=Buffer.byteLength(i);t[ee].buf=t[ee].buf.slice(n),Mh(t,i,e)}}}function P_(t){if(t[ee].flushing)throw new Error("unable to flush while flushing");let e=Atomics.load(t[ee].state,sn),r=0;for(;;){let n=Atomics.load(t[ee].state,Ai);if(n===-2)throw Error("_flushSync failed");if(n!==e)Atomics.wait(t[ee].state,Ai,n,1e3);else break;if(++r===10)throw new Error("_flushSync took too long (10s)")}}fk.exports=$_});var N_=_((IBe,pk)=>{"use strict";var{createRequire:gie}=require("module"),vie=p_(),{join:O_,isAbsolute:xie,sep:_ie}=require("path"),bie=E_(),I_=A_(),Eie=dk();function wie(t){I_.register(t,Aie),I_.registerBeforeExit(t,Tie),t.on("close",function(){I_.unregister(t)})}function Sie(t,e,r){let n=new Eie({filename:t,workerData:e,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&&wie(n)}function s(){n.closed||(n.flushSync(),bie(100),n.end())}return n}function Aie(t){t.ref(),t.flushSync(),t.end(),t.once("close",function(){t.unref()})}function Tie(t){t.flushSync()}function $ie(t){let{pipeline:e,targets:r,levels:n,dedupe:i,options:s={},worker:o={},caller:a=vie()}=t,c=typeof a=="string"?[a]:a,l="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},u=t.target;if(u&&r)throw new Error("only one of target or targets can be specified");return r?(u=l["pino-worker"]||O_(__dirname,"worker.js"),s.targets=r.map(d=>({...d,target:f(d.target)}))):e&&(u=l["pino-pipeline-worker"]||O_(__dirname,"worker-pipeline.js"),s.targets=e.map(d=>({...d,target:f(d.target)}))),n&&(s.levels=n),i&&(s.dedupe=i),s.pinoWillSendConfig=!0,Sie(f(u),s,o);function f(d){if(d=l[d]||d,xie(d)||d.indexOf("file://")===0)return d;if(d==="pino/file")return O_(__dirname,"..","file.js");let h;for(let p of c)try{let m=p==="node:repl"?process.cwd()+_ie:p;h=gie(m).resolve(d);break}catch{continue}if(!h)throw new Error(`unable to determine transport target for "${d}"`);return h}}pk.exports=$ie});var zh=_((NBe,Sk)=>{"use strict";var hk=zN(),{mapHttpRequest:Rie,mapHttpResponse:Pie}=d_(),D_=JN(),mk=A_(),{lsCacheSym:Cie,chindingsSym:vk,writeSym:yk,serializersSym:xk,formatOptsSym:gk,endSym:Oie,stringifiersSym:_k,stringifySym:bk,stringifySafeSym:L_,wildcardFirstSym:Ek,nestedKeySym:Iie,formattersSym:wk,messageKeySym:Nie,errorKeySym:kie,nestedKeyStrSym:Die,msgPrefixSym:Bh}=Lc(),{isMainThread:Lie}=require("worker_threads"),qie=N_();function jc(){}function jie(t,e){if(!e)return r;return function(...i){e.call(this,i,r,t)};function r(n,...i){if(typeof n=="object"){let s=n;n!==null&&(n.method&&n.headers&&n.socket?n=Rie(n):typeof n.setHeader=="function"&&(n=Pie(n)));let o;s===null&&i.length===0?o=[null]:(s=i.shift(),o=i),typeof this[Bh]=="string"&&s!==void 0&&s!==null&&(s=this[Bh]+s),this[yk](n,hk(s,o,this[gk]),t)}else{let s=n===void 0?i.shift():n;typeof this[Bh]=="string"&&s!==void 0&&s!==null&&(s=this[Bh]+s),this[yk](null,hk(s,i,this[gk]),t)}}}function k_(t){let e="",r=0,n=!1,i=255,s=t.length;if(s>100)return JSON.stringify(t);for(var o=0;o=32;o++)i=t.charCodeAt(o),(i===34||i===92)&&(e+=t.slice(r,o)+"\\",r=o,n=!0);return n?e+=t.slice(r):e=t,i<32?JSON.stringify(t):'"'+e+'"'}function Fie(t,e,r,n){let i=this[bk],s=this[L_],o=this[_k],a=this[Oie],c=this[vk],l=this[xk],u=this[wk],f=this[Nie],d=this[kie],h=this[Cie][r]+n;h=h+c;let p;u.log&&(t=u.log(t));let m=o[Ek],g="";for(let b in t)if(p=t[b],Object.prototype.hasOwnProperty.call(t,b)&&p!==void 0){l[b]?p=l[b](p):b===d&&l.err&&(p=l.err(p));let x=o[b]||m;switch(typeof p){case"undefined":case"function":continue;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":x&&(p=x(p));break;case"string":p=(x||k_)(p);break;default:p=(x||i)(p,s)}if(p===void 0)continue;let v=k_(b);g+=","+v+":"+p}let y="";if(e!==void 0){p=l[f]?l[f](e):e;let b=o[f]||m;switch(typeof p){case"function":break;case"number":Number.isFinite(p)===!1&&(p=null);case"boolean":b&&(p=b(p)),y=',"'+f+'":'+p;break;case"string":p=(b||k_)(p),y=',"'+f+'":'+p;break;default:p=(b||i)(p,s),y=',"'+f+'":'+p}}return this[Iie]&&g?h+this[Die]+g.slice(1)+"}"+y+a:h+g+y+a}function Mie(t,e){let r,n=t[vk],i=t[bk],s=t[L_],o=t[_k],a=o[Ek],c=t[xk],l=t[wk].bindings;e=l(e);for(let u in e)if(r=e[u],(u!=="level"&&u!=="serializers"&&u!=="formatters"&&u!=="customLevels"&&e.hasOwnProperty(u)&&r!==void 0)===!0){if(r=c[u]?c[u](r):r,r=(o[u]||a||i)(r,s),r===void 0)continue;n+=',"'+u+'":'+r}return n}function Bie(t){return t.write!==t.constructor.prototype.write}var Uie=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function Uh(t){let e=new D_(t);return e.on("error",r),!Uie&&!t.sync&&Lie&&(mk.register(e,zie),e.on("close",function(){mk.unregister(e)})),e;function r(n){if(n.code==="EPIPE"){e.write=jc,e.end=jc,e.flushSync=jc,e.destroy=jc;return}e.removeListener("error",r),e.emit("error",n)}}function zie(t,e){t.destroyed||(e==="beforeExit"?(t.flush(),t.on("drain",function(){t.end()})):t.flushSync())}function Hie(t){return function(r,n,i={},s){if(typeof i=="string")s=Uh({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=Uh({dest:s})}else if(i instanceof D_||i.writable||i._writableState)s=i,i={};else if(i.transport){if(i.transport instanceof D_||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 c;i.customLevels&&(c=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)),s=qie({caller:n,...i.transport,levels:c})}if(i=Object.assign({},t,i),i.serializers=Object.assign({},t.serializers,i.serializers),i.formatters=Object.assign({},t.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:o,onChild:a}=i;return o===!1&&(i.level="silent"),a||(i.onChild=jc),s||(Bie(process.stdout)?s=process.stdout:s=Uh({fd:process.stdout.fd||1})),{opts:i,stream:s}}}function Vie(t,e){try{return JSON.stringify(t)}catch{try{return(e||this[L_])(t)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Wie(t,e,r){return{level:t,bindings:e,log:r}}function Gie(t){let e=Number(t);return typeof t=="string"&&Number.isFinite(e)?e:t===void 0?1:t}Sk.exports={noop:jc,buildSafeSonicBoom:Uh,asChindings:Mie,asJson:Fie,genLog:jie,createArgsNormalizer:Hie,stringify:Vie,buildFormatters:Wie,normalizeDestFileDescriptor:Gie}});var Hh=_((kBe,Ak)=>{var Kie={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Xie={ASC:"ASC",DESC:"DESC"};Ak.exports={DEFAULT_LEVELS:Kie,SORTING_ORDER:Xie}});var F_=_((DBe,Pk)=>{"use strict";var{lsCacheSym:Yie,levelValSym:q_,useOnlyCustomLevelsSym:Jie,streamSym:Qie,formattersSym:Zie,hooksSym:ese,levelCompSym:Tk}=Lc(),{noop:tse,genLog:da}=zh(),{DEFAULT_LEVELS:$i,SORTING_ORDER:$k}=Hh(),Rk={fatal:t=>{let e=da($i.fatal,t);return function(...r){let n=this[Qie];if(e.call(this,...r),typeof n.flushSync=="function")try{n.flushSync()}catch{}}},error:t=>da($i.error,t),warn:t=>da($i.warn,t),info:t=>da($i.info,t),debug:t=>da($i.debug,t),trace:t=>da($i.trace,t)},j_=Object.keys($i).reduce((t,e)=>(t[$i[e]]=e,t),{}),rse=Object.keys(j_).reduce((t,e)=>(t[e]='{"level":'+Number(e),t),{});function nse(t){let e=t[Zie].level,{labels:r}=t.levels,n={};for(let i in r){let s=e(r[i],Number(i));n[i]=JSON.stringify(s).slice(0,-1)}return t[Yie]=n,t}function ise(t,e){if(e)return!1;switch(t){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function sse(t){let{labels:e,values:r}=this.levels;if(typeof t=="number"){if(e[t]===void 0)throw Error("unknown level value"+t);t=e[t]}if(r[t]===void 0)throw Error("unknown level "+t);let n=this[q_],i=this[q_]=r[t],s=this[Jie],o=this[Tk],a=this[ese].logMethod;for(let c in r){if(o(r[c],i)===!1){this[c]=tse;continue}this[c]=ise(c,s)?Rk[c](a):da(r[c],a)}this.emit("level-change",t,i,e[n],n,this)}function ose(t){let{levels:e,levelVal:r}=this;return e&&e.labels?e.labels[r]:""}function ase(t){let{values:e}=this.levels,r=e[t];return r!==void 0&&this[Tk](r,this[q_])}function cse(t,e,r){return t===$k.DESC?e<=r:e>=r}function use(t){return typeof t=="string"?cse.bind(null,t):t}function lse(t=null,e=!1){let r=t?Object.keys(t).reduce((s,o)=>(s[t[o]]=o,s),{}):null,n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),e?null:j_,r),i=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),e?null:$i,t);return{labels:n,values:i}}function fse(t,e,r){if(typeof t=="number"){if(![].concat(Object.keys(e||{}).map(s=>e[s]),r?[]:Object.keys(j_).map(s=>+s),1/0).includes(t))throw Error(`default level:${t} must be included in custom levels`);return}let n=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),r?null:$i,e);if(!(t in n))throw Error(`default level:${t} must be included in custom levels`)}function dse(t,e){let{labels:r,values:n}=t;for(let i in e){if(i in n)throw Error("levels cannot be overridden");if(e[i]in r)throw Error("pre-existing level values cannot be used for new levels")}}function pse(t){if(typeof t!="function"&&!(typeof t=="string"&&Object.values($k).includes(t)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}Pk.exports={initialLsCache:rse,genLsCache:nse,levelMethods:Rk,getLevel:ose,setLevel:sse,isLevelEnabled:ase,mappings:lse,assertNoLevelCollisions:dse,assertDefaultLevelFound:fse,genLevelComparison:use,assertLevelComparison:pse}});var M_=_((LBe,Ck)=>{"use strict";Ck.exports={version:"8.21.0"}});var Bk=_((jBe,Mk)=>{"use strict";var{EventEmitter:hse}=require("events"),{lsCacheSym:mse,levelValSym:yse,setLevelSym:U_,getLevelSym:Ok,chindingsSym:z_,parsedChindingsSym:gse,mixinSym:vse,asJsonSym:Lk,writeSym:xse,mixinMergeStrategySym:_se,timeSym:bse,timeSliceIndexSym:Ese,streamSym:qk,serializersSym:pa,formattersSym:B_,errorKeySym:wse,messageKeySym:Sse,useOnlyCustomLevelsSym:Ase,needsMetadataGsym:Tse,redactFmtSym:$se,stringifySym:Rse,formatOptsSym:Pse,stringifiersSym:Cse,msgPrefixSym:Ik}=Lc(),{getLevel:Ose,setLevel:Ise,isLevelEnabled:Nse,mappings:kse,initialLsCache:Dse,genLsCache:Lse,assertNoLevelCollisions:qse}=F_(),{asChindings:jk,asJson:jse,buildFormatters:Nk,stringify:kk}=zh(),{version:Fse}=M_(),Mse=__(),Bse=class{},Fk={constructor:Bse,child:Use,bindings:zse,setBindings:Hse,flush:Kse,isLevelEnabled:Nse,version:Fse,get level(){return this[Ok]()},set level(t){this[U_](t)},get levelVal(){return this[yse]},set levelVal(t){throw Error("levelVal is read-only")},[mse]:Dse,[xse]:Wse,[Lk]:jse,[Ok]:Ose,[U_]:Ise};Object.setPrototypeOf(Fk,hse.prototype);Mk.exports=function(){return Object.create(Fk)};var Dk=t=>t;function Use(t,e){if(!t)throw Error("missing bindings for child Pino");e=e||{};let r=this[pa],n=this[B_],i=Object.create(this);if(e.hasOwnProperty("serializers")===!0){i[pa]=Object.create(null);for(let u in r)i[pa][u]=r[u];let c=Object.getOwnPropertySymbols(r);for(var s=0;s{"use strict";var{hasOwnProperty:zl}=Object.prototype,ma=W_();ma.configure=W_;ma.stringify=ma;ma.default=ma;G_.stringify=ma;G_.configure=W_;Hk.exports=ma;var Xse=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function no(t){return t.length<5e3&&!Xse.test(t)?`"${t}"`:JSON.stringify(t)}function H_(t,e){if(t.length>200||e)return t.sort(e);for(let r=1;rn;)t[i]=t[i-1],i--;t[i]=n}return t}var Yse=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function V_(t){return Yse.call(t)!==void 0&&t.length!==0}function Uk(t,e,r){t.length= 1`)}return r===void 0?1/0:r}function ha(t){return t===1?"1 item":`${t} items`}function eoe(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}function toe(t){if(zl.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)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 W_(t){t={...t};let e=toe(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=Jse(t),n=Zse(t,"bigint"),i=Qse(t),s=typeof i=="function"?i:void 0,o=zk(t,"maximumDepth"),a=zk(t,"maximumBreadth");function c(h,p,m,g,y,b){let x=p[h];switch(typeof x=="object"&&x!==null&&typeof x.toJSON=="function"&&(x=x.toJSON(h)),x=g.call(p,h,x),typeof x){case"string":return no(x);case"object":{if(x===null)return"null";if(m.indexOf(x)!==-1)return r;let v="",E=",",S=b;if(Array.isArray(x)){if(x.length===0)return"[]";if(oa){let G=x.length-a-1;v+=`${E}"... ${ha(G)} not stringified"`}return y!==""&&(v+=` -${S}`),m.pop(),`[${v}]`}let w=Object.keys(x),A=w.length;if(A===0)return"{}";if(oa){let C=A-a;v+=`${$}"...":${T}"${ha(C)} not stringified"`,$=E}return y!==""&&$.length>1&&(v=` -${b}${v} -${S}`),m.pop(),`{${v}}`}case"number":return isFinite(x)?String(x):e?e(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(x);default:return e?e(x):void 0}}function l(h,p,m,g,y,b){switch(typeof p=="object"&&p!==null&&typeof p.toJSON=="function"&&(p=p.toJSON(h)),typeof p){case"string":return no(p);case"object":{if(p===null)return"null";if(m.indexOf(p)!==-1)return r;let x=b,v="",E=",";if(Array.isArray(p)){if(p.length===0)return"[]";if(oa){let k=p.length-a-1;v+=`${E}"... ${ha(k)} not stringified"`}return y!==""&&(v+=` -${x}`),m.pop(),`[${v}]`}m.push(p);let S="";y!==""&&(b+=y,E=`, -${b}`,S=" ");let w="";for(let A of g){let T=l(A,p[A],m,g,y,b);T!==void 0&&(v+=`${w}${no(A)}:${S}${T}`,w=E)}return y!==""&&w.length>1&&(v=` -${b}${v} -${x}`),m.pop(),`{${v}}`}case"number":return isFinite(p)?String(p):e?e(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return e?e(p):void 0}}function u(h,p,m,g,y){switch(typeof p){case"string":return no(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(h),typeof p!="object")return u(h,p,m,g,y);if(p===null)return"null"}if(m.indexOf(p)!==-1)return r;let b=y;if(Array.isArray(p)){if(p.length===0)return"[]";if(oa){let D=p.length-a-1;T+=`${$}"... ${ha(D)} not stringified"`}return T+=` -${b}`,m.pop(),`[${T}]`}let x=Object.keys(p),v=x.length;if(v===0)return"{}";if(oa){let T=v-a;S+=`${w}"...": "${ha(T)} not stringified"`,w=E}return w!==""&&(S=` -${y}${S} -${b}`),m.pop(),`{${S}}`}case"number":return isFinite(p)?String(p):e?e(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return e?e(p):void 0}}function f(h,p,m){switch(typeof p){case"string":return no(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 g="",y=p.length!==void 0;if(y&&Array.isArray(p)){if(p.length===0)return"[]";if(oa){let T=p.length-a-1;g+=`,"... ${ha(T)} not stringified"`}return m.pop(),`[${g}]`}let b=Object.keys(p),x=b.length;if(x===0)return"{}";if(oa){let S=x-a;g+=`${v}"...":"${ha(S)} not stringified"`}return m.pop(),`{${g}}`}case"number":return isFinite(p)?String(p):e?e(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(n)return String(p);default:return e?e(p):void 0}}function d(h,p,m){if(arguments.length>1){let g="";if(typeof m=="number"?g=" ".repeat(Math.min(m,10)):typeof m=="string"&&(g=m.slice(0,10)),p!=null){if(typeof p=="function")return c("",{"":h},[],p,g,"");if(Array.isArray(p))return l("",h,[],eoe(p),g,"")}if(g.length!==0)return u("",h,[],g,"")}return f("",h,[])}return d}});var Kk=_((FBe,Gk)=>{"use strict";var K_=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:Wk}=Hh(),roe=Wk.info;function noe(t,e){let r=0;t=t||[],e=e||{dedupe:!1};let n=Object.create(Wk);n.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(f=>{n[f]=e.levels[f]});let i={write:s,add:c,emit:o,flushSync:a,end:l,minLevel:0,streams:[],clone:u,[K_]:!0,streamLevels:n};return Array.isArray(t)?t.forEach(c,i):c.call(i,t),t=null,i;function s(f){let d,h=this.lastLevel,{streams:p}=this,m=0,g;for(let y=soe(p.length,e.dedupe);aoe(y,p.length,e.dedupe);y=ooe(y,e.dedupe))if(d=p[y],d.level<=h){if(m!==0&&m!==d.level)break;if(g=d.stream,g[K_]){let{lastTime:b,lastMsg:x,lastObj:v,lastLogger:E}=this;g.lastLevel=h,g.lastTime=b,g.lastMsg=x,g.lastObj=v,g.lastLogger=E}g.write(f),e.dedupe&&(m=d.level)}else if(!e.dedupe)break}function o(...f){for(let{stream:d}of this.streams)typeof d.emit=="function"&&d.emit(...f)}function a(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync()}function c(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,g;typeof f.levelVal=="number"?g=f.levelVal:typeof f.level=="string"?g=m[f.level]:typeof f.level=="number"?g=f.level:g=roe;let y={stream:h,level:g,levelVal:void 0,id:r++};return p.unshift(y),p.sort(ioe),this.minLevel=p[0].level,i}function l(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync(),f.end()}function u(f){let d=new Array(this.streams.length);for(let h=0;h=0:t{"use strict";var coe=require("os"),rD=d_(),uoe=p_(),loe=__(),nD=BN(),foe=Bk(),iD=Lc(),{configure:doe}=Vk(),{assertDefaultLevelFound:poe,mappings:sD,genLsCache:hoe,genLevelComparison:moe,assertLevelComparison:yoe}=F_(),{DEFAULT_LEVELS:goe,SORTING_ORDER:voe}=Hh(),{createArgsNormalizer:xoe,asChindings:_oe,buildSafeSonicBoom:Xk,buildFormatters:boe,stringify:X_,normalizeDestFileDescriptor:Yk,noop:Eoe}=zh(),{version:woe}=M_(),{chindingsSym:Jk,redactFmtSym:Soe,serializersSym:Qk,timeSym:Aoe,timeSliceIndexSym:Toe,streamSym:$oe,stringifySym:Zk,stringifySafeSym:Y_,stringifiersSym:eD,setLevelSym:Roe,endSym:Poe,formatOptsSym:Coe,messageKeySym:Ooe,errorKeySym:Ioe,nestedKeySym:Noe,mixinSym:koe,levelCompSym:Doe,useOnlyCustomLevelsSym:Loe,formattersSym:tD,hooksSym:qoe,nestedKeyStrSym:joe,mixinMergeStrategySym:Foe,msgPrefixSym:Moe}=iD,{epochTime:oD,nullTime:Boe}=nD,{pid:Uoe}=process,zoe=coe.hostname(),Hoe=rD.err,Voe={level:"info",levelComparison:voe.ASC,levels:goe,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Uoe,hostname:zoe},serializers:Object.assign(Object.create(null),{err:Hoe}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:oD,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},Woe=xoe(Voe),Goe=Object.assign(Object.create(null),rD);function J_(...t){let e={},{opts:r,stream:n}=Woe(e,uoe(),...t),{redact:i,crlf:s,serializers:o,timestamp:a,messageKey:c,errorKey:l,nestedKey:u,base:f,name:d,level:h,customLevels:p,levelComparison:m,mixin:g,mixinMergeStrategy:y,useOnlyCustomLevels:b,formatters:x,hooks:v,depthLimit:E,edgeLimit:S,onChild:w,msgPrefix:A}=r,T=doe({maximumDepth:E,maximumBreadth:S}),$=boe(x.level,x.bindings,x.log),k=X_.bind({[Y_]:T}),C=i?loe(i,k):{},I=i?{stringify:C[Soe]}:{stringify:k},D="}"+(s?`\r -`:` -`),G=_oe.bind(null,{[Jk]:"",[Qk]:o,[eD]:C,[Zk]:X_,[Y_]:T,[tD]:$}),B="";f!==null&&(d===void 0?B=G(f):B=G(Object.assign({},f,{name:d})));let z=a instanceof Function?a:a?oD:Boe,X=z().indexOf(":")+1;if(b&&!p)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(g&&typeof g!="function")throw Error(`Unknown mixin type "${typeof g}" - expected "function"`);if(A&&typeof A!="string")throw Error(`Unknown msgPrefix type "${typeof A}" - expected "string"`);poe(h,p,b);let j=sD(p,b);typeof n.emit=="function"&&n.emit("message",{code:"PINO_CONFIG",config:{levels:j,messageKey:c,errorKey:l}}),yoe(m);let Y=moe(m);return Object.assign(e,{levels:j,[Doe]:Y,[Loe]:b,[$oe]:n,[Aoe]:z,[Toe]:X,[Zk]:X_,[Y_]:T,[eD]:C,[Poe]:D,[Coe]:I,[Ooe]:c,[Ioe]:l,[Noe]:u,[joe]:u?`,${JSON.stringify(u)}:{`:"",[Qk]:o,[koe]:g,[Foe]:y,[Jk]:B,[tD]:$,[qoe]:v,silent:Eoe,onChild:w,[Moe]:A}),Object.setPrototypeOf(e,foe()),hoe(e),e[Roe](h),e}Rn.exports=J_;Rn.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=Yk(t.dest||process.stdout.fd),Xk(t)):Xk({dest:Yk(t),minLength:0});Rn.exports.transport=N_();Rn.exports.multistream=Kk();Rn.exports.levels=sD();Rn.exports.stdSerializers=Goe;Rn.exports.stdTimeFunctions=Object.assign({},nD);Rn.exports.symbols=iD;Rn.exports.version=woe;Rn.exports.default=J_;Rn.exports.pino=J_});var Hl=_((BBe,dD)=>{"use strict";var Koe=JI(),Vh=aD(),{serializersSym:cD}=Vh.symbols,{FST_ERR_LOG_INVALID_DESTINATION:Xoe,FST_ERR_LOG_INVALID_LOGGER:Yoe}=Ar();function uD(t){if(t.stream&&t.file)throw new Xoe;t.file&&(t.stream=Vh.destination(t.file),delete t.file);let e=t.logger,r=t.genReqId,n=null;return e?(t.logger=void 0,t.genReqId=void 0,e[cD]&&(t.serializers=Object.assign({},t.serializers,e[cD])),n=e.child({},t),t.logger=e,t.genReqId=r):n=Vh(t,t.stream),n}var Q_={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:Vh.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function Joe(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function Qoe(t){if(!t.logger){let n=Koe;return n.child=()=>n,{logger:n,hasLogger:!1}}if(lD(t.logger))return{logger:uD({logger:t.logger,serializers:Object.assign({},Q_,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(n=>{Object.defineProperty(e,n,{value:t.logger[n],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Q_,e.serializers),t.logger=e,{logger:uD(t.logger),hasLogger:!0}}function lD(t,e){let r=["info","error","debug","fatal","warn","trace","child"],n=t?r.filter(i=>!t[i]||typeof t[i]!="function"):r;if(n.length){if(n.length===r.length&&!e)return!1;throw Yoe(n.join(","))}else return!0}function Zoe(t,e,r,n,i){let s={[t.requestIdLogLabel]:n},o=t.childLoggerFactory.call(t.server,e,s,i||{},r);return t.childLoggerFactory!==fD&&lD(o,!0),o}function fD(t,e,r){return t.child(e,r)}dD.exports={createLogger:Qoe,createChildLogger:Zoe,defaultChildLoggerFactory:fD,serializers:Q_,now:Joe}});var Wh=_((UBe,pD)=>{"use strict";pD.exports=eae;function Fc(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function eae(t){if(t=t||{},t.circles)return tae(t);let e=new Map;if(e.set(Date,o=>new Date(o)),e.set(Map,(o,a)=>new Map(n(Array.from(o),a))),e.set(Set,(o,a)=>new Set(n(Array.from(o),a))),t.constructorHandlers)for(let o of t.constructorHandlers)e.set(o[0],o[1]);let r=null;return t.proto?s:i;function n(o,a){let c=Object.keys(o),l=new Array(c.length);for(let u=0;unew Date(c)),n.set(Map,(c,l)=>new Map(s(Array.from(c),l))),n.set(Set,(c,l)=>new Set(s(Array.from(c),l))),t.constructorHandlers)for(let c of t.constructorHandlers)n.set(c[0],c[1]);let i=null;return t.proto?a:o;function s(c,l){let u=Object.keys(c),f=new Array(u.length);for(let d=0;d{"use strict";var rae=Wh()({circles:!1,proto:!0}),{kSchemaVisited:hD,kSchemaResponse:nae}=or(),eb=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:iae,FST_ERR_SCH_ALREADY_PRESENT:sae,FST_ERR_SCH_DUPLICATE:oae,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:aae}=Ar(),yD=["params","body","querystring","query","headers"];function Gh(t){this.store=t||{}}Gh.prototype.add=function(t){let e=rae(t.isFluentSchema||t.isFluentJSONSchema||t[eb]?t.valueOf():t),r=e.$id;if(!r)throw new iae;if(this.store[r])throw new sae(r);this.store[r]=e};Gh.prototype.getSchemas=function(){return Object.assign({},this.store)};Gh.prototype.getSchema=function(t){return this.store[t]};function mD(t){return typeof t=="object"&&Object.getPrototypeOf(t)!==Object.prototype}function cae(t,e){if(t[hD])return t;if(t.query){if(t.querystring)throw new oae("querystring");t.querystring=t.query}uae(t);for(let r of yD){let n=t[r];n&&!mD(n)&&(t[r]=Z_(n,e.jsonShorthand))}if(t.response){let r=Object.keys(t.response);for(let n of r){if(mD(t.response[n]))continue;let i=t.response[n].content,s=!1;if(i){let o=Object.keys(i);for(let a=0;a{"use strict";var fae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;xD.exports=class vD{constructor(e){switch(e&&e.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=e}asInteger(e){if(Number.isInteger(e))return""+e;if(typeof e=="bigint")return e.toString();let r=this.parseInteger(e);if(r===1/0||r===-1/0||r!==r)throw new Error(`The value "${e}" cannot be converted to an integer.`);return""+r}asNumber(e){let r=Number(e);if(r!==r)throw new Error(`The value "${e}" cannot be converted to a number.`);return r===1/0||r===-1/0?"null":""+r}asBoolean(e){return e&&"true"||"false"}asDateTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date-time.`)}asDate(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date.`)}asTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a time.`)}asString(e){let r=e.length;if(r<42){let i="",s=-1,o=255;for(var n=0;n=55296&&o<=57343)return JSON.stringify(e);return s===-1&&'"'+e+'"'||'"'+i+e.slice(s)+'"'}else return r<5e3&&fae.test(e)===!1?'"'+e+'"':JSON.stringify(e)}asUnsafeString(e){return'"'+e+'"'}getState(){return this._options}static restoreFromState(e){return new vD(e)}}});var Kl=_(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.regexpCode=it.getEsmExportName=it.getProperty=it.safeStringify=it.stringify=it.strConcat=it.addCodeArg=it.str=it._=it.nil=it._Code=it.Name=it.IDENTIFIER=it._CodeOrName=void 0;var Wl=class{};it._CodeOrName=Wl;it.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ya=class extends Wl{constructor(e){if(super(),!it.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};it.Name=ya;var Pn=class extends Wl{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof ya&&(r[n.str]=(r[n.str]||0)+1),r),{})}};it._Code=Pn;it.nil=new Pn("");function _D(t,...e){let r=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.ValueScope=an.ValueScopeName=an.Scope=an.varKinds=an.UsedValueState=void 0;var on=Kl(),ib=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Kh;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Kh||(an.UsedValueState=Kh={}));an.varKinds={const:new on.Name("const"),let:new on.Name("let"),var:new on.Name("var")};var Xh=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof on.Name?e:this.name(e)}name(e){return new on.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};an.Scope=Xh;var Yh=class extends on.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,on._)`.${new on.Name(r)}[${n}]`}};an.ValueScopeName=Yh;var _ae=(0,on._)`\n`,sb=class extends Xh{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?_ae:on.nil}}get(){return this._scope}name(e){return new Yh(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let u=a.get(o);if(u)return u}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,on._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=on.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,Kh.Started);let u=r(l);if(u){let f=this.opts.es5?an.varKinds.var:an.varKinds.const;s=(0,on._)`${s}${f} ${l} = ${u};${this.opts._n}`}else if(u=i?.(l))s=(0,on._)`${s}${u}${this.opts._n}`;else throw new ib(l);c.set(l,Kh.Completed)})}return s}};an.ValueScope=sb});var Oe=_(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.or=ke.and=ke.not=ke.CodeGen=ke.operators=ke.varKinds=ke.ValueScopeName=ke.ValueScope=ke.Scope=ke.Name=ke.regexpCode=ke.stringify=ke.getProperty=ke.nil=ke.strConcat=ke.str=ke._=void 0;var Xe=Kl(),ni=ob(),io=Kl();Object.defineProperty(ke,"_",{enumerable:!0,get:function(){return io._}});Object.defineProperty(ke,"str",{enumerable:!0,get:function(){return io.str}});Object.defineProperty(ke,"strConcat",{enumerable:!0,get:function(){return io.strConcat}});Object.defineProperty(ke,"nil",{enumerable:!0,get:function(){return io.nil}});Object.defineProperty(ke,"getProperty",{enumerable:!0,get:function(){return io.getProperty}});Object.defineProperty(ke,"stringify",{enumerable:!0,get:function(){return io.stringify}});Object.defineProperty(ke,"regexpCode",{enumerable:!0,get:function(){return io.regexpCode}});Object.defineProperty(ke,"Name",{enumerable:!0,get:function(){return io.Name}});var e0=ob();Object.defineProperty(ke,"Scope",{enumerable:!0,get:function(){return e0.Scope}});Object.defineProperty(ke,"ValueScope",{enumerable:!0,get:function(){return e0.ValueScope}});Object.defineProperty(ke,"ValueScopeName",{enumerable:!0,get:function(){return e0.ValueScopeName}});Object.defineProperty(ke,"varKinds",{enumerable:!0,get:function(){return e0.varKinds}});ke.operators={GT:new Xe._Code(">"),GTE:new Xe._Code(">="),LT:new Xe._Code("<"),LTE:new Xe._Code("<="),EQ:new Xe._Code("==="),NEQ:new Xe._Code("!=="),NOT:new Xe._Code("!"),OR:new Xe._Code("||"),AND:new Xe._Code("&&"),ADD:new Xe._Code("+")};var fs=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},ab=class extends fs{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?ni.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Bc(this.rhs,e,r)),this}get names(){return this.rhs instanceof Xe._CodeOrName?this.rhs.names:{}}},Jh=class extends fs{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Xe.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Bc(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Xe.Name?{}:{...this.lhs.names};return Zh(e,this.rhs)}},cb=class extends Jh{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},ub=class extends fs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},lb=class extends fs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},fb=class extends fs{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},db=class extends fs{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Bc(this.code,e,r),this}get names(){return this.code instanceof Xe._CodeOrName?this.code.names:{}}},Xl=class extends fs{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(bae(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>xa(e,r.names),{})}},ds=class extends Xl{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},pb=class extends Xl{},Mc=class extends ds{};Mc.kind="else";var ga=class t extends ds{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Mc(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(ED(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Bc(this.condition,e,r),this}get names(){let e=super.names;return Zh(e,this.condition),this.else&&xa(e,this.else.names),e}};ga.kind="if";var va=class extends ds{};va.kind="for";var hb=class extends va{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Bc(this.iteration,e,r),this}get names(){return xa(super.names,this.iteration.names)}},mb=class extends va{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?ni.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=Zh(super.names,this.from);return Zh(e,this.to)}},Qh=class extends va{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Bc(this.iterable,e,r),this}get names(){return xa(super.names,this.iterable.names)}},Yl=class extends ds{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Yl.kind="func";var Jl=class extends Xl{render(e){return"return "+super.render(e)}};Jl.kind="return";var yb=class extends ds{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&xa(e,this.catch.names),this.finally&&xa(e,this.finally.names),e}},Ql=class extends ds{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Ql.kind="catch";var Zl=class extends ds{render(e){return"finally"+super.render(e)}};Zl.kind="finally";var gb=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` -`:""},this._extScope=e,this._scope=new ni.Scope({parent:e}),this._nodes=[new pb]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new ab(e,s,n)),s}const(e,r,n){return this._def(ni.varKinds.const,e,r,n)}let(e,r,n){return this._def(ni.varKinds.let,e,r,n)}var(e,r,n){return this._def(ni.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new Jh(e,r,n))}add(e,r){return this._leafNode(new cb(e,ke.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Xe.nil&&this._leafNode(new db(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,Xe.addCodeArg)(r,i));return r.push("}"),new Xe._Code(r)}if(e,r,n){if(this._blockNode(new ga(e)),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(e){return this._elseNode(new ga(e))}else(){return this._elseNode(new Mc)}endIf(){return this._endBlockNode(ga,Mc)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new hb(e),r)}forRange(e,r,n,i,s=this.opts.es5?ni.varKinds.var:ni.varKinds.let){let o=this._scope.toName(e);return this._for(new mb(s,o,r,n),()=>i(o))}forOf(e,r,n,i=ni.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=r instanceof Xe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Xe._)`${o}.length`,a=>{this.var(s,(0,Xe._)`${o}[${a}]`),n(s)})}return this._for(new Qh("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?ni.varKinds.var:ni.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Xe._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new Qh("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(va)}label(e){return this._leafNode(new ub(e))}break(e){return this._leafNode(new lb(e))}return(e){let r=new Jl;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Jl)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new yb;if(this._blockNode(i),this.code(e),r){let s=this.name("e");this._currNode=i.catch=new Ql(s),r(s)}return n&&(this._currNode=i.finally=new Zl,this.code(n)),this._endBlockNode(Ql,Zl)}throw(e){return this._leafNode(new fb(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){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||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Xe.nil,n,i){return this._blockNode(new Yl(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Yl)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof ga))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};ke.CodeGen=gb;function xa(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Zh(t,e){return e instanceof Xe._CodeOrName?xa(t,e.names):t}function Bc(t,e,r){if(t instanceof Xe.Name)return n(t);if(!i(t))return t;return new Xe._Code(t._items.reduce((s,o)=>(o instanceof Xe.Name&&(o=n(o)),o instanceof Xe._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=r[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function i(s){return s instanceof Xe._Code&&s._items.some(o=>o instanceof Xe.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function bae(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function ED(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Xe._)`!${vb(t)}`}ke.not=ED;var Eae=wD(ke.operators.AND);function wae(...t){return t.reduce(Eae)}ke.and=wae;var Sae=wD(ke.operators.OR);function Aae(...t){return t.reduce(Sae)}ke.or=Aae;function wD(t){return(e,r)=>e===Xe.nil?r:r===Xe.nil?e:(0,Xe._)`${vb(e)} ${t} ${vb(r)}`}function vb(t){return t instanceof Xe.Name?t:(0,Xe._)`(${t})`}});var st=_(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;var gt=Oe(),Tae=Kl();function $ae(t){let e={};for(let r of t)e[r]=!0;return e}qe.toHash=$ae;function Rae(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(TD(t,e),!$D(e,t.self.RULES.all))}qe.alwaysValidSchema=Rae;function TD(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let s in e)i[s]||CD(t,`unknown keyword: "${s}"`)}qe.checkUnknownRules=TD;function $D(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}qe.schemaHasRules=$D;function Pae(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}qe.schemaHasRulesButRef=Pae;function Cae({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,gt._)`${r}`}return(0,gt._)`${t}${e}${(0,gt.getProperty)(n)}`}qe.schemaRefOrVal=Cae;function Oae(t){return RD(decodeURIComponent(t))}qe.unescapeFragment=Oae;function Iae(t){return encodeURIComponent(_b(t))}qe.escapeFragment=Iae;function _b(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=_b;function RD(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=RD;function Nae(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}qe.eachItem=Nae;function SD({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,o,a)=>{let c=o===void 0?s:o instanceof gt.Name?(s instanceof gt.Name?t(i,s,o):e(i,s,o),o):s instanceof gt.Name?(e(i,o,s),s):r(s,o);return a===gt.Name&&!(c instanceof gt.Name)?n(i,c):c}}qe.mergeEvaluated={props:SD({mergeNames:(t,e,r)=>t.if((0,gt._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,gt._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,gt._)`${r} || {}`).code((0,gt._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,gt._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,gt._)`${r} || {}`),bb(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:PD}),items:SD({mergeNames:(t,e,r)=>t.if((0,gt._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,gt._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,gt._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,gt._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function PD(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,gt._)`{}`);return e!==void 0&&bb(t,r,e),r}qe.evaluatedPropsToName=PD;function bb(t,e,r){Object.keys(r).forEach(n=>t.assign((0,gt._)`${e}${(0,gt.getProperty)(n)}`,!0))}qe.setEvaluated=bb;var AD={};function kae(t,e){return t.scopeValue("func",{ref:e,code:AD[e.code]||(AD[e.code]=new Tae._Code(e.code))})}qe.useFunc=kae;var xb;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(xb||(qe.Type=xb={}));function Dae(t,e,r){if(t instanceof gt.Name){let n=e===xb.Num;return r?n?(0,gt._)`"[" + ${t} + "]"`:(0,gt._)`"['" + ${t} + "']"`:n?(0,gt._)`"/" + ${t}`:(0,gt._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,gt.getProperty)(t).toString():"/"+_b(t)}qe.getErrorPath=Dae;function CD(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}qe.checkStrictMode=CD});var ps=_(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});var $r=Oe(),Lae={data:new $r.Name("data"),valCxt:new $r.Name("valCxt"),instancePath:new $r.Name("instancePath"),parentData:new $r.Name("parentData"),parentDataProperty:new $r.Name("parentDataProperty"),rootData:new $r.Name("rootData"),dynamicAnchors:new $r.Name("dynamicAnchors"),vErrors:new $r.Name("vErrors"),errors:new $r.Name("errors"),this:new $r.Name("this"),self:new $r.Name("self"),scope:new $r.Name("scope"),json:new $r.Name("json"),jsonPos:new $r.Name("jsonPos"),jsonLen:new $r.Name("jsonLen"),jsonPart:new $r.Name("jsonPart")};Eb.default=Lae});var ef=_(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.extendErrors=Rr.resetErrorsCount=Rr.reportExtraError=Rr.reportError=Rr.keyword$DataError=Rr.keywordError=void 0;var Qe=Oe(),t0=st(),Vr=ps();Rr.keywordError={message:({keyword:t})=>(0,Qe.str)`must pass "${t}" keyword validation`};Rr.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Qe.str)`"${t}" keyword must be ${e} ($data)`:(0,Qe.str)`"${t}" keyword is invalid ($data)`};function qae(t,e=Rr.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,allErrors:a}=i,c=ND(t,e,r);n??(o||a)?OD(s,c):ID(i,(0,Qe._)`[${c}]`)}Rr.reportError=qae;function jae(t,e=Rr.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,allErrors:o}=n,a=ND(t,e,r);OD(i,a),s||o||ID(n,Vr.default.vErrors)}Rr.reportExtraError=jae;function Fae(t,e){t.assign(Vr.default.errors,e),t.if((0,Qe._)`${Vr.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Qe._)`${Vr.default.vErrors}.length`,e),()=>t.assign(Vr.default.vErrors,null)))}Rr.resetErrorsCount=Fae;function Mae({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",i,Vr.default.errors,a=>{t.const(o,(0,Qe._)`${Vr.default.vErrors}[${a}]`),t.if((0,Qe._)`${o}.instancePath === undefined`,()=>t.assign((0,Qe._)`${o}.instancePath`,(0,Qe.strConcat)(Vr.default.instancePath,s.errorPath))),t.assign((0,Qe._)`${o}.schemaPath`,(0,Qe.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,Qe._)`${o}.schema`,r),t.assign((0,Qe._)`${o}.data`,n))})}Rr.extendErrors=Mae;function OD(t,e){let r=t.const("err",e);t.if((0,Qe._)`${Vr.default.vErrors} === null`,()=>t.assign(Vr.default.vErrors,(0,Qe._)`[${r}]`),(0,Qe._)`${Vr.default.vErrors}.push(${r})`),t.code((0,Qe._)`${Vr.default.errors}++`)}function ID(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,Qe._)`new ${t.ValidationError}(${e})`):(r.assign((0,Qe._)`${n}.errors`,e),r.return(!1))}var _a={keyword:new Qe.Name("keyword"),schemaPath:new Qe.Name("schemaPath"),params:new Qe.Name("params"),propertyName:new Qe.Name("propertyName"),message:new Qe.Name("message"),schema:new Qe.Name("schema"),parentSchema:new Qe.Name("parentSchema")};function ND(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,Qe._)`{}`:Bae(t,e,r)}function Bae(t,e,r={}){let{gen:n,it:i}=t,s=[Uae(i,r),zae(t,r)];return Hae(t,e,s),n.object(...s)}function Uae({errorPath:t},{instancePath:e}){let r=e?(0,Qe.str)`${t}${(0,t0.getErrorPath)(e,t0.Type.Str)}`:t;return[Vr.default.instancePath,(0,Qe.strConcat)(Vr.default.instancePath,r)]}function zae({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,Qe.str)`${e}/${t}`;return r&&(i=(0,Qe.str)`${i}${(0,t0.getErrorPath)(r,t0.Type.Str)}`),[_a.schemaPath,i]}function Hae(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o,it:a}=t,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:f}=a;n.push([_a.keyword,i],[_a.params,typeof e=="function"?e(t):e||(0,Qe._)`{}`]),c.messages&&n.push([_a.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([_a.schema,o],[_a.parentSchema,(0,Qe._)`${u}${f}`],[Vr.default.data,s]),l&&n.push([_a.propertyName,l])}});var DD=_(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.boolOrEmptySchema=Uc.topBoolOrEmptySchema=void 0;var Vae=ef(),Wae=Oe(),Gae=ps(),Kae={message:"boolean schema is false"};function Xae(t){let{gen:e,schema:r,validateName:n}=t;r===!1?kD(t,!1):typeof r=="object"&&r.$async===!0?e.return(Gae.default.data):(e.assign((0,Wae._)`${n}.errors`,null),e.return(!0))}Uc.topBoolOrEmptySchema=Xae;function Yae(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),kD(t)):r.var(e,!0)}Uc.boolOrEmptySchema=Yae;function kD(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Vae.reportError)(i,Kae,void 0,e)}});var wb=_(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.getRules=zc.isJSONType=void 0;var Jae=["string","number","integer","boolean","null","object","array"],Qae=new Set(Jae);function Zae(t){return typeof t=="string"&&Qae.has(t)}zc.isJSONType=Zae;function ece(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}zc.getRules=ece});var Sb=_(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.shouldUseRule=so.shouldUseGroup=so.schemaHasRulesForType=void 0;function tce({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&LD(t,n)}so.schemaHasRulesForType=tce;function LD(t,e){return e.rules.some(r=>qD(t,r))}so.shouldUseGroup=LD;function qD(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}so.shouldUseRule=qD});var tf=_(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.reportTypeError=Pr.checkDataTypes=Pr.checkDataType=Pr.coerceAndCheckDataType=Pr.getJSONTypes=Pr.getSchemaTypes=Pr.DataType=void 0;var rce=wb(),nce=Sb(),ice=ef(),Re=Oe(),jD=st(),Hc;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Hc||(Pr.DataType=Hc={}));function sce(t){let e=FD(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Pr.getSchemaTypes=sce;function FD(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(rce.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Pr.getJSONTypes=FD;function oce(t,e){let{gen:r,data:n,opts:i}=t,s=ace(e,i.coerceTypes),o=e.length>0&&!(s.length===0&&e.length===1&&(0,nce.schemaHasRulesForType)(t,e[0]));if(o){let a=Tb(e,n,i.strictNumbers,Hc.Wrong);r.if(a,()=>{s.length?cce(t,e,s):$b(t)})}return o}Pr.coerceAndCheckDataType=oce;var MD=new Set(["string","number","integer","boolean","null"]);function ace(t,e){return e?t.filter(r=>MD.has(r)||e==="array"&&r==="array"):[]}function cce(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,Re._)`typeof ${i}`),a=n.let("coerced",(0,Re._)`undefined`);s.coerceTypes==="array"&&n.if((0,Re._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Re._)`${i}[0]`).assign(o,(0,Re._)`typeof ${i}`).if(Tb(e,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,Re._)`${a} !== undefined`);for(let l of r)(MD.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),$b(t),n.endIf(),n.if((0,Re._)`${a} !== undefined`,()=>{n.assign(i,a),uce(t,a)});function c(l){switch(l){case"string":n.elseIf((0,Re._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,Re._)`"" + ${i}`).elseIf((0,Re._)`${i} === null`).assign(a,(0,Re._)`""`);return;case"number":n.elseIf((0,Re._)`${o} == "boolean" || ${i} === null - || (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Re._)`+${i}`);return;case"integer":n.elseIf((0,Re._)`${o} === "boolean" || ${i} === null - || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Re._)`+${i}`);return;case"boolean":n.elseIf((0,Re._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Re._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Re._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Re._)`${o} === "string" || ${o} === "number" - || ${o} === "boolean" || ${i} === null`).assign(a,(0,Re._)`[${i}]`)}}}function uce({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Re._)`${e} !== undefined`,()=>t.assign((0,Re._)`${e}[${r}]`,n))}function Ab(t,e,r,n=Hc.Correct){let i=n===Hc.Correct?Re.operators.EQ:Re.operators.NEQ,s;switch(t){case"null":return(0,Re._)`${e} ${i} null`;case"array":s=(0,Re._)`Array.isArray(${e})`;break;case"object":s=(0,Re._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=o((0,Re._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=o();break;default:return(0,Re._)`typeof ${e} ${i} ${t}`}return n===Hc.Correct?s:(0,Re.not)(s);function o(a=Re.nil){return(0,Re.and)((0,Re._)`typeof ${e} == "number"`,a,r?(0,Re._)`isFinite(${e})`:Re.nil)}}Pr.checkDataType=Ab;function Tb(t,e,r,n){if(t.length===1)return Ab(t[0],e,r,n);let i,s=(0,jD.toHash)(t);if(s.array&&s.object){let o=(0,Re._)`typeof ${e} != "object"`;i=s.null?o:(0,Re._)`!${e} || ${o}`,delete s.null,delete s.array,delete s.object}else i=Re.nil;s.number&&delete s.integer;for(let o in s)i=(0,Re.and)(i,Ab(o,e,r,n));return i}Pr.checkDataTypes=Tb;var lce={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Re._)`{type: ${t}}`:(0,Re._)`{type: ${e}}`};function $b(t){let e=fce(t);(0,ice.reportError)(e,lce)}Pr.reportTypeError=$b;function fce(t){let{gen:e,data:r,schema:n}=t,i=(0,jD.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var UD=_(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.assignDefaults=void 0;var Vc=Oe(),dce=st();function pce(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)BD(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,s)=>BD(t,s,i.default))}r0.assignDefaults=pce;function BD(t,e,r){let{gen:n,compositeRule:i,data:s,opts:o}=t;if(r===void 0)return;let a=(0,Vc._)`${s}${(0,Vc.getProperty)(e)}`;if(i){(0,dce.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,Vc._)`${a} === undefined`;o.useDefaults==="empty"&&(c=(0,Vc._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Vc._)`${a} = ${(0,Vc.stringify)(r)}`)}});var Cn=_(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;var Tt=Oe(),Rb=st(),oo=ps(),hce=st();function mce(t,e){let{gen:r,data:n,it:i}=t;r.if(Cb(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Tt._)`${e}`},!0),t.error()})}ht.checkReportMissingProp=mce;function yce({gen:t,data:e,it:{opts:r}},n,i){return(0,Tt.or)(...n.map(s=>(0,Tt.and)(Cb(t,e,s,r.ownProperties),(0,Tt._)`${i} = ${s}`)))}ht.checkMissingProp=yce;function gce(t,e){t.setParams({missingProperty:e},!0),t.error()}ht.reportMissingProp=gce;function zD(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Tt._)`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=zD;function Pb(t,e,r){return(0,Tt._)`${zD(t)}.call(${e}, ${r})`}ht.isOwnProperty=Pb;function vce(t,e,r,n){let i=(0,Tt._)`${e}${(0,Tt.getProperty)(r)} !== undefined`;return n?(0,Tt._)`${i} && ${Pb(t,e,r)}`:i}ht.propertyInData=vce;function Cb(t,e,r,n){let i=(0,Tt._)`${e}${(0,Tt.getProperty)(r)} === undefined`;return n?(0,Tt.or)(i,(0,Tt.not)(Pb(t,e,r))):i}ht.noPropertyInData=Cb;function HD(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}ht.allSchemaProperties=HD;function xce(t,e){return HD(e).filter(r=>!(0,Rb.alwaysValidSchema)(t,e[r]))}ht.schemaProperties=xce;function _ce({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,c,l){let u=l?(0,Tt._)`${t}, ${e}, ${n}${i}`:e,f=[[oo.default.instancePath,(0,Tt.strConcat)(oo.default.instancePath,s)],[oo.default.parentData,o.parentData],[oo.default.parentDataProperty,o.parentDataProperty],[oo.default.rootData,oo.default.rootData]];o.opts.dynamicRef&&f.push([oo.default.dynamicAnchors,oo.default.dynamicAnchors]);let d=(0,Tt._)`${u}, ${r.object(...f)}`;return c!==Tt.nil?(0,Tt._)`${a}.call(${c}, ${d})`:(0,Tt._)`${a}(${d})`}ht.callValidateCode=_ce;var bce=(0,Tt._)`new RegExp`;function Ece({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,s=i(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Tt._)`${i.code==="new RegExp"?bce:(0,hce.useFunc)(t,i)}(${r}, ${n})`})}ht.usePattern=Ece;function wce(t){let{gen:e,data:r,keyword:n,it:i}=t,s=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(s,!0),o(()=>e.break()),s;function o(a){let c=e.const("len",(0,Tt._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:Rb.Type.Num},s),e.if((0,Tt.not)(s),a)})}}ht.validateArray=wce;function Sce(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Rb.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let o=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let u=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(o,(0,Tt._)`${o} || ${a}`),t.mergeValidEvaluated(u,a)||e.if((0,Tt.not)(o))})),t.result(o,()=>t.reset(),()=>t.error(!0))}ht.validateUnion=Sce});var GD=_(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.validateKeywordUsage=Ri.validSchemaType=Ri.funcKeywordCode=Ri.macroKeywordCode=void 0;var Wr=Oe(),ba=ps(),Ace=Cn(),Tce=ef();function $ce(t,e){let{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=t,a=e.macro.call(o.self,i,s,o),c=WD(r,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:Wr.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}Ri.macroKeywordCode=$ce;function Rce(t,e){var r;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:c}=t;Cce(c,e);let l=!a&&e.compile?e.compile.call(c.self,s,o,c):e.validate,u=WD(n,i,l),f=n.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)m(),e.modifying&&VD(t),g(()=>t.error());else{let y=e.async?h():p();e.modifying&&VD(t),g(()=>Pce(t,y))}}function h(){let y=n.let("ruleErrs",null);return n.try(()=>m((0,Wr._)`await `),b=>n.assign(f,!1).if((0,Wr._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,Wr._)`${b}.errors`),()=>n.throw(b))),y}function p(){let y=(0,Wr._)`${u}.errors`;return n.assign(y,null),m(Wr.nil),y}function m(y=e.async?(0,Wr._)`await `:Wr.nil){let b=c.opts.passContext?ba.default.this:ba.default.self,x=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,Wr._)`${y}${(0,Ace.callValidateCode)(t,u,b,x)}`,e.modifying)}function g(y){var b;n.if((0,Wr.not)((b=e.valid)!==null&&b!==void 0?b:f),y)}}Ri.funcKeywordCode=Rce;function VD(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Wr._)`${n.parentData}[${n.parentDataProperty}]`))}function Pce(t,e){let{gen:r}=t;r.if((0,Wr._)`Array.isArray(${e})`,()=>{r.assign(ba.default.vErrors,(0,Wr._)`${ba.default.vErrors} === null ? ${e} : ${ba.default.vErrors}.concat(${e})`).assign(ba.default.errors,(0,Wr._)`${ba.default.vErrors}.length`),(0,Tce.extendErrors)(t)},()=>t.error())}function Cce({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function WD(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Wr.stringify)(r)})}function Oce(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}Ri.validSchemaType=Oce;function Ice({schema:t,opts:e,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 o=i.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Ri.validateKeywordUsage=Ice});var XD=_(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.extendSubschemaMode=ao.extendSubschemaData=ao.getSubschema=void 0;var Pi=Oe(),KD=st();function Nce(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,Pi._)`${t.schemaPath}${(0,Pi.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,Pi._)`${t.schemaPath}${(0,Pi.getProperty)(e)}${(0,Pi.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,KD.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}ao.getSubschema=Nce;function kce(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:f}=e,d=a.let("data",(0,Pi._)`${e.data}${(0,Pi.getProperty)(r)}`,!0);c(d),t.errorPath=(0,Pi.str)`${l}${(0,KD.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,Pi._)`${r}`,t.dataPathArr=[...u,t.parentDataProperty]}if(i!==void 0){let l=i instanceof Pi.Name?i:a.let("data",i,!0);c(l),o!==void 0&&(t.propertyName=o)}s&&(t.dataTypes=s);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}ao.extendSubschemaData=kce;function Dce(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}ao.extendSubschemaMode=Dce});var On=_((s9e,YD)=>{"use strict";YD.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),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 o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var QD=_((o9e,JD)=>{"use strict";var co=JD.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};n0(e,n,i,t,"",t)};co.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};co.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};co.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};co.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 n0(t,e,r,n,i,s,o,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,l);for(var u in n){var f=n[u];if(Array.isArray(f)){if(u in co.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.getSchemaRefs=cn.resolveUrl=cn.normalizeId=cn._getFullPath=cn.getFullPath=cn.inlineRef=void 0;var qce=st(),jce=On(),Fce=QD(),Mce=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Bce(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Ob(t):e?ZD(t)<=e:!1}cn.inlineRef=Bce;var Uce=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ob(t){for(let e in t){if(Uce.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Ob)||typeof r=="object"&&Ob(r))return!0}return!1}function ZD(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!Mce.has(r)&&(typeof t[r]=="object"&&(0,qce.eachItem)(t[r],n=>e+=ZD(n)),e===1/0))return 1/0}return e}function e4(t,e="",r){r!==!1&&(e=Wc(e));let n=t.parse(e);return t4(t,n)}cn.getFullPath=e4;function t4(t,e){return t.serialize(e).split("#")[0]+"#"}cn._getFullPath=t4;var zce=/#\/?$/;function Wc(t){return t?t.replace(zce,""):""}cn.normalizeId=Wc;function Hce(t,e,r){return r=Wc(r),t.resolve(e,r)}cn.resolveUrl=Hce;var Vce=/^[a-z_][-a-z0-9._]*$/i;function Wce(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=Wc(t[r]||e),s={"":i},o=e4(n,i,!1),a={},c=new Set;return Fce(t,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=o+d,g=s[p];typeof f[r]=="string"&&(g=y.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=g;function y(x){let v=this.opts.uriResolver.resolve;if(x=Wc(g?v(g,x):x),c.has(x))throw u(x);c.add(x);let E=this.refs[x];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?l(f,E.schema,x):x!==Wc(m)&&(x[0]==="#"?(l(f,a[x],x),a[x]=f):this.refs[x]=m),x}function b(x){if(typeof x=="string"){if(!Vce.test(x))throw new Error(`invalid anchor "${x}"`);y.call(this,`#${x}`)}}}),a;function l(f,d,h){if(d!==void 0&&!jce(f,d))throw u(h)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}cn.getSchemaRefs=Wce});var of=_(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.getData=uo.KeywordCxt=uo.validateFunctionCode=void 0;var o4=DD(),r4=tf(),Nb=Sb(),i0=tf(),Gce=UD(),sf=GD(),Ib=XD(),me=Oe(),_e=ps(),Kce=rf(),hs=st(),nf=ef();function Xce(t){if(u4(t)&&(l4(t),c4(t))){Qce(t);return}a4(t,()=>(0,o4.topBoolOrEmptySchema)(t))}uo.validateFunctionCode=Xce;function a4({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){i.code.es5?t.func(e,(0,me._)`${_e.default.data}, ${_e.default.valCxt}`,n.$async,()=>{t.code((0,me._)`"use strict"; ${n4(r,i)}`),Jce(t,i),t.code(s)}):t.func(e,(0,me._)`${_e.default.data}, ${Yce(i)}`,n.$async,()=>t.code(n4(r,i)).code(s))}function Yce(t){return(0,me._)`{${_e.default.instancePath}="", ${_e.default.parentData}, ${_e.default.parentDataProperty}, ${_e.default.rootData}=${_e.default.data}${t.dynamicRef?(0,me._)`, ${_e.default.dynamicAnchors}={}`:me.nil}}={}`}function Jce(t,e){t.if(_e.default.valCxt,()=>{t.var(_e.default.instancePath,(0,me._)`${_e.default.valCxt}.${_e.default.instancePath}`),t.var(_e.default.parentData,(0,me._)`${_e.default.valCxt}.${_e.default.parentData}`),t.var(_e.default.parentDataProperty,(0,me._)`${_e.default.valCxt}.${_e.default.parentDataProperty}`),t.var(_e.default.rootData,(0,me._)`${_e.default.valCxt}.${_e.default.rootData}`),e.dynamicRef&&t.var(_e.default.dynamicAnchors,(0,me._)`${_e.default.valCxt}.${_e.default.dynamicAnchors}`)},()=>{t.var(_e.default.instancePath,(0,me._)`""`),t.var(_e.default.parentData,(0,me._)`undefined`),t.var(_e.default.parentDataProperty,(0,me._)`undefined`),t.var(_e.default.rootData,_e.default.data),e.dynamicRef&&t.var(_e.default.dynamicAnchors,(0,me._)`{}`)})}function Qce(t){let{schema:e,opts:r,gen:n}=t;a4(t,()=>{r.$comment&&e.$comment&&d4(t),nue(t),n.let(_e.default.vErrors,null),n.let(_e.default.errors,0),r.unevaluated&&Zce(t),f4(t),oue(t)})}function Zce(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,me._)`${r}.evaluated`),e.if((0,me._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,me._)`${t.evaluated}.props`,(0,me._)`undefined`)),e.if((0,me._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,me._)`${t.evaluated}.items`,(0,me._)`undefined`))}function n4(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,me._)`/*# sourceURL=${r} */`:me.nil}function eue(t,e){if(u4(t)&&(l4(t),c4(t))){tue(t,e);return}(0,o4.boolOrEmptySchema)(t,e)}function c4({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function u4(t){return typeof t.schema!="boolean"}function tue(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&d4(t),iue(t),sue(t);let s=n.const("_errs",_e.default.errors);f4(t,s),n.var(e,(0,me._)`${s} === ${_e.default.errors}`)}function l4(t){(0,hs.checkUnknownRules)(t),rue(t)}function f4(t,e){if(t.opts.jtd)return i4(t,[],!1,e);let r=(0,r4.getSchemaTypes)(t.schema),n=(0,r4.coerceAndCheckDataType)(t,r);i4(t,r,!n,e)}function rue(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,hs.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function nue(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,hs.checkStrictMode)(t,"default is ignored in the schema root")}function iue(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Kce.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function sue(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function d4({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)t.code((0,me._)`${_e.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,me.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,me._)`${_e.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function oue(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=t;r.$async?e.if((0,me._)`${_e.default.errors} === 0`,()=>e.return(_e.default.data),()=>e.throw((0,me._)`new ${i}(${_e.default.vErrors})`)):(e.assign((0,me._)`${n}.errors`,_e.default.vErrors),s.unevaluated&&aue(t),e.return((0,me._)`${_e.default.errors} === 0`))}function aue({gen:t,evaluated:e,props:r,items:n}){r instanceof me.Name&&t.assign((0,me._)`${e}.props`,r),n instanceof me.Name&&t.assign((0,me._)`${e}.items`,n)}function i4(t,e,r,n){let{gen:i,schema:s,data:o,allErrors:a,opts:c,self:l}=t,{RULES:u}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,hs.schemaHasRulesButRef)(s,u))){i.block(()=>h4(t,"$ref",u.all.$ref.definition));return}c.jtd||cue(t,e),i.block(()=>{for(let d of u.rules)f(d);f(u.post)});function f(d){(0,Nb.shouldUseGroup)(s,d)&&(d.type?(i.if((0,i0.checkDataType)(d.type,o,c.strictNumbers)),s4(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,i0.reportTypeError)(t)),i.endIf()):s4(t,d),a||i.if((0,me._)`${_e.default.errors} === ${n||0}`))}}function s4(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,Gce.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,Nb.shouldUseRule)(n,s)&&h4(t,s.keyword,s.definition,e.type)})}function cue(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(uue(t,e),t.opts.allowUnionTypes||lue(t,e),fue(t,t.dataTypes))}function uue(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{p4(t.dataTypes,r)||kb(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),pue(t,e)}}function lue(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&kb(t,"use allowUnionTypes to allow union type keyword")}function fue(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Nb.shouldUseRule)(t.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>due(e,o))&&kb(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function due(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function p4(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function pue(t,e){let r=[];for(let n of t.dataTypes)p4(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function kb(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,hs.checkStrictMode)(t,e,t.opts.strictTypes)}var s0=class{constructor(e,r,n){if((0,sf.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,hs.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",m4(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,sf.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=e.gen.const("_errs",_e.default.errors))}result(e,r,n){this.failResult((0,me.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,me.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,me._)`${r} !== undefined && (${(0,me.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?nf.reportExtraError:nf.reportError)(this,this.def.error,r)}$dataError(){(0,nf.reportError)(this,this.def.$dataError||nf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,nf.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=me.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=me.nil,r=me.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,me.or)((0,me._)`${i} === undefined`,r)),e!==me.nil&&n.assign(e,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==me.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,me.or)(o(),a());function o(){if(n.length){if(!(r instanceof me.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,me._)`${(0,i0.checkDataTypes)(c,r,s.opts.strictNumbers,i0.DataType.Wrong)}`}return me.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,me._)`!${c}(${r})`}return me.nil}}subschema(e,r){let n=(0,Ib.getSubschema)(this.it,e);(0,Ib.extendSubschemaData)(n,this.it,e),(0,Ib.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return eue(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=hs.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=hs.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,me.Name)),!0}};uo.KeywordCxt=s0;function h4(t,e,r,n){let i=new s0(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,sf.funcKeywordCode)(i,r):"macro"in r?(0,sf.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,sf.funcKeywordCode)(i,r)}var hue=/^\/(?:[^~]|~0|~1)*$/,mue=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function m4(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,s;if(t==="")return _e.default.rootData;if(t[0]==="/"){if(!hue.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,s=_e.default.rootData}else{let l=mue.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=r[e-u],!i)return s}let o=s,a=i.split("/");for(let l of a)l&&(s=(0,me._)`${s}${(0,me.getProperty)((0,hs.unescapeJsonPointer)(l))}`,o=(0,me._)`${o} && ${s}`);return o;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${e}`}}uo.getData=m4});var o0=_(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});var Db=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Lb.default=Db});var af=_(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});var qb=rf(),jb=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,qb.resolveUrl)(e,r,n),this.missingSchema=(0,qb.normalizeId)((0,qb.getFullPath)(e,this.missingRef))}};Fb.default=jb});var c0=_(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.resolveSchema=In.getCompilingSchema=In.resolveRef=In.compileSchema=In.SchemaEnv=void 0;var ii=Oe(),yue=o0(),Ea=ps(),si=rf(),y4=st(),gue=of(),Gc=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,si.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};In.SchemaEnv=Gc;function Bb(t){let e=g4.call(this,t);if(e)return e;let r=(0,si.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new ii.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;t.$async&&(a=o.scopeValue("Error",{ref:yue.default,code:(0,ii._)`require("ajv/dist/runtime/validation_error").default`}));let c=o.scopeName("validate");t.validateName=c;let l={gen:o,allErrors:this.opts.allErrors,data:Ea.default.data,parentData:Ea.default.parentData,parentDataProperty:Ea.default.parentDataProperty,dataNames:[Ea.default.data],dataPathArr:[ii.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,ii.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:ii.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ii._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,gue.validateFunctionCode)(l),o.optimize(this.opts.code.optimize);let f=o.toString();u=`${o.scopeRefs(Ea.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let h=new Function(`${Ea.default.self}`,`${Ea.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:o._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof ii.Name?void 0:p,items:m instanceof ii.Name?void 0:m,dynamicProps:p instanceof ii.Name,dynamicItems:m instanceof ii.Name},h.source&&(h.source.evaluated=(0,ii.stringify)(h.evaluated))}return t.validate=h,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}In.compileSchema=Bb;function vue(t,e,r){var n;r=(0,si.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let s=bue.call(this,t,r);if(s===void 0){let o=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new Gc({schema:o,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=xue.call(this,s)}In.resolveRef=vue;function xue(t){return(0,si.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Bb.call(this,t)}function g4(t){for(let e of this._compilations)if(_ue(e,t))return e}In.getCompilingSchema=g4;function _ue(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function bue(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||a0.call(this,t,e)}function a0(t,e){let r=this.opts.uriResolver.parse(e),n=(0,si._getFullPath)(this.opts.uriResolver,r),i=(0,si.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return Mb.call(this,r,t);let s=(0,si.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=a0.call(this,t,o);return typeof a?.schema!="object"?void 0:Mb.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||Bb.call(this,o),s===(0,si.normalizeId)(e)){let{schema:a}=o,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,si.resolveUrl)(this.opts.uriResolver,i,l)),new Gc({schema:a,schemaId:c,root:t,baseId:i})}return Mb.call(this,r,o)}}In.resolveSchema=a0;var Eue=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Mb(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,y4.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Eue.has(a)&&l&&(e=(0,si.resolveUrl)(this.opts.uriResolver,e,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,y4.schemaHasRulesButRef)(r,this.RULES)){let a=(0,si.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=a0.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new Gc({schema:r,schemaId:o,root:n,baseId:e}),s.schema!==s.root.schema)return s}});var v4=_((d9e,wue)=>{wue.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 zb=_((p9e,E4)=>{"use strict";var Sue=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),_4=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 Ub(t){let e="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var Aue=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function x4(t){return t.length=0,!0}function Tue(t,e,r){if(t.length){let n=Ub(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function $ue(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=Tue;for(let c=0;c7){r.error=!0;break}c>0&&t[c-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!a(i,n,r))break;a=x4}else{i.push(l);continue}}return i.length&&(a===x4?r.zone=i.join(""):o?n.push(i.join("")):n.push(Ub(i))),r.address=n.join(""),r}function b4(t){if(Rue(t,":")<2)return{host:t,isIPV6:!1};let e=$ue(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function Rue(t,e){let r=0;for(let n=0;n{"use strict";var{isUUID:Iue}=zb(),Nue=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,kue=["http","https","ws","wss","urn","urn:uuid"];function Due(t){return kue.indexOf(t)!==-1}function Hb(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function w4(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function S4(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function Lue(t){return t.secure=Hb(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function que(t){if((t.port===(Hb(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function jue(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(Nue);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,s=Vb(i);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function Fue(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,s=Vb(i);s&&(t=s.serialize(t,e));let o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function Mue(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!Iue(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Bue(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var A4={scheme:"http",domainHost:!0,parse:w4,serialize:S4},Uue={scheme:"https",domainHost:A4.domainHost,parse:w4,serialize:S4},u0={scheme:"ws",domainHost:!0,parse:Lue,serialize:que},zue={scheme:"wss",domainHost:u0.domainHost,parse:u0.parse,serialize:u0.serialize},Hue={scheme:"urn",parse:jue,serialize:Fue,skipNormalize:!0},Vue={scheme:"urn:uuid",parse:Mue,serialize:Bue,skipNormalize:!0},l0={http:A4,https:Uue,ws:u0,wss:zue,urn:Hue,"urn:uuid":Vue};Object.setPrototypeOf(l0,null);function Vb(t){return t&&(l0[t]||l0[t.toLowerCase()])||void 0}T4.exports={wsIsSecure:Hb,SCHEMES:l0,isValidSchemeName:Due,getSchemeHandler:Vb}});var C4=_((m9e,d0)=>{"use strict";var{normalizeIPv6:Wue,removeDotSegments:cf,recomposeAuthority:Gue,normalizeComponentEncoding:f0,isIPv4:Kue,nonSimpleDomain:Xue}=zb(),{SCHEMES:Yue,getSchemeHandler:R4}=$4();function Jue(t,e){return typeof t=="string"?t=Ci(ms(t,e),e):typeof t=="object"&&(t=ms(Ci(t,e),e)),t}function Que(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=P4(ms(t,n),ms(e,n),n,!0);return n.skipEscape=!0,Ci(i,n)}function P4(t,e,r,n){let i={};return n||(t=ms(Ci(t,r),r),e=ms(Ci(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=cf(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=cf(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=cf(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=cf(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function Zue(t,e,r){return typeof t=="string"?(t=unescape(t),t=Ci(f0(ms(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ci(f0(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Ci(f0(ms(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ci(f0(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Ci(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],s=R4(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 o=Gue(r);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=cf(a)),o===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var ele=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ms(t,e){let r=Object.assign({},e),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?t=r.scheme+":"+t:t="//"+t);let s=t.match(ele);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(Kue(n.host)===!1){let c=Wue(n.host);n.host=c.host.toLowerCase(),i=c.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 o=R4(r.scheme||n.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&i===!1&&Xue(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.skipNormalize)&&(t.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)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var Wb={SCHEMES:Yue,normalize:Jue,resolve:Que,resolveComponent:P4,equal:Zue,serialize:Ci,parse:ms};d0.exports=Wb;d0.exports.default=Wb;d0.exports.fastUri=Wb});var I4=_(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});var O4=C4();O4.code='require("ajv/dist/runtime/uri").default';Gb.default=O4});var M4=_(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.CodeGen=yr.Name=yr.nil=yr.stringify=yr.str=yr._=yr.KeywordCxt=void 0;var tle=of();Object.defineProperty(yr,"KeywordCxt",{enumerable:!0,get:function(){return tle.KeywordCxt}});var Kc=Oe();Object.defineProperty(yr,"_",{enumerable:!0,get:function(){return Kc._}});Object.defineProperty(yr,"str",{enumerable:!0,get:function(){return Kc.str}});Object.defineProperty(yr,"stringify",{enumerable:!0,get:function(){return Kc.stringify}});Object.defineProperty(yr,"nil",{enumerable:!0,get:function(){return Kc.nil}});Object.defineProperty(yr,"Name",{enumerable:!0,get:function(){return Kc.Name}});Object.defineProperty(yr,"CodeGen",{enumerable:!0,get:function(){return Kc.CodeGen}});var rle=o0(),q4=af(),nle=wb(),uf=c0(),ile=Oe(),lf=rf(),p0=tf(),Xb=st(),N4=v4(),sle=I4(),j4=(t,e)=>new RegExp(t,e);j4.code="new RegExp";var ole=["removeAdditional","useDefaults","coerceTypes"],ale=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),cle={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."},ule={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k4=200;function lle(t){var e,r,n,i,s,o,a,c,l,u,f,d,h,p,m,g,y,b,x,v,E,S,w,A,T;let $=t.strict,k=(e=t.code)===null||e===void 0?void 0:e.optimize,C=k===!0||k===void 0?1:k||0,I=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:j4,D=(i=t.uriResolver)!==null&&i!==void 0?i:sle.default;return{strictSchema:(o=(s=t.strictSchema)!==null&&s!==void 0?s:$)!==null&&o!==void 0?o:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:$)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=t.strictTypes)!==null&&l!==void 0?l:$)!==null&&u!==void 0?u:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:$)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=t.strictRequired)!==null&&h!==void 0?h:$)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:C,regExp:I}:{optimize:C,regExp:I},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:k4,loopEnum:(g=t.loopEnum)!==null&&g!==void 0?g:k4,meta:(y=t.meta)!==null&&y!==void 0?y:!0,messages:(b=t.messages)!==null&&b!==void 0?b:!0,inlineRefs:(x=t.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(v=t.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(S=t.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=t.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=t.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(T=t.int32range)!==null&&T!==void 0?T:!0,uriResolver:D}}var ff=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...lle(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new ile.ValueScope({scope:{},prefixes:ale,es5:r,lines:n}),this.logger=yle(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,nle.getRules)(),D4.call(this,cle,e,"NOT SUPPORTED"),D4.call(this,ule,e,"DEPRECATED","warn"),this._metaOpts=hle.call(this),e.formats&&dle.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&ple.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),fle.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=N4;n==="id"&&(i={...N4},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,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,e,r);async function i(u,f){await s.call(this,u.$schema);let d=this._addSchema(u,f);return d.validate||o.call(this,d)}async function s(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function o(u){try{return this._compileSchemaEnv(u)}catch(f){if(!(f instanceof q4.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),o.call(this,u)}}function a({missingSchema:u,missingRef:f}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${f} cannot be resolved`)}async function c(u){let f=await l.call(this,u);this.refs[u]||await s.call(this,f.$schema),this.refs[u]||this.addSchema(f,u,r)}async function l(u){let f=this._loading[u];if(f)return f;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let o of e)this.addSchema(o,void 0,n,i);return this}let s;if(typeof e=="object"){let{schemaId:o}=this.opts;if(s=e[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return r=(0,lf.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$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,e);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(e){let r;for(;typeof(r=L4.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new uf.SchemaEnv({schema:{},schemaId:n});if(r=uf.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=L4.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,lf.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,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(vle.call(this,n,r),!r)return(0,Xb.eachItem)(n,s=>Kb.call(this,s)),this;_le.call(this,r);let i={...r,type:(0,p0.getJSONTypes)(r.type),schemaType:(0,p0.getJSONTypes)(r.schemaType)};return(0,Xb.eachItem)(n,i.type.length===0?s=>Kb.call(this,s,i):s=>i.type.forEach(o=>Kb.call(this,s,i,o))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let s=i.split("/").slice(1),o=e;for(let a of s)o=o[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=o[a];l&&u&&(o[a]=F4(u))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof e=="object")o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,lf.normalizeId)(o||n);let l=lf.getSchemaRefs.call(this,e,n);return c=new uf.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):uf.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{uf.compileSchema.call(this,e)}finally{this.opts=r}}};ff.ValidationError=rle.default;ff.MissingRefError=q4.default;yr.default=ff;function D4(t,e,r,n="error"){for(let i in t){let s=i;s in e&&this.logger[n](`${r}: option ${i}. ${t[s]}`)}}function L4(t){return t=(0,lf.normalizeId)(t),this.schemas[t]||this.refs[t]}function fle(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function dle(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function ple(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function hle(){let t={...this.opts};for(let e of ole)delete t[e];return t}var mle={log(){},warn(){},error(){}};function yle(t){if(t===!1)return mle;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var gle=/^[a-z_$][a-z0-9_$:-]*$/i;function vle(t,e){let{RULES:r}=this;if((0,Xb.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!gle.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function Kb(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:c})=>c===r);if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,p0.getJSONTypes)(e.type),schemaType:(0,p0.getJSONTypes)(e.schemaType)}};e.before?xle.call(this,o,a,e.before):o.rules.push(a),s.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function xle(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function _le(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=F4(e)),t.validateSchema=this.compile(e,!0))}var ble={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F4(t){return{anyOf:[t,ble]}}});var B4=_(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});var Ele={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Yb.default=Ele});var V4=_(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.callRef=wa.getValidate=void 0;var wle=af(),U4=Cn(),un=Oe(),Xc=ps(),z4=c0(),h0=st(),Sle={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let u=z4.resolveRef.call(c,l,i,r);if(u===void 0)throw new wle.default(n.opts.uriResolver,i,r);if(u instanceof z4.SchemaEnv)return d(u);return h(u);function f(){if(s===l)return m0(t,o,s,s.$async);let p=e.scopeValue("root",{ref:l});return m0(t,(0,un._)`${p}.validate`,l,l.$async)}function d(p){let m=H4(t,p);m0(t,m,p,p.$async)}function h(p){let m=e.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,un.stringify)(p)}:{ref:p}),g=e.name("valid"),y=t.subschema({schema:p,dataTypes:[],schemaPath:un.nil,topSchemaRef:m,errSchemaPath:r},g);t.mergeEvaluated(y),t.ok(g)}}};function H4(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,un._)`${r.scopeValue("wrapper",{ref:e})}.validate`}wa.getValidate=H4;function m0(t,e,r,n){let{gen:i,it:s}=t,{allErrors:o,schemaEnv:a,opts:c}=s,l=c.passContext?Xc.default.this:un.nil;n?u():f();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,un._)`await ${(0,U4.callValidateCode)(t,e,l)}`),h(e),o||i.assign(p,!0)},m=>{i.if((0,un._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),o||i.assign(p,!1)}),t.ok(p)}function f(){t.result((0,U4.callValidateCode)(t,e,l),()=>h(e),()=>d(e))}function d(p){let m=(0,un._)`${p}.errors`;i.assign(Xc.default.vErrors,(0,un._)`${Xc.default.vErrors} === null ? ${m} : ${Xc.default.vErrors}.concat(${m})`),i.assign(Xc.default.errors,(0,un._)`${Xc.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let g=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=h0.mergeEvaluated.props(i,g.props,s.props));else{let y=i.var("props",(0,un._)`${p}.evaluated.props`);s.props=h0.mergeEvaluated.props(i,y,s.props,un.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=h0.mergeEvaluated.items(i,g.items,s.items));else{let y=i.var("items",(0,un._)`${p}.evaluated.items`);s.items=h0.mergeEvaluated.items(i,y,s.items,un.Name)}}}wa.callRef=m0;wa.default=Sle});var W4=_(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});var Ale=B4(),Tle=V4(),$le=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ale.default,Tle.default];Jb.default=$le});var G4=_(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});var y0=Oe(),lo=y0.operators,g0={maximum:{okStr:"<=",ok:lo.LTE,fail:lo.GT},minimum:{okStr:">=",ok:lo.GTE,fail:lo.LT},exclusiveMaximum:{okStr:"<",ok:lo.LT,fail:lo.GTE},exclusiveMinimum:{okStr:">",ok:lo.GT,fail:lo.LTE}},Rle={message:({keyword:t,schemaCode:e})=>(0,y0.str)`must be ${g0[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,y0._)`{comparison: ${g0[t].okStr}, limit: ${e}}`},Ple={keyword:Object.keys(g0),type:"number",schemaType:"number",$data:!0,error:Rle,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,y0._)`${r} ${g0[e].fail} ${n} || isNaN(${r})`)}};Qb.default=Ple});var K4=_(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});var df=Oe(),Cle={message:({schemaCode:t})=>(0,df.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,df._)`{multipleOf: ${t}}`},Ole={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Cle,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,s=i.opts.multipleOfPrecision,o=e.let("res"),a=s?(0,df._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,df._)`${o} !== parseInt(${o})`;t.fail$data((0,df._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};Zb.default=Ole});var Y4=_(e1=>{"use strict";Object.defineProperty(e1,"__esModule",{value:!0});function X4(t){let e=t.length,r=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";Object.defineProperty(t1,"__esModule",{value:!0});var Sa=Oe(),Ile=st(),Nle=Y4(),kle={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Sa.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Sa._)`{limit: ${t}}`},Dle={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:kle,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,s=e==="maxLength"?Sa.operators.GT:Sa.operators.LT,o=i.opts.unicode===!1?(0,Sa._)`${r}.length`:(0,Sa._)`${(0,Ile.useFunc)(t.gen,Nle.default)}(${r})`;t.fail$data((0,Sa._)`${o} ${s} ${n}`)}};t1.default=Dle});var Q4=_(r1=>{"use strict";Object.defineProperty(r1,"__esModule",{value:!0});var Lle=Cn(),v0=Oe(),qle={message:({schemaCode:t})=>(0,v0.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,v0._)`{pattern: ${t}}`},jle={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:qle,code(t){let{data:e,$data:r,schema:n,schemaCode:i,it:s}=t,o=s.opts.unicodeRegExp?"u":"",a=r?(0,v0._)`(new RegExp(${i}, ${o}))`:(0,Lle.usePattern)(t,n);t.fail$data((0,v0._)`!${a}.test(${e})`)}};r1.default=jle});var Z4=_(n1=>{"use strict";Object.defineProperty(n1,"__esModule",{value:!0});var pf=Oe(),Fle={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,pf.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,pf._)`{limit: ${t}}`},Mle={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Fle,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?pf.operators.GT:pf.operators.LT;t.fail$data((0,pf._)`Object.keys(${r}).length ${i} ${n}`)}};n1.default=Mle});var e3=_(i1=>{"use strict";Object.defineProperty(i1,"__esModule",{value:!0});var hf=Cn(),mf=Oe(),Ble=st(),Ule={message:({params:{missingProperty:t}})=>(0,mf.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,mf._)`{missingProperty: ${t}}`},zle={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Ule,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:s,it:o}=t,{opts:a}=o;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(o.allErrors?l():u(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:p}=t.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let g=o.schemaEnv.baseId+o.errSchemaPath,y=`required property "${m}" is not defined at "${g}" (strictRequired)`;(0,Ble.checkStrictMode)(o,y,o.opts.strictRequired)}}function l(){if(c||s)t.block$data(mf.nil,f);else for(let h of r)(0,hf.checkReportMissingProp)(t,h)}function u(){let h=e.let("missing");if(c||s){let p=e.let("valid",!0);t.block$data(p,()=>d(h,p)),t.ok(p)}else e.if((0,hf.checkMissingProp)(t,r,h)),(0,hf.reportMissingProp)(t,h),e.else()}function f(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,hf.noPropertyInData)(e,i,h,a.ownProperties),()=>t.error())})}function d(h,p){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(p,(0,hf.propertyInData)(e,i,h,a.ownProperties)),e.if((0,mf.not)(p),()=>{t.error(),e.break()})},mf.nil)}}};i1.default=zle});var t3=_(s1=>{"use strict";Object.defineProperty(s1,"__esModule",{value:!0});var yf=Oe(),Hle={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,yf.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,yf._)`{limit: ${t}}`},Vle={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Hle,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?yf.operators.GT:yf.operators.LT;t.fail$data((0,yf._)`${r}.length ${i} ${n}`)}};s1.default=Vle});var gf=_(o1=>{"use strict";Object.defineProperty(o1,"__esModule",{value:!0});var r3=On();r3.code='require("ajv/dist/runtime/equal").default';o1.default=r3});var n3=_(c1=>{"use strict";Object.defineProperty(c1,"__esModule",{value:!0});var a1=tf(),gr=Oe(),Wle=st(),Gle=gf(),Kle={message:({params:{i:t,j:e}})=>(0,gr.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,gr._)`{i: ${t}, j: ${e}}`},Xle={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Kle,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),l=s.items?(0,a1.getSchemaTypes)(s.items):[];t.block$data(c,u,(0,gr._)`${o} === false`),t.ok(c);function u(){let p=e.let("i",(0,gr._)`${r}.length`),m=e.let("j");t.setParams({i:p,j:m}),e.assign(c,!0),e.if((0,gr._)`${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 g=e.name("item"),y=(0,a1.checkDataTypes)(l,g,a.opts.strictNumbers,a1.DataType.Wrong),b=e.const("indices",(0,gr._)`{}`);e.for((0,gr._)`;${p}--;`,()=>{e.let(g,(0,gr._)`${r}[${p}]`),e.if(y,(0,gr._)`continue`),l.length>1&&e.if((0,gr._)`typeof ${g} == "string"`,(0,gr._)`${g} += "_"`),e.if((0,gr._)`typeof ${b}[${g}] == "number"`,()=>{e.assign(m,(0,gr._)`${b}[${g}]`),t.error(),e.assign(c,!1).break()}).code((0,gr._)`${b}[${g}] = ${p}`)})}function h(p,m){let g=(0,Wle.useFunc)(e,Gle.default),y=e.name("outer");e.label(y).for((0,gr._)`;${p}--;`,()=>e.for((0,gr._)`${m} = ${p}; ${m}--;`,()=>e.if((0,gr._)`${g}(${r}[${p}], ${r}[${m}])`,()=>{t.error(),e.assign(c,!1).break(y)})))}}};c1.default=Xle});var i3=_(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});var u1=Oe(),Yle=st(),Jle=gf(),Qle={message:"must be equal to constant",params:({schemaCode:t})=>(0,u1._)`{allowedValue: ${t}}`},Zle={keyword:"const",$data:!0,error:Qle,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:s}=t;n||s&&typeof s=="object"?t.fail$data((0,u1._)`!${(0,Yle.useFunc)(e,Jle.default)}(${r}, ${i})`):t.fail((0,u1._)`${s} !== ${r}`)}};l1.default=Zle});var s3=_(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});var vf=Oe(),efe=st(),tfe=gf(),rfe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,vf._)`{allowedValues: ${t}}`},nfe={keyword:"enum",schemaType:"array",$data:!0,error:rfe,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:o}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,c,l=()=>c??(c=(0,efe.useFunc)(e,tfe.default)),u;if(a||n)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=e.const("vSchema",s);u=(0,vf.or)(...i.map((p,m)=>d(h,m)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",s,h=>e.if((0,vf._)`${l()}(${r}, ${h})`,()=>e.assign(u,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,vf._)`${l()}(${r}, ${h}[${p}])`:(0,vf._)`${r} === ${m}`}}};f1.default=nfe});var o3=_(d1=>{"use strict";Object.defineProperty(d1,"__esModule",{value:!0});var ife=G4(),sfe=K4(),ofe=J4(),afe=Q4(),cfe=Z4(),ufe=e3(),lfe=t3(),ffe=n3(),dfe=i3(),pfe=s3(),hfe=[ife.default,sfe.default,ofe.default,afe.default,cfe.default,ufe.default,lfe.default,ffe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dfe.default,pfe.default];d1.default=hfe});var h1=_(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.validateAdditionalItems=void 0;var Aa=Oe(),p1=st(),mfe={message:({params:{len:t}})=>(0,Aa.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Aa._)`{limit: ${t}}`},yfe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:mfe,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,p1.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}a3(t,n)}};function a3(t,e){let{gen:r,schema:n,data:i,keyword:s,it:o}=t;o.items=!0;let a=r.const("len",(0,Aa._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Aa._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,p1.alwaysValidSchema)(o,n)){let l=r.var("valid",(0,Aa._)`${a} <= ${e.length}`);r.if((0,Aa.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,u=>{t.subschema({keyword:s,dataProp:u,dataPropType:p1.Type.Num},l),o.allErrors||r.if((0,Aa.not)(l),()=>r.break())})}}xf.validateAdditionalItems=a3;xf.default=yfe});var m1=_(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.validateTuple=void 0;var c3=Oe(),x0=st(),gfe=Cn(),vfe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return u3(t,"additionalItems",e);r.items=!0,!(0,x0.alwaysValidSchema)(r,e)&&t.ok((0,gfe.validateArray)(t))}};function u3(t,e,r=t.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=t;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=x0.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,c3._)`${s}.length`);r.forEach((f,d)=>{(0,x0.alwaysValidSchema)(a,f)||(n.if((0,c3._)`${l} > ${d}`,()=>t.subschema({keyword:o,schemaProp:d,dataProp:d},c)),t.ok(c))});function u(f){let{opts:d,errSchemaPath:h}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(d.strictTuples&&!m){let g=`"${o}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,x0.checkStrictMode)(a,g,d.strictTuples)}}}_f.validateTuple=u3;_f.default=vfe});var l3=_(y1=>{"use strict";Object.defineProperty(y1,"__esModule",{value:!0});var xfe=m1(),_fe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,xfe.validateTuple)(t,"items")};y1.default=_fe});var d3=_(g1=>{"use strict";Object.defineProperty(g1,"__esModule",{value:!0});var f3=Oe(),bfe=st(),Efe=Cn(),wfe=h1(),Sfe={message:({params:{len:t}})=>(0,f3.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,f3._)`{limit: ${t}}`},Afe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Sfe,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,bfe.alwaysValidSchema)(n,e)&&(i?(0,wfe.validateAdditionalItems)(t,i):t.ok((0,Efe.validateArray)(t)))}};g1.default=Afe});var p3=_(v1=>{"use strict";Object.defineProperty(v1,"__esModule",{value:!0});var Nn=Oe(),_0=st(),Tfe={message:({params:{min:t,max:e}})=>e===void 0?(0,Nn.str)`must contain at least ${t} valid item(s)`:(0,Nn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Nn._)`{minContains: ${t}}`:(0,Nn._)`{minContains: ${t}, maxContains: ${e}}`},$fe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Tfe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t,o,a,{minContains:c,maxContains:l}=n;s.opts.next?(o=c===void 0?1:c,a=l):o=1;let u=e.const("len",(0,Nn._)`${i}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0){(0,_0.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,_0.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,_0.alwaysValidSchema)(s,r)){let m=(0,Nn._)`${u} >= ${o}`;a!==void 0&&(m=(0,Nn._)`${m} && ${u} <= ${a}`),t.pass(m);return}s.items=!0;let f=e.name("valid");a===void 0&&o===1?h(f,()=>e.if(f,()=>e.break())):o===0?(e.let(f,!0),a!==void 0&&e.if((0,Nn._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let m=e.name("_valid"),g=e.let("count",0);h(m,()=>e.if(m,()=>p(g)))}function h(m,g){e.forRange("i",0,u,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:_0.Type.Num,compositeRule:!0},m),g()})}function p(m){e.code((0,Nn._)`${m}++`),a===void 0?e.if((0,Nn._)`${m} >= ${o}`,()=>e.assign(f,!0).break()):(e.if((0,Nn._)`${m} > ${a}`,()=>e.assign(f,!1).break()),o===1?e.assign(f,!0):e.if((0,Nn._)`${m} >= ${o}`,()=>e.assign(f,!0)))}}};v1.default=$fe});var y3=_(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.validateSchemaDeps=Oi.validatePropertyDeps=Oi.error=void 0;var x1=Oe(),Rfe=st(),bf=Cn();Oi.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,x1.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,x1._)`{property: ${t}, - missingProperty: ${n}, - depsCount: ${e}, - deps: ${r}}`};var Pfe={keyword:"dependencies",type:"object",schemaType:"object",error:Oi.error,code(t){let[e,r]=Cfe(t);h3(t,e),m3(t,r)}};function Cfe({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function h3(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let o in e){let a=e[o];if(a.length===0)continue;let c=(0,bf.propertyInData)(r,n,o,i.opts.ownProperties);t.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,bf.checkReportMissingProp)(t,l)}):(r.if((0,x1._)`${c} && (${(0,bf.checkMissingProp)(t,a,s)})`),(0,bf.reportMissingProp)(t,s),r.else())}}Oi.validatePropertyDeps=h3;function m3(t,e=t.schema){let{gen:r,data:n,keyword:i,it:s}=t,o=r.name("valid");for(let a in e)(0,Rfe.alwaysValidSchema)(s,e[a])||(r.if((0,bf.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},o);t.mergeValidEvaluated(c,o)},()=>r.var(o,!0)),t.ok(o))}Oi.validateSchemaDeps=m3;Oi.default=Pfe});var v3=_(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});var g3=Oe(),Ofe=st(),Ife={message:"property name must be valid",params:({params:t})=>(0,g3._)`{propertyName: ${t.propertyName}}`},Nfe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Ife,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,Ofe.alwaysValidSchema)(i,r))return;let s=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),e.if((0,g3.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};_1.default=Nfe});var E1=_(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});var b0=Cn(),oi=Oe(),kfe=ps(),E0=st(),Dfe={message:"must NOT have additional properties",params:({params:t})=>(0,oi._)`{additionalProperty: ${t.additionalProperty}}`},Lfe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Dfe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,E0.alwaysValidSchema)(o,r))return;let l=(0,b0.allSchemaProperties)(n.properties),u=(0,b0.allSchemaProperties)(n.patternProperties);f(),t.ok((0,oi._)`${s} === ${kfe.default.errors}`);function f(){e.forIn("key",i,g=>{!l.length&&!u.length?p(g):e.if(d(g),()=>p(g))})}function d(g){let y;if(l.length>8){let b=(0,E0.schemaRefOrVal)(o,n.properties,"properties");y=(0,b0.isOwnProperty)(e,b,g)}else l.length?y=(0,oi.or)(...l.map(b=>(0,oi._)`${g} === ${b}`)):y=oi.nil;return u.length&&(y=(0,oi.or)(y,...u.map(b=>(0,oi._)`${(0,b0.usePattern)(t,b)}.test(${g})`))),(0,oi.not)(y)}function h(g){e.code((0,oi._)`delete ${i}[${g}]`)}function p(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){t.setParams({additionalProperty:g}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,E0.alwaysValidSchema)(o,r)){let y=e.name("valid");c.removeAdditional==="failing"?(m(g,y,!1),e.if((0,oi.not)(y),()=>{t.reset(),h(g)})):(m(g,y),a||e.if((0,oi.not)(y),()=>e.break()))}}function m(g,y,b){let x={keyword:"additionalProperties",dataProp:g,dataPropType:E0.Type.Str};b===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(x,y)}}};b1.default=Lfe});var b3=_(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});var qfe=of(),x3=Cn(),w1=st(),_3=E1(),jfe={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&_3.default.code(new qfe.KeywordCxt(s,_3.default,"additionalProperties"));let o=(0,x3.allSchemaProperties)(r);for(let f of o)s.definedProperties.add(f);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=w1.mergeEvaluated.props(e,(0,w1.toHash)(o),s.props));let a=o.filter(f=>!(0,w1.alwaysValidSchema)(s,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?u(f):(e.if((0,x3.propertyInData)(e,i,f,s.opts.ownProperties)),u(f),s.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};S1.default=jfe});var A3=_(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});var E3=Cn(),w0=Oe(),w3=st(),S3=st(),Ffe={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:s}=t,{opts:o}=s,a=(0,E3.allSchemaProperties)(r),c=a.filter(m=>(0,w3.alwaysValidSchema)(s,r[m]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=o.strictSchema&&!o.allowMatchingProperties&&i.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof w0.Name)&&(s.props=(0,S3.evaluatedPropsToName)(e,s.props));let{props:f}=s;d();function d(){for(let m of a)l&&h(m),s.allErrors?p(m):(e.var(u,!0),p(m),e.if(u))}function h(m){for(let g in l)new RegExp(m).test(g)&&(0,w3.checkStrictMode)(s,`property ${g} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){e.forIn("key",n,g=>{e.if((0,w0._)`${(0,E3.usePattern)(t,m)}.test(${g})`,()=>{let y=c.includes(m);y||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:g,dataPropType:S3.Type.Str},u),s.opts.unevaluated&&f!==!0?e.assign((0,w0._)`${f}[${g}]`,!0):!y&&!s.allErrors&&e.if((0,w0.not)(u),()=>e.break())})})}}};A1.default=Ffe});var T3=_(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});var Mfe=st(),Bfe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,Mfe.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};T1.default=Bfe});var $3=_($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});var Ufe=Cn(),zfe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ufe.validateUnion,error:{message:"must match a schema in anyOf"}};$1.default=zfe});var R3=_(R1=>{"use strict";Object.defineProperty(R1,"__esModule",{value:!0});var S0=Oe(),Hfe=st(),Vfe={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,S0._)`{passingSchemas: ${t.passing}}`},Wfe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Vfe,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,o=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(o,()=>t.reset(),()=>t.error(!0));function l(){s.forEach((u,f)=>{let d;(0,Hfe.alwaysValidSchema)(i,u)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,S0._)`${c} && ${o}`).assign(o,!1).assign(a,(0,S0._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(a,f),d&&t.mergeEvaluated(d,S0.Name)})})}}};R1.default=Wfe});var P3=_(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0});var Gfe=st(),Kfe={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((s,o)=>{if((0,Gfe.alwaysValidSchema)(n,s))return;let a=t.subschema({keyword:"allOf",schemaProp:o},i);t.ok(i),t.mergeEvaluated(a)})}};P1.default=Kfe});var I3=_(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});var A0=Oe(),O3=st(),Xfe={message:({params:t})=>(0,A0.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,A0._)`{failingKeyword: ${t.ifClause}}`},Yfe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Xfe,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,O3.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=C3(n,"then"),s=C3(n,"else");if(!i&&!s)return;let o=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&s){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,l("then",u),l("else",u))}else i?e.if(a,l("then")):e.if((0,A0.not)(a),l("else"));t.pass(o,()=>t.error(!0));function c(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function l(u,f){return()=>{let d=t.subschema({keyword:u},a);e.assign(o,a),t.mergeValidEvaluated(d,o),f?e.assign(f,(0,A0._)`${u}`):t.setParams({ifClause:u})}}}};function C3(t,e){let r=t.schema[e];return r!==void 0&&!(0,O3.alwaysValidSchema)(t,r)}C1.default=Yfe});var N3=_(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0});var Jfe=st(),Qfe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,Jfe.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};O1.default=Qfe});var k3=_(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0});var Zfe=h1(),ede=l3(),tde=m1(),rde=d3(),nde=p3(),ide=y3(),sde=v3(),ode=E1(),ade=b3(),cde=A3(),ude=T3(),lde=$3(),fde=R3(),dde=P3(),pde=I3(),hde=N3();function mde(t=!1){let e=[ude.default,lde.default,fde.default,dde.default,pde.default,hde.default,sde.default,ode.default,ide.default,ade.default,cde.default];return t?e.push(ede.default,rde.default):e.push(Zfe.default,tde.default),e.push(nde.default),e}I1.default=mde});var D3=_(N1=>{"use strict";Object.defineProperty(N1,"__esModule",{value:!0});var Mt=Oe(),yde={message:({schemaCode:t})=>(0,Mt.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Mt._)`{format: ${t}}`},gde={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yde,code(t,e){let{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:u,self:f}=a;if(!c.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=r.const("fDef",(0,Mt._)`${p}[${o}]`),g=r.let("fType"),y=r.let("format");r.if((0,Mt._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(g,(0,Mt._)`${m}.type || "string"`).assign(y,(0,Mt._)`${m}.validate`),()=>r.assign(g,(0,Mt._)`"string"`).assign(y,m)),t.fail$data((0,Mt.or)(b(),x()));function b(){return c.strictSchema===!1?Mt.nil:(0,Mt._)`${o} && !${y}`}function x(){let v=u.$async?(0,Mt._)`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,Mt._)`${y}(${n})`,E=(0,Mt._)`(typeof ${y} == "function" ? ${v} : ${y}.test(${n}))`;return(0,Mt._)`${y} && ${y} !== true && ${g} === ${e} && !${E}`}}function h(){let p=f.formats[s];if(!p){b();return}if(p===!0)return;let[m,g,y]=x(p);m===e&&t.pass(v());function b(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function x(E){let S=E instanceof RegExp?(0,Mt.regexpCode)(E):c.code.formats?(0,Mt._)`${c.code.formats}${(0,Mt.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:E,code:S});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,Mt._)`${w}.validate`]:["string",E,w]}function v(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Mt._)`await ${y}(${n})`}return typeof g=="function"?(0,Mt._)`${y}(${n})`:(0,Mt._)`${y}.test(${n})`}}}};N1.default=gde});var L3=_(k1=>{"use strict";Object.defineProperty(k1,"__esModule",{value:!0});var vde=D3(),xde=[vde.default];k1.default=xde});var q3=_(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.contentVocabulary=Yc.metadataVocabulary=void 0;Yc.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yc.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var F3=_(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});var _de=W4(),bde=o3(),Ede=k3(),wde=L3(),j3=q3(),Sde=[_de.default,bde.default,(0,Ede.default)(),wde.default,j3.metadataVocabulary,j3.contentVocabulary];D1.default=Sde});var B3=_(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});T0.DiscrError=void 0;var M3;(function(t){t.Tag="tag",t.Mapping="mapping"})(M3||(T0.DiscrError=M3={}))});var z3=_(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0});var Jc=Oe(),L1=B3(),U3=c0(),Ade=af(),Tde=st(),$de={message:({params:{discrError:t,tagName:e}})=>t===L1.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Jc._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},Rde={keyword:"discriminator",type:"object",schemaType:"object",error:$de,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:s}=t,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,Jc._)`${r}${(0,Jc.getProperty)(a)}`);e.if((0,Jc._)`typeof ${l} == "string"`,()=>u(),()=>t.error(!1,{discrError:L1.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function u(){let h=d();e.if(!1);for(let p in h)e.elseIf((0,Jc._)`${l} === ${p}`),e.assign(c,f(h[p]));e.else(),t.error(!1,{discrError:L1.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(h){let p=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},p);return t.mergeEvaluated(m,Jc.Name),p}function d(){var h;let p={},m=y(i),g=!0;for(let v=0;v{Pde.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 F1=_(($t,j1)=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.MissingRefError=$t.ValidationError=$t.CodeGen=$t.Name=$t.nil=$t.stringify=$t.str=$t._=$t.KeywordCxt=$t.Ajv=void 0;var Cde=M4(),Ode=F3(),Ide=z3(),V3=H3(),Nde=["/properties"],$0="http://json-schema.org/draft-07/schema",Qc=class extends Cde.default{_addVocabularies(){super._addVocabularies(),Ode.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(Ide.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(V3,Nde):V3;this.addMetaSchema(e,$0,!1),this.refs["http://json-schema.org/schema"]=$0}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($0)?$0:void 0)}};$t.Ajv=Qc;j1.exports=$t=Qc;j1.exports.Ajv=Qc;Object.defineProperty($t,"__esModule",{value:!0});$t.default=Qc;var kde=of();Object.defineProperty($t,"KeywordCxt",{enumerable:!0,get:function(){return kde.KeywordCxt}});var Zc=Oe();Object.defineProperty($t,"_",{enumerable:!0,get:function(){return Zc._}});Object.defineProperty($t,"str",{enumerable:!0,get:function(){return Zc.str}});Object.defineProperty($t,"stringify",{enumerable:!0,get:function(){return Zc.stringify}});Object.defineProperty($t,"nil",{enumerable:!0,get:function(){return Zc.nil}});Object.defineProperty($t,"Name",{enumerable:!0,get:function(){return Zc.Name}});Object.defineProperty($t,"CodeGen",{enumerable:!0,get:function(){return Zc.CodeGen}});var Dde=o0();Object.defineProperty($t,"ValidationError",{enumerable:!0,get:function(){return Dde.default}});var Lde=af();Object.defineProperty($t,"MissingRefError",{enumerable:!0,get:function(){return Lde.default}})});var G3=_((iUe,W3)=>{"use strict";var qde={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};W3.exports={HEX:qde}});var tL=_((sUe,eL)=>{"use strict";var{HEX:jde}=G3();function J3(t){if(Z3(t,".")<3)return{host:t,isIPV4:!1};let e=t.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]=e;return r?{host:Mde(r,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function M1(t){let e="",r=!0;for(let n of t){if(n!=="0"&&r===!0&&(r=!1),jde[n]===void 0)return;r||(e+=n)}return e}function Fde(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=!1;function c(){if(i.length){if(s===!1){let l=M1(i.join(""));if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}for(let l=0;l7){r.error=!0;break}l-1>=0&&t[l-1]===":"&&(o=!0);continue}else if(u==="%"){if(!c())break;s=!0}else{i.push(u);continue}}return i.length&&(s?r.zone=i.join(""):a?n.push(i.join("")):n.push(M1(i.join("")))),r.address=n.join(""),r}function Q3(t,e={}){if(Z3(t,":")<2)return{host:t,isIPV6:!1};let r=Fde(t);if(r.error)return{host:t,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 Mde(t,e){let r="",n=!0,i=t.length;for(let s=0;s{"use strict";var Vde=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,Wde=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function rL(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function nL(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function iL(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function Gde(t){return t.secure=rL(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function Kde(t){if((t.port===(rL(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function Xde(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(Wde);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,s=B1[i];t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function Yde(t,e){let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,s=B1[i];s&&(t=s.serialize(t,e));let o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function Jde(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!Vde.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Qde(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var sL={scheme:"http",domainHost:!0,parse:nL,serialize:iL},Zde={scheme:"https",domainHost:sL.domainHost,parse:nL,serialize:iL},R0={scheme:"ws",domainHost:!0,parse:Gde,serialize:Kde},epe={scheme:"wss",domainHost:R0.domainHost,parse:R0.parse,serialize:R0.serialize},tpe={scheme:"urn",parse:Xde,serialize:Yde,skipNormalize:!0},rpe={scheme:"urn:uuid",parse:Jde,serialize:Qde,skipNormalize:!0},B1={http:sL,https:Zde,ws:R0,wss:epe,urn:tpe,"urn:uuid":rpe};oL.exports=B1});var z1=_((aUe,C0)=>{"use strict";var{normalizeIPv6:npe,normalizeIPv4:ipe,removeDotSegments:Ef,recomposeAuthority:spe,normalizeComponentEncoding:P0}=tL(),cL=aL();function ope(t,e){return typeof t=="string"?t=Ii(ys(t,e),e):typeof t=="object"&&(t=ys(Ii(t,e),e)),t}function ape(t,e,r){let n=Object.assign({scheme:"null"},r),i=uL(ys(t,n),ys(e,n),n,!0);return Ii(i,{...n,skipEscape:!0})}function uL(t,e,r,n){let i={};return n||(t=ys(Ii(t,r),r),e=ys(Ii(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Ef(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Ef(e.path||""),i.query=e.query):(e.path?(e.path.charAt(0)==="/"?i.path=Ef(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=Ef(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function cpe(t,e,r){return typeof t=="string"?(t=unescape(t),t=Ii(P0(ys(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Ii(P0(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Ii(P0(ys(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Ii(P0(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Ii(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],s=cL[(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 o=spe(r,n);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=Ef(a)),o===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return r.query!==void 0&&(i.push("?"),i.push(r.query)),r.fragment!==void 0&&(i.push("#"),i.push(r.fragment)),i.join("")}var upe=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function lpe(t){let e=0;for(let r=0,n=t.length;r126||upe[e])return!0;return!1}var fpe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ys(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=t.indexOf("%")!==-1;r.reference==="suffix"&&(t=(r.scheme?r.scheme+":":"")+"//"+t);let s=t.match(fpe);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 a=ipe(n.host);a.isIPV4===!1?n.host=npe(a.host,{isIPV4:!1}).host.toLowerCase():n.host=a.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 o=cL[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&lpe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.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)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var U1={normalize:ope,resolve:ape,resolveComponents:uL,equal:cpe,serialize:Ii,parse:ys};C0.exports=U1;C0.exports.default=U1;C0.exports.fastUri=U1});var O0=_(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.formatNames=ki.fastFormats=ki.fullFormats=void 0;function Ni(t,e){return{validate:t,compare:e}}ki.fullFormats={date:Ni(pL,G1),time:Ni(V1(!0),K1),"date-time":Ni(lL(!0),mL),"iso-time":Ni(V1(),hL),"iso-date-time":Ni(lL(),yL),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:gpe,"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:Spe,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:vpe,int32:{type:"number",validate:bpe},int64:{type:"number",validate:Epe},float:{type:"number",validate:dL},double:{type:"number",validate:dL},password:!0,binary:!0};ki.fastFormats={...ki.fullFormats,date:Ni(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,G1),time:Ni(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,K1),"date-time":Ni(/^\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,mL),"iso-time":Ni(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,hL),"iso-date-time":Ni(/^\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,yL),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};ki.formatNames=Object.keys(ki.fullFormats);function dpe(t){return t%4===0&&(t%100!==0||t%400===0)}var ppe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,hpe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function pL(t){let e=ppe.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&dpe(r)?29:hpe[n])}function G1(t,e){if(t&&e)return t>e?1:t23||u>59||t&&!a)return!1;if(i<=23&&s<=59&&o<60)return!0;let f=s-u*c,d=i-l*c-(f<0?1:0);return(d===23||d===-1)&&(f===59||f===-1)&&o<61}}function K1(t,e){if(!(t&&e))return;let r=new Date("2020-01-01T"+t).valueOf(),n=new Date("2020-01-01T"+e).valueOf();if(r&&n)return r-n}function hL(t,e){if(!(t&&e))return;let r=H1.exec(t),n=H1.exec(e);if(r&&n)return t=r[1]+r[2]+r[3],e=n[1]+n[2]+n[3],t>e?1:t=xpe}function Epe(t){return Number.isInteger(t)}function dL(){return!0}var wpe=/[^\\]\\Z/;function Spe(t){if(wpe.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var gL=_(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.formatLimitDefinition=void 0;var Ape=F1(),ai=Oe(),fo=ai.operators,I0={formatMaximum:{okStr:"<=",ok:fo.LTE,fail:fo.GT},formatMinimum:{okStr:">=",ok:fo.GTE,fail:fo.LT},formatExclusiveMaximum:{okStr:"<",ok:fo.LT,fail:fo.GTE},formatExclusiveMinimum:{okStr:">",ok:fo.GT,fail:fo.LTE}},Tpe={message:({keyword:t,schemaCode:e})=>(0,ai.str)`should be ${I0[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ai._)`{comparison: ${I0[t].okStr}, limit: ${e}}`};eu.formatLimitDefinition={keyword:Object.keys(I0),type:"string",schemaType:"string",$data:!0,error:Tpe,code(t){let{gen:e,data:r,schemaCode:n,keyword:i,it:s}=t,{opts:o,self:a}=s;if(!o.validateFormats)return;let c=new Ape.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let d=e.scopeValue("formats",{ref:a.formats,code:o.code.formats}),h=e.const("fmt",(0,ai._)`${d}[${c.schemaCode}]`);t.fail$data((0,ai.or)((0,ai._)`typeof ${h} != "object"`,(0,ai._)`${h} instanceof RegExp`,(0,ai._)`typeof ${h}.compare != "function"`,f(h)))}function u(){let d=c.schema,h=a.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=e.scopeValue("formats",{key:d,ref:h,code:o.code.formats?(0,ai._)`${o.code.formats}${(0,ai.getProperty)(d)}`:void 0});t.fail$data(f(p))}function f(d){return(0,ai._)`${d}.compare(${r}, ${n}) ${I0[i].fail} 0`}},dependencies:["format"]};var $pe=t=>(t.addKeyword(eu.formatLimitDefinition),t);eu.default=$pe});var bL=_((wf,_L)=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var tu=O0(),Rpe=gL(),X1=Oe(),vL=new X1.Name("fullFormats"),Ppe=new X1.Name("fastFormats"),Y1=(t,e={keywords:!0})=>{if(Array.isArray(e))return xL(t,e,tu.fullFormats,vL),t;let[r,n]=e.mode==="fast"?[tu.fastFormats,Ppe]:[tu.fullFormats,vL],i=e.formats||tu.formatNames;return xL(t,i,r,n),e.keywords&&(0,Rpe.default)(t),t};Y1.get=(t,e="full")=>{let n=(e==="fast"?tu.fastFormats:tu.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function xL(t,e,r,n){var i,s;(i=(s=t.opts.code).formats)!==null&&i!==void 0||(s.formats=(0,X1._)`require("ajv-formats/dist/formats").${n}`);for(let o of e)t.addFormat(o,r[o])}_L.exports=wf=Y1;Object.defineProperty(wf,"__esModule",{value:!0});wf.default=Y1});var Q1=_((lUe,EL)=>{"use strict";var Cpe=F1(),Ope=z1(),Ipe=bL(),Npe=Wh()({proto:!0}),J1=class t{constructor(e){this.ajv=new Cpe({...e,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:Ope}),Ipe(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(r,n)=>n instanceof Date}),this._ajvSchemas={},this._ajvOptions=e||{}}addSchema(e,r){let n=e.$id||r;if(e.$id!==void 0&&e.$id[0]==="#"&&(n=r+e.$id),this.ajv.refs[n]===void 0&&this.ajv.schemas[n]===void 0){let i=Npe(e);this.convertSchemaToAjvFormat(i),this.ajv.addSchema(i,n),this._ajvSchemas[n]=e}}validate(e,r){return this.ajv.validate(e,r)}convertSchemaToAjvFormat(e){if(e!==null){e.type==="string"?(e.fjs_type="string",e.type=["string","object"]):Array.isArray(e.type)&&e.type.includes("string")&&!e.type.includes("object")&&(e.fjs_type="string",e.type.push("object"));for(let r in e)typeof e[r]=="object"&&this.convertSchemaToAjvFormat(e[r])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(e){let r=new t(e.ajvOptions);for(let[n,i]of Object.entries(e.ajvSchemas))r.ajv.addSchema(i,n);return r}};EL.exports=J1});var eE=_((fUe,Z1)=>{"use strict";function kpe(t,e,r,n){let i="";e.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,...o}=r.getState();return` - 'use strict' - - const Serializer = require('fast-json-stringify/lib/serializer') - const serializerState = ${JSON.stringify(o)} - const serializer = Serializer.restoreFromState(serializerState) - - ${i} - - module.exports = ${t.toString()}(validator, serializer)`}Z1.exports=kpe;Z1.exports.dependencies={Serializer:tb(),Validator:Q1()}});var SL=_((pUe,wL)=>{"use strict";var{dependencies:Dpe}=eE(),{Serializer:Lpe,Validator:dUe}=Dpe,qpe={mode:"standalone"},jpe=Lpe.restoreFromState(qpe),Fpe=null;wL.exports=function(e,r){function n(s){let o=s&&typeof s.toJSON=="function"?s.toJSON():s;if(o===null)return"{}";let a=!1,c="{";return o.statusCode!==void 0&&(!a&&(a=!0)||(c+=","),c+='"statusCode":',c+=r.asNumber(o.statusCode)),o.code!==void 0&&(!a&&(a=!0)||(c+=","),c+='"code":',c+=r.asString(o.code)),o.error!==void 0&&(!a&&(a=!0)||(c+=","),c+='"error":',c+=r.asString(o.error)),o.message!==void 0&&(!a&&(a=!0)||(c+=","),c+='"message":',c+=r.asString(o.message)),c+"}"}return n}(Fpe,jpe)});var Sf=_((hUe,RL)=>{"use strict";var AL=require("node:http").STATUS_CODES,Mpe=Qx(),{kReplyHeaders:Ta,kReplyNextErrorHandler:N0,kReplyIsRunningOnErrorHook:Bpe,kReplyHasStatusCode:Upe,kRouteContext:$L}=or(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:zpe,FST_ERR_FAILED_ERROR_SERIALIZATION:Hpe}=Ar(),{getSchemaSerializer:Vpe}=Vl(),tE=SL(),Wpe={func:Kpe,toJSON(){return this.func.name.toString()+"()"}};function Gpe(t,e,r){t[Bpe]=!1;let n=t[$L];if(t[N0]===!1){TL(e,t,function(a,c){try{a.raw.writeHead(a.raw.statusCode,a[Ta])}catch(l){a.log.warn({req:a.request,res:a,err:l},l&&l.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(c)});return}let i=t[N0]||n.errorHandler;t[N0]=Object.getPrototypeOf(i),delete t[Ta]["content-type"],delete t[Ta]["content-length"];let s=i.func;if(!s){t[N0]=!1,TL(e,t,r);return}let o=s(e,t.request,t);o!==void 0&&(o!==null&&typeof o.then=="function"?Mpe(o,t):t.send(o))}function Kpe(t,e,r){if(Ype(t,r),!r[Upe]||r.statusCode===200){let n=t.statusCode||t.status;r.code(n>=400?n:500)}r.statusCode<500?r.log.info({res:r,err:t},t&&t.message):r.log.error({req:e,res:r,err:t},t&&t.message),r.send(t)}function TL(t,e,r){let n=e.raw,i=e.statusCode;e[Ta]["content-type"]=e[Ta]["content-type"]??"application/json; charset=utf-8";let s;try{let o=Vpe(e[$L],i,e[Ta]["content-type"]);s=o===!1?tE({error:AL[i+""],code:t.code,message:t.message,statusCode:i}):o(Object.create(t,{error:{value:AL[i+""]},message:{value:t.message},statusCode:{value:i}}))}catch(o){e.log.error({err:o,statusCode:n.statusCode},"The serializer for the given status code failed"),e.code(500),s=tE(new Hpe(o.message,t.message))}typeof s!="string"&&!Buffer.isBuffer(s)&&(s=tE(new zpe(typeof s))),e[Ta]["content-length"]=""+Buffer.byteLength(s),r(e,s)}function Xpe(t=Wpe,e){if(!e)return t;let r=Object.create(t);return r.func=e,r}function Ype(t,e){let r=e.raw,n=r.statusCode;n=n>=400?n:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?n=t.status:t.statusCode>=400&&(n=t.statusCode)),r.statusCode=n}RL.exports={buildErrorHandler:Xpe,handleError:Gpe}});var F0=_((mUe,j0)=>{"use strict";var sE=require("node:stream").finished,Jpe=require("node:stream").Readable,{kFourOhFourContext:PL,kPublicRouteContext:CL,kReplyErrorHandlerCalled:jL,kReplyHijacked:Af,kReplyStartTime:Tf,kReplyEndTime:aE,kReplySerializer:gs,kReplySerializerDefault:D0,kReplyIsError:L0,kReplyHeaders:Et,kReplyTrailers:ar,kReplyHasStatusCode:cE,kReplyIsRunningOnErrorHook:uE,kReplyNextErrorHandler:Qpe,kDisableRequestLogging:FL,kSchemaResponse:q0,kReplyCacheSerializeFns:po,kSchemaController:rE,kOptions:Zpe,kRouteContext:je}=or(),{onSendHookRunner:ML,onResponseHookRunner:ehe,preHandlerHookRunner:the,preSerializationHookRunner:rhe}=Zs(),OL=r_()[Symbol.for("internals")],nhe=Hl(),oE=nhe.now,{handleError:IL}=Sf(),{getSchemaSerializer:ihe}=Vl(),nE={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:she,FST_ERR_REP_RESPONSE_BODY_CONSUMED:ohe,FST_ERR_REP_ALREADY_SENT:BL,FST_ERR_REP_SENT_VALUE:ahe,FST_ERR_SEND_INSIDE_ONERR:che,FST_ERR_BAD_STATUS_CODE:uhe,FST_ERR_BAD_TRAILER_NAME:lhe,FST_ERR_BAD_TRAILER_VALUE:fhe,FST_ERR_MISSING_SERIALIZATION_FN:dhe,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:phe}=Ar(),{FSTDEP010:hhe,FSTDEP013:mhe,FSTDEP019:yhe,FSTDEP020:ghe}=us(),UL=Object.prototype.toString;function vt(t,e,r){this.raw=t,this[gs]=null,this[jL]=!1,this[L0]=!1,this[uE]=!1,this.request=e,this[Et]={},this[ar]=null,this[cE]=!1,this[Tf]=void 0,this.log=r}vt.props=[];Object.defineProperties(vt.prototype,{[je]:{get(){return this.request[je]}},context:{get(){return yhe(),this.request[je]}},elapsedTime:{get(){return this[Tf]===void 0?0:(this[aE]||oE())-this[Tf]}},server:{get(){return this.request[je].server}},sent:{enumerable:!0,get(){return(this[Af]||this.raw.writableEnded)===!0},set(t){if(hhe(),t!==!0)throw new ahe;if(this.sent&&this[Af])throw new BL(this.request.url,this.request.method);this[Af]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[CL]:{get(){return this.request[CL]}}});vt.prototype.hijack=function(){return this[Af]=!0,this};vt.prototype.send=function(t){if(this[uE]===!0)throw new che;if(this.sent)return this.log.warn({err:new BL(this.request.url,this.request.method)}),this;if(t instanceof Error||this[L0]===!0)return this[L0]=!1,$f(this,t,$a),this;if(t===void 0)return $a(this,t),this;let e=this.getHeader("content-type"),r=e!==void 0;if(t!==null){if(typeof t.pipe=="function"||typeof t.getReader=="function"||UL.call(t)==="[object Response]")return $a(this,t),this;if(t?.buffer instanceof ArrayBuffer){r===!1&&(this[Et]["content-type"]=nE.OCTET);let n=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);return $a(this,n),this}if(r===!1&&typeof t=="string")return this[Et]["content-type"]=nE.PLAIN,$a(this,t),this}if(this[gs]!==null){if(typeof t!="string")return NL(this,t),this;t=this[gs](t)}else if(r===!1||e.indexOf("json")>-1){if(r===!1)this[Et]["content-type"]=nE.JSON;else if(e.indexOf("charset")===-1){let n=e.trim();n.endsWith(";")?this[Et]["content-type"]=`${n} charset=utf-8`:this[Et]["content-type"]=`${n}; charset=utf-8`}if(typeof t!="string")return NL(this,t),this}return $a(this,t),this};vt.prototype.getHeader=function(t){t=t.toLowerCase();let e=this.raw,r=this[Et][t];return r===void 0&&e.hasHeader(t)&&(r=e.getHeader(t)),r};vt.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[Et]}};vt.prototype.hasHeader=function(t){return t=t.toLowerCase(),this[Et][t]!==void 0||this.raw.hasHeader(t)};vt.prototype.removeHeader=function(t){return delete this[Et][t.toLowerCase()],this};vt.prototype.header=function(t,e=""){return t=t.toLowerCase(),this[Et][t]&&t==="set-cookie"?(typeof this[Et][t]=="string"&&(this[Et][t]=[this[Et][t]]),Array.isArray(e)?Array.prototype.push.apply(this[Et][t],e):this[Et][t].push(e)):this[Et][t]=e,this};vt.prototype.headers=function(t){let e=Object.keys(t);for(var r=0;r!==e.length;++r){let n=e[r];this.header(n,t[n])}return this};var vhe=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);vt.prototype.trailer=function(t,e){if(t=t.toLowerCase(),vhe.has(t))throw new lhe(t);if(typeof e!="function")throw new fhe(t,typeof e);return this[ar]===null&&(this[ar]={}),this[ar][t]=e,this};vt.prototype.hasTrailer=function(t){return this[ar]?.[t.toLowerCase()]!==void 0};vt.prototype.removeTrailer=function(t){return this[ar]===null?this:(this[ar][t.toLowerCase()]=void 0,this)};vt.prototype.code=function(t){let e=Number(t);if(isNaN(e)||e<100||e>599)throw new uhe(t||String(t));return this.raw.statusCode=e,this[cE]=!0,this};vt.prototype.status=vt.prototype.code;vt.prototype.getSerializationFunction=function(t,e){let r;return typeof t=="string"||typeof t=="number"?typeof e=="string"?r=this[je][q0]?.[t]?.[e]:r=this[je][q0]?.[t]:typeof t=="object"&&(r=this[je][po]?.get(t)),r};vt.prototype.compileSerializationSchema=function(t,e=null,r=null){let{request:n}=this,{method:i,url:s}=n;if(this[je][po]?.has(t))return this[je][po].get(t);let a=(this[je].serializerCompiler||this.server[rE].serializerCompiler||this.server[rE].setupSerializer(this.server[Zpe])||this.server[rE].serializerCompiler)({schema:t,method:i,url:s,httpStatus:e,contentType:r});return this[je][po]==null&&(this[je][po]=new WeakMap),this[je][po].set(t,a),a};vt.prototype.serializeInput=function(t,e,r,n){let i=r,s;if(r=typeof e=="string"||typeof e=="number"?e:r,n=r&&i!==r?i:n,r!=null){if(n!=null?s=this[je][q0]?.[r]?.[n]:s=this[je][q0]?.[r],s==null)throw n?new phe(r,n):new dhe(r)}else this[je][po]?.has(e)?s=this[je][po].get(e):s=this.compileSerializationSchema(e,r,n);return s(t)};vt.prototype.serialize=function(t){return this[gs]!==null?this[gs](t):this[je]&&this[je][D0]?this[je][D0](t,this.raw.statusCode):VL(this[je],t,this.raw.statusCode)};vt.prototype.serializer=function(t){return this[gs]=t,this};vt.prototype.type=function(t){return this[Et]["content-type"]=t,this};vt.prototype.redirect=function(t,e){return typeof t=="string"&&(e=t,t=this[cE]?this.raw.statusCode:302),this.header("location",e).code(t).send()};vt.prototype.callNotFound=function(){return She(this),this};vt.prototype.getResponseTime=function(){return ghe(),this.elapsedTime};vt.prototype.then=function(t,e){if(this.sent){t();return}sE(this.raw,r=>{r&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"?e?e(r):this.log&&this.log.warn("unhandled rejection on reply.then"):t()})};function NL(t,e){t[je].preSerialization!==null?rhe(t[je].preSerialization,t.request,t,e,kL):kL(null,t.request,t,e)}function kL(t,e,r,n){if(t!=null){$f(r,t);return}try{r[gs]!==null?n=r[gs](n):r[je]&&r[je][D0]?n=r[je][D0](n,r.raw.statusCode):n=VL(r[je],n,r.raw.statusCode,r[Et]["content-type"])}catch(i){xhe(i,r),$f(r,i);return}$a(r,n)}function xhe(t,e){t.serialization=e[je].config}function $a(t,e){t[je].onSend!==null?ML(t[je].onSend,t.request,t,e,_he):zL(t,e)}function _he(t,e,r,n){t!=null?$f(r,t):zL(r,n)}function iE(t,e){let r=t.raw;try{r.writeHead(e,t[Et])}catch(n){throw n.code==="ERR_HTTP_HEADERS_SENT"&&t.log.warn(`Reply was already sent, did you forget to "return reply" in the "${t.request.raw.url}" (${t.request.raw.method}) route?`),n}}function zL(t,e){let r=t.raw,n=t.request;if(t[ar]!==null){let o=Object.keys(t[ar]),a="";for(let c of o)typeof t[ar][c]=="function"&&(a+=" ",a+=c);t.header("Transfer-Encoding","chunked"),t.header("Trailer",a.trim())}let i=UL.call(e)==="[object Response]";i&&typeof e.status=="number"&&t.code(e.status);let s=r.statusCode;if(e==null){s>=200&&s!==204&&s!==304&&n.method!=="HEAD"&&t[ar]===null&&(t[Et]["content-length"]="0"),iE(t,s),k0(e,r,t);return}if(s>=100&&s<200||s===204){t.removeHeader("content-type"),t.removeHeader("content-length"),iE(t,s),k0(void 0,r,t),typeof e.resume=="function"&&(e.on("error",WL),e.resume());return}if(typeof e.pipe=="function"){HL(e,r,t);return}if(typeof e.getReader=="function"){LL(e,r,t);return}if(i){if(typeof e.headers=="object"&&typeof e.headers.forEach=="function")for(let[o,a]of e.headers)t.header(o,a);if(e.body!=null){if(e.bodyUsed)throw new ohe;LL(e.body,r,t)}return}if(typeof e!="string"&&!Buffer.isBuffer(e))throw new she(typeof e);if(t[ar]===null){let o=t[Et]["content-length"];(!o||n.raw.method!=="HEAD"&&Number(o)!==Buffer.byteLength(e))&&(t[Et]["content-length"]=""+Buffer.byteLength(e))}iE(t,s),r.write(e),k0(e,r,t)}function DL(t,e,r){e.code==="ERR_STREAM_PREMATURE_CLOSE"?t[FL]||t.info({res:r},"stream closed prematurely"):t.warn({err:e},"response terminated with an error with headers already sent")}function LL(t,e,r){let n=Jpe.fromWeb(t);HL(n,e,r)}function HL(t,e,r){let n=!0,i=!1;if(bhe(t,e,r),sE(t,{readable:!0,writable:!1},function(s){n=!1,s!=null&&(e.headersSent||r.request.raw.aborted===!0?(i||(i=!0,DL(r.log,s,e)),e.destroy()):$f(r,s))}),sE(e,function(s){n&&(s!=null&&e.headersSent&&!i&&(i=!0,DL(r.log,s,e)),typeof t.destroy=="function"?t.destroy():typeof t.close=="function"?t.close(WL):typeof t.abort=="function"?t.abort():r.log.warn("stream payload does not end properly"))}),e.headersSent)r.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let s in r[Et])e.setHeader(s,r[Et][s]);t.pipe(e)}function k0(t,e,r){if(r[ar]===null){e.end(null,null,null);return}let n=Object.keys(r[ar]),i={},s=0,o=!0;function a(){s===0&&(e.addTrailers(i),e.end(null,null,null))}for(let c of n){let l=function(f,d){s++,f?r.log.debug(f):i[c]=d,process.nextTick(a)};if(typeof r[ar][c]!="function")continue;o=!1,s--;let u=r[ar][c](r,t,l);typeof u=="object"&&typeof u.then=="function"?u.then(f=>l(null,f),l):u!=null&&(mhe(),l(null,u))}o&&e.end(null,null,null)}function bhe(t,e,r){r[ar]!==null&&t.on("end",()=>k0(null,e,r))}function $f(t,e,r){t[je].onError!==null&&!t[Qpe]?(t[uE]=!0,ML(t[je].onError,t.request,t,e,()=>IL(t,e,r))):IL(t,e,r)}function Ehe(t){t[Tf]=oE();let e=r=>{t[aE]=oE(),t.raw.removeListener("finish",e),t.raw.removeListener("error",e);let n=t[je];n&&n.onResponse!==null?ehe(n.onResponse,t.request,t,qL):qL(r,t.request,t)};t.raw.on("finish",e),t.raw.on("error",e)}function qL(t,e,r){if(r.log[FL])return;let n=r.elapsedTime;if(t!=null){r.log.error({res:r,err:t,responseTime:n},"request errored");return}r.log.info({res:r,responseTime:n},"request completed")}function whe(t){let e=t.props.slice();function r(n,i,s){this.raw=n,this[L0]=!1,this[jL]=!1,this[Af]=!1,this[gs]=null,this.request=i,this[Et]={},this[ar]=null,this[Tf]=void 0,this[aE]=void 0,this.log=s;for(var o,a=0;a{"use strict";GL.exports=Ahe;function Ahe(t){if(!t)throw new TypeError("argument req is required");var e=$he(t.headers["x-forwarded-for"]||""),r=The(t),n=[r].concat(e);return n}function The(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function $he(t){for(var e=t.length,r=[],n=t.length,i=t.length-1;i>=0;i--)switch(t.charCodeAt(i)){case 32:n===e&&(n=e=i);break;case 44:n!==e&&r.push(t.substring(n,e)),n=e=i;break;default:n=i;break}return n!==e&&r.push(t.substring(n,e)),r}});var YL=_((XL,Rf)=>{(function(){var t,e,r,n,i,s,o,a,c;e={},a=this,typeof Rf<"u"&&Rf!==null&&Rf.exports?Rf.exports=e:a.ipaddr=e,o=function(l,u,f,d){var h,p;if(l.length!==u.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!==u[h]>>p)return!1;d-=f,h+=1}return!0},e.subnetMatch=function(l,u,f){var d,h,p,m,g;f==null&&(f="unicast");for(p in u)for(m=u[p],m[0]&&!(m[0]instanceof Array)&&(m=[m]),d=0,h=m.length;d=0;f=d+=-1)if(h=this.octets[f],h in g){if(m=g[h],p&&m!==0)return null;m!==8&&(p=!0),u+=m}else return null;return 32-u},l}(),r="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp("^"+r+"\\."+r+"\\."+r+"\\."+r+"$","i"),longValue:new RegExp("^"+r+"$","i")},e.IPv4.parser=function(l){var u,f,d,h,p;if(f=function(m){return m[0]==="0"&&m[1]!=="x"?parseInt(m,8):parseInt(m)},u=l.match(n.fourOctet))return function(){var m,g,y,b;for(y=u.slice(1,6),b=[],m=0,g=y.length;m4294967295||p<0)throw new Error("ipaddr: address outside defined range");return function(){var m,g;for(g=[],h=m=0;m<=24;h=m+=8)g.push(p>>h&255);return g}().reverse()}else return null},e.IPv6=function(){function l(u,f){var d,h,p,m,g,y;if(u.length===16)for(this.parts=[],d=h=0;h<=14;d=h+=2)this.parts.push(u[d]<<8|u[d+1]);else if(u.length===8)this.parts=u;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(y=this.parts,p=0,m=y.length;pf&&(u=d.index,f=d[0].length);return f<0?p:p.substring(0,u)+"::"+p.substring(u+f)},l.prototype.toByteArray=function(){var u,f,d,h,p;for(u=[],p=this.parts,f=0,d=p.length;f>8),u.push(h&255);return u},l.prototype.toNormalizedString=function(){var u,f,d;return u=function(){var h,p,m,g;for(m=this.parts,g=[],h=0,p=m.length;h>8,u&255,f>>8,f&255])},l.prototype.prefixLengthFromSubnetMask=function(){var u,f,d,h,p,m,g;for(g={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},u=0,p=!1,f=d=7;d>=0;f=d+=-1)if(h=this.parts[f],h in g){if(m=g[h],p&&m!==0)return null;m!==16&&(p=!0),u+=m}else return null;return 128-u},l}(),i="(?:[0-9a-f]+::?)+",c="%[0-9a-z]{1,}",s={zoneIndex:new RegExp(c,"i"),native:new RegExp("^(::)?("+i+")?([0-9a-f]+)?(::)?("+c+")?$","i"),transitional:new RegExp("^((?:"+i+")|(?:::)(?:"+i+")?)"+(r+"\\."+r+"\\."+r+"\\."+r)+("("+c+")?$"),"i")},t=function(l,u){var f,d,h,p,m,g;if(l.indexOf("::")!==l.lastIndexOf("::"))return null;for(g=(l.match(s.zoneIndex)||[])[0],g&&(g=g.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>u)return null;for(m=u-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)),u=function(){var y,b,x,v;for(x=l.split(":"),v=[],y=0,b=x.length;y=0&&u<=32))return d=[this.parse(f[1]),u],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(l){var u,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,u=Math.floor(l/8);f=0&&u<=128))return d=[this.parse(f[1]),u],Object.defineProperty(d,"toString",{value:function(){return this.join("/")}}),d;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(l){return e.IPv6.isValid(l)||e.IPv4.isValid(l)},e.parse=function(l){if(e.IPv6.isValid(l))return e.IPv6.parse(l);if(e.IPv4.isValid(l))return e.IPv4.parse(l);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(l){var u;try{return e.IPv6.parseCIDR(l)}catch(f){u=f;try{return e.IPv4.parseCIDR(l)}catch(d){throw u=d,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(l){var u;if(u=l.length,u===4)return new e.IPv4(l);if(u===16)return new e.IPv6(l);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(l){var u;return u=this.parse(l),u.kind()==="ipv6"&&u.isIPv4MappedAddress()?u.toIPv4Address():u}}).call(XL)});var tq=_((gUe,U0)=>{"use strict";U0.exports=khe;U0.exports.all=ZL;U0.exports.compile=eq;var Rhe=KL(),QL=YL(),Phe=/^[0-9]+$/,M0=QL.isValid,B0=QL.parse,JL={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 ZL(t,e){var r=Rhe(t);if(!e)return r;typeof e!="function"&&(e=eq(e));for(var n=0;ni)throw new TypeError("invalid range on address: "+t);return[n,s]}function Nhe(t){var e=B0(t),r=e.kind();return r==="ipv4"?e.prefixLengthFromSubnetMask():null}function khe(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var r=ZL(t,e),n=r[r.length-1];return n}function Dhe(){return!1}function Lhe(t){return function(r){if(!M0(r))return!1;for(var n=B0(r),i,s=n.kind(),o=0;o{"use strict";var jhe="2.0.0",Fhe=Number.MAX_SAFE_INTEGER||9007199254740991,Mhe=16,Bhe=250,Uhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];rq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Mhe,MAX_SAFE_BUILD_LENGTH:Bhe,MAX_SAFE_INTEGER:Fhe,RELEASE_TYPES:Uhe,SEMVER_SPEC_VERSION:jhe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Cf=_((xUe,nq)=>{"use strict";var zhe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};nq.exports=zhe});var ru=_((Di,iq)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:lE,MAX_SAFE_BUILD_LENGTH:Hhe,MAX_LENGTH:Vhe}=Pf(),Whe=Cf();Di=iq.exports={};var Ghe=Di.re=[],Khe=Di.safeRe=[],oe=Di.src=[],Xhe=Di.safeSrc=[],ae=Di.t={},Yhe=0,fE="[a-zA-Z0-9-]",Jhe=[["\\s",1],["\\d",Vhe],[fE,Hhe]],Qhe=t=>{for(let[e,r]of Jhe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},Se=(t,e,r)=>{let n=Qhe(e),i=Yhe++;Whe(t,i,e),ae[t]=i,oe[i]=e,Xhe[i]=n,Ghe[i]=new RegExp(e,r?"g":void 0),Khe[i]=new RegExp(n,r?"g":void 0)};Se("NUMERICIDENTIFIER","0|[1-9]\\d*");Se("NUMERICIDENTIFIERLOOSE","\\d+");Se("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${fE}*`);Se("MAINVERSION",`(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})\\.(${oe[ae.NUMERICIDENTIFIER]})`);Se("MAINVERSIONLOOSE",`(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASEIDENTIFIER",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIER]})`);Se("PRERELEASEIDENTIFIERLOOSE",`(?:${oe[ae.NONNUMERICIDENTIFIER]}|${oe[ae.NUMERICIDENTIFIERLOOSE]})`);Se("PRERELEASE",`(?:-(${oe[ae.PRERELEASEIDENTIFIER]}(?:\\.${oe[ae.PRERELEASEIDENTIFIER]})*))`);Se("PRERELEASELOOSE",`(?:-?(${oe[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);Se("BUILDIDENTIFIER",`${fE}+`);Se("BUILD",`(?:\\+(${oe[ae.BUILDIDENTIFIER]}(?:\\.${oe[ae.BUILDIDENTIFIER]})*))`);Se("FULLPLAIN",`v?${oe[ae.MAINVERSION]}${oe[ae.PRERELEASE]}?${oe[ae.BUILD]}?`);Se("FULL",`^${oe[ae.FULLPLAIN]}$`);Se("LOOSEPLAIN",`[v=\\s]*${oe[ae.MAINVERSIONLOOSE]}${oe[ae.PRERELEASELOOSE]}?${oe[ae.BUILD]}?`);Se("LOOSE",`^${oe[ae.LOOSEPLAIN]}$`);Se("GTLT","((?:<|>)?=?)");Se("XRANGEIDENTIFIERLOOSE",`${oe[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Se("XRANGEIDENTIFIER",`${oe[ae.NUMERICIDENTIFIER]}|x|X|\\*`);Se("XRANGEPLAIN",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:\\.(${oe[ae.XRANGEIDENTIFIER]})(?:${oe[ae.PRERELEASE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGEPLAINLOOSE",`[v=\\s]*(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ae.XRANGEIDENTIFIERLOOSE]})(?:${oe[ae.PRERELEASELOOSE]})?${oe[ae.BUILD]}?)?)?`);Se("XRANGE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAIN]}$`);Se("XRANGELOOSE",`^${oe[ae.GTLT]}\\s*${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COERCEPLAIN",`(^|[^\\d])(\\d{1,${lE}})(?:\\.(\\d{1,${lE}}))?(?:\\.(\\d{1,${lE}}))?`);Se("COERCE",`${oe[ae.COERCEPLAIN]}(?:$|[^\\d])`);Se("COERCEFULL",oe[ae.COERCEPLAIN]+`(?:${oe[ae.PRERELEASE]})?(?:${oe[ae.BUILD]})?(?:$|[^\\d])`);Se("COERCERTL",oe[ae.COERCE],!0);Se("COERCERTLFULL",oe[ae.COERCEFULL],!0);Se("LONETILDE","(?:~>?)");Se("TILDETRIM",`(\\s*)${oe[ae.LONETILDE]}\\s+`,!0);Di.tildeTrimReplace="$1~";Se("TILDE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAIN]}$`);Se("TILDELOOSE",`^${oe[ae.LONETILDE]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("LONECARET","(?:\\^)");Se("CARETTRIM",`(\\s*)${oe[ae.LONECARET]}\\s+`,!0);Di.caretTrimReplace="$1^";Se("CARET",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAIN]}$`);Se("CARETLOOSE",`^${oe[ae.LONECARET]}${oe[ae.XRANGEPLAINLOOSE]}$`);Se("COMPARATORLOOSE",`^${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]})$|^$`);Se("COMPARATOR",`^${oe[ae.GTLT]}\\s*(${oe[ae.FULLPLAIN]})$|^$`);Se("COMPARATORTRIM",`(\\s*)${oe[ae.GTLT]}\\s*(${oe[ae.LOOSEPLAIN]}|${oe[ae.XRANGEPLAIN]})`,!0);Di.comparatorTrimReplace="$1$2$3";Se("HYPHENRANGE",`^\\s*(${oe[ae.XRANGEPLAIN]})\\s+-\\s+(${oe[ae.XRANGEPLAIN]})\\s*$`);Se("HYPHENRANGELOOSE",`^\\s*(${oe[ae.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ae.XRANGEPLAINLOOSE]})\\s*$`);Se("STAR","(<|>)?=?\\s*\\*");Se("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Se("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var z0=_((_Ue,sq)=>{"use strict";var Zhe=Object.freeze({loose:!0}),e0e=Object.freeze({}),t0e=t=>t?typeof t!="object"?Zhe:t:e0e;sq.exports=t0e});var dE=_((bUe,cq)=>{"use strict";var oq=/^[0-9]+$/,aq=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:taq(e,t);cq.exports={compareIdentifiers:aq,rcompareIdentifiers:r0e}});var Cr=_((EUe,lq)=>{"use strict";var H0=Cf(),{MAX_LENGTH:uq,MAX_SAFE_INTEGER:V0}=Pf(),{safeRe:W0,t:G0}=ru(),n0e=z0(),{compareIdentifiers:pE}=dE(),hE=class t{constructor(e,r){if(r=n0e(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>uq)throw new TypeError(`version is longer than ${uq} characters`);H0("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?W0[G0.LOOSE]:W0[G0.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>V0||this.major<0)throw new TypeError("Invalid major version");if(this.minor>V0||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>V0||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&&se.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(H0("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 pE(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(H0("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 pE(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?W0[G0.PRERELEASELOOSE]:W0[G0.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){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]),pE(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};lq.exports=hE});var Ra=_((wUe,dq)=>{"use strict";var fq=Cr(),i0e=(t,e,r=!1)=>{if(t instanceof fq)return t;try{return new fq(t,e)}catch(n){if(!r)return null;throw n}};dq.exports=i0e});var hq=_((SUe,pq)=>{"use strict";var s0e=Ra(),o0e=(t,e)=>{let r=s0e(t,e);return r?r.version:null};pq.exports=o0e});var yq=_((AUe,mq)=>{"use strict";var a0e=Ra(),c0e=(t,e)=>{let r=a0e(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};mq.exports=c0e});var xq=_((TUe,vq)=>{"use strict";var gq=Cr(),u0e=(t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new gq(t instanceof gq?t.version:t,r).inc(e,n,i).version}catch{return null}};vq.exports=u0e});var Eq=_(($Ue,bq)=>{"use strict";var _q=Ra(),l0e=(t,e)=>{let r=_q(t,null,!0),n=_q(e,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let u=c?"pre":"";return r.major!==n.major?u+"major":r.minor!==n.minor?u+"minor":r.patch!==n.patch?u+"patch":"prerelease"};bq.exports=l0e});var Sq=_((RUe,wq)=>{"use strict";var f0e=Cr(),d0e=(t,e)=>new f0e(t,e).major;wq.exports=d0e});var Tq=_((PUe,Aq)=>{"use strict";var p0e=Cr(),h0e=(t,e)=>new p0e(t,e).minor;Aq.exports=h0e});var Rq=_((CUe,$q)=>{"use strict";var m0e=Cr(),y0e=(t,e)=>new m0e(t,e).patch;$q.exports=y0e});var Cq=_((OUe,Pq)=>{"use strict";var g0e=Ra(),v0e=(t,e)=>{let r=g0e(t,e);return r&&r.prerelease.length?r.prerelease:null};Pq.exports=v0e});var kn=_((IUe,Iq)=>{"use strict";var Oq=Cr(),x0e=(t,e,r)=>new Oq(t,r).compare(new Oq(e,r));Iq.exports=x0e});var kq=_((NUe,Nq)=>{"use strict";var _0e=kn(),b0e=(t,e,r)=>_0e(e,t,r);Nq.exports=b0e});var Lq=_((kUe,Dq)=>{"use strict";var E0e=kn(),w0e=(t,e)=>E0e(t,e,!0);Dq.exports=w0e});var K0=_((DUe,jq)=>{"use strict";var qq=Cr(),S0e=(t,e,r)=>{let n=new qq(t,r),i=new qq(e,r);return n.compare(i)||n.compareBuild(i)};jq.exports=S0e});var Mq=_((LUe,Fq)=>{"use strict";var A0e=K0(),T0e=(t,e)=>t.sort((r,n)=>A0e(r,n,e));Fq.exports=T0e});var Uq=_((qUe,Bq)=>{"use strict";var $0e=K0(),R0e=(t,e)=>t.sort((r,n)=>$0e(n,r,e));Bq.exports=R0e});var Of=_((jUe,zq)=>{"use strict";var P0e=kn(),C0e=(t,e,r)=>P0e(t,e,r)>0;zq.exports=C0e});var X0=_((FUe,Hq)=>{"use strict";var O0e=kn(),I0e=(t,e,r)=>O0e(t,e,r)<0;Hq.exports=I0e});var mE=_((MUe,Vq)=>{"use strict";var N0e=kn(),k0e=(t,e,r)=>N0e(t,e,r)===0;Vq.exports=k0e});var yE=_((BUe,Wq)=>{"use strict";var D0e=kn(),L0e=(t,e,r)=>D0e(t,e,r)!==0;Wq.exports=L0e});var Y0=_((UUe,Gq)=>{"use strict";var q0e=kn(),j0e=(t,e,r)=>q0e(t,e,r)>=0;Gq.exports=j0e});var J0=_((zUe,Kq)=>{"use strict";var F0e=kn(),M0e=(t,e,r)=>F0e(t,e,r)<=0;Kq.exports=M0e});var gE=_((HUe,Xq)=>{"use strict";var B0e=mE(),U0e=yE(),z0e=Of(),H0e=Y0(),V0e=X0(),W0e=J0(),G0e=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return B0e(t,r,n);case"!=":return U0e(t,r,n);case">":return z0e(t,r,n);case">=":return H0e(t,r,n);case"<":return V0e(t,r,n);case"<=":return W0e(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Xq.exports=G0e});var Jq=_((VUe,Yq)=>{"use strict";var K0e=Cr(),X0e=Ra(),{safeRe:Q0,t:Z0}=ru(),Y0e=(t,e)=>{if(t instanceof K0e)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Q0[Z0.COERCEFULL]:Q0[Z0.COERCE]);else{let c=e.includePrerelease?Q0[Z0.COERCERTLFULL]:Q0[Z0.COERCERTL],l;for(;(l=c.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||l.index+l[0].length!==r.index+r[0].length)&&(r=l),c.lastIndex=l.index+l[1].length+l[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",a=e.includePrerelease&&r[6]?`+${r[6]}`:"";return X0e(`${n}.${i}.${s}${o}${a}`,e)};Yq.exports=Y0e});var Zq=_((WUe,Qq)=>{"use strict";var vE=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(e,r)}return this}};Qq.exports=vE});var Dn=_((GUe,nj)=>{"use strict";var J0e=/\s+/g,xE=class t{constructor(e,r){if(r=Z0e(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof _E)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(J0e," "),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=>!tj(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&&ome(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&ime)|(this.options.loose&&sme))+":"+e,i=ej.get(n);if(i)return i;let s=this.options.loose,o=s?Gr[Or.HYPHENRANGELOOSE]:Gr[Or.HYPHENRANGE];e=e.replace(o,yme(this.options.includePrerelease)),Rt("hyphen replace",e),e=e.replace(Gr[Or.COMPARATORTRIM],tme),Rt("comparator trim",e),e=e.replace(Gr[Or.TILDETRIM],rme),Rt("tilde trim",e),e=e.replace(Gr[Or.CARETTRIM],nme),Rt("caret trim",e);let a=e.split(" ").map(f=>ame(f,this.options)).join(" ").split(/\s+/).map(f=>mme(f,this.options));s&&(a=a.filter(f=>(Rt("loose invalid filter",f,this.options),!!f.match(Gr[Or.COMPARATORLOOSE])))),Rt("range list",a);let c=new Map,l=a.map(f=>new _E(f,this.options));for(let f of l){if(tj(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return ej.set(n,u),u}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>rj(n,r)&&e.set.some(i=>rj(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new eme(e,this.options)}catch{return!1}for(let r=0;rt.value==="<0.0.0-0",ome=t=>t.value==="",rj=(t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,e)),i=n.pop();return r},ame=(t,e)=>(t=t.replace(Gr[Or.BUILD],""),Rt("comp",t,e),t=lme(t,e),Rt("caret",t),t=cme(t,e),Rt("tildes",t),t=dme(t,e),Rt("xrange",t),t=hme(t,e),Rt("stars",t),t),Kr=t=>!t||t.toLowerCase()==="x"||t==="*",cme=(t,e)=>t.trim().split(/\s+/).map(r=>ume(r,e)).join(" "),ume=(t,e)=>{let r=e.loose?Gr[Or.TILDELOOSE]:Gr[Or.TILDE];return t.replace(r,(n,i,s,o,a)=>{Rt("tilde",t,n,i,s,o,a);let c;return Kr(i)?c="":Kr(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Kr(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(Rt("replaceTilde pr",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,Rt("tilde return",c),c})},lme=(t,e)=>t.trim().split(/\s+/).map(r=>fme(r,e)).join(" "),fme=(t,e)=>{Rt("caret",t,e);let r=e.loose?Gr[Or.CARETLOOSE]:Gr[Or.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(i,s,o,a,c)=>{Rt("caret",t,i,s,o,a,c);let l;return Kr(s)?l="":Kr(o)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Kr(a)?s==="0"?l=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(Rt("replaceCaret pr",c),s==="0"?o==="0"?l=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(Rt("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:l=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),Rt("caret return",l),l})},dme=(t,e)=>(Rt("replaceXRanges",t,e),t.split(/\s+/).map(r=>pme(r,e)).join(" ")),pme=(t,e)=>{t=t.trim();let r=e.loose?Gr[Or.XRANGELOOSE]:Gr[Or.XRANGE];return t.replace(r,(n,i,s,o,a,c)=>{Rt("xRange",t,n,i,s,o,a,c);let l=Kr(s),u=l||Kr(o),f=u||Kr(a),d=f;return i==="="&&d&&(i=""),c=e.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&d?(u&&(o=0),a=0,i===">"?(i=">=",u?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",u?s=+s+1:o=+o+1),i==="<"&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):u?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),Rt("xRange return",n),n})},hme=(t,e)=>(Rt("replaceStars",t,e),t.trim().replace(Gr[Or.STAR],"")),mme=(t,e)=>(Rt("replaceGTE0",t,e),t.trim().replace(Gr[e.includePrerelease?Or.GTE0PRE:Or.GTE0],"")),yme=t=>(e,r,n,i,s,o,a,c,l,u,f,d)=>(Kr(n)?r="":Kr(i)?r=`>=${n}.0.0${t?"-0":""}`:Kr(s)?r=`>=${n}.${i}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Kr(l)?c="":Kr(u)?c=`<${+l+1}.0.0-0`:Kr(f)?c=`<${l}.${+u+1}.0-0`:d?c=`<=${l}.${u}.${f}-${d}`:t?c=`<${l}.${u}.${+f+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),gme=(t,e,r)=>{for(let n=0;n0){let i=t[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var If=_((KUe,uj)=>{"use strict";var Nf=Symbol("SemVer ANY"),wE=class t{static get ANY(){return Nf}constructor(e,r){if(r=ij(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),EE("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Nf?this.value="":this.value=this.operator+this.semver.version,EE("comp",this)}parse(e){let r=this.options.loose?sj[oj.COMPARATORLOOSE]:sj[oj.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new aj(n[2],this.options.loose):this.semver=Nf}toString(){return this.value}test(e){if(EE("Comparator.test",e,this.options.loose),this.semver===Nf||e===Nf)return!0;if(typeof e=="string")try{e=new aj(e,this.options)}catch{return!1}return bE(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new cj(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new cj(this.value,r).test(e.semver):(r=ij(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||bE(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||bE(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};uj.exports=wE;var ij=z0(),{safeRe:sj,t:oj}=ru(),bE=gE(),EE=Cf(),aj=Cr(),cj=Dn()});var kf=_((XUe,lj)=>{"use strict";var vme=Dn(),xme=(t,e,r)=>{try{e=new vme(e,r)}catch{return!1}return e.test(t)};lj.exports=xme});var dj=_((YUe,fj)=>{"use strict";var _me=Dn(),bme=(t,e)=>new _me(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));fj.exports=bme});var hj=_((JUe,pj)=>{"use strict";var Eme=Cr(),wme=Dn(),Sme=(t,e,r)=>{let n=null,i=null,s=null;try{s=new wme(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new Eme(n,r))}),n};pj.exports=Sme});var yj=_((QUe,mj)=>{"use strict";var Ame=Cr(),Tme=Dn(),$me=(t,e,r)=>{let n=null,i=null,s=null;try{s=new Tme(e,r)}catch{return null}return t.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new Ame(n,r))}),n};mj.exports=$me});var xj=_((ZUe,vj)=>{"use strict";var SE=Cr(),Rme=Dn(),gj=Of(),Pme=(t,e)=>{t=new Rme(t,e);let r=new SE("0.0.0");if(t.test(r)||(r=new SE("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{let a=new SE(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||gj(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||gj(r,s))&&(r=s)}return r&&t.test(r)?r:null};vj.exports=Pme});var bj=_((eze,_j)=>{"use strict";var Cme=Dn(),Ome=(t,e)=>{try{return new Cme(t,e).range||"*"}catch{return null}};_j.exports=Ome});var em=_((tze,Aj)=>{"use strict";var Ime=Cr(),Sj=If(),{ANY:Nme}=Sj,kme=Dn(),Dme=kf(),Ej=Of(),wj=X0(),Lme=J0(),qme=Y0(),jme=(t,e,r,n)=>{t=new Ime(t,n),e=new kme(e,n);let i,s,o,a,c;switch(r){case">":i=Ej,s=Lme,o=wj,a=">",c=">=";break;case"<":i=wj,s=qme,o=Ej,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Dme(t,e,n))return!1;for(let l=0;l{h.semver===Nme&&(h=new Sj(">=0.0.0")),f=f||h,d=d||h,i(h.semver,f.semver,n)?f=h:o(h.semver,d.semver,n)&&(d=h)}),f.operator===a||f.operator===c||(!d.operator||d.operator===a)&&s(t,d.semver))return!1;if(d.operator===c&&o(t,d.semver))return!1}return!0};Aj.exports=jme});var $j=_((rze,Tj)=>{"use strict";var Fme=em(),Mme=(t,e,r)=>Fme(t,e,">",r);Tj.exports=Mme});var Pj=_((nze,Rj)=>{"use strict";var Bme=em(),Ume=(t,e,r)=>Bme(t,e,"<",r);Rj.exports=Ume});var Ij=_((ize,Oj)=>{"use strict";var Cj=Dn(),zme=(t,e,r)=>(t=new Cj(t,r),e=new Cj(e,r),t.intersects(e,r));Oj.exports=zme});var kj=_((sze,Nj)=>{"use strict";var Hme=kf(),Vme=kn();Nj.exports=(t,e,r)=>{let n=[],i=null,s=null,o=t.sort((u,f)=>Vme(u,f,r));for(let u of o)Hme(u,e,r)?(s=u,i||(i=u)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[u,f]of n)u===f?a.push(u):!f&&u===o[0]?a.push("*"):f?u===o[0]?a.push(`<=${f}`):a.push(`${u} - ${f}`):a.push(`>=${u}`);let c=a.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return c.length{"use strict";var Dj=Dn(),TE=If(),{ANY:AE}=TE,Df=kf(),$E=kn(),Wme=(t,e,r={})=>{if(t===e)return!0;t=new Dj(t,r),e=new Dj(e,r);let n=!1;e:for(let i of t.set){for(let s of e.set){let o=Kme(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Gme=[new TE(">=0.0.0-0")],Lj=[new TE(">=0.0.0")],Kme=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===AE){if(e.length===1&&e[0].semver===AE)return!0;r.includePrerelease?t=Gme:t=Lj}if(e.length===1&&e[0].semver===AE){if(r.includePrerelease)return!0;e=Lj}let n=new Set,i,s;for(let h of t)h.operator===">"||h.operator===">="?i=qj(i,h,r):h.operator==="<"||h.operator==="<="?s=jj(s,h,r):n.add(h.semver);if(n.size>1)return null;let o;if(i&&s){if(o=$E(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let h of n){if(i&&!Df(h,String(i),r)||s&&!Df(h,String(s),r))return null;for(let p of e)if(!Df(h,String(p),r))return!1;return!0}let a,c,l,u,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 e){if(u=u||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(a=qj(i,h,r),a===h&&a!==i)return!1}else if(i.operator===">="&&!Df(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(c=jj(s,h,r),c===h&&c!==s)return!1}else if(s.operator==="<="&&!Df(s.semver,String(h),r))return!1}if(!h.operator&&(s||i)&&o!==0)return!1}return!(i&&l&&!s&&o!==0||s&&u&&!i&&o!==0||d||f)},qj=(t,e,r)=>{if(!t)return e;let n=$E(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},jj=(t,e,r)=>{if(!t)return e;let n=$E(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};Fj.exports=Wme});var PE=_((aze,zj)=>{"use strict";var RE=ru(),Bj=Pf(),Xme=Cr(),Uj=dE(),Yme=Ra(),Jme=hq(),Qme=yq(),Zme=xq(),eye=Eq(),tye=Sq(),rye=Tq(),nye=Rq(),iye=Cq(),sye=kn(),oye=kq(),aye=Lq(),cye=K0(),uye=Mq(),lye=Uq(),fye=Of(),dye=X0(),pye=mE(),hye=yE(),mye=Y0(),yye=J0(),gye=gE(),vye=Jq(),xye=If(),_ye=Dn(),bye=kf(),Eye=dj(),wye=hj(),Sye=yj(),Aye=xj(),Tye=bj(),$ye=em(),Rye=$j(),Pye=Pj(),Cye=Ij(),Oye=kj(),Iye=Mj();zj.exports={parse:Yme,valid:Jme,clean:Qme,inc:Zme,diff:eye,major:tye,minor:rye,patch:nye,prerelease:iye,compare:sye,rcompare:oye,compareLoose:aye,compareBuild:cye,sort:uye,rsort:lye,gt:fye,lt:dye,eq:pye,neq:hye,gte:mye,lte:yye,cmp:gye,coerce:vye,Comparator:xye,Range:_ye,satisfies:bye,toComparators:Eye,maxSatisfying:wye,minSatisfying:Sye,minVersion:Aye,validRange:Tye,outside:$ye,gtr:Rye,ltr:Pye,intersects:Cye,simplifyRange:Oye,subset:Iye,SemVer:Xme,re:RE.re,src:RE.src,tokens:RE.t,SEMVER_SPEC_VERSION:Bj.SEMVER_SPEC_VERSION,RELEASE_TYPES:Bj.RELEASE_TYPES,compareIdentifiers:Uj.compareIdentifiers,rcompareIdentifiers:Uj.rcompareIdentifiers}});var rm=_((cze,NE)=>{"use strict";var tm=tq(),Nye=PE(),{FSTDEP005:kye,FSTDEP012:Dye,FSTDEP015:Lye,FSTDEP016:qye,FSTDEP017:jye,FSTDEP018:Fye}=us(),{kHasBeenDecorated:Mye,kSchemaBody:Bye,kSchemaHeaders:Uye,kSchemaParams:zye,kSchemaQuerystring:Hj,kSchemaController:CE,kOptions:Hye,kRequestCacheValidateFns:ho,kRouteContext:Bt,kPublicRouteContext:Vj,kRequestOriginalUrl:OE}=or(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:Vye}=Ar(),Wj={body:Bye,headers:Uye,params:zye,querystring:Hj,query:Hj};function IE(t,e,r,n,i,s){this.id=t,this[Bt]=s,this.params=e,this.raw=r,this.query=n,this.log=i,this.body=void 0}IE.props=[];function Wye(t){if(typeof t=="function")return t;if(t===!0)return function(){return!0};if(typeof t=="number")return function(e,r){return rr.trim());return tm.compile(e)}return tm.compile(t)}function Gye(t,e){return e?Kye(t,e):Kj(t)}function Kj(t){let e=t.props.slice();function r(n,i,s,o,a,c){this.id=n,this[Bt]=c,this.params=i,this.raw=s,this.query=o,this.log=a,this.body=void 0;for(var l,u=0;ut.config},schema:{get:()=>t.schema}}),Object.freeze(i)}},routerMethod:{get(){return Fye(),this[Bt].config?.method}},routeConfig:{get(){return qye(),this[Bt][Vj]?.config}},routeSchema:{get(){return Lye(),this[Bt][Vj].schema}},is404:{get(){return this[Bt].config?.url===void 0}},connection:{get(){return Nye.gte(process.versions.node,"13.0.0")&&kye(),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(t){this.additionalHeaders=t}},getValidationFunction:{value:function(t){if(typeof t=="string"){let e=Wj[t];return this[Bt][e]}else if(typeof t=="object")return this[Bt][ho]?.get(t)}},compileValidationSchema:{value:function(t,e=null){let{method:r,url:n}=this;if(this[Bt][ho]?.has(t))return this[Bt][ho].get(t);let s=(this[Bt].validatorCompiler||this.server[CE].validatorCompiler||this.server[CE].setupValidator(this.server[Hye])||this.server[CE].validatorCompiler)({schema:t,method:r,url:n,httpPart:e});return this[Bt][ho]==null&&(this[Bt][ho]=new WeakMap),this[Bt][ho].set(t,s),s}},validateInput:{value:function(t,e,r){r=typeof e=="string"?e:r;let n=r!=null&&typeof r=="string"&&Wj[r],i;if(n&&(i=this[Bt][n]),i==null&&(e==null||typeof e!="object"||Array.isArray(e)))throw new Vye(r);return i==null&&(this[Bt][ho]?.has(e)?i=this[Bt][ho].get(e):i=this.compileValidationSchema(e,r)),i(t)}}});NE.exports=IE;NE.exports.buildRequest=Gye});var nm=_((uze,Xj)=>{"use strict";var{kFourOhFourContext:Xye,kReplySerializerDefault:Yye,kSchemaErrorFormatter:Jye,kErrorHandler:Qye,kChildLoggerFactory:Zye,kOptions:ege,kReply:tge,kRequest:rge,kBodyLimit:nge,kLogLevel:ige,kContentTypeParser:sge,kRouteByFastify:oge,kRequestCacheValidateFns:age,kReplyCacheSerializeFns:cge,kPublicRouteContext:uge}=or();function lge({schema:t,handler:e,config:r,requestIdLogLabel:n,childLoggerFactory:i,errorHandler:s,bodyLimit:o,logLevel:a,logSerializers:c,attachValidation:l,validatorCompiler:u,serializerCompiler:f,replySerializer:d,schemaErrorFormatter:h,exposeHeadRoute:p,prefixTrailingSlash:m,server:g,isFastify:y}){this.schema=t,this.handler=e,this.Reply=g[tge],this.Request=g[rge],this.contentTypeParser=g[sge],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||g[Qye],this.requestIdLogLabel=n||g[ege].requestIdLogLabel,this.childLoggerFactory=i||g[Zye],this._middie=null,this._parserOptions={limit:o||g[nge]},this.exposeHeadRoute=p,this.prefixTrailingSlash=m,this.logLevel=a||g[ige],this.logSerializers=c,this[Xye]=null,this.attachValidation=l,this[Yye]=d,this.schemaErrorFormatter=h||g[Jye]||dge,this[oge]=y,this[age]=null,this[cge]=null,this.validatorCompiler=u||null,this.serializerCompiler=f||null,this[uge]=fge(this),this.server=g}function fge(t){return Object.create(null,{schema:{enumerable:!0,get(){return t.schema}},config:{enumerable:!0,get(){return t.config}}})}function dge(t,e){let r="",n=", ";for(var i=0;i!==t.length;++i){let s=t[i];r+=e+(s.instancePath||"")+" "+s.message+n}return new Error(r.slice(0,-n.length))}Xj.exports=lge});var kE=_((lze,Yj)=>{"use strict";Yj.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var FE=_((fze,e8)=>{"use strict";var{kReply:DE,kRequest:LE,kState:pge,kHasBeenDecorated:hge}=or(),{FST_ERR_DEC_ALREADY_PRESENT:Jj,FST_ERR_DEC_MISSING_DEPENDENCY:mge,FST_ERR_DEC_AFTER_START:yge,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:gge}=Ar(),{FSTDEP006:vge}=us();function xge(t,e,r,n){if(Object.prototype.hasOwnProperty.call(t,e))throw new Jj(e);qE(t,e,n),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(t,e,{get:r.getter,set:r.setter}):t[e]=r}function Qj(t,e,r,n){let i=t.prototype;if(Object.prototype.hasOwnProperty.call(i,e)||sm(t,e))throw new Jj(e);t[hge]=!0,qE(t,e,n),r&&(typeof r.getter=="function"||typeof r.setter=="function")?Object.defineProperty(i,e,{get:r.getter,set:r.setter}):typeof r=="function"?i[e]=r:t.props.push({key:e,value:r})}function Zj(t,e){typeof e=="object"&&e&&!(typeof e.getter=="function"||typeof e.setter=="function")&&vge(t)}function _ge(t,e,r){return jE(this,t),xge(this,t,e,r),this}function im(t,e){return e?e in t||t.prototype&&e in t.prototype||sm(t,e):t in this}function sm(t,e){return t.props?t.props.find(({key:r})=>r===e):!1}function bge(t){return t&&sm(this[LE],t)?!0:im(this[LE].prototype,t)}function Ege(t){return t&&sm(this[DE],t)?!0:im(this[DE].prototype,t)}function qE(t,e,r){if(r!=null){if(!Array.isArray(r))throw new gge(e);for(var n=0;n!==r.length;++n)if(!im(t,r[n]))throw new mge(r[n])}}function wge(t,e,r){return jE(this,t),Zj(t,e),Qj(this[DE],t,e,r),this}function Sge(t,e,r){return jE(this,t),Zj(t,e),Qj(this[LE],t,e,r),this}function jE(t,e){if(t[pge].started)throw new yge(e)}e8.exports={add:_ge,exist:im,existRequest:bge,existReply:Ege,dependencies:qE,decorateReply:wge,decorateRequest:Sge}});var r8=_(Li=>{"use strict";var ME=class{constructor(e=1e3,r=0){if(isNaN(e)||e<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=e,this.ttl=r}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let r=this.items.get(e);this.items.delete(e),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(e){for(var r=0;r0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let r=this.items.get(e);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(e);return}return r.value}}getMany(e){let r=[];for(var n=0;n0?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:e,prev:this.last,next:null,value:r};this.items.set(e,n),this.size===1?this.first=n:this.last.next=n,this.last=n}},BE=class{constructor(e=1e3,r=0){if(isNaN(e)||e<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=e,this.ttl=r}get size(){return this.items.size}bumpLru(e){if(this.last===e)return;let r=this.last,n=e.next,i=e.prev;this.first===e&&(this.first=n),e.next=null,e.prev=r,r.next=e,i!==null&&(i.next=n),n!==null&&(n.prev=i),this.last=e}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let r=this.items.get(e);this.items.delete(e),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(e){for(var r=0;r0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let r=this.items.get(e);if(this.ttl>0&&r.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(r),r.value}}getMany(e){let r=[];for(var n=0;n0?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:e,prev:this.last,next:null,value:r};this.items.set(e,n),this.size===1?this.first=n:this.last.next=n,this.last=n}},Lf=class{constructor(e=1e3,r=0){if(isNaN(e)||e<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=e,this.ttl=r}bumpLru(e){if(this.last===e)return;let r=this.last,n=e.next,i=e.prev;this.first===e&&(this.first=n),e.next=null,e.prev=r,r.next=e,i!==null&&(i.next=n),n!==null&&(n.prev=i),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let r=this.items[e];delete this.items[e],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(e){for(var r=0;r0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let r=this.items[e];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(r),r.value}}getMany(e){let r=[];for(var n=0;n0?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:e,prev:this.last,next:null,value:r};this.items[e]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}},om=class{constructor(){this.records={}}initForCache(e,r){this.records[e]={[r]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(e){for(let r of Object.keys(this.records[e]))this.records[e][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 t8(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var UE=class{constructor(e,r,n){this.cacheId=e,this.statisticTtlInHours=r,this.collectionStart=new Date,this.currentTimeStamp=t8(this.collectionStart),this.records=n||new om,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(e){this.archiveIfNeeded(),this.currentRecord.cacheSize=e}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=t8(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},am=class extends Lf{constructor(e,r,n,i,s){if(super(e||1e3,r||0),!n)throw new Error("Cache id is mandatory");this.hitStatistics=new UE(n,s!==void 0?s:24,i)}getStatistics(){return this.hitStatistics.getStatistics()}set(e,r){super.set(e,r),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(e,r=!1){super.delete(e),r||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let r=this.items[e];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(e,!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()}},cm=class{constructor(e=1e3,r=0){if(isNaN(e)||e<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=e,this.ttl=r}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let r=this.items[e];delete this.items[e],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(e){for(var r=0;r0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let r=this.items[e];if(this.ttl>0&&r.expiry<=Date.now()){this.delete(e);return}return r.value}}getMany(e){let r=[];for(var n=0;n0?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:e,prev:this.last,next:null,value:r};this.items[e]=n,++this.size===1?this.first=n:this.last.next=n,this.last=n}};Li.Fifo=cm;Li.FifoMap=ME;Li.FifoObject=cm;Li.HitStatisticsRecord=om;Li.Lru=Lf;Li.LruHitStatistics=am;Li.LruMap=BE;Li.LruObject=Lf;Li.LruObjectHitStatistics=am});var o8=_((pze,qf)=>{"use strict";var fm=function(){};fm.prototype=Object.create(null);var um=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,lm=/\\([\v\u0020-\u00ff])/gu,n8=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Pa={type:"",parameters:new fm};Object.freeze(Pa.parameters);Object.freeze(Pa);function i8(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(n8.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new fm};if(e===-1)return n;let i,s,o;for(um.lastIndex=e;s=um.exec(t);){if(s.index!==e)throw new TypeError("invalid parameter format");e+=s[0].length,i=s[1].toLowerCase(),o=s[2],o[0]==='"'&&(o=o.slice(1,o.length-1),lm.test(o)&&(o=o.replace(lm,"$1"))),n.parameters[i]=o}if(e!==t.length)throw new TypeError("invalid parameter format");return n}function s8(t){if(typeof t!="string")return Pa;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(n8.test(r)===!1)return Pa;let n={type:r.toLowerCase(),parameters:new fm};if(e===-1)return n;let i,s,o;for(um.lastIndex=e;s=um.exec(t);){if(s.index!==e)return Pa;e+=s[0].length,i=s[1].toLowerCase(),o=s[2],o[0]==='"'&&(o=o.slice(1,o.length-1),lm.test(o)&&(o=o.replace(lm,"$1"))),n.parameters[i]=o}return e!==t.length?Pa:n}qf.exports.default={parse:i8,safeParse:s8};qf.exports.parse=i8;qf.exports.safeParse=s8;qf.exports.defaultContentType=Pa});var f8=_((hze,nu)=>{"use strict";var Age=typeof Buffer<"u",a8=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,c8=/"(?: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 u8(t,e,r){r==null&&e!==null&&typeof e=="object"&&(r=e,e=void 0),Age&&Buffer.isBuffer(t)&&(t=t.toString()),t&&t.charCodeAt(0)===65279&&(t=t.slice(1));let n=JSON.parse(t,e);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(a8.test(t)===!1&&c8.test(t)===!1)return n}else if(i!=="ignore"&&s==="ignore"){if(a8.test(t)===!1)return n}else if(c8.test(t)===!1)return n;return l8(n,{protoAction:i,constructorAction:s,safe:r&&r.safe})}function l8(t,{protoAction:e="error",constructorAction:r="error",safe:n}={}){let i=[t];for(;i.length;){let s=i;i=[];for(let o of s){if(e!=="ignore"&&Object.prototype.hasOwnProperty.call(o,"__proto__")){if(n===!0)return null;if(e==="error")throw new SyntaxError("Object contains forbidden prototype property");delete o.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(o,"constructor")&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype")){if(n===!0)return null;if(r==="error")throw new SyntaxError("Object contains forbidden prototype property");delete o.constructor}for(let a in o){let c=o[a];c&&typeof c=="object"&&i.push(c)}}}return t}function zE(t,e,r){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return u8(t,e,r)}finally{Error.stackTraceLimit=n}}function Tge(t,e){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return u8(t,e,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=r}}nu.exports=zE;nu.exports.default=zE;nu.exports.parse=zE;nu.exports.safeParse=Tge;nu.exports.scan=l8});var KE=_((mze,Ff)=>{"use strict";var{AsyncResource:$ge}=require("node:async_hooks"),{Fifo:p8}=r8(),{safeParse:h8,defaultContentType:Rge}=o8(),Pge=f8(),{kDefaultJsonParse:jf,kContentTypeParser:iu,kBodyLimit:Cge,kRequestPayloadStream:m8,kState:VE,kTestInternals:Oge,kReplyIsError:y8,kRouteContext:Ige}=or(),{FST_ERR_CTP_INVALID_TYPE:g8,FST_ERR_CTP_EMPTY_TYPE:Nge,FST_ERR_CTP_ALREADY_PRESENT:kge,FST_ERR_CTP_INVALID_HANDLER:Dge,FST_ERR_CTP_INVALID_PARSE_TYPE:Lge,FST_ERR_CTP_BODY_TOO_LARGE:d8,FST_ERR_CTP_INVALID_MEDIA_TYPE:qge,FST_ERR_CTP_INVALID_CONTENT_LENGTH:jge,FST_ERR_CTP_EMPTY_JSON_BODY:Fge,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:WE}=Ar();function vs(t,e,r){this[jf]=x8(e,r),this.customParsers=new Map,this.customParsers.set("application/json",new HE(!0,!1,t,this[jf])),this.customParsers.set("text/plain",new HE(!0,!1,t,GE)),this.parserList=[new dm("application/json"),new dm("text/plain")],this.parserRegExpList=[],this.cache=new p8(100)}vs.prototype.add=function(t,e,r){let n=typeof t=="string";if(!n&&!(t instanceof RegExp))throw new g8;if(n&&t.length===0)throw new Nge;if(typeof r!="function")throw new Dge;if(this.existingParser(t))throw new kge(t);if(e.parseAs!==void 0&&e.parseAs!=="string"&&e.parseAs!=="buffer")throw new Lge(e.parseAs);let i=new HE(e.parseAs==="string",e.parseAs==="buffer",e.bodyLimit,r);n&&t==="*"?this.customParsers.set("",i):(n?this.parserList.unshift(new dm(t)):(t.isEssence=t.source.indexOf(";")===-1,this.parserRegExpList.unshift(t)),this.customParsers.set(t.toString(),i))};vs.prototype.hasParser=function(t){return this.customParsers.has(typeof t=="string"?t:t.toString())};vs.prototype.existingParser=function(t){return t==="application/json"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==this[jf]:t==="text/plain"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==GE:this.hasParser(t)};vs.prototype.getParser=function(t){if(this.hasParser(t))return this.customParsers.get(t);let e=this.cache.get(t);if(e!==void 0)return e;let r=h8(t);if(r===Rge)return this.customParsers.get("");for(var n=0;n!==this.parserList.length;++n){let s=this.parserList[n];if(Vge(r,s)){let o=this.customParsers.get(s.name);return this.cache.set(t,o),o}}for(var i=0;i!==this.parserRegExpList.length;++i){let s=this.parserRegExpList[i];if(Wge(t,r.type,s)){let o=this.customParsers.get(s.toString());return this.cache.set(t,o),o}}return this.customParsers.get("")};vs.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new p8(100)};vs.prototype.remove=function(t){if(!(typeof t=="string"||t instanceof RegExp))throw new g8;let e=this.customParsers.delete(t.toString()),r=typeof t=="string"?this.parserList:this.parserRegExpList,n=r.findIndex(i=>i.toString()===t.toString());return n>-1&&r.splice(n,1),e||n>-1};vs.prototype.run=function(t,e,r,n){let i=this.getParser(t);if(i===void 0){r.is404?e(r,n):n.send(new qge(t||void 0));return}let s=new $ge("content-type-parser:run",r);if(i.asString===!0||i.asBuffer===!0)v8(r,n,n[Ige]._parserOptions,i,o);else{let a=i.fn(r,r[m8],o);a&&typeof a.then=="function"&&a.then(c=>o(null,c),o)}function o(a,c){s.runInAsyncScope(()=>{s.emitDestroy(),a?(n[y8]=!0,n.send(a)):(r.body=c,e(r,n))})}};function v8(t,e,r,n,i){let s=n.asString,o=r.limit===null?n.bodyLimit:r.limit,a=t.headers["content-length"]===void 0?NaN:Number(t.headers["content-length"]);if(a>o){e.header("connection","close"),e.send(new d8);return}let c=0,l=s===!0?"":[],u=t[m8]||t.raw;s===!0&&u.setEncoding("utf8"),u.on("data",f),u.on("end",d),u.on("error",d),u.resume();function f(h){c+=h.length;let{receivedEncodedLength:p=0}=u;if(c>o||p>o){u.removeListener("data",f),u.removeListener("end",d),u.removeListener("error",d),e.send(new d8);return}s===!0?l+=h:l.push(h)}function d(h){if(u.removeListener("data",f),u.removeListener("end",d),u.removeListener("error",d),h!==void 0){typeof h.statusCode=="number"&&h.statusCode>=400||(h.statusCode=400),e[y8]=!0,e.code(h.statusCode).send(h);return}if(s===!0&&(c=Buffer.byteLength(l)),!Number.isNaN(a)&&(u.receivedEncodedLength||c)!==a){e.header("connection","close"),e.send(new jge);return}s===!1&&(l=Buffer.concat(l));let p=n.fn(t,l,i);p&&typeof p.then=="function"&&p.then(m=>i(null,m),i)}}function x8(t,e){return r;function r(n,i,s){if(i===""||i==null||Buffer.isBuffer(i)&&i.length===0)return s(new Fge,void 0);let o;try{o=Pge.parse(i,{protoAction:t,constructorAction:e})}catch(a){return a.statusCode=400,s(a,void 0)}s(null,o)}}function GE(t,e,r){r(null,e)}function HE(t,e,r,n){this.asString=t,this.asBuffer=e,this.bodyLimit=r,this.fn=n}function Mge(t){let e=new vs;return e[jf]=t[jf],e.customParsers=new Map(t.customParsers.entries()),e.parserList=t.parserList.slice(),e.parserRegExpList=t.parserRegExpList.slice(),e}function Bge(t,e,r){if(this[VE].started)throw new WE("addContentTypeParser");return typeof e=="function"&&(r=e,e={}),e||(e={}),e.bodyLimit||(e.bodyLimit=this[Cge]),Array.isArray(t)?t.forEach(n=>this[iu].add(n,e,r)):this[iu].add(t,e,r),this}function Uge(t){return this[iu].hasParser(t)}function zge(t){if(this[VE].started)throw new WE("removeContentTypeParser");if(Array.isArray(t))for(let e of t)this[iu].remove(e);else this[iu].remove(t)}function Hge(){if(this[VE].started)throw new WE("removeAllContentTypeParsers");this[iu].removeAll()}function Vge(t,e){if(e.isEssence)return t.type.indexOf(e)!==-1;if(t.type.indexOf(e.type)===-1)return!1;for(let r of e.parameterKeys)if(!(r in t.parameters)||t.parameters[r]!==e.parameters[r])return!1;return!0}function Wge(t,e,r){return r.isEssence?r.test(e):r.test(t)}function dm(t){this.name=t;let e=h8(t);if(this.isEssence=t.indexOf(";")===-1,this.isEssence===!1&&e.type===""){let r=t.split(";",1)[0];this.type=r===""?t:r}else this.type=e.type;this.parameters=e.parameters,this.parameterKeys=Object.keys(e.parameters)}dm.prototype.toString=function(){return this.name};Ff.exports=vs;Ff.exports.helpers={buildContentTypeParser:Mge,addContentTypeParser:Bge,hasContentTypeParser:Uge,removeContentTypeParser:zge,removeAllContentTypeParsers:Hge};Ff.exports.defaultParsers={getDefaultJsonParser:x8,defaultTextParser:GE};Ff.exports[Oge]={rawBody:v8}});var w8=_((yze,E8)=>{"use strict";var _8=On(),Gge=Symbol.for("json-schema-ref"),XE=class{#e;#t;#n;#i;#s;constructor(e={}){this.#e={},this.#t={},this.#n=e.insertRefSymbol??!1,this.#i=e.allowEqualDuplicates??!0,this.#s=e.cloneSchemaWithoutRefs??!1}addSchema(e,r){e.$id!==void 0&&e.$id.charAt(0)!=="#"?r=e.$id:this.#u(e,r),this.#a(e,r)}getSchema(e,r="#"){let n=this.#e[e];if(n===void 0)throw new Error(`Cannot resolve ref "${e}${r}". Schema with id "${e}" is not found.`);return n.anchors[r]!==void 0?n.anchors[r]:b8(n.schema,r)}hasSchema(e){return this.#e[e]!==void 0}getSchemaRefs(e){let r=this.#e[e];if(r===void 0)throw new Error(`Schema with id "${e}" is not found.`);return r.refs}getSchemaDependencies(e,r={}){let n=this.#e[e];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(e){if(this.#t[e]!==void 0)return;let r=this.#e[e];if(r===void 0)throw new Error(`Schema with id "${e}" is not found.`);!this.#s&&r.refs.length===0&&(this.#t[e]={schema:r.schema,anchors:r.anchors});let n=[];this.#r(r.schema,e,n);let i=this.getSchemaDependencies(e);for(let s in i){let o=i[s];this.#r(o,s,n)}for(let s of n){let{refSchemaId:o,refJsonPointer:a}=this.#o(s.ref,s.sourceSchemaId),c=this.getDerefSchema(o,a);if(c===null)throw new Error(`Cannot resolve ref "${s.ref}". Ref "${a}" is not found in schema "${o}".`);s.targetSchema=c,s.targetSchemaId=o}for(let s of n)this.#c(s,n)}getDerefSchema(e,r="#"){let n=this.#t[e];return n===void 0&&(this.derefSchema(e),n=this.#t[e]),n.anchors[r]!==void 0?n.anchors[r]:b8(n.schema,r)}#o(e,r){let n=e.indexOf("#");return n===-1?{refSchemaId:e,refJsonPointer:"#"}:n===0?{refSchemaId:r,refJsonPointer:e}:{refSchemaId:e.slice(0,n),refJsonPointer:e.slice(n)}}#a(e,r){let n=e.$id;n!==void 0&&typeof n=="string"&&(n.charAt(0)==="#"?this.#l(e,r,n):(this.#u(e,n),r=n));let i=e.$ref;if(i!==void 0&&typeof i=="string"){let{refSchemaId:s,refJsonPointer:o}=this.#o(i,r);this.#e[r].refs.push({schemaId:s,jsonPointer:o})}for(let s in e)typeof e[s]=="object"&&e[s]!==null&&this.#a(e[s],r)}#r(e,r,n=[]){let i=Array.isArray(e)?[...e]:{...e},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 o in i){let a=i[o];typeof a=="object"&&a!==null&&(i[o]=this.#r(a,r,n))}return i}#c(e,r){let{sourceSchema:n,targetSchema:i}=e;if(n.$ref){if(this.#n&&(n[Gge]=n.$ref),delete n.$ref,i.$ref){let s=r.find(o=>o.sourceSchema===i);this.#c(s,r)}for(let s in i)if(s!=="$id"){if(n[s]!==void 0){if(_8(n[s],i[s]))continue;throw new Error(`Cannot resolve ref "${e.ref}". Property "${s}" is already exist in schema "${e.sourceSchemaId}".`)}n[s]=i[s]}e.isResolved=!0}}#u(e,r){let n=this.#e[r];if(n!==void 0){if(this.#i&&_8(e,n.schema))return;throw new Error(`There is already another schema with id "${r}".`)}this.#e[r]={schema:e,anchors:{},refs:[]}}#l(e,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]=e}#f(e,r){this.#t[r]===void 0&&(this.#t[r]={schema:e,anchors:{}})}#d(e,r,n){let{anchors:i}=this.#t[r];i[n]=e}};function b8(t,e){let r=e.split("/"),n=t;for(let i of r)if(!(i===""||i==="#")){if(typeof n!="object"||n===null)return null;n=n[i]}return n??null}E8.exports={RefResolver:XE}});var A8=_((gze,S8)=>{"use strict";var YE=class t{constructor(e,r,n="#"){this.schema=e,this.schemaId=r,this.jsonPointer=n}getPropertyLocation(e){return new t(this.schema[e],this.schemaId,this.jsonPointer+"/"+e)}getSchemaRef(){return this.schemaId+this.jsonPointer}};S8.exports=YE});var C8=_((vze,QE)=>{"use strict";QE.exports=te;QE.exports.default=te;var Kge={$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},T8={enum:["array","boolean","integer","null","number","object","string"]},$8=/^(?:[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,Xge=O0().fullFormats.uri,R8=O0().fullFormats.regex;function Ln(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o;return typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t)?o===a&&typeof t=="number"&&isFinite(t)&&(t<0||isNaN(t))?(Ln.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(Ln.errors=s,o===0):(Ln.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var JE={validate:te};function Xr(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(o===0)if(Array.isArray(t)){if(t.length<1)return Xr.errors=[{instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let c=t.length;for(let l=0;l",limit:0},message:"must be > 0"}],!1}else return te.errors=[{instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===o}else var a=!0;if(a){if(t.maximum!==void 0){let x=t.maximum,v=o;if(!(typeof x=="number"&&isFinite(x)))return te.errors=[{instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===o}else var a=!0;if(a){if(t.exclusiveMaximum!==void 0){let x=t.exclusiveMaximum,v=o;if(!(typeof x=="number"&&isFinite(x)))return te.errors=[{instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===o}else var a=!0;if(a){if(t.minimum!==void 0){let x=t.minimum,v=o;if(!(typeof x=="number"&&isFinite(x)))return te.errors=[{instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===o}else var a=!0;if(a){if(t.exclusiveMinimum!==void 0){let x=t.exclusiveMinimum,v=o;if(!(typeof x=="number"&&isFinite(x)))return te.errors=[{instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=v===o}else var a=!0;if(a){if(t.maxLength!==void 0){let x=t.maxLength,v=o,E=o;if(!(typeof x=="number"&&!(x%1)&&!isNaN(x)&&isFinite(x)))return te.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===E&&typeof x=="number"&&isFinite(x)&&(x<0||isNaN(x)))return te.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===o}else var a=!0;if(a){if(t.minLength!==void 0){let x=o;Ln(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:i})||(s=s===null?Ln.errors:s.concat(Ln.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.pattern!==void 0){let x=t.pattern,v=o;if(o===v&&o===v)if(typeof x=="string"){if(!R8(x))return te.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return te.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===o}else var a=!0;if(a){if(t.additionalItems!==void 0){let x=o;te(t.additionalItems,{instancePath:e+"/additionalItems",parentData:t,parentDataProperty:"additionalItems",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.items!==void 0){let x=t.items,v=o,E=o,S=!1,w=o;te(x,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var c=w===o;if(S=S||c,!S){let T=o;Xr(x,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(s=s===null?Xr.errors:s.concat(Xr.errors),o=s.length);var c=T===o;S=S||c}if(S)o=E,s!==null&&(E?s.length=E:s=null);else{let T={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),o++,te.errors=s,!1}var a=v===o}else var a=!0;if(a){if(t.maxItems!==void 0){let x=t.maxItems,v=o,E=o;if(!(typeof x=="number"&&!(x%1)&&!isNaN(x)&&isFinite(x)))return te.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===E&&typeof x=="number"&&isFinite(x)&&(x<0||isNaN(x)))return te.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===o}else var a=!0;if(a){if(t.minItems!==void 0){let x=o;Ln(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:i})||(s=s===null?Ln.errors:s.concat(Ln.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.uniqueItems!==void 0){let x=o;if(typeof t.uniqueItems!="boolean")return te.errors=[{instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=x===o}else var a=!0;if(a){if(t.contains!==void 0){let x=o;te(t.contains,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.maxProperties!==void 0){let x=t.maxProperties,v=o,E=o;if(!(typeof x=="number"&&!(x%1)&&!isNaN(x)&&isFinite(x)))return te.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(o===E&&typeof x=="number"&&isFinite(x)&&(x<0||isNaN(x)))return te.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=v===o}else var a=!0;if(a){if(t.minProperties!==void 0){let x=o;Ln(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:i})||(s=s===null?Ln.errors:s.concat(Ln.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.required!==void 0){let x=t.required,v=o;if(o===o)if(Array.isArray(x)){var l=!0;let w=x.length;for(let A=0;A1){let $={};for(;A--;){let k=x[A];if(typeof k=="string"){if(typeof $[k]=="number"){return T=$[k],te.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:A,j:T},message:"must NOT have duplicate items (items ## "+T+" and "+A+" are identical)"}],!1;break}$[k]=A}}}}}else return te.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===o}else var a=!0;if(a){if(t.additionalProperties!==void 0){let x=o;te(t.additionalProperties,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.definitions!==void 0){let x=t.definitions,v=o;if(o===v)if(x&&typeof x=="object"&&!Array.isArray(x))for(let S in x){let w=o;te(x[S],{instancePath:e+"/definitions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:x,parentDataProperty:S,rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var u=w===o;if(!u)break}else return te.errors=[{instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===o}else var a=!0;if(a){if(t.properties!==void 0){let x=t.properties,v=o;if(o===v)if(x&&typeof x=="object"&&!Array.isArray(x))for(let S in x){let w=o;te(x[S],{instancePath:e+"/properties/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:x,parentDataProperty:S,rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var f=w===o;if(!f)break}else return te.errors=[{instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===o}else var a=!0;if(a){if(t.patternProperties!==void 0){let x=t.patternProperties,v=o;if(o===v)if(x&&typeof x=="object"&&!Array.isArray(x)){for(let S in x){let w=o;if(o===w&&typeof S=="string"&&!R8(S)){let A={instancePath:e+"/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),o++}var d=w===o;if(!d){let A={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:S},message:"property name must be valid"};return s===null?s=[A]:s.push(A),o++,te.errors=s,!1;break}}if(d)for(let S in x){let w=o;te(x[S],{instancePath:e+"/patternProperties/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:x,parentDataProperty:S,rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var h=w===o;if(!h)break}}else return te.errors=[{instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===o}else var a=!0;if(a){if(t.dependencies!==void 0){let x=t.dependencies,v=o;if(o===v)if(x&&typeof x=="object"&&!Array.isArray(x))for(let S in x){let w=x[S],A=o,T=o,$=!1,k=o;te(w,{instancePath:e+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:x,parentDataProperty:S,rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var p=k===o;if($=$||p,!$){let C=o;if(o===o)if(Array.isArray(w)){var m=!0;let G=w.length;for(let B=0;B1){let X={};for(;B--;){let j=w[B];if(typeof j=="string"){if(typeof X[j]=="number"){z=X[j];let Y={instancePath:e+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:B,j:z},message:"must NOT have duplicate items (items ## "+z+" and "+B+" are identical)"};s===null?s=[Y]:s.push(Y),o++;break}X[j]=B}}}}}else{let G={instancePath:e+"/dependencies/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[G]:s.push(G),o++}var p=C===o;$=$||p}if($)o=T,s!==null&&(T?s.length=T:s=null);else{let C={instancePath:e+"/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=[C]:s.push(C),o++,te.errors=s,!1}var g=A===o;if(!g)break}else return te.errors=[{instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=v===o}else var a=!0;if(a){if(t.propertyNames!==void 0){let x=o;te(t.propertyNames,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.enum!==void 0){let x=t.enum,v=o;if(o===v)if(Array.isArray(x)){if(x.length<1)return te.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let S=x.length,w;if(S>1){e:for(;S--;)for(w=S;w--;)if(P8(x[S],x[w])){return te.errors=[{instancePath:e+"/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 te.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=v===o}else var a=!0;if(a){if(t.type!==void 0){let x=t.type,v=o,E=o,S=!1,w=o;if(!(x==="array"||x==="boolean"||x==="integer"||x==="null"||x==="number"||x==="object"||x==="string")){let T={instancePath:e+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:T8.enum},message:"must be equal to one of the allowed values"};s===null?s=[T]:s.push(T),o++}var y=w===o;if(S=S||y,!S){let T=o;if(o===T)if(Array.isArray(x))if(x.length<1){let k={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};s===null?s=[k]:s.push(k),o++}else{var b=!0;let k=x.length;for(let C=0;C1){e:for(;C--;)for(I=C;I--;)if(P8(x[C],x[I])){let D={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:C,j:I},message:"must NOT have duplicate items (items ## "+I+" and "+C+" are identical)"};s===null?s=[D]:s.push(D),o++;break e}}}}else{let k={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[k]:s.push(k),o++}var y=T===o;S=S||y}if(S)o=E,s!==null&&(E?s.length=E:s=null);else{let T={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),o++,te.errors=s,!1}var a=v===o}else var a=!0;if(a){if(t.format!==void 0){let x=o;if(typeof t.format!="string")return te.errors=[{instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=x===o}else var a=!0;if(a){if(t.contentMediaType!==void 0){let x=o;if(typeof t.contentMediaType!="string")return te.errors=[{instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=x===o}else var a=!0;if(a){if(t.contentEncoding!==void 0){let x=o;if(typeof t.contentEncoding!="string")return te.errors=[{instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=x===o}else var a=!0;if(a){if(t.if!==void 0){let x=o;te(t.if,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.then!==void 0){let x=o;te(t.then,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.else!==void 0){let x=o;te(t.else,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.allOf!==void 0){let x=o;Xr(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:i})||(s=s===null?Xr.errors:s.concat(Xr.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.anyOf!==void 0){let x=o;Xr(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:i})||(s=s===null?Xr.errors:s.concat(Xr.errors),o=s.length);var a=x===o}else var a=!0;if(a){if(t.oneOf!==void 0){let x=o;Xr(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:i})||(s=s===null?Xr.errors:s.concat(Xr.errors),o=s.length);var a=x===o}else var a=!0;if(a)if(t.not!==void 0){let x=o;te(t.not,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:i})||(s=s===null?te.errors:s.concat(te.errors),o=s.length);var a=x===o}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return te.errors=s,o===0}});var rw=_((xze,O8)=>{"use strict";var ZE=class extends Error{constructor(e,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Failed to merge "${e}" keyword schemas.`,this.schemas=r}},ew=class extends Error{constructor(e,r){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Resolver for "${e}" keyword not found.`,this.schemas=r}},tw=class extends Error{constructor(e){super(),this.name="JsonSchemaMergeError",this.code="JSON_SCHEMA_MERGE_ERROR",this.message=`Invalid "onConflict" option: "${e}".`}};O8.exports={MergeError:ZE,ResolverNotFoundError:ew,InvalidOnConflictOptionError:tw}});var k8=_((_ze,N8)=>{"use strict";var Yge=On(),{MergeError:nw}=rw();function I8(t){let e=t[0];for(let r=1;rt[r].includes(n));return e}function Jge(t,e,r){let n=I8(e);if(n.length===0)throw new nw(t,e);r[t]=n}function Qge(t,e,r){for(let i=0;ic?n(c,a%c):a,i=(a,c)=>a*c/n(a,c),s=1;for(let a of e)for(;a*s%1!==0;)s*=10;let o=e[0]*s;for(let a of e)o=i(o,a*s);r[t]=o/s}function nve(t,e,r){let n=e[0];for(let i=1;i{"use strict";var ave=On(),kt=k8(),mm=rw(),q8={$id:kt.skip,type:kt.hybridArraysIntersection,enum:kt.arraysIntersection,minLength:kt.maxNumber,maxLength:kt.minNumber,minimum:kt.maxNumber,maximum:kt.minNumber,multipleOf:kt.commonMultiple,exclusiveMinimum:kt.maxNumber,exclusiveMaximum:kt.minNumber,minItems:kt.maxNumber,maxItems:kt.minNumber,maxProperties:kt.minNumber,minProperties:kt.maxNumber,const:kt.allEqual,default:kt.allEqual,format:kt.allEqual,required:kt.arraysUnion,properties:pve,patternProperties:hm,additionalProperties:pm,items:lve,additionalItems:fve,definitions:hm,$defs:hm,nullable:kt.booleanAnd,oneOf:D8,anyOf:D8,allOf:kt.arraysUnion,not:pm,if:hve,then:kt.skip,else:kt.skip,dependencies:L8,dependentRequired:L8,dependentSchemas:hm,propertyNames:pm,uniqueItems:kt.booleanOr,contains:pm};function pm(t,e,r,n,i){r[t]=ci(e,i)}function cve(t){let e=[[]];for(let r of t){let n=[];for(let i of e)for(let s of r)n.push([...i,s]);e=n}return e}function D8(t,e,r,n,i){if(e.length===1){r[t]=e[0];return}let s=cve(e),o=[];for(let a of s)try{let c=ci(a,i);c!==void 0&&o.push(c)}catch(c){if(c instanceof mm.MergeError)continue;throw c}r[t]=o}function uve(t,e){let{items:r,additionalItems:n}=t;return Array.isArray(r)?e{"use strict";var{mergeSchemas:yve}=M8();function gve(t){return yve(t,{onConflict:"skip"})}B8.exports=gve});var J8=_((wze,su)=>{"use strict";var{RefResolver:vve}=w8(),xve=tb(),_ve=Q1(),Ca=A8(),z8=C8(),bve=U8(),Eve=/'/g,ym=2e4,V8="default",wve=["floor","ceil","round","trunc"],W8=["default","json-stringify"],Mf=0;function iw(t,e){if(!z8(t)){e?e=`"${e}" `:e="";let r=z8.errors[0],n=new Error(`${e}schema is invalid: data${r.instancePath} ${r.message}`);throw n.errors=iw.errors,n}}function Bf(t,e){let r=e.schema.$ref,n=r.indexOf("#");n===-1&&(n=r.length);let i=r.slice(0,n)||e.schemaId,s=r.slice(n)||"#",o=t.refResolver.getSchema(i,s);if(o===null)throw new Error(`Cannot find reference "${r}"`);let a=new Ca(o,i,s);return o.$ref!==void 0?Bf(t,a):a}function gm(t,e){let r=t.refResolver.getSchema(e,"#");return new Ca(r,e,"#")}function H8(t,e){return t.$id&&t.$id.charAt(0)!=="#"?t.$id:e}function sw(t,e){iw(t),e=e||{};let r={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:e,refResolver:new vve,rootSchemaId:t.$id||`__fjs_root_${Mf++}`,validatorSchemasIds:new Set,mergedSchemasIds:new Map},n=H8(t,r.rootSchemaId);if(r.refResolver.hasSchema(n)||r.refResolver.addSchema(t,r.rootSchemaId),e.schema)for(let u in e.schema){let f=e.schema[u],d=H8(f,u);r.refResolver.hasSchema(d)||(iw(f,u),r.refResolver.addSchema(f,u))}if(e.rounding&&!wve.includes(e.rounding))throw new Error(`Unsupported integer rounding method ${e.rounding}`);if(e.largeArrayMechanism)if(W8.includes(e.largeArrayMechanism))V8=e.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${e.largeArrayMechanism}`);if(e.largeArraySize)if(typeof e.largeArraySize=="string"&&Number.isFinite(Number.parseInt(e.largeArraySize,10)))ym=Number.parseInt(e.largeArraySize,10);else if(typeof e.largeArraySize=="number"&&Number.isInteger(e.largeArraySize))ym=e.largeArraySize;else if(typeof e.largeArraySize=="bigint")ym=Number(e.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof e.largeArraySize} with value ${e.largeArraySize}`);let i=new Ca(t,r.rootSchemaId),s=An(r,i,"input"),o=` - 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)"?o+=` - ${r.functions.join(` -`)} - const main = anonymous0 - return main - `:o+=` - function main (input) { - let json = '' - ${s} - return json - } - ${r.functions.join(` -`)} - return main - `;let a=new xve(e),c=new _ve(e.ajv);for(let u of r.validatorSchemasIds){let f=r.refResolver.getSchema(u);c.addSchema(f,u);let d=r.refResolver.getSchemaDependencies(u);for(let[h,p]of Object.entries(d))c.addSchema(p,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:c,serializer:a,code:`validator -serializer -${o}`,ajv:c.ajv};let l=new Function("validator","serializer",o);return e.mode==="standalone"?eE()(l,r,a,c):l(c,a)}var Sve=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],Ave=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],Tve=["maxLength","minLength","pattern"],$ve=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function Rve(t){for(var e of Sve)if(e in t)return"object";for(var e of Ave)if(e in t)return"array";for(var e of Tve)if(e in t)return"string";for(var e of $ve)if(e in t)return"number";return t.type}function Pve(t,e,r){let n=e.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 - `,o=e.getPropertyLocation("patternProperties"),a=o.schema;if(a!==void 0)for(let u in a){let f=o.getPropertyLocation(u);s+=` - if (/${u.replace(/\\*\//g,"\\/")}/.test(key)) { - ${r} - json += serializer.asString(key) + JSON_STR_COLONS - ${An(t,f,"value")} - continue - } - `}let l=e.getPropertyLocation("additionalProperties").schema;if(l!==void 0)if(l===!0)s+=` - ${r} - json += serializer.asString(key) + JSON_STR_COLONS + JSON.stringify(value) - `;else{let u=e.getPropertyLocation("additionalProperties");s+=` - ${r} - json += serializer.asString(key) + JSON_STR_COLONS - ${An(t,u,"value")} - `}return s+=` - } - `,s}function Cve(t,e){let r=e.schema,n=e.getPropertyLocation("properties"),i=r.required||[],s=Object.keys(r.properties||{}).sort((l,u)=>{let f=i.includes(l),d=i.includes(u);return f===d?0:f?-1:1}),o=i.includes(s[0]),a=`let value -`;for(let l of i)if(!s.includes(l)){let u=JSON.stringify(l);a+=`if (obj[${u}] === undefined) throw new Error('${u.replace(/'/g,"\\'")} is required!') -`}a+=`let json = JSON_STR_BEGIN_OBJECT -`;let c="";o||(a+=`let addComma = false -`,c="!addComma && (addComma = true) || (json += JSON_STR_COMMA)");for(let l of s){let u=n.getPropertyLocation(l);u.schema.$ref&&(u=Bf(t,u));let f=JSON.stringify(l),d=u.schema.default,h=i.includes(l);a+=` - value = obj[${f}] - if (value !== undefined) { - ${c} - json += ${JSON.stringify(f+":")} - ${An(t,u,"value")} - }`,d!==void 0?a+=` else { - ${c} - json += ${JSON.stringify(f+":"+JSON.stringify(d))} - } - `:h?a+=` else { - throw new Error('${f.replace(/'/g,"\\'")} is required!') - } - `:a+=` -`,o&&(c="json += ','")}return(r.patternProperties||r.additionalProperties)&&(a+=Pve(t,e,c)),a+=` - return json + JSON_STR_END_OBJECT - `,a}function vm(t,e,r){for(let o=0;o ${i.length}) { - throw new Error(\`Item at ${i.length} does not match schema definition.\`) - } - `),V8==="json-stringify"&&(a+=`if (arrayLength >= ${ym}) return JSON.stringify(obj) -`),a+=` - const arrayEnd = arrayLength - 1 - let value - let json = '' - `,Array.isArray(i)){for(let l=0;lK8(i,e)).join(" || ")})`)}return r}function X8(t){return"anonymous"+t.functionsCounter++}function kve(t,e,r){let i=e.schema.type.sort(a=>a==="null"?-1:1),s="";i.forEach((a,c)=>{e.schema={...e.schema,type:a};let l=Y8(t,e,r),u=c===0?"if":"else if";switch(a){case"null":s+=` - ${u} (${r} === null) - ${l} - `;break;case"string":{s+=` - ${u}( - 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+=` - ${u}(Array.isArray(${r})) - ${l} - `;break}case"integer":{s+=` - ${u}(Number.isInteger(${r}) || ${r} === null) - ${l} - `;break}default:{s+=` - ${u}(typeof ${r} === "${a}" || ${r} === null) - ${l} - `;break}}});let o=e.getSchemaRef();return o.startsWith(t.rootSchemaId)&&(o=o.replace(t.rootSchemaId,"")),s+=` - else throw new TypeError(\`The value of '${o}' does not match schema definition.\`) - `,s}function Y8(t,e,r){let n=e.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 += ${Ive(t,e)}(${r})`;case"array":return`json += ${Nve(t,e)}(${r})`;case void 0:return`json += JSON.stringify(${r})`;default:throw new Error(`${n.type} unsupported`)}}function Dve(t,e){let r=t.schema,n=r.type,i=Array.isArray(n)&&n.includes("null"),s="";return i&&(s+=` - if (${e} === null) { - json += JSON_STR_NULL - } else { - `),s+=`json += '${JSON.stringify(r.const).replace(Eve,"\\'")}'`,i&&(s+=` - } - `),s}function Lve(t,e,r){let n=e.schema,i=t.mergedSchemasIds.get(n);if(i){let u=gm(t,i);return An(t,u,r)}i=`__fjs_merged_${Mf++}`,t.mergedSchemasIds.set(n,i);let{allOf:s,...o}=e.schema,a=[new Ca(o,e.schemaId,e.jsonPointer)],c=e.getPropertyLocation("allOf");for(let u=0;u{"use strict";var Fve=aw();function Q8(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(n){return t.restoreFunction(n)}};let e=Fve();return function(n,i={}){i.mode="standalone";let s=e(n,i);return function(o){let a=s(o);return t.storeFunction(o,a),new Function(a)}}}ow.exports=Q8;ow.exports.default=Q8});var aw=_((Aze,Uf)=>{"use strict";var Mve=J8();function cw(){return function(e,r){let n=Object.assign({},r,{schema:e});return Bve.bind(null,n)}}function Bve(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),Mve(e,t)}Uf.exports=cw;Uf.exports.default=cw;Uf.exports.SerializerSelector=cw;Uf.exports.StandaloneSerializer=Z8()});var ou=_(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.regexpCode=ot.getEsmExportName=ot.getProperty=ot.safeStringify=ot.stringify=ot.strConcat=ot.addCodeArg=ot.str=ot._=ot.nil=ot._Code=ot.Name=ot.IDENTIFIER=ot._CodeOrName=void 0;var zf=class{};ot._CodeOrName=zf;ot.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Oa=class extends zf{constructor(e){if(super(),!ot.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ot.Name=Oa;var qn=class extends zf{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Oa&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ot._Code=qn;ot.nil=new qn("");function eF(t,...e){let r=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.ValueScope=fn.ValueScopeName=fn.Scope=fn.varKinds=fn.UsedValueState=void 0;var ln=ou(),fw=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},xm;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(xm||(fn.UsedValueState=xm={}));fn.varKinds={const:new ln.Name("const"),let:new ln.Name("let"),var:new ln.Name("var")};var _m=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof ln.Name?e:this.name(e)}name(e){return new ln.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};fn.Scope=_m;var bm=class extends ln.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,ln._)`.${new ln.Name(r)}[${n}]`}};fn.ValueScopeName=bm;var Yve=(0,ln._)`\n`,dw=class extends _m{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Yve:ln.nil}}get(){return this._scope}name(e){return new bm(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let u=a.get(o);if(u)return u}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,ln._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=ln.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,xm.Started);let u=r(l);if(u){let f=this.opts.es5?fn.varKinds.var:fn.varKinds.const;s=(0,ln._)`${s}${f} ${l} = ${u};${this.opts._n}`}else if(u=i?.(l))s=(0,ln._)`${s}${u}${this.opts._n}`;else throw new fw(l);c.set(l,xm.Completed)})}return s}};fn.ValueScope=dw});var xe=_(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.or=De.and=De.not=De.CodeGen=De.operators=De.varKinds=De.ValueScopeName=De.ValueScope=De.Scope=De.Name=De.regexpCode=De.stringify=De.getProperty=De.nil=De.strConcat=De.str=De._=void 0;var Ye=ou(),ui=Em(),mo=ou();Object.defineProperty(De,"_",{enumerable:!0,get:function(){return mo._}});Object.defineProperty(De,"str",{enumerable:!0,get:function(){return mo.str}});Object.defineProperty(De,"strConcat",{enumerable:!0,get:function(){return mo.strConcat}});Object.defineProperty(De,"nil",{enumerable:!0,get:function(){return mo.nil}});Object.defineProperty(De,"getProperty",{enumerable:!0,get:function(){return mo.getProperty}});Object.defineProperty(De,"stringify",{enumerable:!0,get:function(){return mo.stringify}});Object.defineProperty(De,"regexpCode",{enumerable:!0,get:function(){return mo.regexpCode}});Object.defineProperty(De,"Name",{enumerable:!0,get:function(){return mo.Name}});var Tm=Em();Object.defineProperty(De,"Scope",{enumerable:!0,get:function(){return Tm.Scope}});Object.defineProperty(De,"ValueScope",{enumerable:!0,get:function(){return Tm.ValueScope}});Object.defineProperty(De,"ValueScopeName",{enumerable:!0,get:function(){return Tm.ValueScopeName}});Object.defineProperty(De,"varKinds",{enumerable:!0,get:function(){return Tm.varKinds}});De.operators={GT:new Ye._Code(">"),GTE:new Ye._Code(">="),LT:new Ye._Code("<"),LTE:new Ye._Code("<="),EQ:new Ye._Code("==="),NEQ:new Ye._Code("!=="),NOT:new Ye._Code("!"),OR:new Ye._Code("||"),AND:new Ye._Code("&&"),ADD:new Ye._Code("+")};var xs=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},pw=class extends xs{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?ui.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=cu(this.rhs,e,r)),this}get names(){return this.rhs instanceof Ye._CodeOrName?this.rhs.names:{}}},wm=class extends xs{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Ye.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=cu(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Ye.Name?{}:{...this.lhs.names};return Am(e,this.rhs)}},hw=class extends wm{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},mw=class extends xs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},yw=class extends xs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},gw=class extends xs{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},vw=class extends xs{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=cu(this.code,e,r),this}get names(){return this.code instanceof Ye._CodeOrName?this.code.names:{}}},Vf=class extends xs{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(Jve(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>ka(e,r.names),{})}},_s=class extends Vf{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},xw=class extends Vf{},au=class extends _s{};au.kind="else";var Ia=class t extends _s{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new au(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(rF(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=cu(this.condition,e,r),this}get names(){let e=super.names;return Am(e,this.condition),this.else&&ka(e,this.else.names),e}};Ia.kind="if";var Na=class extends _s{};Na.kind="for";var _w=class extends Na{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=cu(this.iteration,e,r),this}get names(){return ka(super.names,this.iteration.names)}},bw=class extends Na{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?ui.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=Am(super.names,this.from);return Am(e,this.to)}},Sm=class extends Na{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=cu(this.iterable,e,r),this}get names(){return ka(super.names,this.iterable.names)}},Wf=class extends _s{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Wf.kind="func";var Gf=class extends Vf{render(e){return"return "+super.render(e)}};Gf.kind="return";var Ew=class extends _s{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&ka(e,this.catch.names),this.finally&&ka(e,this.finally.names),e}},Kf=class extends _s{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Kf.kind="catch";var Xf=class extends _s{render(e){return"finally"+super.render(e)}};Xf.kind="finally";var ww=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` -`:""},this._extScope=e,this._scope=new ui.Scope({parent:e}),this._nodes=[new xw]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new pw(e,s,n)),s}const(e,r,n){return this._def(ui.varKinds.const,e,r,n)}let(e,r,n){return this._def(ui.varKinds.let,e,r,n)}var(e,r,n){return this._def(ui.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new wm(e,r,n))}add(e,r){return this._leafNode(new hw(e,De.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Ye.nil&&this._leafNode(new vw(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,Ye.addCodeArg)(r,i));return r.push("}"),new Ye._Code(r)}if(e,r,n){if(this._blockNode(new Ia(e)),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(e){return this._elseNode(new Ia(e))}else(){return this._elseNode(new au)}endIf(){return this._endBlockNode(Ia,au)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new _w(e),r)}forRange(e,r,n,i,s=this.opts.es5?ui.varKinds.var:ui.varKinds.let){let o=this._scope.toName(e);return this._for(new bw(s,o,r,n),()=>i(o))}forOf(e,r,n,i=ui.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=r instanceof Ye.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ye._)`${o}.length`,a=>{this.var(s,(0,Ye._)`${o}[${a}]`),n(s)})}return this._for(new Sm("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?ui.varKinds.var:ui.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Ye._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new Sm("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Na)}label(e){return this._leafNode(new mw(e))}break(e){return this._leafNode(new yw(e))}return(e){let r=new Gf;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Gf)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Ew;if(this._blockNode(i),this.code(e),r){let s=this.name("e");this._currNode=i.catch=new Kf(s),r(s)}return n&&(this._currNode=i.finally=new Xf,this.code(n)),this._endBlockNode(Kf,Xf)}throw(e){return this._leafNode(new gw(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){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||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Ye.nil,n,i){return this._blockNode(new Wf(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Wf)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ia))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};De.CodeGen=ww;function ka(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function Am(t,e){return e instanceof Ye._CodeOrName?ka(t,e.names):t}function cu(t,e,r){if(t instanceof Ye.Name)return n(t);if(!i(t))return t;return new Ye._Code(t._items.reduce((s,o)=>(o instanceof Ye.Name&&(o=n(o)),o instanceof Ye._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=r[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function i(s){return s instanceof Ye._Code&&s._items.some(o=>o instanceof Ye.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function Jve(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function rF(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Ye._)`!${Sw(t)}`}De.not=rF;var Qve=nF(De.operators.AND);function Zve(...t){return t.reduce(Qve)}De.and=Zve;var exe=nF(De.operators.OR);function txe(...t){return t.reduce(exe)}De.or=txe;function nF(t){return(e,r)=>e===Ye.nil?r:r===Ye.nil?e:(0,Ye._)`${Sw(e)} ${t} ${Sw(r)}`}function Sw(t){return t instanceof Ye.Name?t:(0,Ye._)`(${t})`}});var Ie=_(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.checkStrictMode=Fe.getErrorPath=Fe.Type=Fe.useFunc=Fe.setEvaluated=Fe.evaluatedPropsToName=Fe.mergeEvaluated=Fe.eachItem=Fe.unescapeJsonPointer=Fe.escapeJsonPointer=Fe.escapeFragment=Fe.unescapeFragment=Fe.schemaRefOrVal=Fe.schemaHasRulesButRef=Fe.schemaHasRules=Fe.checkUnknownRules=Fe.alwaysValidSchema=Fe.toHash=void 0;var xt=xe(),rxe=ou();function nxe(t){let e={};for(let r of t)e[r]=!0;return e}Fe.toHash=nxe;function ixe(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(oF(t,e),!aF(e,t.self.RULES.all))}Fe.alwaysValidSchema=ixe;function oF(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let s in e)i[s]||lF(t,`unknown keyword: "${s}"`)}Fe.checkUnknownRules=oF;function aF(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}Fe.schemaHasRules=aF;function sxe(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}Fe.schemaHasRulesButRef=sxe;function oxe({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,xt._)`${r}`}return(0,xt._)`${t}${e}${(0,xt.getProperty)(n)}`}Fe.schemaRefOrVal=oxe;function axe(t){return cF(decodeURIComponent(t))}Fe.unescapeFragment=axe;function cxe(t){return encodeURIComponent(Tw(t))}Fe.escapeFragment=cxe;function Tw(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Fe.escapeJsonPointer=Tw;function cF(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Fe.unescapeJsonPointer=cF;function uxe(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}Fe.eachItem=uxe;function iF({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,o,a)=>{let c=o===void 0?s:o instanceof xt.Name?(s instanceof xt.Name?t(i,s,o):e(i,s,o),o):s instanceof xt.Name?(e(i,o,s),s):r(s,o);return a===xt.Name&&!(c instanceof xt.Name)?n(i,c):c}}Fe.mergeEvaluated={props:iF({mergeNames:(t,e,r)=>t.if((0,xt._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,xt._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,xt._)`${r} || {}`).code((0,xt._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,xt._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,xt._)`${r} || {}`),$w(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:uF}),items:iF({mergeNames:(t,e,r)=>t.if((0,xt._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,xt._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,xt._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,xt._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function uF(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,xt._)`{}`);return e!==void 0&&$w(t,r,e),r}Fe.evaluatedPropsToName=uF;function $w(t,e,r){Object.keys(r).forEach(n=>t.assign((0,xt._)`${e}${(0,xt.getProperty)(n)}`,!0))}Fe.setEvaluated=$w;var sF={};function lxe(t,e){return t.scopeValue("func",{ref:e,code:sF[e.code]||(sF[e.code]=new rxe._Code(e.code))})}Fe.useFunc=lxe;var Aw;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Aw||(Fe.Type=Aw={}));function fxe(t,e,r){if(t instanceof xt.Name){let n=e===Aw.Num;return r?n?(0,xt._)`"[" + ${t} + "]"`:(0,xt._)`"['" + ${t} + "']"`:n?(0,xt._)`"/" + ${t}`:(0,xt._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,xt.getProperty)(t).toString():"/"+Tw(t)}Fe.getErrorPath=fxe;function lF(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}Fe.checkStrictMode=lF});var jn=_(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});var Ir=xe(),dxe={data:new Ir.Name("data"),valCxt:new Ir.Name("valCxt"),instancePath:new Ir.Name("instancePath"),parentData:new Ir.Name("parentData"),parentDataProperty:new Ir.Name("parentDataProperty"),rootData:new Ir.Name("rootData"),dynamicAnchors:new Ir.Name("dynamicAnchors"),vErrors:new Ir.Name("vErrors"),errors:new Ir.Name("errors"),this:new Ir.Name("this"),self:new Ir.Name("self"),scope:new Ir.Name("scope"),json:new Ir.Name("json"),jsonPos:new Ir.Name("jsonPos"),jsonLen:new Ir.Name("jsonLen"),jsonPart:new Ir.Name("jsonPart")};Rw.default=dxe});var Yf=_(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.extendErrors=Nr.resetErrorsCount=Nr.reportExtraError=Nr.reportError=Nr.keyword$DataError=Nr.keywordError=void 0;var Ze=xe(),$m=Ie(),Yr=jn();Nr.keywordError={message:({keyword:t})=>(0,Ze.str)`must pass "${t}" keyword validation`};Nr.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Ze.str)`"${t}" keyword must be ${e} ($data)`:(0,Ze.str)`"${t}" keyword is invalid ($data)`};function pxe(t,e=Nr.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,allErrors:a}=i,c=pF(t,e,r);n??(o||a)?fF(s,c):dF(i,(0,Ze._)`[${c}]`)}Nr.reportError=pxe;function hxe(t,e=Nr.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,allErrors:o}=n,a=pF(t,e,r);fF(i,a),s||o||dF(n,Yr.default.vErrors)}Nr.reportExtraError=hxe;function mxe(t,e){t.assign(Yr.default.errors,e),t.if((0,Ze._)`${Yr.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Ze._)`${Yr.default.vErrors}.length`,e),()=>t.assign(Yr.default.vErrors,null)))}Nr.resetErrorsCount=mxe;function yxe({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",i,Yr.default.errors,a=>{t.const(o,(0,Ze._)`${Yr.default.vErrors}[${a}]`),t.if((0,Ze._)`${o}.instancePath === undefined`,()=>t.assign((0,Ze._)`${o}.instancePath`,(0,Ze.strConcat)(Yr.default.instancePath,s.errorPath))),t.assign((0,Ze._)`${o}.schemaPath`,(0,Ze.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,Ze._)`${o}.schema`,r),t.assign((0,Ze._)`${o}.data`,n))})}Nr.extendErrors=yxe;function fF(t,e){let r=t.const("err",e);t.if((0,Ze._)`${Yr.default.vErrors} === null`,()=>t.assign(Yr.default.vErrors,(0,Ze._)`[${r}]`),(0,Ze._)`${Yr.default.vErrors}.push(${r})`),t.code((0,Ze._)`${Yr.default.errors}++`)}function dF(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,Ze._)`new ${t.ValidationError}(${e})`):(r.assign((0,Ze._)`${n}.errors`,e),r.return(!1))}var Da={keyword:new Ze.Name("keyword"),schemaPath:new Ze.Name("schemaPath"),params:new Ze.Name("params"),propertyName:new Ze.Name("propertyName"),message:new Ze.Name("message"),schema:new Ze.Name("schema"),parentSchema:new Ze.Name("parentSchema")};function pF(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,Ze._)`{}`:gxe(t,e,r)}function gxe(t,e,r={}){let{gen:n,it:i}=t,s=[vxe(i,r),xxe(t,r)];return _xe(t,e,s),n.object(...s)}function vxe({errorPath:t},{instancePath:e}){let r=e?(0,Ze.str)`${t}${(0,$m.getErrorPath)(e,$m.Type.Str)}`:t;return[Yr.default.instancePath,(0,Ze.strConcat)(Yr.default.instancePath,r)]}function xxe({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,Ze.str)`${e}/${t}`;return r&&(i=(0,Ze.str)`${i}${(0,$m.getErrorPath)(r,$m.Type.Str)}`),[Da.schemaPath,i]}function _xe(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o,it:a}=t,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:f}=a;n.push([Da.keyword,i],[Da.params,typeof e=="function"?e(t):e||(0,Ze._)`{}`]),c.messages&&n.push([Da.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([Da.schema,o],[Da.parentSchema,(0,Ze._)`${u}${f}`],[Yr.default.data,s]),l&&n.push([Da.propertyName,l])}});var mF=_(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.boolOrEmptySchema=uu.topBoolOrEmptySchema=void 0;var bxe=Yf(),Exe=xe(),wxe=jn(),Sxe={message:"boolean schema is false"};function Axe(t){let{gen:e,schema:r,validateName:n}=t;r===!1?hF(t,!1):typeof r=="object"&&r.$async===!0?e.return(wxe.default.data):(e.assign((0,Exe._)`${n}.errors`,null),e.return(!0))}uu.topBoolOrEmptySchema=Axe;function Txe(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),hF(t)):r.var(e,!0)}uu.boolOrEmptySchema=Txe;function hF(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,bxe.reportError)(i,Sxe,void 0,e)}});var Pw=_(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.getRules=lu.isJSONType=void 0;var $xe=["string","number","integer","boolean","null","object","array"],Rxe=new Set($xe);function Pxe(t){return typeof t=="string"&&Rxe.has(t)}lu.isJSONType=Pxe;function Cxe(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}lu.getRules=Cxe});var Cw=_(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.shouldUseRule=yo.shouldUseGroup=yo.schemaHasRulesForType=void 0;function Oxe({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&yF(t,n)}yo.schemaHasRulesForType=Oxe;function yF(t,e){return e.rules.some(r=>gF(t,r))}yo.shouldUseGroup=yF;function gF(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}yo.shouldUseRule=gF});var Jf=_(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.reportTypeError=kr.checkDataTypes=kr.checkDataType=kr.coerceAndCheckDataType=kr.getJSONTypes=kr.getSchemaTypes=kr.DataType=void 0;var Ixe=Pw(),Nxe=Cw(),kxe=Yf(),Pe=xe(),vF=Ie(),fu;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(fu||(kr.DataType=fu={}));function Dxe(t){let e=xF(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}kr.getSchemaTypes=Dxe;function xF(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Ixe.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}kr.getJSONTypes=xF;function Lxe(t,e){let{gen:r,data:n,opts:i}=t,s=qxe(e,i.coerceTypes),o=e.length>0&&!(s.length===0&&e.length===1&&(0,Nxe.schemaHasRulesForType)(t,e[0]));if(o){let a=Iw(e,n,i.strictNumbers,fu.Wrong);r.if(a,()=>{s.length?jxe(t,e,s):Nw(t)})}return o}kr.coerceAndCheckDataType=Lxe;var _F=new Set(["string","number","integer","boolean","null"]);function qxe(t,e){return e?t.filter(r=>_F.has(r)||e==="array"&&r==="array"):[]}function jxe(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,Pe._)`typeof ${i}`),a=n.let("coerced",(0,Pe._)`undefined`);s.coerceTypes==="array"&&n.if((0,Pe._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Pe._)`${i}[0]`).assign(o,(0,Pe._)`typeof ${i}`).if(Iw(e,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,Pe._)`${a} !== undefined`);for(let l of r)(_F.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),Nw(t),n.endIf(),n.if((0,Pe._)`${a} !== undefined`,()=>{n.assign(i,a),Fxe(t,a)});function c(l){switch(l){case"string":n.elseIf((0,Pe._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,Pe._)`"" + ${i}`).elseIf((0,Pe._)`${i} === null`).assign(a,(0,Pe._)`""`);return;case"number":n.elseIf((0,Pe._)`${o} == "boolean" || ${i} === null - || (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Pe._)`+${i}`);return;case"integer":n.elseIf((0,Pe._)`${o} === "boolean" || ${i} === null - || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Pe._)`+${i}`);return;case"boolean":n.elseIf((0,Pe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Pe._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Pe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Pe._)`${o} === "string" || ${o} === "number" - || ${o} === "boolean" || ${i} === null`).assign(a,(0,Pe._)`[${i}]`)}}}function Fxe({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Pe._)`${e} !== undefined`,()=>t.assign((0,Pe._)`${e}[${r}]`,n))}function Ow(t,e,r,n=fu.Correct){let i=n===fu.Correct?Pe.operators.EQ:Pe.operators.NEQ,s;switch(t){case"null":return(0,Pe._)`${e} ${i} null`;case"array":s=(0,Pe._)`Array.isArray(${e})`;break;case"object":s=(0,Pe._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=o((0,Pe._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=o();break;default:return(0,Pe._)`typeof ${e} ${i} ${t}`}return n===fu.Correct?s:(0,Pe.not)(s);function o(a=Pe.nil){return(0,Pe.and)((0,Pe._)`typeof ${e} == "number"`,a,r?(0,Pe._)`isFinite(${e})`:Pe.nil)}}kr.checkDataType=Ow;function Iw(t,e,r,n){if(t.length===1)return Ow(t[0],e,r,n);let i,s=(0,vF.toHash)(t);if(s.array&&s.object){let o=(0,Pe._)`typeof ${e} != "object"`;i=s.null?o:(0,Pe._)`!${e} || ${o}`,delete s.null,delete s.array,delete s.object}else i=Pe.nil;s.number&&delete s.integer;for(let o in s)i=(0,Pe.and)(i,Ow(o,e,r,n));return i}kr.checkDataTypes=Iw;var Mxe={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Pe._)`{type: ${t}}`:(0,Pe._)`{type: ${e}}`};function Nw(t){let e=Bxe(t);(0,kxe.reportError)(e,Mxe)}kr.reportTypeError=Nw;function Bxe(t){let{gen:e,data:r,schema:n}=t,i=(0,vF.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var EF=_(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.assignDefaults=void 0;var du=xe(),Uxe=Ie();function zxe(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)bF(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,s)=>bF(t,s,i.default))}Rm.assignDefaults=zxe;function bF(t,e,r){let{gen:n,compositeRule:i,data:s,opts:o}=t;if(r===void 0)return;let a=(0,du._)`${s}${(0,du.getProperty)(e)}`;if(i){(0,Uxe.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,du._)`${a} === undefined`;o.useDefaults==="empty"&&(c=(0,du._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,du._)`${a} = ${(0,du.stringify)(r)}`)}});var vr=_(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.validateUnion=mt.validateArray=mt.usePattern=mt.callValidateCode=mt.schemaProperties=mt.allSchemaProperties=mt.noPropertyInData=mt.propertyInData=mt.isOwnProperty=mt.hasPropFunc=mt.reportMissingProp=mt.checkMissingProp=mt.checkReportMissingProp=void 0;var Pt=xe(),kw=Ie(),go=jn(),Hxe=Ie();function Vxe(t,e){let{gen:r,data:n,it:i}=t;r.if(Lw(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Pt._)`${e}`},!0),t.error()})}mt.checkReportMissingProp=Vxe;function Wxe({gen:t,data:e,it:{opts:r}},n,i){return(0,Pt.or)(...n.map(s=>(0,Pt.and)(Lw(t,e,s,r.ownProperties),(0,Pt._)`${i} = ${s}`)))}mt.checkMissingProp=Wxe;function Gxe(t,e){t.setParams({missingProperty:e},!0),t.error()}mt.reportMissingProp=Gxe;function wF(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Pt._)`Object.prototype.hasOwnProperty`})}mt.hasPropFunc=wF;function Dw(t,e,r){return(0,Pt._)`${wF(t)}.call(${e}, ${r})`}mt.isOwnProperty=Dw;function Kxe(t,e,r,n){let i=(0,Pt._)`${e}${(0,Pt.getProperty)(r)} !== undefined`;return n?(0,Pt._)`${i} && ${Dw(t,e,r)}`:i}mt.propertyInData=Kxe;function Lw(t,e,r,n){let i=(0,Pt._)`${e}${(0,Pt.getProperty)(r)} === undefined`;return n?(0,Pt.or)(i,(0,Pt.not)(Dw(t,e,r))):i}mt.noPropertyInData=Lw;function SF(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}mt.allSchemaProperties=SF;function Xxe(t,e){return SF(e).filter(r=>!(0,kw.alwaysValidSchema)(t,e[r]))}mt.schemaProperties=Xxe;function Yxe({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,c,l){let u=l?(0,Pt._)`${t}, ${e}, ${n}${i}`:e,f=[[go.default.instancePath,(0,Pt.strConcat)(go.default.instancePath,s)],[go.default.parentData,o.parentData],[go.default.parentDataProperty,o.parentDataProperty],[go.default.rootData,go.default.rootData]];o.opts.dynamicRef&&f.push([go.default.dynamicAnchors,go.default.dynamicAnchors]);let d=(0,Pt._)`${u}, ${r.object(...f)}`;return c!==Pt.nil?(0,Pt._)`${a}.call(${c}, ${d})`:(0,Pt._)`${a}(${d})`}mt.callValidateCode=Yxe;var Jxe=(0,Pt._)`new RegExp`;function Qxe({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,s=i(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Pt._)`${i.code==="new RegExp"?Jxe:(0,Hxe.useFunc)(t,i)}(${r}, ${n})`})}mt.usePattern=Qxe;function Zxe(t){let{gen:e,data:r,keyword:n,it:i}=t,s=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(s,!0),o(()=>e.break()),s;function o(a){let c=e.const("len",(0,Pt._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:kw.Type.Num},s),e.if((0,Pt.not)(s),a)})}}mt.validateArray=Zxe;function e_e(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,kw.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let o=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let u=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(o,(0,Pt._)`${o} || ${a}`),t.mergeValidEvaluated(u,a)||e.if((0,Pt.not)(o))})),t.result(o,()=>t.reset(),()=>t.error(!0))}mt.validateUnion=e_e});var $F=_(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.validateKeywordUsage=qi.validSchemaType=qi.funcKeywordCode=qi.macroKeywordCode=void 0;var Jr=xe(),La=jn(),t_e=vr(),r_e=Yf();function n_e(t,e){let{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=t,a=e.macro.call(o.self,i,s,o),c=TF(r,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:Jr.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}qi.macroKeywordCode=n_e;function i_e(t,e){var r;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:c}=t;o_e(c,e);let l=!a&&e.compile?e.compile.call(c.self,s,o,c):e.validate,u=TF(n,i,l),f=n.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)m(),e.modifying&&AF(t),g(()=>t.error());else{let y=e.async?h():p();e.modifying&&AF(t),g(()=>s_e(t,y))}}function h(){let y=n.let("ruleErrs",null);return n.try(()=>m((0,Jr._)`await `),b=>n.assign(f,!1).if((0,Jr._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,Jr._)`${b}.errors`),()=>n.throw(b))),y}function p(){let y=(0,Jr._)`${u}.errors`;return n.assign(y,null),m(Jr.nil),y}function m(y=e.async?(0,Jr._)`await `:Jr.nil){let b=c.opts.passContext?La.default.this:La.default.self,x=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,Jr._)`${y}${(0,t_e.callValidateCode)(t,u,b,x)}`,e.modifying)}function g(y){var b;n.if((0,Jr.not)((b=e.valid)!==null&&b!==void 0?b:f),y)}}qi.funcKeywordCode=i_e;function AF(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Jr._)`${n.parentData}[${n.parentDataProperty}]`))}function s_e(t,e){let{gen:r}=t;r.if((0,Jr._)`Array.isArray(${e})`,()=>{r.assign(La.default.vErrors,(0,Jr._)`${La.default.vErrors} === null ? ${e} : ${La.default.vErrors}.concat(${e})`).assign(La.default.errors,(0,Jr._)`${La.default.vErrors}.length`),(0,r_e.extendErrors)(t)},()=>t.error())}function o_e({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function TF(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Jr.stringify)(r)})}function a_e(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}qi.validSchemaType=a_e;function c_e({schema:t,opts:e,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 o=i.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}qi.validateKeywordUsage=c_e});var PF=_(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.extendSubschemaMode=vo.extendSubschemaData=vo.getSubschema=void 0;var ji=xe(),RF=Ie();function u_e(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,ji._)`${t.schemaPath}${(0,ji.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,ji._)`${t.schemaPath}${(0,ji.getProperty)(e)}${(0,ji.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,RF.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}vo.getSubschema=u_e;function l_e(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:f}=e,d=a.let("data",(0,ji._)`${e.data}${(0,ji.getProperty)(r)}`,!0);c(d),t.errorPath=(0,ji.str)`${l}${(0,RF.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,ji._)`${r}`,t.dataPathArr=[...u,t.parentDataProperty]}if(i!==void 0){let l=i instanceof ji.Name?i:a.let("data",i,!0);c(l),o!==void 0&&(t.propertyName=o)}s&&(t.dataTypes=s);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}vo.extendSubschemaData=l_e;function f_e(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}vo.extendSubschemaMode=f_e});var OF=_((Mze,CF)=>{"use strict";var xo=CF.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Pm(e,n,i,t,"",t)};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 Pm(t,e,r,n,i,s,o,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,l);for(var u in n){var f=n[u];if(Array.isArray(f)){if(u in xo.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.getSchemaRefs=dn.resolveUrl=dn.normalizeId=dn._getFullPath=dn.getFullPath=dn.inlineRef=void 0;var p_e=Ie(),h_e=On(),m_e=OF(),y_e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function g_e(t,e=!0){return typeof t=="boolean"?!0:e===!0?!qw(t):e?IF(t)<=e:!1}dn.inlineRef=g_e;var v_e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function qw(t){for(let e in t){if(v_e.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(qw)||typeof r=="object"&&qw(r))return!0}return!1}function IF(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!y_e.has(r)&&(typeof t[r]=="object"&&(0,p_e.eachItem)(t[r],n=>e+=IF(n)),e===1/0))return 1/0}return e}function NF(t,e="",r){r!==!1&&(e=pu(e));let n=t.parse(e);return kF(t,n)}dn.getFullPath=NF;function kF(t,e){return t.serialize(e).split("#")[0]+"#"}dn._getFullPath=kF;var x_e=/#\/?$/;function pu(t){return t?t.replace(x_e,""):""}dn.normalizeId=pu;function __e(t,e,r){return r=pu(r),t.resolve(e,r)}dn.resolveUrl=__e;var b_e=/^[a-z_][-a-z0-9._]*$/i;function E_e(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=pu(t[r]||e),s={"":i},o=NF(n,i,!1),a={},c=new Set;return m_e(t,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=o+d,g=s[p];typeof f[r]=="string"&&(g=y.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=g;function y(x){let v=this.opts.uriResolver.resolve;if(x=pu(g?v(g,x):x),c.has(x))throw u(x);c.add(x);let E=this.refs[x];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?l(f,E.schema,x):x!==pu(m)&&(x[0]==="#"?(l(f,a[x],x),a[x]=f):this.refs[x]=m),x}function b(x){if(typeof x=="string"){if(!b_e.test(x))throw new Error(`invalid anchor "${x}"`);y.call(this,`#${x}`)}}}),a;function l(f,d,h){if(d!==void 0&&!h_e(f,d))throw u(h)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}dn.getSchemaRefs=E_e});var hu=_(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.getData=_o.KeywordCxt=_o.validateFunctionCode=void 0;var FF=mF(),DF=Jf(),Fw=Cw(),Cm=Jf(),w_e=EF(),ed=$F(),jw=PF(),ye=xe(),be=jn(),S_e=Qf(),bs=Ie(),Zf=Yf();function A_e(t){if(UF(t)&&(zF(t),BF(t))){R_e(t);return}MF(t,()=>(0,FF.topBoolOrEmptySchema)(t))}_o.validateFunctionCode=A_e;function MF({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){i.code.es5?t.func(e,(0,ye._)`${be.default.data}, ${be.default.valCxt}`,n.$async,()=>{t.code((0,ye._)`"use strict"; ${LF(r,i)}`),$_e(t,i),t.code(s)}):t.func(e,(0,ye._)`${be.default.data}, ${T_e(i)}`,n.$async,()=>t.code(LF(r,i)).code(s))}function T_e(t){return(0,ye._)`{${be.default.instancePath}="", ${be.default.parentData}, ${be.default.parentDataProperty}, ${be.default.rootData}=${be.default.data}${t.dynamicRef?(0,ye._)`, ${be.default.dynamicAnchors}={}`:ye.nil}}={}`}function $_e(t,e){t.if(be.default.valCxt,()=>{t.var(be.default.instancePath,(0,ye._)`${be.default.valCxt}.${be.default.instancePath}`),t.var(be.default.parentData,(0,ye._)`${be.default.valCxt}.${be.default.parentData}`),t.var(be.default.parentDataProperty,(0,ye._)`${be.default.valCxt}.${be.default.parentDataProperty}`),t.var(be.default.rootData,(0,ye._)`${be.default.valCxt}.${be.default.rootData}`),e.dynamicRef&&t.var(be.default.dynamicAnchors,(0,ye._)`${be.default.valCxt}.${be.default.dynamicAnchors}`)},()=>{t.var(be.default.instancePath,(0,ye._)`""`),t.var(be.default.parentData,(0,ye._)`undefined`),t.var(be.default.parentDataProperty,(0,ye._)`undefined`),t.var(be.default.rootData,be.default.data),e.dynamicRef&&t.var(be.default.dynamicAnchors,(0,ye._)`{}`)})}function R_e(t){let{schema:e,opts:r,gen:n}=t;MF(t,()=>{r.$comment&&e.$comment&&VF(t),N_e(t),n.let(be.default.vErrors,null),n.let(be.default.errors,0),r.unevaluated&&P_e(t),HF(t),L_e(t)})}function P_e(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,ye._)`${r}.evaluated`),e.if((0,ye._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,ye._)`${t.evaluated}.props`,(0,ye._)`undefined`)),e.if((0,ye._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,ye._)`${t.evaluated}.items`,(0,ye._)`undefined`))}function LF(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,ye._)`/*# sourceURL=${r} */`:ye.nil}function C_e(t,e){if(UF(t)&&(zF(t),BF(t))){O_e(t,e);return}(0,FF.boolOrEmptySchema)(t,e)}function BF({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function UF(t){return typeof t.schema!="boolean"}function O_e(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&VF(t),k_e(t),D_e(t);let s=n.const("_errs",be.default.errors);HF(t,s),n.var(e,(0,ye._)`${s} === ${be.default.errors}`)}function zF(t){(0,bs.checkUnknownRules)(t),I_e(t)}function HF(t,e){if(t.opts.jtd)return qF(t,[],!1,e);let r=(0,DF.getSchemaTypes)(t.schema),n=(0,DF.coerceAndCheckDataType)(t,r);qF(t,r,!n,e)}function I_e(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,bs.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function N_e(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,bs.checkStrictMode)(t,"default is ignored in the schema root")}function k_e(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,S_e.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function D_e(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function VF({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)t.code((0,ye._)`${be.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,ye.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,ye._)`${be.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function L_e(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=t;r.$async?e.if((0,ye._)`${be.default.errors} === 0`,()=>e.return(be.default.data),()=>e.throw((0,ye._)`new ${i}(${be.default.vErrors})`)):(e.assign((0,ye._)`${n}.errors`,be.default.vErrors),s.unevaluated&&q_e(t),e.return((0,ye._)`${be.default.errors} === 0`))}function q_e({gen:t,evaluated:e,props:r,items:n}){r instanceof ye.Name&&t.assign((0,ye._)`${e}.props`,r),n instanceof ye.Name&&t.assign((0,ye._)`${e}.items`,n)}function qF(t,e,r,n){let{gen:i,schema:s,data:o,allErrors:a,opts:c,self:l}=t,{RULES:u}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,bs.schemaHasRulesButRef)(s,u))){i.block(()=>GF(t,"$ref",u.all.$ref.definition));return}c.jtd||j_e(t,e),i.block(()=>{for(let d of u.rules)f(d);f(u.post)});function f(d){(0,Fw.shouldUseGroup)(s,d)&&(d.type?(i.if((0,Cm.checkDataType)(d.type,o,c.strictNumbers)),jF(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,Cm.reportTypeError)(t)),i.endIf()):jF(t,d),a||i.if((0,ye._)`${be.default.errors} === ${n||0}`))}}function jF(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,w_e.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,Fw.shouldUseRule)(n,s)&&GF(t,s.keyword,s.definition,e.type)})}function j_e(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(F_e(t,e),t.opts.allowUnionTypes||M_e(t,e),B_e(t,t.dataTypes))}function F_e(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{WF(t.dataTypes,r)||Mw(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),z_e(t,e)}}function M_e(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Mw(t,"use allowUnionTypes to allow union type keyword")}function B_e(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Fw.shouldUseRule)(t.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>U_e(e,o))&&Mw(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function U_e(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function WF(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function z_e(t,e){let r=[];for(let n of t.dataTypes)WF(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function Mw(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,bs.checkStrictMode)(t,e,t.opts.strictTypes)}var Om=class{constructor(e,r,n){if((0,ed.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bs.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",KF(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,ed.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=e.gen.const("_errs",be.default.errors))}result(e,r,n){this.failResult((0,ye.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,ye.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,ye._)`${r} !== undefined && (${(0,ye.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?Zf.reportExtraError:Zf.reportError)(this,this.def.error,r)}$dataError(){(0,Zf.reportError)(this,this.def.$dataError||Zf.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Zf.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=ye.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=ye.nil,r=ye.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,ye.or)((0,ye._)`${i} === undefined`,r)),e!==ye.nil&&n.assign(e,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==ye.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,ye.or)(o(),a());function o(){if(n.length){if(!(r instanceof ye.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,ye._)`${(0,Cm.checkDataTypes)(c,r,s.opts.strictNumbers,Cm.DataType.Wrong)}`}return ye.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,ye._)`!${c}(${r})`}return ye.nil}}subschema(e,r){let n=(0,jw.getSubschema)(this.it,e);(0,jw.extendSubschemaData)(n,this.it,e),(0,jw.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return C_e(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=bs.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=bs.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,ye.Name)),!0}};_o.KeywordCxt=Om;function GF(t,e,r,n){let i=new Om(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,ed.funcKeywordCode)(i,r):"macro"in r?(0,ed.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,ed.funcKeywordCode)(i,r)}var H_e=/^\/(?:[^~]|~0|~1)*$/,V_e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function KF(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,s;if(t==="")return be.default.rootData;if(t[0]==="/"){if(!H_e.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,s=be.default.rootData}else{let l=V_e.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=r[e-u],!i)return s}let o=s,a=i.split("/");for(let l of a)l&&(s=(0,ye._)`${s}${(0,ye.getProperty)((0,bs.unescapeJsonPointer)(l))}`,o=(0,ye._)`${o} && ${s}`);return o;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${e}`}}_o.getData=KF});var td=_(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0});var Bw=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Uw.default=Bw});var Es=_(Vw=>{"use strict";Object.defineProperty(Vw,"__esModule",{value:!0});var zw=Qf(),Hw=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,zw.resolveUrl)(e,r,n),this.missingSchema=(0,zw.normalizeId)((0,zw.getFullPath)(e,this.missingRef))}};Vw.default=Hw});var ja=_(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.resolveSchema=Fn.getCompilingSchema=Fn.resolveRef=Fn.compileSchema=Fn.SchemaEnv=void 0;var li=xe(),W_e=td(),qa=jn(),fi=Qf(),XF=Ie(),G_e=hu(),mu=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,fi.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};Fn.SchemaEnv=mu;function Gw(t){let e=YF.call(this,t);if(e)return e;let r=(0,fi.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new li.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;t.$async&&(a=o.scopeValue("Error",{ref:W_e.default,code:(0,li._)`require("ajv/dist/runtime/validation_error").default`}));let c=o.scopeName("validate");t.validateName=c;let l={gen:o,allErrors:this.opts.allErrors,data:qa.default.data,parentData:qa.default.parentData,parentDataProperty:qa.default.parentDataProperty,dataNames:[qa.default.data],dataPathArr:[li.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,li.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:li.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,li._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,G_e.validateFunctionCode)(l),o.optimize(this.opts.code.optimize);let f=o.toString();u=`${o.scopeRefs(qa.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let h=new Function(`${qa.default.self}`,`${qa.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:o._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof li.Name?void 0:p,items:m instanceof li.Name?void 0:m,dynamicProps:p instanceof li.Name,dynamicItems:m instanceof li.Name},h.source&&(h.source.evaluated=(0,li.stringify)(h.evaluated))}return t.validate=h,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}Fn.compileSchema=Gw;function K_e(t,e,r){var n;r=(0,fi.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let s=J_e.call(this,t,r);if(s===void 0){let o=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new mu({schema:o,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=X_e.call(this,s)}Fn.resolveRef=K_e;function X_e(t){return(0,fi.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Gw.call(this,t)}function YF(t){for(let e of this._compilations)if(Y_e(e,t))return e}Fn.getCompilingSchema=YF;function Y_e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function J_e(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Im.call(this,t,e)}function Im(t,e){let r=this.opts.uriResolver.parse(e),n=(0,fi._getFullPath)(this.opts.uriResolver,r),i=(0,fi.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return Ww.call(this,r,t);let s=(0,fi.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=Im.call(this,t,o);return typeof a?.schema!="object"?void 0:Ww.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||Gw.call(this,o),s===(0,fi.normalizeId)(e)){let{schema:a}=o,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,fi.resolveUrl)(this.opts.uriResolver,i,l)),new mu({schema:a,schemaId:c,root:t,baseId:i})}return Ww.call(this,r,o)}}Fn.resolveSchema=Im;var Q_e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ww(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,XF.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Q_e.has(a)&&l&&(e=(0,fi.resolveUrl)(this.opts.uriResolver,e,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,XF.schemaHasRulesButRef)(r,this.RULES)){let a=(0,fi.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=Im.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new mu({schema:r,schemaId:o,root:n,baseId:e}),s.schema!==s.root.schema)return s}});var JF=_((Wze,Z_e)=>{Z_e.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 Xw=_((Gze,t5)=>{"use strict";var ebe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ZF=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 Kw(t){let e="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var tbe=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function QF(t){return t.length=0,!0}function rbe(t,e,r){if(t.length){let n=Kw(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function nbe(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=rbe;for(let c=0;c7){r.error=!0;break}c>0&&t[c-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!a(i,n,r))break;a=QF}else{i.push(l);continue}}return i.length&&(a===QF?r.zone=i.join(""):o?n.push(i.join("")):n.push(Kw(i))),r.address=n.join(""),r}function e5(t){if(ibe(t,":")<2)return{host:t,isIPV6:!1};let e=nbe(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function ibe(t,e){let r=0;for(let n=0;n{"use strict";var{isUUID:cbe}=Xw(),ube=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,lbe=["http","https","ws","wss","urn","urn:uuid"];function fbe(t){return lbe.indexOf(t)!==-1}function Yw(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function r5(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function n5(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function dbe(t){return t.secure=Yw(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function pbe(t){if((t.port===(Yw(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function hbe(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(ube);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,s=Jw(i);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function mbe(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,s=Jw(i);s&&(t=s.serialize(t,e));let o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function ybe(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!cbe(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function gbe(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var i5={scheme:"http",domainHost:!0,parse:r5,serialize:n5},vbe={scheme:"https",domainHost:i5.domainHost,parse:r5,serialize:n5},Nm={scheme:"ws",domainHost:!0,parse:dbe,serialize:pbe},xbe={scheme:"wss",domainHost:Nm.domainHost,parse:Nm.parse,serialize:Nm.serialize},_be={scheme:"urn",parse:hbe,serialize:mbe,skipNormalize:!0},bbe={scheme:"urn:uuid",parse:ybe,serialize:gbe,skipNormalize:!0},km={http:i5,https:vbe,ws:Nm,wss:xbe,urn:_be,"urn:uuid":bbe};Object.setPrototypeOf(km,null);function Jw(t){return t&&(km[t]||km[t.toLowerCase()])||void 0}s5.exports={wsIsSecure:Yw,SCHEMES:km,isValidSchemeName:fbe,getSchemeHandler:Jw}});var u5=_((Xze,Lm)=>{"use strict";var{normalizeIPv6:Ebe,removeDotSegments:rd,recomposeAuthority:wbe,normalizeComponentEncoding:Dm,isIPv4:Sbe,nonSimpleDomain:Abe}=Xw(),{SCHEMES:Tbe,getSchemeHandler:a5}=o5();function $be(t,e){return typeof t=="string"?t=Fi(ws(t,e),e):typeof t=="object"&&(t=ws(Fi(t,e),e)),t}function Rbe(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=c5(ws(t,n),ws(e,n),n,!0);return n.skipEscape=!0,Fi(i,n)}function c5(t,e,r,n){let i={};return n||(t=ws(Fi(t,r),r),e=ws(Fi(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=rd(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=rd(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=rd(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=rd(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function Pbe(t,e,r){return typeof t=="string"?(t=unescape(t),t=Fi(Dm(ws(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Fi(Dm(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Fi(Dm(ws(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Fi(Dm(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Fi(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],s=a5(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 o=wbe(r);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=rd(a)),o===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var Cbe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ws(t,e){let r=Object.assign({},e),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?t=r.scheme+":"+t:t="//"+t);let s=t.match(Cbe);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(Sbe(n.host)===!1){let c=Ebe(n.host);n.host=c.host.toLowerCase(),i=c.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 o=a5(r.scheme||n.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&i===!1&&Abe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.skipNormalize)&&(t.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)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var Qw={SCHEMES:Tbe,normalize:$be,resolve:Rbe,resolveComponent:c5,equal:Pbe,serialize:Fi,parse:ws};Lm.exports=Qw;Lm.exports.default=Qw;Lm.exports.fastUri=Qw});var f5=_(Zw=>{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0});var l5=u5();l5.code='require("ajv/dist/runtime/uri").default';Zw.default=l5});var rS=_(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 Obe=hu();Object.defineProperty(xr,"KeywordCxt",{enumerable:!0,get:function(){return Obe.KeywordCxt}});var yu=xe();Object.defineProperty(xr,"_",{enumerable:!0,get:function(){return yu._}});Object.defineProperty(xr,"str",{enumerable:!0,get:function(){return yu.str}});Object.defineProperty(xr,"stringify",{enumerable:!0,get:function(){return yu.stringify}});Object.defineProperty(xr,"nil",{enumerable:!0,get:function(){return yu.nil}});Object.defineProperty(xr,"Name",{enumerable:!0,get:function(){return yu.Name}});Object.defineProperty(xr,"CodeGen",{enumerable:!0,get:function(){return yu.CodeGen}});var Ibe=td(),y5=Es(),Nbe=Pw(),nd=ja(),kbe=xe(),id=Qf(),qm=Jf(),tS=Ie(),d5=JF(),Dbe=f5(),g5=(t,e)=>new RegExp(t,e);g5.code="new RegExp";var Lbe=["removeAdditional","useDefaults","coerceTypes"],qbe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),jbe={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."},Fbe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},p5=200;function Mbe(t){var e,r,n,i,s,o,a,c,l,u,f,d,h,p,m,g,y,b,x,v,E,S,w,A,T;let $=t.strict,k=(e=t.code)===null||e===void 0?void 0:e.optimize,C=k===!0||k===void 0?1:k||0,I=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:g5,D=(i=t.uriResolver)!==null&&i!==void 0?i:Dbe.default;return{strictSchema:(o=(s=t.strictSchema)!==null&&s!==void 0?s:$)!==null&&o!==void 0?o:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:$)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=t.strictTypes)!==null&&l!==void 0?l:$)!==null&&u!==void 0?u:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:$)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=t.strictRequired)!==null&&h!==void 0?h:$)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:C,regExp:I}:{optimize:C,regExp:I},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:p5,loopEnum:(g=t.loopEnum)!==null&&g!==void 0?g:p5,meta:(y=t.meta)!==null&&y!==void 0?y:!0,messages:(b=t.messages)!==null&&b!==void 0?b:!0,inlineRefs:(x=t.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(v=t.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(S=t.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=t.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=t.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(T=t.int32range)!==null&&T!==void 0?T:!0,uriResolver:D}}var sd=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Mbe(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new kbe.ValueScope({scope:{},prefixes:qbe,es5:r,lines:n}),this.logger=Wbe(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,Nbe.getRules)(),h5.call(this,jbe,e,"NOT SUPPORTED"),h5.call(this,Fbe,e,"DEPRECATED","warn"),this._metaOpts=Hbe.call(this),e.formats&&Ube.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&zbe.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Bbe.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=d5;n==="id"&&(i={...d5},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,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,e,r);async function i(u,f){await s.call(this,u.$schema);let d=this._addSchema(u,f);return d.validate||o.call(this,d)}async function s(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function o(u){try{return this._compileSchemaEnv(u)}catch(f){if(!(f instanceof y5.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),o.call(this,u)}}function a({missingSchema:u,missingRef:f}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${f} cannot be resolved`)}async function c(u){let f=await l.call(this,u);this.refs[u]||await s.call(this,f.$schema),this.refs[u]||this.addSchema(f,u,r)}async function l(u){let f=this._loading[u];if(f)return f;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let o of e)this.addSchema(o,void 0,n,i);return this}let s;if(typeof e=="object"){let{schemaId:o}=this.opts;if(s=e[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return r=(0,id.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$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,e);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(e){let r;for(;typeof(r=m5.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new nd.SchemaEnv({schema:{},schemaId:n});if(r=nd.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=m5.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,id.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,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(Kbe.call(this,n,r),!r)return(0,tS.eachItem)(n,s=>eS.call(this,s)),this;Ybe.call(this,r);let i={...r,type:(0,qm.getJSONTypes)(r.type),schemaType:(0,qm.getJSONTypes)(r.schemaType)};return(0,tS.eachItem)(n,i.type.length===0?s=>eS.call(this,s,i):s=>i.type.forEach(o=>eS.call(this,s,i,o))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let s=i.split("/").slice(1),o=e;for(let a of s)o=o[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=o[a];l&&u&&(o[a]=v5(u))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof e=="object")o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,id.normalizeId)(o||n);let l=id.getSchemaRefs.call(this,e,n);return c=new nd.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):nd.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{nd.compileSchema.call(this,e)}finally{this.opts=r}}};sd.ValidationError=Ibe.default;sd.MissingRefError=y5.default;xr.default=sd;function h5(t,e,r,n="error"){for(let i in t){let s=i;s in e&&this.logger[n](`${r}: option ${i}. ${t[s]}`)}}function m5(t){return t=(0,id.normalizeId)(t),this.schemas[t]||this.refs[t]}function Bbe(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Ube(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function zbe(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function Hbe(){let t={...this.opts};for(let e of Lbe)delete t[e];return t}var Vbe={log(){},warn(){},error(){}};function Wbe(t){if(t===!1)return Vbe;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Gbe=/^[a-z_$][a-z0-9_$:-]*$/i;function Kbe(t,e){let{RULES:r}=this;if((0,tS.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Gbe.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function eS(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:c})=>c===r);if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,qm.getJSONTypes)(e.type),schemaType:(0,qm.getJSONTypes)(e.schemaType)}};e.before?Xbe.call(this,o,a,e.before):o.rules.push(a),s.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function Xbe(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function Ybe(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=v5(e)),t.validateSchema=this.compile(e,!0))}var Jbe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function v5(t){return{anyOf:[t,Jbe]}}});var x5=_(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});var Qbe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};nS.default=Qbe});var iS=_(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.callRef=Fa.getValidate=void 0;var Zbe=Es(),_5=vr(),pn=xe(),gu=jn(),b5=ja(),jm=Ie(),e1e={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let u=b5.resolveRef.call(c,l,i,r);if(u===void 0)throw new Zbe.default(n.opts.uriResolver,i,r);if(u instanceof b5.SchemaEnv)return d(u);return h(u);function f(){if(s===l)return Fm(t,o,s,s.$async);let p=e.scopeValue("root",{ref:l});return Fm(t,(0,pn._)`${p}.validate`,l,l.$async)}function d(p){let m=E5(t,p);Fm(t,m,p,p.$async)}function h(p){let m=e.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,pn.stringify)(p)}:{ref:p}),g=e.name("valid"),y=t.subschema({schema:p,dataTypes:[],schemaPath:pn.nil,topSchemaRef:m,errSchemaPath:r},g);t.mergeEvaluated(y),t.ok(g)}}};function E5(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,pn._)`${r.scopeValue("wrapper",{ref:e})}.validate`}Fa.getValidate=E5;function Fm(t,e,r,n){let{gen:i,it:s}=t,{allErrors:o,schemaEnv:a,opts:c}=s,l=c.passContext?gu.default.this:pn.nil;n?u():f();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,pn._)`await ${(0,_5.callValidateCode)(t,e,l)}`),h(e),o||i.assign(p,!0)},m=>{i.if((0,pn._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),o||i.assign(p,!1)}),t.ok(p)}function f(){t.result((0,_5.callValidateCode)(t,e,l),()=>h(e),()=>d(e))}function d(p){let m=(0,pn._)`${p}.errors`;i.assign(gu.default.vErrors,(0,pn._)`${gu.default.vErrors} === null ? ${m} : ${gu.default.vErrors}.concat(${m})`),i.assign(gu.default.errors,(0,pn._)`${gu.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let g=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=jm.mergeEvaluated.props(i,g.props,s.props));else{let y=i.var("props",(0,pn._)`${p}.evaluated.props`);s.props=jm.mergeEvaluated.props(i,y,s.props,pn.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=jm.mergeEvaluated.items(i,g.items,s.items));else{let y=i.var("items",(0,pn._)`${p}.evaluated.items`);s.items=jm.mergeEvaluated.items(i,y,s.items,pn.Name)}}}Fa.callRef=Fm;Fa.default=e1e});var w5=_(sS=>{"use strict";Object.defineProperty(sS,"__esModule",{value:!0});var t1e=x5(),r1e=iS(),n1e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t1e.default,r1e.default];sS.default=n1e});var S5=_(oS=>{"use strict";Object.defineProperty(oS,"__esModule",{value:!0});var Mm=xe(),bo=Mm.operators,Bm={maximum:{okStr:"<=",ok:bo.LTE,fail:bo.GT},minimum:{okStr:">=",ok:bo.GTE,fail:bo.LT},exclusiveMaximum:{okStr:"<",ok:bo.LT,fail:bo.GTE},exclusiveMinimum:{okStr:">",ok:bo.GT,fail:bo.LTE}},i1e={message:({keyword:t,schemaCode:e})=>(0,Mm.str)`must be ${Bm[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Mm._)`{comparison: ${Bm[t].okStr}, limit: ${e}}`},s1e={keyword:Object.keys(Bm),type:"number",schemaType:"number",$data:!0,error:i1e,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Mm._)`${r} ${Bm[e].fail} ${n} || isNaN(${r})`)}};oS.default=s1e});var A5=_(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});var od=xe(),o1e={message:({schemaCode:t})=>(0,od.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,od._)`{multipleOf: ${t}}`},a1e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:o1e,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,s=i.opts.multipleOfPrecision,o=e.let("res"),a=s?(0,od._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,od._)`${o} !== parseInt(${o})`;t.fail$data((0,od._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};aS.default=a1e});var $5=_(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});function T5(t){let e=t.length,r=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});var Ma=xe(),c1e=Ie(),u1e=$5(),l1e={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Ma.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Ma._)`{limit: ${t}}`},f1e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:l1e,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,s=e==="maxLength"?Ma.operators.GT:Ma.operators.LT,o=i.opts.unicode===!1?(0,Ma._)`${r}.length`:(0,Ma._)`${(0,c1e.useFunc)(t.gen,u1e.default)}(${r})`;t.fail$data((0,Ma._)`${o} ${s} ${n}`)}};uS.default=f1e});var P5=_(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});var d1e=vr(),Um=xe(),p1e={message:({schemaCode:t})=>(0,Um.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Um._)`{pattern: ${t}}`},h1e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:p1e,code(t){let{data:e,$data:r,schema:n,schemaCode:i,it:s}=t,o=s.opts.unicodeRegExp?"u":"",a=r?(0,Um._)`(new RegExp(${i}, ${o}))`:(0,d1e.usePattern)(t,n);t.fail$data((0,Um._)`!${a}.test(${e})`)}};lS.default=h1e});var C5=_(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});var ad=xe(),m1e={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,ad.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,ad._)`{limit: ${t}}`},y1e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:m1e,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?ad.operators.GT:ad.operators.LT;t.fail$data((0,ad._)`Object.keys(${r}).length ${i} ${n}`)}};fS.default=y1e});var O5=_(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});var cd=vr(),ud=xe(),g1e=Ie(),v1e={message:({params:{missingProperty:t}})=>(0,ud.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,ud._)`{missingProperty: ${t}}`},x1e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:v1e,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:s,it:o}=t,{opts:a}=o;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(o.allErrors?l():u(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:p}=t.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let g=o.schemaEnv.baseId+o.errSchemaPath,y=`required property "${m}" is not defined at "${g}" (strictRequired)`;(0,g1e.checkStrictMode)(o,y,o.opts.strictRequired)}}function l(){if(c||s)t.block$data(ud.nil,f);else for(let h of r)(0,cd.checkReportMissingProp)(t,h)}function u(){let h=e.let("missing");if(c||s){let p=e.let("valid",!0);t.block$data(p,()=>d(h,p)),t.ok(p)}else e.if((0,cd.checkMissingProp)(t,r,h)),(0,cd.reportMissingProp)(t,h),e.else()}function f(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,cd.noPropertyInData)(e,i,h,a.ownProperties),()=>t.error())})}function d(h,p){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(p,(0,cd.propertyInData)(e,i,h,a.ownProperties)),e.if((0,ud.not)(p),()=>{t.error(),e.break()})},ud.nil)}}};dS.default=x1e});var I5=_(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});var ld=xe(),_1e={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,ld.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,ld._)`{limit: ${t}}`},b1e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:_1e,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?ld.operators.GT:ld.operators.LT;t.fail$data((0,ld._)`${r}.length ${i} ${n}`)}};pS.default=b1e});var zm=_(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});var N5=On();N5.code='require("ajv/dist/runtime/equal").default';hS.default=N5});var k5=_(yS=>{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});var mS=Jf(),_r=xe(),E1e=Ie(),w1e=zm(),S1e={message:({params:{i:t,j:e}})=>(0,_r.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,_r._)`{i: ${t}, j: ${e}}`},A1e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:S1e,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),l=s.items?(0,mS.getSchemaTypes)(s.items):[];t.block$data(c,u,(0,_r._)`${o} === false`),t.ok(c);function u(){let p=e.let("i",(0,_r._)`${r}.length`),m=e.let("j");t.setParams({i:p,j:m}),e.assign(c,!0),e.if((0,_r._)`${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 g=e.name("item"),y=(0,mS.checkDataTypes)(l,g,a.opts.strictNumbers,mS.DataType.Wrong),b=e.const("indices",(0,_r._)`{}`);e.for((0,_r._)`;${p}--;`,()=>{e.let(g,(0,_r._)`${r}[${p}]`),e.if(y,(0,_r._)`continue`),l.length>1&&e.if((0,_r._)`typeof ${g} == "string"`,(0,_r._)`${g} += "_"`),e.if((0,_r._)`typeof ${b}[${g}] == "number"`,()=>{e.assign(m,(0,_r._)`${b}[${g}]`),t.error(),e.assign(c,!1).break()}).code((0,_r._)`${b}[${g}] = ${p}`)})}function h(p,m){let g=(0,E1e.useFunc)(e,w1e.default),y=e.name("outer");e.label(y).for((0,_r._)`;${p}--;`,()=>e.for((0,_r._)`${m} = ${p}; ${m}--;`,()=>e.if((0,_r._)`${g}(${r}[${p}], ${r}[${m}])`,()=>{t.error(),e.assign(c,!1).break(y)})))}}};yS.default=A1e});var D5=_(vS=>{"use strict";Object.defineProperty(vS,"__esModule",{value:!0});var gS=xe(),T1e=Ie(),$1e=zm(),R1e={message:"must be equal to constant",params:({schemaCode:t})=>(0,gS._)`{allowedValue: ${t}}`},P1e={keyword:"const",$data:!0,error:R1e,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:s}=t;n||s&&typeof s=="object"?t.fail$data((0,gS._)`!${(0,T1e.useFunc)(e,$1e.default)}(${r}, ${i})`):t.fail((0,gS._)`${s} !== ${r}`)}};vS.default=P1e});var L5=_(xS=>{"use strict";Object.defineProperty(xS,"__esModule",{value:!0});var fd=xe(),C1e=Ie(),O1e=zm(),I1e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,fd._)`{allowedValues: ${t}}`},N1e={keyword:"enum",schemaType:"array",$data:!0,error:I1e,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:o}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,c,l=()=>c??(c=(0,C1e.useFunc)(e,O1e.default)),u;if(a||n)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=e.const("vSchema",s);u=(0,fd.or)(...i.map((p,m)=>d(h,m)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",s,h=>e.if((0,fd._)`${l()}(${r}, ${h})`,()=>e.assign(u,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,fd._)`${l()}(${r}, ${h}[${p}])`:(0,fd._)`${r} === ${m}`}}};xS.default=N1e});var q5=_(_S=>{"use strict";Object.defineProperty(_S,"__esModule",{value:!0});var k1e=S5(),D1e=A5(),L1e=R5(),q1e=P5(),j1e=C5(),F1e=O5(),M1e=I5(),B1e=k5(),U1e=D5(),z1e=L5(),H1e=[k1e.default,D1e.default,L1e.default,q1e.default,j1e.default,F1e.default,M1e.default,B1e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},U1e.default,z1e.default];_S.default=H1e});var ES=_(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.validateAdditionalItems=void 0;var Ba=xe(),bS=Ie(),V1e={message:({params:{len:t}})=>(0,Ba.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Ba._)`{limit: ${t}}`},W1e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:V1e,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,bS.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}j5(t,n)}};function j5(t,e){let{gen:r,schema:n,data:i,keyword:s,it:o}=t;o.items=!0;let a=r.const("len",(0,Ba._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Ba._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,bS.alwaysValidSchema)(o,n)){let l=r.var("valid",(0,Ba._)`${a} <= ${e.length}`);r.if((0,Ba.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,u=>{t.subschema({keyword:s,dataProp:u,dataPropType:bS.Type.Num},l),o.allErrors||r.if((0,Ba.not)(l),()=>r.break())})}}dd.validateAdditionalItems=j5;dd.default=W1e});var wS=_(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.validateTuple=void 0;var F5=xe(),Hm=Ie(),G1e=vr(),K1e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return M5(t,"additionalItems",e);r.items=!0,!(0,Hm.alwaysValidSchema)(r,e)&&t.ok((0,G1e.validateArray)(t))}};function M5(t,e,r=t.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=t;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Hm.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,F5._)`${s}.length`);r.forEach((f,d)=>{(0,Hm.alwaysValidSchema)(a,f)||(n.if((0,F5._)`${l} > ${d}`,()=>t.subschema({keyword:o,schemaProp:d,dataProp:d},c)),t.ok(c))});function u(f){let{opts:d,errSchemaPath:h}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(d.strictTuples&&!m){let g=`"${o}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,Hm.checkStrictMode)(a,g,d.strictTuples)}}}pd.validateTuple=M5;pd.default=K1e});var B5=_(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});var X1e=wS(),Y1e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,X1e.validateTuple)(t,"items")};SS.default=Y1e});var z5=_(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});var U5=xe(),J1e=Ie(),Q1e=vr(),Z1e=ES(),eEe={message:({params:{len:t}})=>(0,U5.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,U5._)`{limit: ${t}}`},tEe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:eEe,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,J1e.alwaysValidSchema)(n,e)&&(i?(0,Z1e.validateAdditionalItems)(t,i):t.ok((0,Q1e.validateArray)(t)))}};AS.default=tEe});var H5=_(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});var Mn=xe(),Vm=Ie(),rEe={message:({params:{min:t,max:e}})=>e===void 0?(0,Mn.str)`must contain at least ${t} valid item(s)`:(0,Mn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Mn._)`{minContains: ${t}}`:(0,Mn._)`{minContains: ${t}, maxContains: ${e}}`},nEe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:rEe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t,o,a,{minContains:c,maxContains:l}=n;s.opts.next?(o=c===void 0?1:c,a=l):o=1;let u=e.const("len",(0,Mn._)`${i}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0){(0,Vm.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Vm.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Vm.alwaysValidSchema)(s,r)){let m=(0,Mn._)`${u} >= ${o}`;a!==void 0&&(m=(0,Mn._)`${m} && ${u} <= ${a}`),t.pass(m);return}s.items=!0;let f=e.name("valid");a===void 0&&o===1?h(f,()=>e.if(f,()=>e.break())):o===0?(e.let(f,!0),a!==void 0&&e.if((0,Mn._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let m=e.name("_valid"),g=e.let("count",0);h(m,()=>e.if(m,()=>p(g)))}function h(m,g){e.forRange("i",0,u,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:Vm.Type.Num,compositeRule:!0},m),g()})}function p(m){e.code((0,Mn._)`${m}++`),a===void 0?e.if((0,Mn._)`${m} >= ${o}`,()=>e.assign(f,!0).break()):(e.if((0,Mn._)`${m} > ${a}`,()=>e.assign(f,!1).break()),o===1?e.assign(f,!0):e.if((0,Mn._)`${m} >= ${o}`,()=>e.assign(f,!0)))}}};TS.default=nEe});var G5=_(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.validateSchemaDeps=Mi.validatePropertyDeps=Mi.error=void 0;var $S=xe(),iEe=Ie(),hd=vr();Mi.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,$S.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,$S._)`{property: ${t}, - missingProperty: ${n}, - depsCount: ${e}, - deps: ${r}}`};var sEe={keyword:"dependencies",type:"object",schemaType:"object",error:Mi.error,code(t){let[e,r]=oEe(t);V5(t,e),W5(t,r)}};function oEe({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function V5(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let o in e){let a=e[o];if(a.length===0)continue;let c=(0,hd.propertyInData)(r,n,o,i.opts.ownProperties);t.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,hd.checkReportMissingProp)(t,l)}):(r.if((0,$S._)`${c} && (${(0,hd.checkMissingProp)(t,a,s)})`),(0,hd.reportMissingProp)(t,s),r.else())}}Mi.validatePropertyDeps=V5;function W5(t,e=t.schema){let{gen:r,data:n,keyword:i,it:s}=t,o=r.name("valid");for(let a in e)(0,iEe.alwaysValidSchema)(s,e[a])||(r.if((0,hd.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},o);t.mergeValidEvaluated(c,o)},()=>r.var(o,!0)),t.ok(o))}Mi.validateSchemaDeps=W5;Mi.default=sEe});var X5=_(RS=>{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});var K5=xe(),aEe=Ie(),cEe={message:"property name must be valid",params:({params:t})=>(0,K5._)`{propertyName: ${t.propertyName}}`},uEe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:cEe,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,aEe.alwaysValidSchema)(i,r))return;let s=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),e.if((0,K5.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};RS.default=uEe});var CS=_(PS=>{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});var Wm=vr(),di=xe(),lEe=jn(),Gm=Ie(),fEe={message:"must NOT have additional properties",params:({params:t})=>(0,di._)`{additionalProperty: ${t.additionalProperty}}`},dEe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:fEe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,Gm.alwaysValidSchema)(o,r))return;let l=(0,Wm.allSchemaProperties)(n.properties),u=(0,Wm.allSchemaProperties)(n.patternProperties);f(),t.ok((0,di._)`${s} === ${lEe.default.errors}`);function f(){e.forIn("key",i,g=>{!l.length&&!u.length?p(g):e.if(d(g),()=>p(g))})}function d(g){let y;if(l.length>8){let b=(0,Gm.schemaRefOrVal)(o,n.properties,"properties");y=(0,Wm.isOwnProperty)(e,b,g)}else l.length?y=(0,di.or)(...l.map(b=>(0,di._)`${g} === ${b}`)):y=di.nil;return u.length&&(y=(0,di.or)(y,...u.map(b=>(0,di._)`${(0,Wm.usePattern)(t,b)}.test(${g})`))),(0,di.not)(y)}function h(g){e.code((0,di._)`delete ${i}[${g}]`)}function p(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){t.setParams({additionalProperty:g}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Gm.alwaysValidSchema)(o,r)){let y=e.name("valid");c.removeAdditional==="failing"?(m(g,y,!1),e.if((0,di.not)(y),()=>{t.reset(),h(g)})):(m(g,y),a||e.if((0,di.not)(y),()=>e.break()))}}function m(g,y,b){let x={keyword:"additionalProperties",dataProp:g,dataPropType:Gm.Type.Str};b===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(x,y)}}};PS.default=dEe});var Q5=_(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});var pEe=hu(),Y5=vr(),OS=Ie(),J5=CS(),hEe={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&J5.default.code(new pEe.KeywordCxt(s,J5.default,"additionalProperties"));let o=(0,Y5.allSchemaProperties)(r);for(let f of o)s.definedProperties.add(f);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=OS.mergeEvaluated.props(e,(0,OS.toHash)(o),s.props));let a=o.filter(f=>!(0,OS.alwaysValidSchema)(s,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?u(f):(e.if((0,Y5.propertyInData)(e,i,f,s.opts.ownProperties)),u(f),s.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};IS.default=hEe});var r6=_(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});var Z5=vr(),Km=xe(),e6=Ie(),t6=Ie(),mEe={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:s}=t,{opts:o}=s,a=(0,Z5.allSchemaProperties)(r),c=a.filter(m=>(0,e6.alwaysValidSchema)(s,r[m]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=o.strictSchema&&!o.allowMatchingProperties&&i.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Km.Name)&&(s.props=(0,t6.evaluatedPropsToName)(e,s.props));let{props:f}=s;d();function d(){for(let m of a)l&&h(m),s.allErrors?p(m):(e.var(u,!0),p(m),e.if(u))}function h(m){for(let g in l)new RegExp(m).test(g)&&(0,e6.checkStrictMode)(s,`property ${g} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){e.forIn("key",n,g=>{e.if((0,Km._)`${(0,Z5.usePattern)(t,m)}.test(${g})`,()=>{let y=c.includes(m);y||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:g,dataPropType:t6.Type.Str},u),s.opts.unevaluated&&f!==!0?e.assign((0,Km._)`${f}[${g}]`,!0):!y&&!s.allErrors&&e.if((0,Km.not)(u),()=>e.break())})})}}};NS.default=mEe});var n6=_(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});var yEe=Ie(),gEe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,yEe.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};kS.default=gEe});var i6=_(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});var vEe=vr(),xEe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:vEe.validateUnion,error:{message:"must match a schema in anyOf"}};DS.default=xEe});var s6=_(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});var Xm=xe(),_Ee=Ie(),bEe={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,Xm._)`{passingSchemas: ${t.passing}}`},EEe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:bEe,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,o=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(o,()=>t.reset(),()=>t.error(!0));function l(){s.forEach((u,f)=>{let d;(0,_Ee.alwaysValidSchema)(i,u)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,Xm._)`${c} && ${o}`).assign(o,!1).assign(a,(0,Xm._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(a,f),d&&t.mergeEvaluated(d,Xm.Name)})})}}};LS.default=EEe});var o6=_(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});var wEe=Ie(),SEe={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((s,o)=>{if((0,wEe.alwaysValidSchema)(n,s))return;let a=t.subschema({keyword:"allOf",schemaProp:o},i);t.ok(i),t.mergeEvaluated(a)})}};qS.default=SEe});var u6=_(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});var Ym=xe(),c6=Ie(),AEe={message:({params:t})=>(0,Ym.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Ym._)`{failingKeyword: ${t.ifClause}}`},TEe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:AEe,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,c6.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=a6(n,"then"),s=a6(n,"else");if(!i&&!s)return;let o=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&s){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,l("then",u),l("else",u))}else i?e.if(a,l("then")):e.if((0,Ym.not)(a),l("else"));t.pass(o,()=>t.error(!0));function c(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function l(u,f){return()=>{let d=t.subschema({keyword:u},a);e.assign(o,a),t.mergeValidEvaluated(d,o),f?e.assign(f,(0,Ym._)`${u}`):t.setParams({ifClause:u})}}}};function a6(t,e){let r=t.schema[e];return r!==void 0&&!(0,c6.alwaysValidSchema)(t,r)}jS.default=TEe});var l6=_(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});var $Ee=Ie(),REe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,$Ee.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};FS.default=REe});var f6=_(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});var PEe=ES(),CEe=B5(),OEe=wS(),IEe=z5(),NEe=H5(),kEe=G5(),DEe=X5(),LEe=CS(),qEe=Q5(),jEe=r6(),FEe=n6(),MEe=i6(),BEe=s6(),UEe=o6(),zEe=u6(),HEe=l6();function VEe(t=!1){let e=[FEe.default,MEe.default,BEe.default,UEe.default,zEe.default,HEe.default,DEe.default,LEe.default,kEe.default,qEe.default,jEe.default];return t?e.push(CEe.default,IEe.default):e.push(PEe.default,OEe.default),e.push(NEe.default),e}MS.default=VEe});var d6=_(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});var Ut=xe(),WEe={message:({schemaCode:t})=>(0,Ut.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Ut._)`{format: ${t}}`},GEe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:WEe,code(t,e){let{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:u,self:f}=a;if(!c.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=r.const("fDef",(0,Ut._)`${p}[${o}]`),g=r.let("fType"),y=r.let("format");r.if((0,Ut._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(g,(0,Ut._)`${m}.type || "string"`).assign(y,(0,Ut._)`${m}.validate`),()=>r.assign(g,(0,Ut._)`"string"`).assign(y,m)),t.fail$data((0,Ut.or)(b(),x()));function b(){return c.strictSchema===!1?Ut.nil:(0,Ut._)`${o} && !${y}`}function x(){let v=u.$async?(0,Ut._)`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,Ut._)`${y}(${n})`,E=(0,Ut._)`(typeof ${y} == "function" ? ${v} : ${y}.test(${n}))`;return(0,Ut._)`${y} && ${y} !== true && ${g} === ${e} && !${E}`}}function h(){let p=f.formats[s];if(!p){b();return}if(p===!0)return;let[m,g,y]=x(p);m===e&&t.pass(v());function b(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function x(E){let S=E instanceof RegExp?(0,Ut.regexpCode)(E):c.code.formats?(0,Ut._)`${c.code.formats}${(0,Ut.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:E,code:S});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,Ut._)`${w}.validate`]:["string",E,w]}function v(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ut._)`await ${y}(${n})`}return typeof g=="function"?(0,Ut._)`${y}(${n})`:(0,Ut._)`${y}.test(${n})`}}}};BS.default=GEe});var p6=_(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});var KEe=d6(),XEe=[KEe.default];US.default=XEe});var h6=_(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.contentVocabulary=vu.metadataVocabulary=void 0;vu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];vu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var y6=_(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});var YEe=w5(),JEe=q5(),QEe=f6(),ZEe=p6(),m6=h6(),ewe=[YEe.default,JEe.default,(0,QEe.default)(),ZEe.default,m6.metadataVocabulary,m6.contentVocabulary];zS.default=ewe});var HS=_(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.DiscrError=void 0;var g6;(function(t){t.Tag="tag",t.Mapping="mapping"})(g6||(Jm.DiscrError=g6={}))});var x6=_(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});var xu=xe(),VS=HS(),v6=ja(),twe=Es(),rwe=Ie(),nwe={message:({params:{discrError:t,tagName:e}})=>t===VS.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,xu._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},iwe={keyword:"discriminator",type:"object",schemaType:"object",error:nwe,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:s}=t,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,xu._)`${r}${(0,xu.getProperty)(a)}`);e.if((0,xu._)`typeof ${l} == "string"`,()=>u(),()=>t.error(!1,{discrError:VS.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function u(){let h=d();e.if(!1);for(let p in h)e.elseIf((0,xu._)`${l} === ${p}`),e.assign(c,f(h[p]));e.else(),t.error(!1,{discrError:VS.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(h){let p=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},p);return t.mergeEvaluated(m,xu.Name),p}function d(){var h;let p={},m=y(i),g=!0;for(let v=0;v{swe.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 E6=_((Ct,GS)=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.MissingRefError=Ct.ValidationError=Ct.CodeGen=Ct.Name=Ct.nil=Ct.stringify=Ct.str=Ct._=Ct.KeywordCxt=Ct.Ajv=void 0;var owe=rS(),awe=y6(),cwe=x6(),b6=_6(),uwe=["/properties"],Qm="http://json-schema.org/draft-07/schema",_u=class extends owe.default{_addVocabularies(){super._addVocabularies(),awe.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(cwe.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(b6,uwe):b6;this.addMetaSchema(e,Qm,!1),this.refs["http://json-schema.org/schema"]=Qm}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Qm)?Qm:void 0)}};Ct.Ajv=_u;GS.exports=Ct=_u;GS.exports.Ajv=_u;Object.defineProperty(Ct,"__esModule",{value:!0});Ct.default=_u;var lwe=hu();Object.defineProperty(Ct,"KeywordCxt",{enumerable:!0,get:function(){return lwe.KeywordCxt}});var bu=xe();Object.defineProperty(Ct,"_",{enumerable:!0,get:function(){return bu._}});Object.defineProperty(Ct,"str",{enumerable:!0,get:function(){return bu.str}});Object.defineProperty(Ct,"stringify",{enumerable:!0,get:function(){return bu.stringify}});Object.defineProperty(Ct,"nil",{enumerable:!0,get:function(){return bu.nil}});Object.defineProperty(Ct,"Name",{enumerable:!0,get:function(){return bu.Name}});Object.defineProperty(Ct,"CodeGen",{enumerable:!0,get:function(){return bu.CodeGen}});var fwe=td();Object.defineProperty(Ct,"ValidationError",{enumerable:!0,get:function(){return fwe.default}});var dwe=Es();Object.defineProperty(Ct,"MissingRefError",{enumerable:!0,get:function(){return dwe.default}})});var Ss=_(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.checkMetadata=void 0;var pwe=Ie(),hwe={keyword:"metadata",schemaType:"object",code(t){w6(t);let{gen:e,schema:r,it:n}=t;if((0,pwe.alwaysValidSchema)(n,r))return;let i=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},i),t.ok(i)}};function w6({it:t,keyword:e},r){if(t.jtdMetadata!==r)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}md.checkMetadata=w6;md.default=hwe});var Zm=_(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.hasRef=void 0;var S6=ja(),yd=xe(),mwe=Es(),A6=jn(),T6=iS(),ywe=Ss(),gwe={keyword:"ref",schemaType:"string",code(t){(0,ywe.checkMetadata)(t);let{gen:e,data:r,schema:n,parentSchema:i,it:s}=t,{schemaEnv:{root:o}}=s,a=e.name("valid");i.nullable?(e.var(a,(0,yd._)`${r} === null`),e.if((0,yd.not)(a),c)):(e.var(a,!1),c()),t.ok(a);function c(){var f;let d=(f=o.schema.definitions)===null||f===void 0?void 0:f[n];if(!d)throw new mwe.default(s.opts.uriResolver,"",n,`No definition ${n}`);KS(d)||!s.opts.inlineRefs?l(d):u(d)}function l(f){let d=S6.compileSchema.call(s.self,new S6.SchemaEnv({schema:f,root:o,schemaPath:`/definitions/${n}`})),h=(0,T6.getValidate)(t,d),p=e.const("_errs",A6.default.errors);(0,T6.callRef)(t,h,d,d.$async),e.assign(a,(0,yd._)`${p} === ${A6.default.errors}`)}function u(f){let d=e.scopeValue("schema",s.opts.code.source===!0?{ref:f,code:(0,yd.stringify)(f)}:{ref:f});t.subschema({schema:f,dataTypes:[],schemaPath:yd.nil,topSchemaRef:d,errSchemaPath:`/definitions/${n}`},a)}}};function KS(t){for(let e in t){let r;if(e==="ref"||typeof(r=t[e])=="object"&&KS(r))return!0}return!1}gd.hasRef=KS;gd.default=gwe});var YS=_(XS=>{"use strict";Object.defineProperty(XS,"__esModule",{value:!0});var vwe=/t|\s/i,xwe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_we=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,bwe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function R6(t,e){let r=t.split(vwe);return r.length===2&&$6(r[0])&&Ewe(r[1])||e&&r.length===1&&$6(r[0])}XS.default=R6;function $6(t){let e=xwe.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&(i<=bwe[n]||n===2&&i===29&&(r%100===0?r%400===0:r%4===0))}function Ewe(t){let e=_we.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3],s=+(e[4]||0),o=+(e[5]||0);return r<=23&&n<=59&&i<=59||r-s===23&&n-o===59&&i===60}R6.code='require("ajv/dist/runtime/timestamp").default'});var Eu=_(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.typeErrorParams=Eo.typeErrorMessage=Eo.typeError=void 0;var wwe=xe();function Swe(t){return{message:e=>P6(e,t),params:e=>C6(e,t)}}Eo.typeError=Swe;function P6({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}Eo.typeErrorMessage=P6;function C6({parentSchema:t},e){return(0,wwe._)`{type: ${e}, nullable: ${!!t?.nullable}}`}Eo.typeErrorParams=C6});var JS=_(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.intRange=void 0;var Tn=xe(),Awe=YS(),Twe=Ie(),$we=Ss(),O6=Eu();wu.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 Rwe={message:t=>(0,O6.typeErrorMessage)(t,t.schema),params:t=>(0,O6.typeErrorParams)(t,t.schema)};function Pwe(t){let{gen:e,data:r,it:n}=t,{timestamp:i,allowDate:s}=n.opts;if(i==="date")return(0,Tn._)`${r} instanceof Date `;let o=(0,Twe.useFunc)(e,Awe.default),a=s?(0,Tn._)`, true`:Tn.nil,c=(0,Tn._)`typeof ${r} == "string" && ${o}(${r}${a})`;return i==="string"?c:(0,Tn.or)((0,Tn._)`${r} instanceof Date`,c)}var Cwe={keyword:"type",schemaType:"string",error:Rwe,code(t){(0,$we.checkMetadata)(t);let{data:e,schema:r,parentSchema:n,it:i}=t,s;switch(r){case"boolean":case"string":s=(0,Tn._)`typeof ${e} == ${r}`;break;case"timestamp":{s=Pwe(t);break}case"float32":case"float64":s=(0,Tn._)`typeof ${e} == "number"`;break;default:{let o=r;if(s=(0,Tn._)`typeof ${e} == "number" && isFinite(${e}) && !(${e} % 1)`,!i.opts.int32range&&(o==="int32"||o==="uint32"))o==="uint32"&&(s=(0,Tn._)`${s} && ${e} >= 0`);else{let[a,c]=wu.intRange[o];s=(0,Tn._)`${s} && ${e} >= ${a} && ${e} <= ${c}`}}}t.pass(n.nullable?(0,Tn.or)((0,Tn._)`${e} === null`,s):s)}};wu.default=Cwe});var Au=_(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.checkNullableObject=Su.checkNullable=void 0;var ey=xe();function I6({gen:t,data:e,parentSchema:r},n=ey.nil){let i=t.name("valid");return r.nullable?(t.let(i,(0,ey._)`${e} === null`),n=(0,ey.not)(i)):t.let(i,!1),[i,n]}Su.checkNullable=I6;function Owe(t,e){let[r,n]=I6(t,e);return[r,(0,ey._)`${n} && typeof ${t.data} == "object" && !Array.isArray(${t.data})`]}Su.checkNullableObject=Owe});var N6=_(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});var wo=xe(),Iwe=Ss(),Nwe=Au(),kwe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,wo._)`{allowedValues: ${t}}`},Dwe={keyword:"enum",schemaType:"array",error:kwe,code(t){(0,Iwe.checkMetadata)(t);let{gen:e,data:r,schema:n,schemaValue:i,parentSchema:s,it:o}=t;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 a,c=(0,wo._)`typeof ${r} == "string"`;if(n.length>=o.opts.loopEnum){let u;[a,u]=(0,Nwe.checkNullable)(t,c),e.if(u,l)}else{if(!Array.isArray(n))throw new Error("ajv implementation error");a=(0,wo.and)(c,(0,wo.or)(...n.map(u=>(0,wo._)`${r} === ${u}`))),s.nullable&&(a=(0,wo.or)((0,wo._)`${r} === null`,a))}t.pass(a);function l(){e.forOf("v",i,u=>e.if((0,wo._)`${a} = ${r} === ${u}`,()=>e.break()))}}};QS.default=Dwe});var D6=_(ZS=>{"use strict";Object.defineProperty(ZS,"__esModule",{value:!0});var Lwe=Ie(),qwe=vr(),k6=xe(),jwe=Ss(),Fwe=Au(),Mwe=Eu(),Bwe={keyword:"elements",schemaType:"object",error:(0,Mwe.typeError)("array"),code(t){(0,jwe.checkMetadata)(t);let{gen:e,data:r,schema:n,it:i}=t;if((0,Lwe.alwaysValidSchema)(i,n))return;let[s]=(0,Fwe.checkNullable)(t);e.if((0,k6.not)(s),()=>e.if((0,k6._)`Array.isArray(${r})`,()=>e.assign(s,(0,qwe.validateArray)(t)),()=>t.error())),t.ok(s)}};ZS.default=Bwe});var tA=_(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.validateProperties=So.error=void 0;var eA=vr(),L6=Ie(),As=xe(),Uwe=Ss(),zwe=Au(),q6=Eu(),Tu;(function(t){t.Additional="additional",t.Missing="missing"})(Tu||(Tu={}));So.error={message:t=>{let{params:e}=t;return e.propError?e.propError===Tu.Additional?"must NOT have additional properties":`must have property '${e.missingProperty}'`:(0,q6.typeErrorMessage)(t,"object")},params:t=>{let{params:e}=t;return e.propError?e.propError===Tu.Additional?(0,As._)`{error: ${e.propError}, additionalProperty: ${e.additionalProperty}}`:(0,As._)`{error: ${e.propError}, missingProperty: ${e.missingProperty}}`:(0,q6.typeErrorParams)(t,"object")}};var Hwe={keyword:"properties",schemaType:"object",error:So.error,code:j6};function j6(t){(0,Uwe.checkMetadata)(t);let{gen:e,data:r,parentSchema:n,it:i}=t,{additionalProperties:s,nullable:o}=n;if(i.jtdDiscriminator&&o)throw new Error("JTD: nullable inside discriminator mapping");if(h())throw new Error("JTD: properties and optionalProperties have common members");let[a,c]=p("properties"),[l,u]=p("optionalProperties");if(c.length===0&&u.length===0&&s)return;let[f,d]=i.jtdDiscriminator===void 0?(0,zwe.checkNullableObject)(t,r):[e.let("valid",!1),!0];e.if(d,()=>e.assign(f,!0).block(()=>{m(c,"properties",!0),m(u,"optionalProperties"),s||y()})),t.pass(f);function h(){let x=n.properties,v=n.optionalProperties;if(!(x&&v))return!1;for(let E in x)if(Object.prototype.hasOwnProperty.call(v,E))return!0;return!1}function p(x){let v=n[x],E=v?(0,eA.allSchemaProperties)(v):[];if(i.jtdDiscriminator&&E.some(w=>w===i.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${x}`);let S=E.filter(w=>!(0,L6.alwaysValidSchema)(i,v[w]));return[E,S]}function m(x,v,E){let S=e.var("valid");for(let A of x)e.if((0,eA.propertyInData)(e,r,A,i.opts.ownProperties),()=>g(A,v,S),()=>w(A)),t.ok(S);function w(A){E?(e.assign(S,!1),t.error(!1,{propError:Tu.Missing,missingProperty:A},{schemaPath:A})):e.assign(S,!0)}}function g(x,v,E){t.subschema({keyword:v,schemaProp:x,dataProp:x},E)}function y(){e.forIn("key",r,x=>{let v=b(x,a,"properties",i.jtdDiscriminator),E=b(x,l,"optionalProperties"),S=v===!0?E:E===!0?v:(0,As.and)(v,E);e.if(S,()=>{i.opts.removeAdditional?e.code((0,As._)`delete ${r}[${x}]`):(t.error(!1,{propError:Tu.Additional,additionalProperty:x},{instancePath:x,parentSchema:!0}),i.opts.allErrors||e.break())})})}function b(x,v,E,S){let w;if(v.length>8){let A=(0,L6.schemaRefOrVal)(i,n[E],E);w=(0,As.not)((0,eA.isOwnProperty)(e,A,x)),S!==void 0&&(w=(0,As.and)(w,(0,As._)`${x} !== ${S}`))}else if(v.length||S!==void 0){let A=S===void 0?v:[S].concat(v);w=(0,As.and)(...A.map(T=>(0,As._)`${x} !== ${T}`))}else w=!0;return w}}So.validateProperties=j6;So.default=Hwe});var M6=_(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});var F6=tA(),Vwe={keyword:"optionalProperties",schemaType:"object",error:F6.error,code(t){t.parentSchema.properties||(0,F6.validateProperties)(t)}};rA.default=Vwe});var U6=_(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});var Ua=xe(),Wwe=Ss(),Gwe=Au(),B6=Eu(),ty=HS(),Kwe={message:t=>{let{schema:e,params:r}=t;return r.discrError?r.discrError===ty.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in mapping`:(0,B6.typeErrorMessage)(t,"object")},params:t=>{let{schema:e,params:r}=t;return r.discrError?(0,Ua._)`{error: ${r.discrError}, tag: ${e}, tagValue: ${r.tag}}`:(0,B6.typeErrorParams)(t,"object")}},Xwe={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:Kwe,code(t){(0,Wwe.checkMetadata)(t);let{gen:e,data:r,schema:n,parentSchema:i}=t,[s,o]=(0,Gwe.checkNullableObject)(t,r);e.if(o),a(),e.elseIf((0,Ua.not)(s)),t.error(),e.endIf(),t.ok(s);function a(){let u=e.const("tag",(0,Ua._)`${r}${(0,Ua.getProperty)(n)}`);e.if((0,Ua._)`${u} === undefined`),t.error(!1,{discrError:ty.DiscrError.Tag,tag:u}),e.elseIf((0,Ua._)`typeof ${u} == "string"`),c(u),e.else(),t.error(!1,{discrError:ty.DiscrError.Tag,tag:u},{instancePath:n}),e.endIf()}function c(u){e.if(!1);for(let f in i.mapping)e.elseIf((0,Ua._)`${u} === ${f}`),e.assign(s,l(f));e.else(),t.error(!1,{discrError:ty.DiscrError.Mapping,tag:u},{instancePath:n,schemaPath:"mapping",parentSchema:!0}),e.endIf()}function l(u){let f=e.name("valid");return t.subschema({keyword:"mapping",schemaProp:u,jtdDiscriminator:n},f),f}}};nA.default=Xwe});var H6=_(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});var z6=Ie(),ry=xe(),Ywe=Ss(),Jwe=Au(),Qwe=Eu(),Zwe={keyword:"values",schemaType:"object",error:(0,Qwe.typeError)("object"),code(t){(0,Ywe.checkMetadata)(t);let{gen:e,data:r,schema:n,it:i}=t,[s,o]=(0,Jwe.checkNullableObject)(t,r);(0,z6.alwaysValidSchema)(i,n)?e.if((0,ry.not)((0,ry.or)(o,s)),()=>t.error()):(e.if(o),e.assign(s,a()),e.elseIf((0,ry.not)(s)),t.error(),e.endIf()),t.ok(s);function a(){let c=e.name("valid");if(i.allErrors){let u=e.let("valid",!0);return l(()=>e.assign(u,!1)),u}return e.var(c,!0),l(()=>e.break()),c;function l(u){e.forIn("key",r,f=>{t.subschema({keyword:"values",dataProp:f,dataPropType:z6.Type.Str},c),e.if((0,ry.not)(c),u)})}}}};iA.default=Zwe});var V6=_(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});var eSe=vr(),tSe={keyword:"union",schemaType:"array",trackErrors:!0,code:eSe.validateUnion,error:{message:"must match a schema in union"}};sA.default=tSe});var W6=_(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});var rSe=Zm(),nSe=JS(),iSe=N6(),sSe=D6(),oSe=tA(),aSe=M6(),cSe=U6(),uSe=H6(),lSe=V6(),fSe=Ss(),dSe=["definitions",rSe.default,nSe.default,iSe.default,sSe.default,oSe.default,aSe.default,cSe.default,uSe.default,lSe.default,fSe.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];oA.default=dSe});var Y6=_(aA=>{"use strict";Object.defineProperty(aA,"__esModule",{value:!0});var Ts=t=>{let e={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return t&&(e.definitions={values:{ref:"schema"}}),e},pSe=t=>({optionalProperties:Ts(t)}),hSe=t=>({properties:{ref:{type:"string"}},optionalProperties:Ts(t)}),mSe=t=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:Ts(t)}),ySe=t=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:Ts(t)}),gSe=t=>({properties:{elements:{ref:"schema"}},optionalProperties:Ts(t)}),K6=t=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...Ts(t)}}),X6=t=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...Ts(t)}}),vSe=t=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[K6(!1),X6(!1)]}}}},optionalProperties:Ts(t)}),xSe=t=>({properties:{values:{ref:"schema"}},optionalProperties:Ts(t)}),G6=t=>({metadata:{union:[pSe,hSe,mSe,ySe,gSe,K6,X6,vSe,xSe].map(e=>e(t))}}),_Se={definitions:{schema:G6(!1)},...G6(!0)};aA.default=_Se});var cA=_(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.jtdForms=void 0;ny.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var Q6=_(lA=>{"use strict";Object.defineProperty(lA,"__esModule",{value:!0});var uA=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,bSe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function J6(t){return uA.lastIndex=0,'"'+(uA.test(t)?t.replace(uA,e=>{let r=bSe[e];return typeof r=="string"?r:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):t)+'"'}lA.default=J6;J6.code='require("ajv/dist/runtime/quote").default'});var iM=_(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0});var ESe=cA(),eM=ja(),We=xe(),wSe=Es(),wt=jn(),SSe=vr(),ASe=Zm(),TSe=Ie(),$Se=Q6(),RSe={elements:CSe,values:OSe,discriminator:ISe,properties:Z6,optionalProperties:Z6,enum:vd,type:NSe,ref:DSe};function tM(t,e){let r=eM.getCompilingSchema.call(this,t);if(r)return r;let{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new We.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a=o.scopeName("serialize"),c={self:this,gen:o,schema:t.schema,schemaEnv:t,definitions:e,data:wt.default.data},l;try{this._compilations.add(t),t.serializeName=a,o.func(a,wt.default.data,!1,()=>{o.let(wt.default.json,(0,We.str)``),xd(c),o.return(wt.default.json)}),o.optimize(this.opts.code.optimize);let u=o.toString();l=`${o.scopeRefs(wt.default.scope)}return ${u}`;let d=new Function(`${wt.default.scope}`,l)(this.scope.get());this.scope.value(a,{ref:d}),t.serialize=d}catch(u){throw l&&this.logger.error("Error compiling serializer, function code:",l),delete t.serialize,delete t.serializeName,u}finally{this._compilations.delete(t)}return t}dA.default=tM;function xd(t){let e;for(let r of ESe.jtdForms)if(r in t.schema){e=r;break}PSe(t,e?RSe[e]:qSe)}function PSe(t,e){let{gen:r,schema:n,data:i}=t;if(!n.nullable)return e(t);r.if((0,We._)`${i} === undefined || ${i} === null`,()=>r.add(wt.default.json,(0,We._)`"null"`),()=>e(t))}function CSe(t){let{gen:e,schema:r,data:n}=t;e.add(wt.default.json,(0,We.str)`[`);let i=e.let("first",!0);e.forOf("el",n,s=>{fA(t,i),xd({...t,schema:r.elements,data:s})}),e.add(wt.default.json,(0,We.str)`]`)}function OSe(t){let{gen:e,schema:r,data:n}=t;e.add(wt.default.json,(0,We.str)`{`);let i=e.let("first",!0);e.forIn("key",n,s=>rM(t,s,r.values,i)),e.add(wt.default.json,(0,We.str)`}`)}function rM(t,e,r,n){let{gen:i,data:s}=t;fA(t,n),vd({...t,data:e}),i.add(wt.default.json,(0,We.str)`:`);let o=i.const("value",(0,We._)`${s}${(0,We.getProperty)(e)}`);xd({...t,schema:r,data:o})}function ISe(t){let{gen:e,schema:r,data:n}=t,{discriminator:i}=r;e.add(wt.default.json,(0,We.str)`{${JSON.stringify(i)}:`);let s=e.const("tag",(0,We._)`${n}${(0,We.getProperty)(i)}`);vd({...t,data:s}),e.if(!1);for(let o in r.mapping){e.elseIf((0,We._)`${s} === ${o}`);let a=r.mapping[o];nM({...t,schema:a},i)}e.endIf(),e.add(wt.default.json,(0,We.str)`}`)}function Z6(t){let{gen:e}=t;e.add(wt.default.json,(0,We.str)`{`),nM(t),e.add(wt.default.json,(0,We.str)`}`)}function nM(t,e){let{gen:r,schema:n,data:i}=t,{properties:s,optionalProperties:o}=n,a=d(s),c=d(o),l=h(a.concat(c)),u=!e,f;for(let y of a)u?u=!1:r.add(wt.default.json,(0,We.str)`,`),m(y,s[y],p(y));u&&(f=r.let("first",!0));for(let y of c){let b=p(y);r.if((0,We.and)((0,We._)`${b} !== undefined`,(0,SSe.isOwnProperty)(r,i,y)),()=>{fA(t,f),m(y,o[y],b)})}n.additionalProperties&&r.forIn("key",i,y=>r.if(g(y,l),()=>rM(t,y,{},f)));function d(y){return y?Object.keys(y):[]}function h(y){if(e&&y.push(e),new Set(y).size!==y.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return y}function p(y){return r.const("value",(0,We._)`${i}${(0,We.getProperty)(y)}`)}function m(y,b,x){r.add(wt.default.json,(0,We.str)`${JSON.stringify(y)}:`),xd({...t,schema:b,data:x})}function g(y,b){return b.length?(0,We.and)(...b.map(x=>(0,We._)`${y} !== ${x}`)):!0}}function NSe(t){let{gen:e,schema:r,data:n}=t;switch(r.type){case"boolean":e.add(wt.default.json,(0,We._)`${n} ? "true" : "false"`);break;case"string":vd(t);break;case"timestamp":e.if((0,We._)`${n} instanceof Date`,()=>e.add(wt.default.json,(0,We._)`'"' + ${n}.toISOString() + '"'`),()=>vd(t));break;default:kSe(t)}}function vd({gen:t,data:e}){t.add(wt.default.json,(0,We._)`${(0,TSe.useFunc)(t,$Se.default)}(${e})`)}function kSe({gen:t,data:e}){t.add(wt.default.json,(0,We._)`"" + ${e}`)}function DSe(t){let{gen:e,self:r,data:n,definitions:i,schema:s,schemaEnv:o}=t,{ref:a}=s,c=i[a];if(!c)throw new wSe.default(r.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,ASe.hasRef)(c))return xd({...t,schema:c});let{root:l}=o,u=tM.call(r,new eM.SchemaEnv({schema:c,root:l}),i);e.add(wt.default.json,(0,We._)`${LSe(e,u)}(${n})`)}function LSe(t,e){return e.serialize?t.scopeValue("serialize",{ref:e.serialize}):(0,We._)`${t.scopeValue("wrapper",{ref:e})}.serialize`}function qSe({gen:t,data:e}){t.add(wt.default.json,(0,We._)`JSON.stringify(${e})`)}function fA({gen:t},e){e?t.if(e,()=>t.assign(e,!1),()=>t.add(wt.default.json,(0,We.str)`,`)):t.add(wt.default.json,(0,We.str)`,`)}});var oM=_(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.parseJsonString=To.parseJsonNumber=To.parseJson=void 0;var jSe=/position\s(\d+)(?: \(line \d+ column \d+\))?$/;function $s(t,e){let r;$s.message=void 0;let n;e&&(t=t.slice(e));try{return $s.position=e+t.length,JSON.parse(t)}catch(i){if(n=jSe.exec(i.message),!n){$s.message="unexpected end";return}r=+n[1];let s=t[r];t=t.slice(0,r),$s.position=e+r;try{return JSON.parse(t)}catch{$s.message=`unexpected token ${s}`;return}}}To.parseJson=$s;$s.message=void 0;$s.position=0;$s.code='require("ajv/dist/runtime/parseJson").parseJson';function Rs(t,e,r){let n="",i;if(Rs.message=void 0,t[e]==="-"&&(n+="-",e++),t[e]==="0")n+="0",e++;else if(!s(r)){o();return}if(r)return Rs.position=e,+n;if(t[e]==="."&&(n+=".",e++,!s())){o();return}if(i=t[e],(i==="e"||i==="E")&&(n+="e",e++,i=t[e],(i==="+"||i==="-")&&(n+=i,e++),!s())){o();return}return Rs.position=e,+n;function s(a){let c=!1;for(;i=t[e],i>="0"&&i<="9"&&(a===void 0||a-- >0);)c=!0,n+=i,e++;return c}function o(){Rs.position=e,Rs.message=e="a"&&n<="f")o+=n.charCodeAt(0)-FSe+10;else if(n>="0"&&n<="9")o+=n.charCodeAt(0)-MSe;else{i(`unexpected token ${n}`);return}e++}r+=String.fromCharCode(o)}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 Ao.position=e,r;function i(s){Ao.position=e,Ao.message=s}}To.parseJsonString=Ao;Ao.message=void 0;Ao.position=0;Ao.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var gM=_(_A=>{"use strict";Object.defineProperty(_A,"__esModule",{value:!0});var BSe=cA(),lM=ja(),ve=xe(),USe=Es(),ze=jn(),zSe=vr(),HSe=Zm(),VSe=JS(),mA=oM(),fM=Ie(),WSe=YS(),GSe={elements:JSe,values:QSe,discriminator:eAe,properties:aM,optionalProperties:aM,enum:rAe,type:tAe,ref:nAe};function dM(t,e){let r=lM.getCompilingSchema.call(this,t);if(r)return r;let{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new ve.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a=o.scopeName("parse"),c={self:this,gen:o,schema:t.schema,schemaEnv:t,definitions:e,data:ze.default.data,parseName:a,char:o.name("c")},l;try{this._compilations.add(t),t.parseName=a,KSe(c),o.optimize(this.opts.code.optimize);let u=o.toString();l=`${o.scopeRefs(ze.default.scope)}return ${u}`;let d=new Function(`${ze.default.scope}`,l)(this.scope.get());this.scope.value(a,{ref:d}),t.parse=d}catch(u){throw l&&this.logger.error("Error compiling parser, function code:",l),delete t.parse,delete t.parseName,u}finally{this._compilations.delete(t)}return t}_A.default=dM;var hA=(0,ve._)`undefined`;function KSe(t){let{gen:e,parseName:r,char:n}=t;e.func(r,(0,ve._)`${ze.default.json}, ${ze.default.jsonPos}, ${ze.default.jsonPart}`,!1,()=>{e.let(ze.default.data),e.let(n),e.assign((0,ve._)`${r}.message`,hA),e.assign((0,ve._)`${r}.position`,hA),e.assign(ze.default.jsonPos,(0,ve._)`${ze.default.jsonPos} || 0`),e.const(ze.default.jsonLen,(0,ve._)`${ze.default.json}.length`),iy(t),xA(t),e.if(ze.default.jsonPart,()=>{e.assign((0,ve._)`${r}.position`,ze.default.jsonPos),e.return(ze.default.data)}),e.if((0,ve._)`${ze.default.jsonPos} === ${ze.default.jsonLen}`,()=>e.return(ze.default.data)),$u(t)})}function iy(t){let e;for(let r of BSe.jtdForms)if(r in t.schema){e=r;break}e?YSe(t,GSe[e]):gA(t)}var XSe=uM(!0,uM(!1,$u));function YSe(t,e){let{gen:r,schema:n,data:i}=t;if(!n.nullable)return e(t);_d(t,"null",e,()=>r.assign(i,null))}function JSe(t){let{gen:e,schema:r,data:n}=t;Bi(t,"[");let i=e.let("i",0);e.assign(n,(0,ve._)`[]`),yA(t,"]",()=>{let s=e.let("el");iy({...t,schema:r.elements,data:s}),e.assign((0,ve._)`${n}[${i}++]`,s)})}function QSe(t){let{gen:e,schema:r,data:n}=t;Bi(t,"{"),e.assign(n,(0,ve._)`{}`),yA(t,"}",()=>ZSe(t,r.values))}function yA(t,e,r){pM(t,e,r),Bi(t,e)}function pM(t,e,r){let{gen:n}=t;n.for((0,ve._)`;${ze.default.jsonPos}<${ze.default.jsonLen} && ${sy(1)}!==${e};`,()=>{r(),_d(t,",",()=>n.break(),i)});function i(){_d(t,e,()=>{},$u)}}function ZSe(t,e){let{gen:r}=t,n=r.let("key");za({...t,data:n}),Bi(t,":"),mM(t,n,e)}function eAe(t){let{gen:e,data:r,schema:n}=t,{discriminator:i,mapping:s}=n;Bi(t,"{"),e.assign(r,(0,ve._)`{}`);let o=e.const("pos",ze.default.jsonPos),a=e.let("value"),c=e.let("tag");pM(t,"}",()=>{let l=e.let("key");za({...t,data:l}),Bi(t,":"),e.if((0,ve._)`${l} === ${i}`,()=>{za({...t,data:c}),e.assign((0,ve._)`${r}[${l}]`,c),e.break()},()=>gA({...t,data:a}))}),e.assign(ze.default.jsonPos,o),e.if((0,ve._)`${c} === undefined`),Ps(t,(0,ve.str)`discriminator tag not found`);for(let l in s)e.elseIf((0,ve._)`${c} === ${l}`),hM({...t,schema:s[l]},i);e.else(),Ps(t,(0,ve.str)`discriminator value not in schema`),e.endIf()}function aM(t){let{gen:e,data:r}=t;Bi(t,"{"),e.assign(r,(0,ve._)`{}`),hM(t)}function hM(t,e){let{gen:r,schema:n,data:i}=t,{properties:s,optionalProperties:o,additionalProperties:a}=n;if(yA(t,"}",()=>{let c=r.let("key");if(za({...t,data:c}),Bi(t,":"),r.if(!1),cM(t,c,s),cM(t,c,o),e){r.elseIf((0,ve._)`${c} === ${e}`);let l=r.let("tag");za({...t,data:l})}r.else(),a?gA({...t,data:(0,ve._)`${i}[${c}]`}):Ps(t,(0,ve.str)`property ${c} not allowed`),r.endIf()}),s){let c=(0,zSe.hasPropFunc)(r),l=(0,ve.and)(...Object.keys(s).map(u=>(0,ve._)`${c}.call(${i}, ${u})`));r.if((0,ve.not)(l),()=>Ps(t,(0,ve.str)`missing required properties`))}}function cM(t,e,r={}){let{gen:n}=t;for(let i in r)n.elseIf((0,ve._)`${e} === ${i}`),mM(t,e,r[i])}function mM(t,e,r){iy({...t,schema:r,data:(0,ve._)`${t.data}[${e}]`})}function tAe(t){let{gen:e,schema:r,data:n,self:i}=t;switch(r.type){case"boolean":XSe(t);break;case"string":za(t);break;case"timestamp":{za(t);let s=(0,fM.useFunc)(e,WSe.default),{allowDate:o,parseDate:a}=i.opts,c=o?(0,ve._)`!${s}(${n}, true)`:(0,ve._)`!${s}(${n})`,l=a?(0,ve.or)(c,(0,ve._)`(${n} = new Date(${n}), false)`,(0,ve._)`isNaN(${n}.valueOf())`):c;e.if(l,()=>Ps(t,(0,ve.str)`invalid timestamp`));break}case"float32":case"float64":pA(t);break;default:{let s=r.type;if(!i.opts.int32range&&(s==="int32"||s==="uint32"))pA(t,16),s==="uint32"&&e.if((0,ve._)`${n} < 0`,()=>Ps(t,(0,ve.str)`integer out of range`));else{let[o,a,c]=VSe.intRange[s];pA(t,c),e.if((0,ve._)`${n} < ${o} || ${n} > ${a}`,()=>Ps(t,(0,ve.str)`integer out of range`))}}}}function za(t){Bi(t,'"'),vA(t,mA.parseJsonString)}function rAe(t){let{gen:e,data:r,schema:n}=t,i=n.enum;Bi(t,'"'),e.if(!1);for(let s of i){let o=JSON.stringify(s).slice(1);e.elseIf((0,ve._)`${sy(o.length)} === ${o}`),e.assign(r,(0,ve.str)`${s}`),e.add(ze.default.jsonPos,o.length)}e.else(),$u(t),e.endIf()}function pA(t,e){let{gen:r}=t;xA(t),r.if((0,ve._)`"-0123456789".indexOf(${sy(1)}) < 0`,()=>$u(t),()=>vA(t,mA.parseJsonNumber,e))}function uM(t,e){return r=>{let{gen:n,data:i}=r;_d(r,`${t}`,()=>e(r),()=>n.assign(i,t))}}function nAe(t){let{gen:e,self:r,definitions:n,schema:i,schemaEnv:s}=t,{ref:o}=i,a=n[o];if(!a)throw new USe.default(r.opts.uriResolver,"",o,`No definition ${o}`);if(!(0,HSe.hasRef)(a))return iy({...t,schema:a});let{root:c}=s,l=dM.call(r,new lM.SchemaEnv({schema:a,root:c}),n);yM(t,iAe(e,l),!0)}function iAe(t,e){return e.parse?t.scopeValue("parse",{ref:e.parse}):(0,ve._)`${t.scopeValue("wrapper",{ref:e})}.parse`}function gA(t){vA(t,mA.parseJson)}function vA(t,e,r){yM(t,(0,fM.useFunc)(t.gen,e),r)}function yM(t,e,r){let{gen:n,data:i}=t;n.assign(i,(0,ve._)`${e}(${ze.default.json}, ${ze.default.jsonPos}${r?(0,ve._)`, ${r}`:ve.nil})`),n.assign(ze.default.jsonPos,(0,ve._)`${e}.position`),n.if((0,ve._)`${i} === undefined`,()=>Ps(t,(0,ve._)`${e}.message`))}function Bi(t,e){_d(t,e,$u)}function _d(t,e,r,n){let{gen:i}=t,s=e.length;xA(t),i.if((0,ve._)`${sy(s)} === ${e}`,()=>{i.add(ze.default.jsonPos,s),n?.(t)},()=>r(t))}function xA({gen:t,char:e}){t.code((0,ve._)`while((${e}=${ze.default.json}[${ze.default.jsonPos}],${e}===" "||${e}==="\\n"||${e}==="\\r"||${e}==="\\t"))${ze.default.jsonPos}++;`)}function sy(t){return t===1?(0,ve._)`${ze.default.json}[${ze.default.jsonPos}]`:(0,ve._)`${ze.default.json}.slice(${ze.default.jsonPos}, ${ze.default.jsonPos}+${t})`}function $u(t){Ps(t,(0,ve._)`"unexpected token " + ${ze.default.json}[${ze.default.jsonPos}]`)}function Ps({gen:t,parseName:e},r){t.assign((0,ve._)`${e}.message`,r),t.assign((0,ve._)`${e}.position`,ze.default.jsonPos),t.return(hA)}});var wA=_((Ot,EA)=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.MissingRefError=Ot.ValidationError=Ot.CodeGen=Ot.Name=Ot.nil=Ot.stringify=Ot.str=Ot._=Ot.KeywordCxt=Ot.Ajv=void 0;var sAe=rS(),oAe=W6(),aAe=Y6(),cAe=iM(),uAe=gM(),bA="JTD-meta-schema",Ru=class extends sAe.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(oAe.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(aAe.default,bA,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(bA)?bA:void 0)}compileSerializer(e){let r=this._addSchema(e);return r.serialize||this._compileSerializer(r)}compileParser(e){let r=this._addSchema(e);return r.parse||this._compileParser(r)}_compileSerializer(e){if(cAe.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(uAe.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}};Ot.Ajv=Ru;EA.exports=Ot=Ru;EA.exports.Ajv=Ru;Object.defineProperty(Ot,"__esModule",{value:!0});Ot.default=Ru;var lAe=hu();Object.defineProperty(Ot,"KeywordCxt",{enumerable:!0,get:function(){return lAe.KeywordCxt}});var Pu=xe();Object.defineProperty(Ot,"_",{enumerable:!0,get:function(){return Pu._}});Object.defineProperty(Ot,"str",{enumerable:!0,get:function(){return Pu.str}});Object.defineProperty(Ot,"stringify",{enumerable:!0,get:function(){return Pu.stringify}});Object.defineProperty(Ot,"nil",{enumerable:!0,get:function(){return Pu.nil}});Object.defineProperty(Ot,"Name",{enumerable:!0,get:function(){return Pu.Name}});Object.defineProperty(Ot,"CodeGen",{enumerable:!0,get:function(){return Pu.CodeGen}});var fAe=td();Object.defineProperty(Ot,"ValidationError",{enumerable:!0,get:function(){return fAe.default}});var dAe=Es();Object.defineProperty(Ot,"MissingRefError",{enumerable:!0,get:function(){return dAe.default}})});var SA=_((iHe,vM)=>{"use strict";var pAe=z1();vM.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:pAe,addUsedSchema:!1,allErrors:!1})});var SM=_(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.formatNames=Ui.fastFormats=Ui.fullFormats=void 0;function Cu(t,e){return{validate:t,compare:e}}Ui.fullFormats={date:Cu(bM,$A),time:Cu(EM,RA),"date-time":Cu(gAe,wM),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_Ae,"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:$Ae,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:bAe,int32:{type:"number",validate:SAe},int64:{type:"number",validate:AAe},float:{type:"number",validate:_M},double:{type:"number",validate:_M},password:!0,binary:!0};Ui.fastFormats={...Ui.fullFormats,date:Cu(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,$A),time:Cu(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,RA),"date-time":Cu(/^\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,wM),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};Ui.formatNames=Object.keys(Ui.fullFormats);function hAe(t){return t%4===0&&(t%100!==0||t%400===0)}var mAe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,yAe=[0,31,28,31,30,31,30,31,31,30,31,30,31];function bM(t){let e=mAe.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&hAe(r)?29:yAe[n])}function $A(t,e){if(t&&e)return t>e?1:te?1:t=EAe}function AAe(t){return Number.isInteger(t)}function _M(){return!0}var TAe=/[^\\]\\Z/;function $Ae(t){if(TAe.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var wd=_(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.regexpCode=at.getEsmExportName=at.getProperty=at.safeStringify=at.stringify=at.strConcat=at.addCodeArg=at.str=at._=at.nil=at._Code=at.Name=at.IDENTIFIER=at._CodeOrName=void 0;var bd=class{};at._CodeOrName=bd;at.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ha=class extends bd{constructor(e){if(super(),!at.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};at.Name=Ha;var Bn=class extends bd{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ha&&(r[n.str]=(r[n.str]||0)+1),r),{})}};at._Code=Bn;at.nil=new Bn("");function AM(t,...e){let r=[t[0]],n=0;for(;n{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.ValueScope=mn.ValueScopeName=mn.Scope=mn.varKinds=mn.UsedValueState=void 0;var hn=wd(),OA=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},oy;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(oy||(mn.UsedValueState=oy={}));mn.varKinds={const:new hn.Name("const"),let:new hn.Name("let"),var:new hn.Name("var")};var ay=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof hn.Name?e:this.name(e)}name(e){return new hn.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};mn.Scope=ay;var cy=class extends hn.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,hn._)`.${new hn.Name(r)}[${n}]`}};mn.ValueScopeName=cy;var LAe=(0,hn._)`\n`,IA=class extends ay{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?LAe:hn.nil}}get(){return this._scope}name(e){return new cy(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:s}=i,o=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[s];if(a){let u=a.get(o);if(u)return u}else a=this._values[s]=new Map;a.set(o,i);let c=this._scope[s]||(this._scope[s]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:s,itemIndex:l}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,hn._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let s=hn.nil;for(let o in e){let a=e[o];if(!a)continue;let c=n[o]=n[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,oy.Started);let u=r(l);if(u){let f=this.opts.es5?mn.varKinds.var:mn.varKinds.const;s=(0,hn._)`${s}${f} ${l} = ${u};${this.opts._n}`}else if(u=i?.(l))s=(0,hn._)`${s}${u}${this.opts._n}`;else throw new OA(l);c.set(l,oy.Completed)})}return s}};mn.ValueScope=IA});var Ne=_(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.or=Le.and=Le.not=Le.CodeGen=Le.operators=Le.varKinds=Le.ValueScopeName=Le.ValueScope=Le.Scope=Le.Name=Le.regexpCode=Le.stringify=Le.getProperty=Le.nil=Le.strConcat=Le.str=Le._=void 0;var Je=wd(),pi=NA(),$o=wd();Object.defineProperty(Le,"_",{enumerable:!0,get:function(){return $o._}});Object.defineProperty(Le,"str",{enumerable:!0,get:function(){return $o.str}});Object.defineProperty(Le,"strConcat",{enumerable:!0,get:function(){return $o.strConcat}});Object.defineProperty(Le,"nil",{enumerable:!0,get:function(){return $o.nil}});Object.defineProperty(Le,"getProperty",{enumerable:!0,get:function(){return $o.getProperty}});Object.defineProperty(Le,"stringify",{enumerable:!0,get:function(){return $o.stringify}});Object.defineProperty(Le,"regexpCode",{enumerable:!0,get:function(){return $o.regexpCode}});Object.defineProperty(Le,"Name",{enumerable:!0,get:function(){return $o.Name}});var dy=NA();Object.defineProperty(Le,"Scope",{enumerable:!0,get:function(){return dy.Scope}});Object.defineProperty(Le,"ValueScope",{enumerable:!0,get:function(){return dy.ValueScope}});Object.defineProperty(Le,"ValueScopeName",{enumerable:!0,get:function(){return dy.ValueScopeName}});Object.defineProperty(Le,"varKinds",{enumerable:!0,get:function(){return dy.varKinds}});Le.operators={GT:new Je._Code(">"),GTE:new Je._Code(">="),LT:new Je._Code("<"),LTE:new Je._Code("<="),EQ:new Je._Code("==="),NEQ:new Je._Code("!=="),NOT:new Je._Code("!"),OR:new Je._Code("||"),AND:new Je._Code("&&"),ADD:new Je._Code("+")};var Cs=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},kA=class extends Cs{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?pi.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Iu(this.rhs,e,r)),this}get names(){return this.rhs instanceof Je._CodeOrName?this.rhs.names:{}}},uy=class extends Cs{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof Je.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Iu(this.rhs,e,r),this}get names(){let e=this.lhs instanceof Je.Name?{}:{...this.lhs.names};return fy(e,this.rhs)}},DA=class extends uy{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},LA=class extends Cs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},qA=class extends Cs{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},jA=class extends Cs{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},FA=class extends Cs{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Iu(this.code,e,r),this}get names(){return this.code instanceof Je._CodeOrName?this.code.names:{}}},Sd=class extends Cs{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.optimizeNames(e,r)||(qAe(e,s.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Ga(e,r.names),{})}},Os=class extends Sd{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},MA=class extends Sd{},Ou=class extends Os{};Ou.kind="else";var Va=class t extends Os{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Ou(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t($M(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Iu(this.condition,e,r),this}get names(){let e=super.names;return fy(e,this.condition),this.else&&Ga(e,this.else.names),e}};Va.kind="if";var Wa=class extends Os{};Wa.kind="for";var BA=class extends Wa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Iu(this.iteration,e,r),this}get names(){return Ga(super.names,this.iteration.names)}},UA=class extends Wa{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?pi.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${r} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){let e=fy(super.names,this.from);return fy(e,this.to)}},ly=class extends Wa{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Iu(this.iterable,e,r),this}get names(){return Ga(super.names,this.iterable.names)}},Ad=class extends Os{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Ad.kind="func";var Td=class extends Sd{render(e){return"return "+super.render(e)}};Td.kind="return";var zA=class extends Os{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Ga(e,this.catch.names),this.finally&&Ga(e,this.finally.names),e}},$d=class extends Os{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};$d.kind="catch";var Rd=class extends Os{render(e){return"finally"+super.render(e)}};Rd.kind="finally";var HA=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?` -`:""},this._extScope=e,this._scope=new pi.Scope({parent:e}),this._nodes=[new MA]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._constants[s.str]=n),this._leafNode(new kA(e,s,n)),s}const(e,r,n){return this._def(pi.varKinds.const,e,r,n)}let(e,r,n){return this._def(pi.varKinds.let,e,r,n)}var(e,r,n){return this._def(pi.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new uy(e,r,n))}add(e,r){return this._leafNode(new DA(e,Le.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==Je.nil&&this._leafNode(new FA(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,Je.addCodeArg)(r,i));return r.push("}"),new Je._Code(r)}if(e,r,n){if(this._blockNode(new Va(e)),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(e){return this._elseNode(new Va(e))}else(){return this._elseNode(new Ou)}endIf(){return this._endBlockNode(Va,Ou)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new BA(e),r)}forRange(e,r,n,i,s=this.opts.es5?pi.varKinds.var:pi.varKinds.let){let o=this._scope.toName(e);return this._for(new UA(s,o,r,n),()=>i(o))}forOf(e,r,n,i=pi.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let o=r instanceof Je.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Je._)`${o}.length`,a=>{this.var(s,(0,Je._)`${o}[${a}]`),n(s)})}return this._for(new ly("of",i,s,r),()=>n(s))}forIn(e,r,n,i=this.opts.es5?pi.varKinds.var:pi.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Je._)`Object.keys(${r})`,n);let s=this._scope.toName(e);return this._for(new ly("in",i,s,r),()=>n(s))}endFor(){return this._endBlockNode(Wa)}label(e){return this._leafNode(new LA(e))}break(e){return this._leafNode(new qA(e))}return(e){let r=new Td;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Td)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new zA;if(this._blockNode(i),this.code(e),r){let s=this.name("e");this._currNode=i.catch=new $d(s),r(s)}return n&&(this._currNode=i.finally=new Rd,this.code(n)),this._endBlockNode($d,Rd)}throw(e){return this._leafNode(new jA(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){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||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=Je.nil,n,i){return this._blockNode(new Ad(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ad)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Va))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};Le.CodeGen=HA;function Ga(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function fy(t,e){return e instanceof Je._CodeOrName?Ga(t,e.names):t}function Iu(t,e,r){if(t instanceof Je.Name)return n(t);if(!i(t))return t;return new Je._Code(t._items.reduce((s,o)=>(o instanceof Je.Name&&(o=n(o)),o instanceof Je._Code?s.push(...o._items):s.push(o),s),[]));function n(s){let o=r[s.str];return o===void 0||e[s.str]!==1?s:(delete e[s.str],o)}function i(s){return s instanceof Je._Code&&s._items.some(o=>o instanceof Je.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function qAe(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function $M(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Je._)`!${VA(t)}`}Le.not=$M;var jAe=RM(Le.operators.AND);function FAe(...t){return t.reduce(jAe)}Le.and=FAe;var MAe=RM(Le.operators.OR);function BAe(...t){return t.reduce(MAe)}Le.or=BAe;function RM(t){return(e,r)=>e===Je.nil?r:r===Je.nil?e:(0,Je._)`${VA(e)} ${t} ${VA(r)}`}function VA(t){return t instanceof Je.Name?t:(0,Je._)`(${t})`}});var ct=_(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.checkStrictMode=Me.getErrorPath=Me.Type=Me.useFunc=Me.setEvaluated=Me.evaluatedPropsToName=Me.mergeEvaluated=Me.eachItem=Me.unescapeJsonPointer=Me.escapeJsonPointer=Me.escapeFragment=Me.unescapeFragment=Me.schemaRefOrVal=Me.schemaHasRulesButRef=Me.schemaHasRules=Me.checkUnknownRules=Me.alwaysValidSchema=Me.toHash=void 0;var _t=Ne(),UAe=wd();function zAe(t){let e={};for(let r of t)e[r]=!0;return e}Me.toHash=zAe;function HAe(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(OM(t,e),!IM(e,t.self.RULES.all))}Me.alwaysValidSchema=HAe;function OM(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let s in e)i[s]||DM(t,`unknown keyword: "${s}"`)}Me.checkUnknownRules=OM;function IM(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}Me.schemaHasRules=IM;function VAe(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}Me.schemaHasRulesButRef=VAe;function WAe({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,_t._)`${r}`}return(0,_t._)`${t}${e}${(0,_t.getProperty)(n)}`}Me.schemaRefOrVal=WAe;function GAe(t){return NM(decodeURIComponent(t))}Me.unescapeFragment=GAe;function KAe(t){return encodeURIComponent(GA(t))}Me.escapeFragment=KAe;function GA(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}Me.escapeJsonPointer=GA;function NM(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}Me.unescapeJsonPointer=NM;function XAe(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}Me.eachItem=XAe;function PM({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,s,o,a)=>{let c=o===void 0?s:o instanceof _t.Name?(s instanceof _t.Name?t(i,s,o):e(i,s,o),o):s instanceof _t.Name?(e(i,o,s),s):r(s,o);return a===_t.Name&&!(c instanceof _t.Name)?n(i,c):c}}Me.mergeEvaluated={props:PM({mergeNames:(t,e,r)=>t.if((0,_t._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,_t._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,_t._)`${r} || {}`).code((0,_t._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,_t._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,_t._)`${r} || {}`),KA(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:kM}),items:PM({mergeNames:(t,e,r)=>t.if((0,_t._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,_t._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,_t._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,_t._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function kM(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,_t._)`{}`);return e!==void 0&&KA(t,r,e),r}Me.evaluatedPropsToName=kM;function KA(t,e,r){Object.keys(r).forEach(n=>t.assign((0,_t._)`${e}${(0,_t.getProperty)(n)}`,!0))}Me.setEvaluated=KA;var CM={};function YAe(t,e){return t.scopeValue("func",{ref:e,code:CM[e.code]||(CM[e.code]=new UAe._Code(e.code))})}Me.useFunc=YAe;var WA;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(WA||(Me.Type=WA={}));function JAe(t,e,r){if(t instanceof _t.Name){let n=e===WA.Num;return r?n?(0,_t._)`"[" + ${t} + "]"`:(0,_t._)`"['" + ${t} + "']"`:n?(0,_t._)`"/" + ${t}`:(0,_t._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,_t.getProperty)(t).toString():"/"+GA(t)}Me.getErrorPath=JAe;function DM(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}Me.checkStrictMode=DM});var Is=_(XA=>{"use strict";Object.defineProperty(XA,"__esModule",{value:!0});var Dr=Ne(),QAe={data:new Dr.Name("data"),valCxt:new Dr.Name("valCxt"),instancePath:new Dr.Name("instancePath"),parentData:new Dr.Name("parentData"),parentDataProperty:new Dr.Name("parentDataProperty"),rootData:new Dr.Name("rootData"),dynamicAnchors:new Dr.Name("dynamicAnchors"),vErrors:new Dr.Name("vErrors"),errors:new Dr.Name("errors"),this:new Dr.Name("this"),self:new Dr.Name("self"),scope:new Dr.Name("scope"),json:new Dr.Name("json"),jsonPos:new Dr.Name("jsonPos"),jsonLen:new Dr.Name("jsonLen"),jsonPart:new Dr.Name("jsonPart")};XA.default=QAe});var Pd=_(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.extendErrors=Lr.resetErrorsCount=Lr.reportExtraError=Lr.reportError=Lr.keyword$DataError=Lr.keywordError=void 0;var et=Ne(),py=ct(),Qr=Is();Lr.keywordError={message:({keyword:t})=>(0,et.str)`must pass "${t}" keyword validation`};Lr.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,et.str)`"${t}" keyword must be ${e} ($data)`:(0,et.str)`"${t}" keyword is invalid ($data)`};function ZAe(t,e=Lr.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,allErrors:a}=i,c=jM(t,e,r);n??(o||a)?LM(s,c):qM(i,(0,et._)`[${c}]`)}Lr.reportError=ZAe;function eTe(t,e=Lr.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,allErrors:o}=n,a=jM(t,e,r);LM(i,a),s||o||qM(n,Qr.default.vErrors)}Lr.reportExtraError=eTe;function tTe(t,e){t.assign(Qr.default.errors,e),t.if((0,et._)`${Qr.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,et._)`${Qr.default.vErrors}.length`,e),()=>t.assign(Qr.default.vErrors,null)))}Lr.resetErrorsCount=tTe;function rTe({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(i===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",i,Qr.default.errors,a=>{t.const(o,(0,et._)`${Qr.default.vErrors}[${a}]`),t.if((0,et._)`${o}.instancePath === undefined`,()=>t.assign((0,et._)`${o}.instancePath`,(0,et.strConcat)(Qr.default.instancePath,s.errorPath))),t.assign((0,et._)`${o}.schemaPath`,(0,et.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,et._)`${o}.schema`,r),t.assign((0,et._)`${o}.data`,n))})}Lr.extendErrors=rTe;function LM(t,e){let r=t.const("err",e);t.if((0,et._)`${Qr.default.vErrors} === null`,()=>t.assign(Qr.default.vErrors,(0,et._)`[${r}]`),(0,et._)`${Qr.default.vErrors}.push(${r})`),t.code((0,et._)`${Qr.default.errors}++`)}function qM(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,et._)`new ${t.ValidationError}(${e})`):(r.assign((0,et._)`${n}.errors`,e),r.return(!1))}var Ka={keyword:new et.Name("keyword"),schemaPath:new et.Name("schemaPath"),params:new et.Name("params"),propertyName:new et.Name("propertyName"),message:new et.Name("message"),schema:new et.Name("schema"),parentSchema:new et.Name("parentSchema")};function jM(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,et._)`{}`:nTe(t,e,r)}function nTe(t,e,r={}){let{gen:n,it:i}=t,s=[iTe(i,r),sTe(t,r)];return oTe(t,e,s),n.object(...s)}function iTe({errorPath:t},{instancePath:e}){let r=e?(0,et.str)`${t}${(0,py.getErrorPath)(e,py.Type.Str)}`:t;return[Qr.default.instancePath,(0,et.strConcat)(Qr.default.instancePath,r)]}function sTe({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,et.str)`${e}/${t}`;return r&&(i=(0,et.str)`${i}${(0,py.getErrorPath)(r,py.Type.Str)}`),[Ka.schemaPath,i]}function oTe(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o,it:a}=t,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:f}=a;n.push([Ka.keyword,i],[Ka.params,typeof e=="function"?e(t):e||(0,et._)`{}`]),c.messages&&n.push([Ka.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([Ka.schema,o],[Ka.parentSchema,(0,et._)`${u}${f}`],[Qr.default.data,s]),l&&n.push([Ka.propertyName,l])}});var MM=_(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.boolOrEmptySchema=Nu.topBoolOrEmptySchema=void 0;var aTe=Pd(),cTe=Ne(),uTe=Is(),lTe={message:"boolean schema is false"};function fTe(t){let{gen:e,schema:r,validateName:n}=t;r===!1?FM(t,!1):typeof r=="object"&&r.$async===!0?e.return(uTe.default.data):(e.assign((0,cTe._)`${n}.errors`,null),e.return(!0))}Nu.topBoolOrEmptySchema=fTe;function dTe(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),FM(t)):r.var(e,!0)}Nu.boolOrEmptySchema=dTe;function FM(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,aTe.reportError)(i,lTe,void 0,e)}});var YA=_(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.getRules=ku.isJSONType=void 0;var pTe=["string","number","integer","boolean","null","object","array"],hTe=new Set(pTe);function mTe(t){return typeof t=="string"&&hTe.has(t)}ku.isJSONType=mTe;function yTe(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}ku.getRules=yTe});var JA=_(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.shouldUseRule=Ro.shouldUseGroup=Ro.schemaHasRulesForType=void 0;function gTe({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&BM(t,n)}Ro.schemaHasRulesForType=gTe;function BM(t,e){return e.rules.some(r=>UM(t,r))}Ro.shouldUseGroup=BM;function UM(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Ro.shouldUseRule=UM});var Cd=_(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.reportTypeError=qr.checkDataTypes=qr.checkDataType=qr.coerceAndCheckDataType=qr.getJSONTypes=qr.getSchemaTypes=qr.DataType=void 0;var vTe=YA(),xTe=JA(),_Te=Pd(),Ce=Ne(),zM=ct(),Du;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Du||(qr.DataType=Du={}));function bTe(t){let e=HM(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}qr.getSchemaTypes=bTe;function HM(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(vTe.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}qr.getJSONTypes=HM;function ETe(t,e){let{gen:r,data:n,opts:i}=t,s=wTe(e,i.coerceTypes),o=e.length>0&&!(s.length===0&&e.length===1&&(0,xTe.schemaHasRulesForType)(t,e[0]));if(o){let a=ZA(e,n,i.strictNumbers,Du.Wrong);r.if(a,()=>{s.length?STe(t,e,s):eT(t)})}return o}qr.coerceAndCheckDataType=ETe;var VM=new Set(["string","number","integer","boolean","null"]);function wTe(t,e){return e?t.filter(r=>VM.has(r)||e==="array"&&r==="array"):[]}function STe(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,Ce._)`typeof ${i}`),a=n.let("coerced",(0,Ce._)`undefined`);s.coerceTypes==="array"&&n.if((0,Ce._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Ce._)`${i}[0]`).assign(o,(0,Ce._)`typeof ${i}`).if(ZA(e,i,s.strictNumbers),()=>n.assign(a,i))),n.if((0,Ce._)`${a} !== undefined`);for(let l of r)(VM.has(l)||l==="array"&&s.coerceTypes==="array")&&c(l);n.else(),eT(t),n.endIf(),n.if((0,Ce._)`${a} !== undefined`,()=>{n.assign(i,a),ATe(t,a)});function c(l){switch(l){case"string":n.elseIf((0,Ce._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,Ce._)`"" + ${i}`).elseIf((0,Ce._)`${i} === null`).assign(a,(0,Ce._)`""`);return;case"number":n.elseIf((0,Ce._)`${o} == "boolean" || ${i} === null - || (${o} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Ce._)`+${i}`);return;case"integer":n.elseIf((0,Ce._)`${o} === "boolean" || ${i} === null - || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Ce._)`+${i}`);return;case"boolean":n.elseIf((0,Ce._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Ce._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Ce._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Ce._)`${o} === "string" || ${o} === "number" - || ${o} === "boolean" || ${i} === null`).assign(a,(0,Ce._)`[${i}]`)}}}function ATe({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Ce._)`${e} !== undefined`,()=>t.assign((0,Ce._)`${e}[${r}]`,n))}function QA(t,e,r,n=Du.Correct){let i=n===Du.Correct?Ce.operators.EQ:Ce.operators.NEQ,s;switch(t){case"null":return(0,Ce._)`${e} ${i} null`;case"array":s=(0,Ce._)`Array.isArray(${e})`;break;case"object":s=(0,Ce._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":s=o((0,Ce._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":s=o();break;default:return(0,Ce._)`typeof ${e} ${i} ${t}`}return n===Du.Correct?s:(0,Ce.not)(s);function o(a=Ce.nil){return(0,Ce.and)((0,Ce._)`typeof ${e} == "number"`,a,r?(0,Ce._)`isFinite(${e})`:Ce.nil)}}qr.checkDataType=QA;function ZA(t,e,r,n){if(t.length===1)return QA(t[0],e,r,n);let i,s=(0,zM.toHash)(t);if(s.array&&s.object){let o=(0,Ce._)`typeof ${e} != "object"`;i=s.null?o:(0,Ce._)`!${e} || ${o}`,delete s.null,delete s.array,delete s.object}else i=Ce.nil;s.number&&delete s.integer;for(let o in s)i=(0,Ce.and)(i,QA(o,e,r,n));return i}qr.checkDataTypes=ZA;var TTe={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Ce._)`{type: ${t}}`:(0,Ce._)`{type: ${e}}`};function eT(t){let e=$Te(t);(0,_Te.reportError)(e,TTe)}qr.reportTypeError=eT;function $Te(t){let{gen:e,data:r,schema:n}=t,i=(0,zM.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var GM=_(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.assignDefaults=void 0;var Lu=Ne(),RTe=ct();function PTe(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)WM(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,s)=>WM(t,s,i.default))}hy.assignDefaults=PTe;function WM(t,e,r){let{gen:n,compositeRule:i,data:s,opts:o}=t;if(r===void 0)return;let a=(0,Lu._)`${s}${(0,Lu.getProperty)(e)}`;if(i){(0,RTe.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,Lu._)`${a} === undefined`;o.useDefaults==="empty"&&(c=(0,Lu._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Lu._)`${a} = ${(0,Lu.stringify)(r)}`)}});var Un=_(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.validateUnion=yt.validateArray=yt.usePattern=yt.callValidateCode=yt.schemaProperties=yt.allSchemaProperties=yt.noPropertyInData=yt.propertyInData=yt.isOwnProperty=yt.hasPropFunc=yt.reportMissingProp=yt.checkMissingProp=yt.checkReportMissingProp=void 0;var It=Ne(),tT=ct(),Po=Is(),CTe=ct();function OTe(t,e){let{gen:r,data:n,it:i}=t;r.if(nT(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,It._)`${e}`},!0),t.error()})}yt.checkReportMissingProp=OTe;function ITe({gen:t,data:e,it:{opts:r}},n,i){return(0,It.or)(...n.map(s=>(0,It.and)(nT(t,e,s,r.ownProperties),(0,It._)`${i} = ${s}`)))}yt.checkMissingProp=ITe;function NTe(t,e){t.setParams({missingProperty:e},!0),t.error()}yt.reportMissingProp=NTe;function KM(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,It._)`Object.prototype.hasOwnProperty`})}yt.hasPropFunc=KM;function rT(t,e,r){return(0,It._)`${KM(t)}.call(${e}, ${r})`}yt.isOwnProperty=rT;function kTe(t,e,r,n){let i=(0,It._)`${e}${(0,It.getProperty)(r)} !== undefined`;return n?(0,It._)`${i} && ${rT(t,e,r)}`:i}yt.propertyInData=kTe;function nT(t,e,r,n){let i=(0,It._)`${e}${(0,It.getProperty)(r)} === undefined`;return n?(0,It.or)(i,(0,It.not)(rT(t,e,r))):i}yt.noPropertyInData=nT;function XM(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}yt.allSchemaProperties=XM;function DTe(t,e){return XM(e).filter(r=>!(0,tT.alwaysValidSchema)(t,e[r]))}yt.schemaProperties=DTe;function LTe({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,c,l){let u=l?(0,It._)`${t}, ${e}, ${n}${i}`:e,f=[[Po.default.instancePath,(0,It.strConcat)(Po.default.instancePath,s)],[Po.default.parentData,o.parentData],[Po.default.parentDataProperty,o.parentDataProperty],[Po.default.rootData,Po.default.rootData]];o.opts.dynamicRef&&f.push([Po.default.dynamicAnchors,Po.default.dynamicAnchors]);let d=(0,It._)`${u}, ${r.object(...f)}`;return c!==It.nil?(0,It._)`${a}.call(${c}, ${d})`:(0,It._)`${a}(${d})`}yt.callValidateCode=LTe;var qTe=(0,It._)`new RegExp`;function jTe({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,s=i(r,n);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,It._)`${i.code==="new RegExp"?qTe:(0,CTe.useFunc)(t,i)}(${r}, ${n})`})}yt.usePattern=jTe;function FTe(t){let{gen:e,data:r,keyword:n,it:i}=t,s=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return o(()=>e.assign(a,!1)),a}return e.var(s,!0),o(()=>e.break()),s;function o(a){let c=e.const("len",(0,It._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:tT.Type.Num},s),e.if((0,It.not)(s),a)})}}yt.validateArray=FTe;function MTe(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,tT.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let o=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let u=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(o,(0,It._)`${o} || ${a}`),t.mergeValidEvaluated(u,a)||e.if((0,It.not)(o))})),t.result(o,()=>t.reset(),()=>t.error(!0))}yt.validateUnion=MTe});var QM=_(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.validateKeywordUsage=zi.validSchemaType=zi.funcKeywordCode=zi.macroKeywordCode=void 0;var Zr=Ne(),Xa=Is(),BTe=Un(),UTe=Pd();function zTe(t,e){let{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=t,a=e.macro.call(o.self,i,s,o),c=JM(r,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:Zr.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}zi.macroKeywordCode=zTe;function HTe(t,e){var r;let{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:c}=t;WTe(c,e);let l=!a&&e.compile?e.compile.call(c.self,s,o,c):e.validate,u=JM(n,i,l),f=n.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)m(),e.modifying&&YM(t),g(()=>t.error());else{let y=e.async?h():p();e.modifying&&YM(t),g(()=>VTe(t,y))}}function h(){let y=n.let("ruleErrs",null);return n.try(()=>m((0,Zr._)`await `),b=>n.assign(f,!1).if((0,Zr._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,Zr._)`${b}.errors`),()=>n.throw(b))),y}function p(){let y=(0,Zr._)`${u}.errors`;return n.assign(y,null),m(Zr.nil),y}function m(y=e.async?(0,Zr._)`await `:Zr.nil){let b=c.opts.passContext?Xa.default.this:Xa.default.self,x=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,Zr._)`${y}${(0,BTe.callValidateCode)(t,u,b,x)}`,e.modifying)}function g(y){var b;n.if((0,Zr.not)((b=e.valid)!==null&&b!==void 0?b:f),y)}}zi.funcKeywordCode=HTe;function YM(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,Zr._)`${n.parentData}[${n.parentDataProperty}]`))}function VTe(t,e){let{gen:r}=t;r.if((0,Zr._)`Array.isArray(${e})`,()=>{r.assign(Xa.default.vErrors,(0,Zr._)`${Xa.default.vErrors} === null ? ${e} : ${Xa.default.vErrors}.concat(${e})`).assign(Xa.default.errors,(0,Zr._)`${Xa.default.vErrors}.length`),(0,UTe.extendErrors)(t)},()=>t.error())}function WTe({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function JM(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Zr.stringify)(r)})}function GTe(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}zi.validSchemaType=GTe;function KTe({schema:t,opts:e,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 o=i.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[s])){let c=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}zi.validateKeywordUsage=KTe});var eB=_(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.extendSubschemaMode=Co.extendSubschemaData=Co.getSubschema=void 0;var Hi=Ne(),ZM=ct();function XTe(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,Hi._)`${t.schemaPath}${(0,Hi.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,Hi._)`${t.schemaPath}${(0,Hi.getProperty)(e)}${(0,Hi.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,ZM.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Co.getSubschema=XTe;function YTe(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:f}=e,d=a.let("data",(0,Hi._)`${e.data}${(0,Hi.getProperty)(r)}`,!0);c(d),t.errorPath=(0,Hi.str)`${l}${(0,ZM.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,Hi._)`${r}`,t.dataPathArr=[...u,t.parentDataProperty]}if(i!==void 0){let l=i instanceof Hi.Name?i:a.let("data",i,!0);c(l),o!==void 0&&(t.propertyName=o)}s&&(t.dataTypes=s);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}Co.extendSubschemaData=YTe;function JTe(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),s!==void 0&&(t.allErrors=s),t.jtdDiscriminator=e,t.jtdMetadata=r}Co.extendSubschemaMode=JTe});var rB=_((_He,tB)=>{"use strict";var Oo=tB.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};my(e,n,i,t,"",t)};Oo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Oo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Oo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Oo.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 my(t,e,r,n,i,s,o,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,s,o,a,c,l);for(var u in n){var f=n[u];if(Array.isArray(f)){if(u in Oo.arrayKeywords)for(var d=0;d{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.getSchemaRefs=yn.resolveUrl=yn.normalizeId=yn._getFullPath=yn.getFullPath=yn.inlineRef=void 0;var ZTe=ct(),e$e=On(),t$e=rB(),r$e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n$e(t,e=!0){return typeof t=="boolean"?!0:e===!0?!iT(t):e?nB(t)<=e:!1}yn.inlineRef=n$e;var i$e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function iT(t){for(let e in t){if(i$e.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(iT)||typeof r=="object"&&iT(r))return!0}return!1}function nB(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!r$e.has(r)&&(typeof t[r]=="object"&&(0,ZTe.eachItem)(t[r],n=>e+=nB(n)),e===1/0))return 1/0}return e}function iB(t,e="",r){r!==!1&&(e=qu(e));let n=t.parse(e);return sB(t,n)}yn.getFullPath=iB;function sB(t,e){return t.serialize(e).split("#")[0]+"#"}yn._getFullPath=sB;var s$e=/#\/?$/;function qu(t){return t?t.replace(s$e,""):""}yn.normalizeId=qu;function o$e(t,e,r){return r=qu(r),t.resolve(e,r)}yn.resolveUrl=o$e;var a$e=/^[a-z_][-a-z0-9._]*$/i;function c$e(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=qu(t[r]||e),s={"":i},o=iB(n,i,!1),a={},c=new Set;return t$e(t,{allKeys:!0},(f,d,h,p)=>{if(p===void 0)return;let m=o+d,g=s[p];typeof f[r]=="string"&&(g=y.call(this,f[r])),b.call(this,f.$anchor),b.call(this,f.$dynamicAnchor),s[d]=g;function y(x){let v=this.opts.uriResolver.resolve;if(x=qu(g?v(g,x):x),c.has(x))throw u(x);c.add(x);let E=this.refs[x];return typeof E=="string"&&(E=this.refs[E]),typeof E=="object"?l(f,E.schema,x):x!==qu(m)&&(x[0]==="#"?(l(f,a[x],x),a[x]=f):this.refs[x]=m),x}function b(x){if(typeof x=="string"){if(!a$e.test(x))throw new Error(`invalid anchor "${x}"`);y.call(this,`#${x}`)}}}),a;function l(f,d,h){if(d!==void 0&&!e$e(f,d))throw u(h)}function u(f){return new Error(`reference "${f}" resolves to more than one schema`)}}yn.getSchemaRefs=c$e});var kd=_(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.getData=Io.KeywordCxt=Io.validateFunctionCode=void 0;var lB=MM(),oB=Cd(),oT=JA(),yy=Cd(),u$e=GM(),Nd=QM(),sT=eB(),ge=Ne(),Ee=Is(),l$e=Od(),Ns=ct(),Id=Pd();function f$e(t){if(pB(t)&&(hB(t),dB(t))){h$e(t);return}fB(t,()=>(0,lB.topBoolOrEmptySchema)(t))}Io.validateFunctionCode=f$e;function fB({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){i.code.es5?t.func(e,(0,ge._)`${Ee.default.data}, ${Ee.default.valCxt}`,n.$async,()=>{t.code((0,ge._)`"use strict"; ${aB(r,i)}`),p$e(t,i),t.code(s)}):t.func(e,(0,ge._)`${Ee.default.data}, ${d$e(i)}`,n.$async,()=>t.code(aB(r,i)).code(s))}function d$e(t){return(0,ge._)`{${Ee.default.instancePath}="", ${Ee.default.parentData}, ${Ee.default.parentDataProperty}, ${Ee.default.rootData}=${Ee.default.data}${t.dynamicRef?(0,ge._)`, ${Ee.default.dynamicAnchors}={}`:ge.nil}}={}`}function p$e(t,e){t.if(Ee.default.valCxt,()=>{t.var(Ee.default.instancePath,(0,ge._)`${Ee.default.valCxt}.${Ee.default.instancePath}`),t.var(Ee.default.parentData,(0,ge._)`${Ee.default.valCxt}.${Ee.default.parentData}`),t.var(Ee.default.parentDataProperty,(0,ge._)`${Ee.default.valCxt}.${Ee.default.parentDataProperty}`),t.var(Ee.default.rootData,(0,ge._)`${Ee.default.valCxt}.${Ee.default.rootData}`),e.dynamicRef&&t.var(Ee.default.dynamicAnchors,(0,ge._)`${Ee.default.valCxt}.${Ee.default.dynamicAnchors}`)},()=>{t.var(Ee.default.instancePath,(0,ge._)`""`),t.var(Ee.default.parentData,(0,ge._)`undefined`),t.var(Ee.default.parentDataProperty,(0,ge._)`undefined`),t.var(Ee.default.rootData,Ee.default.data),e.dynamicRef&&t.var(Ee.default.dynamicAnchors,(0,ge._)`{}`)})}function h$e(t){let{schema:e,opts:r,gen:n}=t;fB(t,()=>{r.$comment&&e.$comment&&yB(t),x$e(t),n.let(Ee.default.vErrors,null),n.let(Ee.default.errors,0),r.unevaluated&&m$e(t),mB(t),E$e(t)})}function m$e(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,ge._)`${r}.evaluated`),e.if((0,ge._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,ge._)`${t.evaluated}.props`,(0,ge._)`undefined`)),e.if((0,ge._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,ge._)`${t.evaluated}.items`,(0,ge._)`undefined`))}function aB(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,ge._)`/*# sourceURL=${r} */`:ge.nil}function y$e(t,e){if(pB(t)&&(hB(t),dB(t))){g$e(t,e);return}(0,lB.boolOrEmptySchema)(t,e)}function dB({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function pB(t){return typeof t.schema!="boolean"}function g$e(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&yB(t),_$e(t),b$e(t);let s=n.const("_errs",Ee.default.errors);mB(t,s),n.var(e,(0,ge._)`${s} === ${Ee.default.errors}`)}function hB(t){(0,Ns.checkUnknownRules)(t),v$e(t)}function mB(t,e){if(t.opts.jtd)return cB(t,[],!1,e);let r=(0,oB.getSchemaTypes)(t.schema),n=(0,oB.coerceAndCheckDataType)(t,r);cB(t,r,!n,e)}function v$e(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Ns.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function x$e(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ns.checkStrictMode)(t,"default is ignored in the schema root")}function _$e(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,l$e.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function b$e(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function yB({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let s=r.$comment;if(i.$comment===!0)t.code((0,ge._)`${Ee.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){let o=(0,ge.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,ge._)`${Ee.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function E$e(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=t;r.$async?e.if((0,ge._)`${Ee.default.errors} === 0`,()=>e.return(Ee.default.data),()=>e.throw((0,ge._)`new ${i}(${Ee.default.vErrors})`)):(e.assign((0,ge._)`${n}.errors`,Ee.default.vErrors),s.unevaluated&&w$e(t),e.return((0,ge._)`${Ee.default.errors} === 0`))}function w$e({gen:t,evaluated:e,props:r,items:n}){r instanceof ge.Name&&t.assign((0,ge._)`${e}.props`,r),n instanceof ge.Name&&t.assign((0,ge._)`${e}.items`,n)}function cB(t,e,r,n){let{gen:i,schema:s,data:o,allErrors:a,opts:c,self:l}=t,{RULES:u}=l;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,Ns.schemaHasRulesButRef)(s,u))){i.block(()=>vB(t,"$ref",u.all.$ref.definition));return}c.jtd||S$e(t,e),i.block(()=>{for(let d of u.rules)f(d);f(u.post)});function f(d){(0,oT.shouldUseGroup)(s,d)&&(d.type?(i.if((0,yy.checkDataType)(d.type,o,c.strictNumbers)),uB(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,yy.reportTypeError)(t)),i.endIf()):uB(t,d),a||i.if((0,ge._)`${Ee.default.errors} === ${n||0}`))}}function uB(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,u$e.assignDefaults)(t,e.type),r.block(()=>{for(let s of e.rules)(0,oT.shouldUseRule)(n,s)&&vB(t,s.keyword,s.definition,e.type)})}function S$e(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(A$e(t,e),t.opts.allowUnionTypes||T$e(t,e),$$e(t,t.dataTypes))}function A$e(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{gB(t.dataTypes,r)||aT(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),P$e(t,e)}}function T$e(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&aT(t,"use allowUnionTypes to allow union type keyword")}function $$e(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,oT.shouldUseRule)(t.schema,i)){let{type:s}=i.definition;s.length&&!s.some(o=>R$e(e,o))&&aT(t,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function R$e(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function gB(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function P$e(t,e){let r=[];for(let n of t.dataTypes)gB(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function aT(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Ns.checkStrictMode)(t,e,t.opts.strictTypes)}var gy=class{constructor(e,r,n){if((0,Nd.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ns.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",xB(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Nd.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=e.gen.const("_errs",Ee.default.errors))}result(e,r,n){this.failResult((0,ge.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,ge.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,ge._)`${r} !== undefined && (${(0,ge.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?Id.reportExtraError:Id.reportError)(this,this.def.error,r)}$dataError(){(0,Id.reportError)(this,this.def.$dataError||Id.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Id.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=ge.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=ge.nil,r=ge.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,ge.or)((0,ge._)`${i} === undefined`,r)),e!==ge.nil&&n.assign(e,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==ge.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,ge.or)(o(),a());function o(){if(n.length){if(!(r instanceof ge.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,ge._)`${(0,yy.checkDataTypes)(c,r,s.opts.strictNumbers,yy.DataType.Wrong)}`}return ge.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,ge._)`!${c}(${r})`}return ge.nil}}subschema(e,r){let n=(0,sT.getSubschema)(this.it,e);(0,sT.extendSubschemaData)(n,this.it,e),(0,sT.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return y$e(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Ns.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Ns.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,ge.Name)),!0}};Io.KeywordCxt=gy;function vB(t,e,r,n){let i=new gy(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Nd.funcKeywordCode)(i,r):"macro"in r?(0,Nd.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Nd.funcKeywordCode)(i,r)}var C$e=/^\/(?:[^~]|~0|~1)*$/,O$e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xB(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,s;if(t==="")return Ee.default.rootData;if(t[0]==="/"){if(!C$e.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,s=Ee.default.rootData}else{let l=O$e.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=r[e-u],!i)return s}let o=s,a=i.split("/");for(let l of a)l&&(s=(0,ge._)`${s}${(0,ge.getProperty)((0,Ns.unescapeJsonPointer)(l))}`,o=(0,ge._)`${o} && ${s}`);return o;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${e}`}}Io.getData=xB});var vy=_(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});var cT=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};uT.default=cT});var Dd=_(dT=>{"use strict";Object.defineProperty(dT,"__esModule",{value:!0});var lT=Od(),fT=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,lT.resolveUrl)(e,r,n),this.missingSchema=(0,lT.normalizeId)((0,lT.getFullPath)(e,this.missingRef))}};dT.default=fT});var _y=_(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.resolveSchema=zn.getCompilingSchema=zn.resolveRef=zn.compileSchema=zn.SchemaEnv=void 0;var hi=Ne(),I$e=vy(),Ya=Is(),mi=Od(),_B=ct(),N$e=kd(),ju=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,mi.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};zn.SchemaEnv=ju;function hT(t){let e=bB.call(this,t);if(e)return e;let r=(0,mi.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new hi.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s}),a;t.$async&&(a=o.scopeValue("Error",{ref:I$e.default,code:(0,hi._)`require("ajv/dist/runtime/validation_error").default`}));let c=o.scopeName("validate");t.validateName=c;let l={gen:o,allErrors:this.opts.allErrors,data:Ya.default.data,parentData:Ya.default.parentData,parentDataProperty:Ya.default.parentDataProperty,dataNames:[Ya.default.data],dataPathArr:[hi.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,hi.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:hi.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,hi._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(t),(0,N$e.validateFunctionCode)(l),o.optimize(this.opts.code.optimize);let f=o.toString();u=`${o.scopeRefs(Ya.default.scope)}return ${f}`,this.opts.code.process&&(u=this.opts.code.process(u,t));let h=new Function(`${Ya.default.self}`,`${Ya.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:f,scopeValues:o._values}),this.opts.unevaluated){let{props:p,items:m}=l;h.evaluated={props:p instanceof hi.Name?void 0:p,items:m instanceof hi.Name?void 0:m,dynamicProps:p instanceof hi.Name,dynamicItems:m instanceof hi.Name},h.source&&(h.source.evaluated=(0,hi.stringify)(h.evaluated))}return t.validate=h,t}catch(f){throw delete t.validate,delete t.validateName,u&&this.logger.error("Error compiling schema, function code:",u),f}finally{this._compilations.delete(t)}}zn.compileSchema=hT;function k$e(t,e,r){var n;r=(0,mi.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let s=q$e.call(this,t,r);if(s===void 0){let o=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new ju({schema:o,schemaId:a,root:t,baseId:e}))}if(s!==void 0)return t.refs[r]=D$e.call(this,s)}zn.resolveRef=k$e;function D$e(t){return(0,mi.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:hT.call(this,t)}function bB(t){for(let e of this._compilations)if(L$e(e,t))return e}zn.getCompilingSchema=bB;function L$e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function q$e(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||xy.call(this,t,e)}function xy(t,e){let r=this.opts.uriResolver.parse(e),n=(0,mi._getFullPath)(this.opts.uriResolver,r),i=(0,mi.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return pT.call(this,r,t);let s=(0,mi.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){let a=xy.call(this,t,o);return typeof a?.schema!="object"?void 0:pT.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||hT.call(this,o),s===(0,mi.normalizeId)(e)){let{schema:a}=o,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,mi.resolveUrl)(this.opts.uriResolver,i,l)),new ju({schema:a,schemaId:c,root:t,baseId:i})}return pT.call(this,r,o)}}zn.resolveSchema=xy;var j$e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function pT(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,_B.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!j$e.has(a)&&l&&(e=(0,mi.resolveUrl)(this.opts.uriResolver,e,l))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,_B.schemaHasRulesButRef)(r,this.RULES)){let a=(0,mi.resolveUrl)(this.opts.uriResolver,e,r.$ref);s=xy.call(this,n,a)}let{schemaId:o}=this.opts;if(s=s||new ju({schema:r,schemaId:o,root:n,baseId:e}),s.schema!==s.root.schema)return s}});var EB=_((THe,F$e)=>{F$e.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 yT=_(($He,TB)=>{"use strict";var M$e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),SB=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 mT(t){let e="",r=0,n=0;for(n=0;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var B$e=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function wB(t){return t.length=0,!0}function U$e(t,e,r){if(t.length){let n=mT(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function z$e(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],s=!1,o=!1,a=U$e;for(let c=0;c7){r.error=!0;break}c>0&&t[c-1]===":"&&(s=!0),n.push(":");continue}else if(l==="%"){if(!a(i,n,r))break;a=wB}else{i.push(l);continue}}return i.length&&(a===wB?r.zone=i.join(""):o?n.push(i.join("")):n.push(mT(i))),r.address=n.join(""),r}function AB(t){if(H$e(t,":")<2)return{host:t,isIPV6:!1};let e=z$e(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function H$e(t,e){let r=0;for(let n=0;n{"use strict";var{isUUID:K$e}=yT(),X$e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Y$e=["http","https","ws","wss","urn","urn:uuid"];function J$e(t){return Y$e.indexOf(t)!==-1}function gT(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function $B(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function RB(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function Q$e(t){return t.secure=gT(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function Z$e(t){if((t.port===(gT(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function eRe(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(X$e);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,s=vT(i);t.path=void 0,s&&(t=s.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function tRe(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,s=vT(i);s&&(t=s.serialize(t,e));let o=t,a=t.nss;return o.path=`${n||e.nid}:${a}`,e.skipEscape=!0,o}function rRe(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!K$e(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function nRe(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var PB={scheme:"http",domainHost:!0,parse:$B,serialize:RB},iRe={scheme:"https",domainHost:PB.domainHost,parse:$B,serialize:RB},by={scheme:"ws",domainHost:!0,parse:Q$e,serialize:Z$e},sRe={scheme:"wss",domainHost:by.domainHost,parse:by.parse,serialize:by.serialize},oRe={scheme:"urn",parse:eRe,serialize:tRe,skipNormalize:!0},aRe={scheme:"urn:uuid",parse:rRe,serialize:nRe,skipNormalize:!0},Ey={http:PB,https:iRe,ws:by,wss:sRe,urn:oRe,"urn:uuid":aRe};Object.setPrototypeOf(Ey,null);function vT(t){return t&&(Ey[t]||Ey[t.toLowerCase()])||void 0}CB.exports={wsIsSecure:gT,SCHEMES:Ey,isValidSchemeName:J$e,getSchemeHandler:vT}});var kB=_((PHe,Sy)=>{"use strict";var{normalizeIPv6:cRe,removeDotSegments:Ld,recomposeAuthority:uRe,normalizeComponentEncoding:wy,isIPv4:lRe,nonSimpleDomain:fRe}=yT(),{SCHEMES:dRe,getSchemeHandler:IB}=OB();function pRe(t,e){return typeof t=="string"?t=Vi(ks(t,e),e):typeof t=="object"&&(t=ks(Vi(t,e),e)),t}function hRe(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=NB(ks(t,n),ks(e,n),n,!0);return n.skipEscape=!0,Vi(i,n)}function NB(t,e,r,n){let i={};return n||(t=ks(Vi(t,r),r),e=ks(Vi(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Ld(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Ld(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=Ld(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=Ld(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function mRe(t,e,r){return typeof t=="string"?(t=unescape(t),t=Vi(wy(ks(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=Vi(wy(t,!0),{...r,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=Vi(wy(ks(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=Vi(wy(e,!0),{...r,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function Vi(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],s=IB(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 o=uRe(r);if(o!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(o),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!s||!s.absolutePath)&&(a=Ld(a)),o===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var yRe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function ks(t,e){let r=Object.assign({},e),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?t=r.scheme+":"+t:t="//"+t);let s=t.match(yRe);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(lRe(n.host)===!1){let c=cRe(n.host);n.host=c.host.toLowerCase(),i=c.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 o=IB(r.scheme||n.scheme);if(!r.unicodeSupport&&(!o||!o.unicodeSupport)&&n.host&&(r.domainHost||o&&o.domainHost)&&i===!1&&fRe(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(a){n.error=n.error||"Host's domain name can not be converted to ASCII: "+a}(!o||o&&!o.skipNormalize)&&(t.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)))),o&&o.parse&&o.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var xT={SCHEMES:dRe,normalize:pRe,resolve:hRe,resolveComponent:NB,equal:mRe,serialize:Vi,parse:ks};Sy.exports=xT;Sy.exports.default=xT;Sy.exports.fastUri=xT});var LB=_(_T=>{"use strict";Object.defineProperty(_T,"__esModule",{value:!0});var DB=kB();DB.code='require("ajv/dist/runtime/uri").default';_T.default=DB});var HB=_(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.CodeGen=br.Name=br.nil=br.stringify=br.str=br._=br.KeywordCxt=void 0;var gRe=kd();Object.defineProperty(br,"KeywordCxt",{enumerable:!0,get:function(){return gRe.KeywordCxt}});var Fu=Ne();Object.defineProperty(br,"_",{enumerable:!0,get:function(){return Fu._}});Object.defineProperty(br,"str",{enumerable:!0,get:function(){return Fu.str}});Object.defineProperty(br,"stringify",{enumerable:!0,get:function(){return Fu.stringify}});Object.defineProperty(br,"nil",{enumerable:!0,get:function(){return Fu.nil}});Object.defineProperty(br,"Name",{enumerable:!0,get:function(){return Fu.Name}});Object.defineProperty(br,"CodeGen",{enumerable:!0,get:function(){return Fu.CodeGen}});var vRe=vy(),BB=Dd(),xRe=YA(),qd=_y(),_Re=Ne(),jd=Od(),Ay=Cd(),ET=ct(),qB=EB(),bRe=LB(),UB=(t,e)=>new RegExp(t,e);UB.code="new RegExp";var ERe=["removeAdditional","useDefaults","coerceTypes"],wRe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),SRe={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."},ARe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},jB=200;function TRe(t){var e,r,n,i,s,o,a,c,l,u,f,d,h,p,m,g,y,b,x,v,E,S,w,A,T;let $=t.strict,k=(e=t.code)===null||e===void 0?void 0:e.optimize,C=k===!0||k===void 0?1:k||0,I=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:UB,D=(i=t.uriResolver)!==null&&i!==void 0?i:bRe.default;return{strictSchema:(o=(s=t.strictSchema)!==null&&s!==void 0?s:$)!==null&&o!==void 0?o:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:$)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=t.strictTypes)!==null&&l!==void 0?l:$)!==null&&u!==void 0?u:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:$)!==null&&d!==void 0?d:"log",strictRequired:(p=(h=t.strictRequired)!==null&&h!==void 0?h:$)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:C,regExp:I}:{optimize:C,regExp:I},loopRequired:(m=t.loopRequired)!==null&&m!==void 0?m:jB,loopEnum:(g=t.loopEnum)!==null&&g!==void 0?g:jB,meta:(y=t.meta)!==null&&y!==void 0?y:!0,messages:(b=t.messages)!==null&&b!==void 0?b:!0,inlineRefs:(x=t.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(v=t.schemaId)!==null&&v!==void 0?v:"$id",addUsedSchema:(E=t.addUsedSchema)!==null&&E!==void 0?E:!0,validateSchema:(S=t.validateSchema)!==null&&S!==void 0?S:!0,validateFormats:(w=t.validateFormats)!==null&&w!==void 0?w:!0,unicodeRegExp:(A=t.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(T=t.int32range)!==null&&T!==void 0?T:!0,uriResolver:D}}var Fd=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...TRe(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new _Re.ValueScope({scope:{},prefixes:wRe,es5:r,lines:n}),this.logger=IRe(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,xRe.getRules)(),FB.call(this,SRe,e,"NOT SUPPORTED"),FB.call(this,ARe,e,"DEPRECATED","warn"),this._metaOpts=CRe.call(this),e.formats&&RRe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&PRe.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),$Re.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=qB;n==="id"&&(i={...qB},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,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,e,r);async function i(u,f){await s.call(this,u.$schema);let d=this._addSchema(u,f);return d.validate||o.call(this,d)}async function s(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function o(u){try{return this._compileSchemaEnv(u)}catch(f){if(!(f instanceof BB.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),o.call(this,u)}}function a({missingSchema:u,missingRef:f}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${f} cannot be resolved`)}async function c(u){let f=await l.call(this,u);this.refs[u]||await s.call(this,f.$schema),this.refs[u]||this.addSchema(f,u,r)}async function l(u){let f=this._loading[u];if(f)return f;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let o of e)this.addSchema(o,void 0,n,i);return this}let s;if(typeof e=="object"){let{schemaId:o}=this.opts;if(s=e[o],s!==void 0&&typeof s!="string")throw new Error(`schema ${o} must be string`)}return r=(0,jd.normalizeId)(r||s),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$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,e);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(e){let r;for(;typeof(r=MB.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new qd.SchemaEnv({schema:{},schemaId:n});if(r=qd.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=MB.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,jd.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,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(kRe.call(this,n,r),!r)return(0,ET.eachItem)(n,s=>bT.call(this,s)),this;LRe.call(this,r);let i={...r,type:(0,Ay.getJSONTypes)(r.type),schemaType:(0,Ay.getJSONTypes)(r.schemaType)};return(0,ET.eachItem)(n,i.type.length===0?s=>bT.call(this,s,i):s=>i.type.forEach(o=>bT.call(this,s,i,o))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(s=>s.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,s)=>i+r+s)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let s=i.split("/").slice(1),o=e;for(let a of s)o=o[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=o[a];l&&u&&(o[a]=zB(u))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,s=this.opts.addUsedSchema){let o,{schemaId:a}=this.opts;if(typeof e=="object")o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,jd.normalizeId)(o||n);let l=jd.getSchemaRefs.call(this,e,n);return c=new qd.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),s&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):qd.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{qd.compileSchema.call(this,e)}finally{this.opts=r}}};Fd.ValidationError=vRe.default;Fd.MissingRefError=BB.default;br.default=Fd;function FB(t,e,r,n="error"){for(let i in t){let s=i;s in e&&this.logger[n](`${r}: option ${i}. ${t[s]}`)}}function MB(t){return t=(0,jd.normalizeId)(t),this.schemas[t]||this.refs[t]}function $Re(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function RRe(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function PRe(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function CRe(){let t={...this.opts};for(let e of ERe)delete t[e];return t}var ORe={log(){},warn(){},error(){}};function IRe(t){if(t===!1)return ORe;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var NRe=/^[a-z_$][a-z0-9_$:-]*$/i;function kRe(t,e){let{RULES:r}=this;if((0,ET.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!NRe.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function bT(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:s}=this,o=i?s.post:s.rules.find(({type:c})=>c===r);if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,Ay.getJSONTypes)(e.type),schemaType:(0,Ay.getJSONTypes)(e.schemaType)}};e.before?DRe.call(this,o,a,e.before):o.rules.push(a),s.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function DRe(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function LRe(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=zB(e)),t.validateSchema=this.compile(e,!0))}var qRe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function zB(t){return{anyOf:[t,qRe]}}});var VB=_(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});var jRe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};wT.default=jRe});var XB=_(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.callRef=Ja.getValidate=void 0;var FRe=Dd(),WB=Un(),gn=Ne(),Mu=Is(),GB=_y(),Ty=ct(),MRe={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:c}=n,{root:l}=s;if((r==="#"||r==="#/")&&i===l.baseId)return f();let u=GB.resolveRef.call(c,l,i,r);if(u===void 0)throw new FRe.default(n.opts.uriResolver,i,r);if(u instanceof GB.SchemaEnv)return d(u);return h(u);function f(){if(s===l)return $y(t,o,s,s.$async);let p=e.scopeValue("root",{ref:l});return $y(t,(0,gn._)`${p}.validate`,l,l.$async)}function d(p){let m=KB(t,p);$y(t,m,p,p.$async)}function h(p){let m=e.scopeValue("schema",a.code.source===!0?{ref:p,code:(0,gn.stringify)(p)}:{ref:p}),g=e.name("valid"),y=t.subschema({schema:p,dataTypes:[],schemaPath:gn.nil,topSchemaRef:m,errSchemaPath:r},g);t.mergeEvaluated(y),t.ok(g)}}};function KB(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,gn._)`${r.scopeValue("wrapper",{ref:e})}.validate`}Ja.getValidate=KB;function $y(t,e,r,n){let{gen:i,it:s}=t,{allErrors:o,schemaEnv:a,opts:c}=s,l=c.passContext?Mu.default.this:gn.nil;n?u():f();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let p=i.let("valid");i.try(()=>{i.code((0,gn._)`await ${(0,WB.callValidateCode)(t,e,l)}`),h(e),o||i.assign(p,!0)},m=>{i.if((0,gn._)`!(${m} instanceof ${s.ValidationError})`,()=>i.throw(m)),d(m),o||i.assign(p,!1)}),t.ok(p)}function f(){t.result((0,WB.callValidateCode)(t,e,l),()=>h(e),()=>d(e))}function d(p){let m=(0,gn._)`${p}.errors`;i.assign(Mu.default.vErrors,(0,gn._)`${Mu.default.vErrors} === null ? ${m} : ${Mu.default.vErrors}.concat(${m})`),i.assign(Mu.default.errors,(0,gn._)`${Mu.default.vErrors}.length`)}function h(p){var m;if(!s.opts.unevaluated)return;let g=(m=r?.validate)===null||m===void 0?void 0:m.evaluated;if(s.props!==!0)if(g&&!g.dynamicProps)g.props!==void 0&&(s.props=Ty.mergeEvaluated.props(i,g.props,s.props));else{let y=i.var("props",(0,gn._)`${p}.evaluated.props`);s.props=Ty.mergeEvaluated.props(i,y,s.props,gn.Name)}if(s.items!==!0)if(g&&!g.dynamicItems)g.items!==void 0&&(s.items=Ty.mergeEvaluated.items(i,g.items,s.items));else{let y=i.var("items",(0,gn._)`${p}.evaluated.items`);s.items=Ty.mergeEvaluated.items(i,y,s.items,gn.Name)}}}Ja.callRef=$y;Ja.default=MRe});var YB=_(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});var BRe=VB(),URe=XB(),zRe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",BRe.default,URe.default];ST.default=zRe});var JB=_(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});var Ry=Ne(),No=Ry.operators,Py={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}},HRe={message:({keyword:t,schemaCode:e})=>(0,Ry.str)`must be ${Py[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,Ry._)`{comparison: ${Py[t].okStr}, limit: ${e}}`},VRe={keyword:Object.keys(Py),type:"number",schemaType:"number",$data:!0,error:HRe,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,Ry._)`${r} ${Py[e].fail} ${n} || isNaN(${r})`)}};AT.default=VRe});var QB=_(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0});var Md=Ne(),WRe={message:({schemaCode:t})=>(0,Md.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,Md._)`{multipleOf: ${t}}`},GRe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:WRe,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,s=i.opts.multipleOfPrecision,o=e.let("res"),a=s?(0,Md._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,Md._)`${o} !== parseInt(${o})`;t.fail$data((0,Md._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};TT.default=GRe});var e9=_($T=>{"use strict";Object.defineProperty($T,"__esModule",{value:!0});function ZB(t){let e=t.length,r=0,n=0,i;for(;n=55296&&i<=56319&&n{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});var Qa=Ne(),KRe=ct(),XRe=e9(),YRe={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,Qa.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,Qa._)`{limit: ${t}}`},JRe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:YRe,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,s=e==="maxLength"?Qa.operators.GT:Qa.operators.LT,o=i.opts.unicode===!1?(0,Qa._)`${r}.length`:(0,Qa._)`${(0,KRe.useFunc)(t.gen,XRe.default)}(${r})`;t.fail$data((0,Qa._)`${o} ${s} ${n}`)}};RT.default=JRe});var r9=_(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});var QRe=Un(),Cy=Ne(),ZRe={message:({schemaCode:t})=>(0,Cy.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Cy._)`{pattern: ${t}}`},ePe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ZRe,code(t){let{data:e,$data:r,schema:n,schemaCode:i,it:s}=t,o=s.opts.unicodeRegExp?"u":"",a=r?(0,Cy._)`(new RegExp(${i}, ${o}))`:(0,QRe.usePattern)(t,n);t.fail$data((0,Cy._)`!${a}.test(${e})`)}};PT.default=ePe});var n9=_(CT=>{"use strict";Object.defineProperty(CT,"__esModule",{value:!0});var Bd=Ne(),tPe={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,Bd.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,Bd._)`{limit: ${t}}`},rPe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:tPe,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?Bd.operators.GT:Bd.operators.LT;t.fail$data((0,Bd._)`Object.keys(${r}).length ${i} ${n}`)}};CT.default=rPe});var i9=_(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0});var Ud=Un(),zd=Ne(),nPe=ct(),iPe={message:({params:{missingProperty:t}})=>(0,zd.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,zd._)`{missingProperty: ${t}}`},sPe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:iPe,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:s,it:o}=t,{opts:a}=o;if(!s&&r.length===0)return;let c=r.length>=a.loopRequired;if(o.allErrors?l():u(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:p}=t.it;for(let m of r)if(h?.[m]===void 0&&!p.has(m)){let g=o.schemaEnv.baseId+o.errSchemaPath,y=`required property "${m}" is not defined at "${g}" (strictRequired)`;(0,nPe.checkStrictMode)(o,y,o.opts.strictRequired)}}function l(){if(c||s)t.block$data(zd.nil,f);else for(let h of r)(0,Ud.checkReportMissingProp)(t,h)}function u(){let h=e.let("missing");if(c||s){let p=e.let("valid",!0);t.block$data(p,()=>d(h,p)),t.ok(p)}else e.if((0,Ud.checkMissingProp)(t,r,h)),(0,Ud.reportMissingProp)(t,h),e.else()}function f(){e.forOf("prop",n,h=>{t.setParams({missingProperty:h}),e.if((0,Ud.noPropertyInData)(e,i,h,a.ownProperties),()=>t.error())})}function d(h,p){t.setParams({missingProperty:h}),e.forOf(h,n,()=>{e.assign(p,(0,Ud.propertyInData)(e,i,h,a.ownProperties)),e.if((0,zd.not)(p),()=>{t.error(),e.break()})},zd.nil)}}};OT.default=sPe});var s9=_(IT=>{"use strict";Object.defineProperty(IT,"__esModule",{value:!0});var Hd=Ne(),oPe={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,Hd.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,Hd._)`{limit: ${t}}`},aPe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:oPe,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?Hd.operators.GT:Hd.operators.LT;t.fail$data((0,Hd._)`${r}.length ${i} ${n}`)}};IT.default=aPe});var Oy=_(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0});var o9=On();o9.code='require("ajv/dist/runtime/equal").default';NT.default=o9});var a9=_(DT=>{"use strict";Object.defineProperty(DT,"__esModule",{value:!0});var kT=Cd(),Er=Ne(),cPe=ct(),uPe=Oy(),lPe={message:({params:{i:t,j:e}})=>(0,Er.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Er._)`{i: ${t}, j: ${e}}`},fPe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lPe,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),l=s.items?(0,kT.getSchemaTypes)(s.items):[];t.block$data(c,u,(0,Er._)`${o} === false`),t.ok(c);function u(){let p=e.let("i",(0,Er._)`${r}.length`),m=e.let("j");t.setParams({i:p,j:m}),e.assign(c,!0),e.if((0,Er._)`${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 g=e.name("item"),y=(0,kT.checkDataTypes)(l,g,a.opts.strictNumbers,kT.DataType.Wrong),b=e.const("indices",(0,Er._)`{}`);e.for((0,Er._)`;${p}--;`,()=>{e.let(g,(0,Er._)`${r}[${p}]`),e.if(y,(0,Er._)`continue`),l.length>1&&e.if((0,Er._)`typeof ${g} == "string"`,(0,Er._)`${g} += "_"`),e.if((0,Er._)`typeof ${b}[${g}] == "number"`,()=>{e.assign(m,(0,Er._)`${b}[${g}]`),t.error(),e.assign(c,!1).break()}).code((0,Er._)`${b}[${g}] = ${p}`)})}function h(p,m){let g=(0,cPe.useFunc)(e,uPe.default),y=e.name("outer");e.label(y).for((0,Er._)`;${p}--;`,()=>e.for((0,Er._)`${m} = ${p}; ${m}--;`,()=>e.if((0,Er._)`${g}(${r}[${p}], ${r}[${m}])`,()=>{t.error(),e.assign(c,!1).break(y)})))}}};DT.default=fPe});var c9=_(qT=>{"use strict";Object.defineProperty(qT,"__esModule",{value:!0});var LT=Ne(),dPe=ct(),pPe=Oy(),hPe={message:"must be equal to constant",params:({schemaCode:t})=>(0,LT._)`{allowedValue: ${t}}`},mPe={keyword:"const",$data:!0,error:hPe,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:s}=t;n||s&&typeof s=="object"?t.fail$data((0,LT._)`!${(0,dPe.useFunc)(e,pPe.default)}(${r}, ${i})`):t.fail((0,LT._)`${s} !== ${r}`)}};qT.default=mPe});var u9=_(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});var Vd=Ne(),yPe=ct(),gPe=Oy(),vPe={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,Vd._)`{allowedValues: ${t}}`},xPe={keyword:"enum",schemaType:"array",$data:!0,error:vPe,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:s,it:o}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=o.opts.loopEnum,c,l=()=>c??(c=(0,yPe.useFunc)(e,gPe.default)),u;if(a||n)u=e.let("valid"),t.block$data(u,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=e.const("vSchema",s);u=(0,Vd.or)(...i.map((p,m)=>d(h,m)))}t.pass(u);function f(){e.assign(u,!1),e.forOf("v",s,h=>e.if((0,Vd._)`${l()}(${r}, ${h})`,()=>e.assign(u,!0).break()))}function d(h,p){let m=i[p];return typeof m=="object"&&m!==null?(0,Vd._)`${l()}(${r}, ${h}[${p}])`:(0,Vd._)`${r} === ${m}`}}};jT.default=xPe});var l9=_(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});var _Pe=JB(),bPe=QB(),EPe=t9(),wPe=r9(),SPe=n9(),APe=i9(),TPe=s9(),$Pe=a9(),RPe=c9(),PPe=u9(),CPe=[_Pe.default,bPe.default,EPe.default,wPe.default,SPe.default,APe.default,TPe.default,$Pe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},RPe.default,PPe.default];FT.default=CPe});var BT=_(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.validateAdditionalItems=void 0;var Za=Ne(),MT=ct(),OPe={message:({params:{len:t}})=>(0,Za.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,Za._)`{limit: ${t}}`},IPe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:OPe,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,MT.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}f9(t,n)}};function f9(t,e){let{gen:r,schema:n,data:i,keyword:s,it:o}=t;o.items=!0;let a=r.const("len",(0,Za._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,Za._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,MT.alwaysValidSchema)(o,n)){let l=r.var("valid",(0,Za._)`${a} <= ${e.length}`);r.if((0,Za.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,u=>{t.subschema({keyword:s,dataProp:u,dataPropType:MT.Type.Num},l),o.allErrors||r.if((0,Za.not)(l),()=>r.break())})}}Wd.validateAdditionalItems=f9;Wd.default=IPe});var UT=_(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.validateTuple=void 0;var d9=Ne(),Iy=ct(),NPe=Un(),kPe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return p9(t,"additionalItems",e);r.items=!0,!(0,Iy.alwaysValidSchema)(r,e)&&t.ok((0,NPe.validateArray)(t))}};function p9(t,e,r=t.schema){let{gen:n,parentSchema:i,data:s,keyword:o,it:a}=t;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Iy.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,d9._)`${s}.length`);r.forEach((f,d)=>{(0,Iy.alwaysValidSchema)(a,f)||(n.if((0,d9._)`${l} > ${d}`,()=>t.subschema({keyword:o,schemaProp:d,dataProp:d},c)),t.ok(c))});function u(f){let{opts:d,errSchemaPath:h}=a,p=r.length,m=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(d.strictTuples&&!m){let g=`"${o}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,Iy.checkStrictMode)(a,g,d.strictTuples)}}}Gd.validateTuple=p9;Gd.default=kPe});var h9=_(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});var DPe=UT(),LPe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,DPe.validateTuple)(t,"items")};zT.default=LPe});var y9=_(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});var m9=Ne(),qPe=ct(),jPe=Un(),FPe=BT(),MPe={message:({params:{len:t}})=>(0,m9.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,m9._)`{limit: ${t}}`},BPe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:MPe,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,qPe.alwaysValidSchema)(n,e)&&(i?(0,FPe.validateAdditionalItems)(t,i):t.ok((0,jPe.validateArray)(t)))}};HT.default=BPe});var g9=_(VT=>{"use strict";Object.defineProperty(VT,"__esModule",{value:!0});var Hn=Ne(),Ny=ct(),UPe={message:({params:{min:t,max:e}})=>e===void 0?(0,Hn.str)`must contain at least ${t} valid item(s)`:(0,Hn.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,Hn._)`{minContains: ${t}}`:(0,Hn._)`{minContains: ${t}, maxContains: ${e}}`},zPe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:UPe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t,o,a,{minContains:c,maxContains:l}=n;s.opts.next?(o=c===void 0?1:c,a=l):o=1;let u=e.const("len",(0,Hn._)`${i}.length`);if(t.setParams({min:o,max:a}),a===void 0&&o===0){(0,Ny.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Ny.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ny.alwaysValidSchema)(s,r)){let m=(0,Hn._)`${u} >= ${o}`;a!==void 0&&(m=(0,Hn._)`${m} && ${u} <= ${a}`),t.pass(m);return}s.items=!0;let f=e.name("valid");a===void 0&&o===1?h(f,()=>e.if(f,()=>e.break())):o===0?(e.let(f,!0),a!==void 0&&e.if((0,Hn._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let m=e.name("_valid"),g=e.let("count",0);h(m,()=>e.if(m,()=>p(g)))}function h(m,g){e.forRange("i",0,u,y=>{t.subschema({keyword:"contains",dataProp:y,dataPropType:Ny.Type.Num,compositeRule:!0},m),g()})}function p(m){e.code((0,Hn._)`${m}++`),a===void 0?e.if((0,Hn._)`${m} >= ${o}`,()=>e.assign(f,!0).break()):(e.if((0,Hn._)`${m} > ${a}`,()=>e.assign(f,!1).break()),o===1?e.assign(f,!0):e.if((0,Hn._)`${m} >= ${o}`,()=>e.assign(f,!0)))}}};VT.default=zPe});var _9=_(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.validateSchemaDeps=Wi.validatePropertyDeps=Wi.error=void 0;var WT=Ne(),HPe=ct(),Kd=Un();Wi.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,WT.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,WT._)`{property: ${t}, - missingProperty: ${n}, - depsCount: ${e}, - deps: ${r}}`};var VPe={keyword:"dependencies",type:"object",schemaType:"object",error:Wi.error,code(t){let[e,r]=WPe(t);v9(t,e),x9(t,r)}};function WPe({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function v9(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let s=r.let("missing");for(let o in e){let a=e[o];if(a.length===0)continue;let c=(0,Kd.propertyInData)(r,n,o,i.opts.ownProperties);t.setParams({property:o,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Kd.checkReportMissingProp)(t,l)}):(r.if((0,WT._)`${c} && (${(0,Kd.checkMissingProp)(t,a,s)})`),(0,Kd.reportMissingProp)(t,s),r.else())}}Wi.validatePropertyDeps=v9;function x9(t,e=t.schema){let{gen:r,data:n,keyword:i,it:s}=t,o=r.name("valid");for(let a in e)(0,HPe.alwaysValidSchema)(s,e[a])||(r.if((0,Kd.propertyInData)(r,n,a,s.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},o);t.mergeValidEvaluated(c,o)},()=>r.var(o,!0)),t.ok(o))}Wi.validateSchemaDeps=x9;Wi.default=VPe});var E9=_(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});var b9=Ne(),GPe=ct(),KPe={message:"property name must be valid",params:({params:t})=>(0,b9._)`{propertyName: ${t.propertyName}}`},XPe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:KPe,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,GPe.alwaysValidSchema)(i,r))return;let s=e.name("valid");e.forIn("key",n,o=>{t.setParams({propertyName:o}),t.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),e.if((0,b9.not)(s),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(s)}};GT.default=XPe});var XT=_(KT=>{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});var ky=Un(),yi=Ne(),YPe=Is(),Dy=ct(),JPe={message:"must NOT have additional properties",params:({params:t})=>(0,yi._)`{additionalProperty: ${t.additionalProperty}}`},QPe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:JPe,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=t;if(!s)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,Dy.alwaysValidSchema)(o,r))return;let l=(0,ky.allSchemaProperties)(n.properties),u=(0,ky.allSchemaProperties)(n.patternProperties);f(),t.ok((0,yi._)`${s} === ${YPe.default.errors}`);function f(){e.forIn("key",i,g=>{!l.length&&!u.length?p(g):e.if(d(g),()=>p(g))})}function d(g){let y;if(l.length>8){let b=(0,Dy.schemaRefOrVal)(o,n.properties,"properties");y=(0,ky.isOwnProperty)(e,b,g)}else l.length?y=(0,yi.or)(...l.map(b=>(0,yi._)`${g} === ${b}`)):y=yi.nil;return u.length&&(y=(0,yi.or)(y,...u.map(b=>(0,yi._)`${(0,ky.usePattern)(t,b)}.test(${g})`))),(0,yi.not)(y)}function h(g){e.code((0,yi._)`delete ${i}[${g}]`)}function p(g){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(g);return}if(r===!1){t.setParams({additionalProperty:g}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Dy.alwaysValidSchema)(o,r)){let y=e.name("valid");c.removeAdditional==="failing"?(m(g,y,!1),e.if((0,yi.not)(y),()=>{t.reset(),h(g)})):(m(g,y),a||e.if((0,yi.not)(y),()=>e.break()))}}function m(g,y,b){let x={keyword:"additionalProperties",dataProp:g,dataPropType:Dy.Type.Str};b===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(x,y)}}};KT.default=QPe});var A9=_(JT=>{"use strict";Object.defineProperty(JT,"__esModule",{value:!0});var ZPe=kd(),w9=Un(),YT=ct(),S9=XT(),eCe={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:s}=t;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&S9.default.code(new ZPe.KeywordCxt(s,S9.default,"additionalProperties"));let o=(0,w9.allSchemaProperties)(r);for(let f of o)s.definedProperties.add(f);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=YT.mergeEvaluated.props(e,(0,YT.toHash)(o),s.props));let a=o.filter(f=>!(0,YT.alwaysValidSchema)(s,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?u(f):(e.if((0,w9.propertyInData)(e,i,f,s.opts.ownProperties)),u(f),s.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return s.opts.useDefaults&&!s.compositeRule&&r[f].default!==void 0}function u(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};JT.default=eCe});var P9=_(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});var T9=Un(),Ly=Ne(),$9=ct(),R9=ct(),tCe={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:s}=t,{opts:o}=s,a=(0,T9.allSchemaProperties)(r),c=a.filter(m=>(0,$9.alwaysValidSchema)(s,r[m]));if(a.length===0||c.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;let l=o.strictSchema&&!o.allowMatchingProperties&&i.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Ly.Name)&&(s.props=(0,R9.evaluatedPropsToName)(e,s.props));let{props:f}=s;d();function d(){for(let m of a)l&&h(m),s.allErrors?p(m):(e.var(u,!0),p(m),e.if(u))}function h(m){for(let g in l)new RegExp(m).test(g)&&(0,$9.checkStrictMode)(s,`property ${g} matches pattern ${m} (use allowMatchingProperties)`)}function p(m){e.forIn("key",n,g=>{e.if((0,Ly._)`${(0,T9.usePattern)(t,m)}.test(${g})`,()=>{let y=c.includes(m);y||t.subschema({keyword:"patternProperties",schemaProp:m,dataProp:g,dataPropType:R9.Type.Str},u),s.opts.unevaluated&&f!==!0?e.assign((0,Ly._)`${f}[${g}]`,!0):!y&&!s.allErrors&&e.if((0,Ly.not)(u),()=>e.break())})})}}};QT.default=tCe});var C9=_(ZT=>{"use strict";Object.defineProperty(ZT,"__esModule",{value:!0});var rCe=ct(),nCe={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,rCe.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};ZT.default=nCe});var O9=_(e$=>{"use strict";Object.defineProperty(e$,"__esModule",{value:!0});var iCe=Un(),sCe={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:iCe.validateUnion,error:{message:"must match a schema in anyOf"}};e$.default=sCe});var I9=_(t$=>{"use strict";Object.defineProperty(t$,"__esModule",{value:!0});var qy=Ne(),oCe=ct(),aCe={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,qy._)`{passingSchemas: ${t.passing}}`},cCe={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:aCe,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let s=r,o=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(o,()=>t.reset(),()=>t.error(!0));function l(){s.forEach((u,f)=>{let d;(0,oCe.alwaysValidSchema)(i,u)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,qy._)`${c} && ${o}`).assign(o,!1).assign(a,(0,qy._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(o,!0),e.assign(a,f),d&&t.mergeEvaluated(d,qy.Name)})})}}};t$.default=cCe});var N9=_(r$=>{"use strict";Object.defineProperty(r$,"__esModule",{value:!0});var uCe=ct(),lCe={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((s,o)=>{if((0,uCe.alwaysValidSchema)(n,s))return;let a=t.subschema({keyword:"allOf",schemaProp:o},i);t.ok(i),t.mergeEvaluated(a)})}};r$.default=lCe});var L9=_(n$=>{"use strict";Object.defineProperty(n$,"__esModule",{value:!0});var jy=Ne(),D9=ct(),fCe={message:({params:t})=>(0,jy.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,jy._)`{failingKeyword: ${t.ifClause}}`},dCe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fCe,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,D9.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=k9(n,"then"),s=k9(n,"else");if(!i&&!s)return;let o=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&s){let u=e.let("ifClause");t.setParams({ifClause:u}),e.if(a,l("then",u),l("else",u))}else i?e.if(a,l("then")):e.if((0,jy.not)(a),l("else"));t.pass(o,()=>t.error(!0));function c(){let u=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(u)}function l(u,f){return()=>{let d=t.subschema({keyword:u},a);e.assign(o,a),t.mergeValidEvaluated(d,o),f?e.assign(f,(0,jy._)`${u}`):t.setParams({ifClause:u})}}}};function k9(t,e){let r=t.schema[e];return r!==void 0&&!(0,D9.alwaysValidSchema)(t,r)}n$.default=dCe});var q9=_(i$=>{"use strict";Object.defineProperty(i$,"__esModule",{value:!0});var pCe=ct(),hCe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,pCe.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};i$.default=hCe});var j9=_(s$=>{"use strict";Object.defineProperty(s$,"__esModule",{value:!0});var mCe=BT(),yCe=h9(),gCe=UT(),vCe=y9(),xCe=g9(),_Ce=_9(),bCe=E9(),ECe=XT(),wCe=A9(),SCe=P9(),ACe=C9(),TCe=O9(),$Ce=I9(),RCe=N9(),PCe=L9(),CCe=q9();function OCe(t=!1){let e=[ACe.default,TCe.default,$Ce.default,RCe.default,PCe.default,CCe.default,bCe.default,ECe.default,_Ce.default,wCe.default,SCe.default];return t?e.push(yCe.default,vCe.default):e.push(mCe.default,gCe.default),e.push(xCe.default),e}s$.default=OCe});var F9=_(o$=>{"use strict";Object.defineProperty(o$,"__esModule",{value:!0});var zt=Ne(),ICe={message:({schemaCode:t})=>(0,zt.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,zt._)`{format: ${t}}`},NCe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ICe,code(t,e){let{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:u,self:f}=a;if(!c.validateFormats)return;i?d():h();function d(){let p=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=r.const("fDef",(0,zt._)`${p}[${o}]`),g=r.let("fType"),y=r.let("format");r.if((0,zt._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(g,(0,zt._)`${m}.type || "string"`).assign(y,(0,zt._)`${m}.validate`),()=>r.assign(g,(0,zt._)`"string"`).assign(y,m)),t.fail$data((0,zt.or)(b(),x()));function b(){return c.strictSchema===!1?zt.nil:(0,zt._)`${o} && !${y}`}function x(){let v=u.$async?(0,zt._)`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,zt._)`${y}(${n})`,E=(0,zt._)`(typeof ${y} == "function" ? ${v} : ${y}.test(${n}))`;return(0,zt._)`${y} && ${y} !== true && ${g} === ${e} && !${E}`}}function h(){let p=f.formats[s];if(!p){b();return}if(p===!0)return;let[m,g,y]=x(p);m===e&&t.pass(v());function b(){if(c.strictSchema===!1){f.logger.warn(E());return}throw new Error(E());function E(){return`unknown format "${s}" ignored in schema at path "${l}"`}}function x(E){let S=E instanceof RegExp?(0,zt.regexpCode)(E):c.code.formats?(0,zt._)`${c.code.formats}${(0,zt.getProperty)(s)}`:void 0,w=r.scopeValue("formats",{key:s,ref:E,code:S});return typeof E=="object"&&!(E instanceof RegExp)?[E.type||"string",E.validate,(0,zt._)`${w}.validate`]:["string",E,w]}function v(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!u.$async)throw new Error("async format in sync schema");return(0,zt._)`await ${y}(${n})`}return typeof g=="function"?(0,zt._)`${y}(${n})`:(0,zt._)`${y}.test(${n})`}}}};o$.default=NCe});var M9=_(a$=>{"use strict";Object.defineProperty(a$,"__esModule",{value:!0});var kCe=F9(),DCe=[kCe.default];a$.default=DCe});var B9=_(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.contentVocabulary=Bu.metadataVocabulary=void 0;Bu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Bu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var z9=_(c$=>{"use strict";Object.defineProperty(c$,"__esModule",{value:!0});var LCe=YB(),qCe=l9(),jCe=j9(),FCe=M9(),U9=B9(),MCe=[LCe.default,qCe.default,(0,jCe.default)(),FCe.default,U9.metadataVocabulary,U9.contentVocabulary];c$.default=MCe});var V9=_(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.DiscrError=void 0;var H9;(function(t){t.Tag="tag",t.Mapping="mapping"})(H9||(Fy.DiscrError=H9={}))});var G9=_(l$=>{"use strict";Object.defineProperty(l$,"__esModule",{value:!0});var Uu=Ne(),u$=V9(),W9=_y(),BCe=Dd(),UCe=ct(),zCe={message:({params:{discrError:t,tagName:e}})=>t===u$.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,Uu._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},HCe={keyword:"discriminator",type:"object",schemaType:"object",error:zCe,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:s}=t,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,Uu._)`${r}${(0,Uu.getProperty)(a)}`);e.if((0,Uu._)`typeof ${l} == "string"`,()=>u(),()=>t.error(!1,{discrError:u$.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function u(){let h=d();e.if(!1);for(let p in h)e.elseIf((0,Uu._)`${l} === ${p}`),e.assign(c,f(h[p]));e.else(),t.error(!1,{discrError:u$.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(h){let p=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},p);return t.mergeEvaluated(m,Uu.Name),p}function d(){var h;let p={},m=y(i),g=!0;for(let v=0;v{VCe.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 Y9=_((Nt,f$)=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.MissingRefError=Nt.ValidationError=Nt.CodeGen=Nt.Name=Nt.nil=Nt.stringify=Nt.str=Nt._=Nt.KeywordCxt=Nt.Ajv=void 0;var WCe=HB(),GCe=z9(),KCe=G9(),X9=K9(),XCe=["/properties"],My="http://json-schema.org/draft-07/schema",zu=class extends WCe.default{_addVocabularies(){super._addVocabularies(),GCe.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(KCe.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(X9,XCe):X9;this.addMetaSchema(e,My,!1),this.refs["http://json-schema.org/schema"]=My}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(My)?My:void 0)}};Nt.Ajv=zu;f$.exports=Nt=zu;f$.exports.Ajv=zu;Object.defineProperty(Nt,"__esModule",{value:!0});Nt.default=zu;var YCe=kd();Object.defineProperty(Nt,"KeywordCxt",{enumerable:!0,get:function(){return YCe.KeywordCxt}});var Hu=Ne();Object.defineProperty(Nt,"_",{enumerable:!0,get:function(){return Hu._}});Object.defineProperty(Nt,"str",{enumerable:!0,get:function(){return Hu.str}});Object.defineProperty(Nt,"stringify",{enumerable:!0,get:function(){return Hu.stringify}});Object.defineProperty(Nt,"nil",{enumerable:!0,get:function(){return Hu.nil}});Object.defineProperty(Nt,"Name",{enumerable:!0,get:function(){return Hu.Name}});Object.defineProperty(Nt,"CodeGen",{enumerable:!0,get:function(){return Hu.CodeGen}});var JCe=vy();Object.defineProperty(Nt,"ValidationError",{enumerable:!0,get:function(){return JCe.default}});var QCe=Dd();Object.defineProperty(Nt,"MissingRefError",{enumerable:!0,get:function(){return QCe.default}})});var J9=_(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.formatLimitDefinition=void 0;var ZCe=Y9(),gi=Ne(),ko=gi.operators,By={formatMaximum:{okStr:"<=",ok:ko.LTE,fail:ko.GT},formatMinimum:{okStr:">=",ok:ko.GTE,fail:ko.LT},formatExclusiveMaximum:{okStr:"<",ok:ko.LT,fail:ko.GTE},formatExclusiveMinimum:{okStr:">",ok:ko.GT,fail:ko.LTE}},e2e={message:({keyword:t,schemaCode:e})=>gi.str`should be ${By[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>gi._`{comparison: ${By[t].okStr}, limit: ${e}}`};Vu.formatLimitDefinition={keyword:Object.keys(By),type:"string",schemaType:"string",$data:!0,error:e2e,code(t){let{gen:e,data:r,schemaCode:n,keyword:i,it:s}=t,{opts:o,self:a}=s;if(!o.validateFormats)return;let c=new ZCe.KeywordCxt(s,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let d=e.scopeValue("formats",{ref:a.formats,code:o.code.formats}),h=e.const("fmt",gi._`${d}[${c.schemaCode}]`);t.fail$data(gi.or(gi._`typeof ${h} != "object"`,gi._`${h} instanceof RegExp`,gi._`typeof ${h}.compare != "function"`,f(h)))}function u(){let d=c.schema,h=a.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=e.scopeValue("formats",{key:d,ref:h,code:o.code.formats?gi._`${o.code.formats}${gi.getProperty(d)}`:void 0});t.fail$data(f(p))}function f(d){return gi._`${d}.compare(${r}, ${n}) ${By[i].fail} 0`}},dependencies:["format"]};var t2e=t=>(t.addKeyword(Vu.formatLimitDefinition),t);Vu.default=t2e});var tU=_((Xd,eU)=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var Wu=SM(),r2e=J9(),d$=Ne(),Q9=new d$.Name("fullFormats"),n2e=new d$.Name("fastFormats"),p$=(t,e={keywords:!0})=>{if(Array.isArray(e))return Z9(t,e,Wu.fullFormats,Q9),t;let[r,n]=e.mode==="fast"?[Wu.fastFormats,n2e]:[Wu.fullFormats,Q9],i=e.formats||Wu.formatNames;return Z9(t,i,r,n),e.keywords&&r2e.default(t),t};p$.get=(t,e="full")=>{let n=(e==="fast"?Wu.fastFormats:Wu.fullFormats)[t];if(!n)throw new Error(`Unknown format "${t}"`);return n};function Z9(t,e,r,n){var i,s;(i=(s=t.opts.code).formats)!==null&&i!==void 0||(s.formats=d$._`require("ajv-formats/dist/formats").${n}`);for(let o of e)t.addFormat(o,r[o])}eU.exports=Xd=p$;Object.defineProperty(Xd,"__esModule",{value:!0});Xd.default=p$});var iU=_((xVe,nU)=>{"use strict";var i2e=E6().default,s2e=wA(),rU=SA(),h$=class{constructor(e,r){r.mode==="JTD"?this.ajv=new s2e(Object.assign({},rU,r.customOptions)):this.ajv=new i2e(Object.assign({},rU,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&&tU()(this.ajv),r.onCreate?.(this.ajv);let i=Object.values(e);for(let s of i)this.ajv.addSchema(s)}buildValidatorFunction({schema:e}){if(e.$id){let r=this.ajv.getSchema(e.$id);if(r)return r}return this.ajv.compile(e)}};nU.exports=h$});var oU=_((_Ve,sU)=>{"use strict";var o2e=wA(),a2e=SA(),m$=class{constructor(e,r){this.ajv=new o2e(Object.assign({},a2e,r))}buildSerializerFunction({schema:e}){return this.ajv.compileSerializer(e)}};sU.exports=m$});var uU=_((Jd,cU)=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});var Yd=Em(),vi=ou();function aU(t,e){if(!t.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:r}=t.scope.opts;return typeof e=="function"?i(e.source):e!==void 0?s(e,n):s(t.schemas,a=>a.meta?void 0:t.compile(a.schema));function n(a){let c=t.getSchema(a);if(!c)throw new Error(`moduleCode: no schema with id ${a}`);return c}function i(a){let c={},l=a?.validateName,u=o(c,a);return t.opts.code.esm?`"use strict";${r}export const validate = ${l};${r}export default ${l};${r}${u}`:`"use strict";${r}module.exports = ${l};${r}module.exports.default = ${l};${r}${u}`}function s(a,c){var l;let u={},f=(0,vi._)`"use strict";`;for(let d in a){let h=c(a[d]);if(h){let p=o(u,h.source),m=t.opts.code.esm?(0,vi._)`export const ${(0,vi.getEsmExportName)(d)}`:(0,vi._)`exports${(0,vi.getProperty)(d)}`;f=(0,vi._)`${f}${r}${m} = ${(l=h.source)===null||l===void 0?void 0:l.validateName};${r}${p}`}}return`${f}`}function o(a,c){if(!c)throw new Error('moduleCode: function does not have "source" property');if(d(c.validateName)===Yd.UsedValueState.Completed)return vi.nil;h(c.validateName,Yd.UsedValueState.Started);let l=t.scope.scopeCode(c.scopeValues,a,f),u=new vi._Code(`${l}${r}${c.validateCode}`);return c.evaluated?(0,vi._)`${u}${c.validateName}.evaluated = ${c.evaluated};${r}`:u;function f(p){var m;let g=(m=p.value)===null||m===void 0?void 0:m.ref;if(p.prefix==="validate"&&typeof g=="function")return o(a,g.source);if((p.prefix==="root"||p.prefix==="wrapper")&&typeof g=="object"){let{validate:y,validateName:b}=g;if(!b)throw new Error("ajv internal error");let x=t.opts.code.es5?Yd.varKinds.var:Yd.varKinds.const,v=(0,vi._)`${x} ${p} = {validate: ${b}};`;if(d(b)===Yd.UsedValueState.Started)return v;let E=o(a,y?.source);return(0,vi._)`${v}${r}${E}`}}function d(p){var m;return(m=a[p.prefix])===null||m===void 0?void 0:m.get(p)}function h(p,m){let{prefix:g}=p;(a[g]=a[g]||new Map).set(p,m)}}}cU.exports=Jd=aU;Object.defineProperty(Jd,"__esModule",{value:!0});Jd.default=aU});var dU=_((bVe,fU)=>{"use strict";var lU=y$(),c2e=uU().default;function u2e(t={readMode:!0}){if(t.readMode===!0&&!t.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(t.readMode!==!0&&!t.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(t.readMode===!0)return function(){return function(n){return t.restoreFunction(n)}};let e=lU();return function(n,i={}){(!i.customOptions||!i.customOptions.code)&&(i.customOptions=Object.assign({},i.customOptions,{code:{source:!0}}));let s=e(n,i);return function(o){let a=s(o),c=c2e(s[lU.AjvReference].ajv,a);return t.storeFunction(o,c),a}}}fU.exports=u2e});var y$=_((EVe,Gu)=>{"use strict";var hU=Symbol.for("fastify.ajv-compiler.reference"),l2e=iU(),f2e=oU();function g$(t){let e=new Map,r=new Map;return t&&t.jtdSerializer===!0?function(i,s){let o=pU({},s);if(r.has(o))return r.get(o);let a=new f2e(i,s),c=a.buildSerializerFunction.bind(a);return r.set(o,c),c}:function(i,s){let o=pU(i,s.customOptions);if(e.has(o))return e.get(o);let a=new l2e(i,s),c=a.buildValidatorFunction.bind(a);return e.set(o,c),s.customOptions.code!==void 0&&(c[hU]=a),c}}function pU(t,e){let r=JSON.stringify(t),n=JSON.stringify(e);return`${r}${n}`}Gu.exports=g$;Gu.exports.default=g$;Gu.exports.AjvCompiler=g$;Gu.exports.AjvReference=hU;Gu.exports.StandaloneValidator=dU()});var v$=_((wVe,mU)=>{"use strict";var{buildSchemas:d2e}=Vl(),p2e=aw(),h2e=y$();function m2e(t,e){if(t)return new Ku(t,e);let r=Object.assign({buildValidator:null,buildSerializer:null},e?.compilersFactory);r.buildValidator||(r.buildValidator=h2e()),r.buildSerializer||(r.buildSerializer=p2e());let n={bucket:e&&e.bucket||d2e,compilersFactory:r,isCustomValidatorCompiler:typeof e?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof e?.compilersFactory?.buildValidator=="function"};return new Ku(void 0,n)}var Ku=class{constructor(e,r){this.opts=r||e?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.isCustomValidatorCompiler=e.isCustomValidatorCompiler,this.isCustomSerializerCompiler=e.isCustomSerializerCompiler,this.parent=e):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>e}),this.validatorCompiler=e,this.isCustomValidatorCompiler=!0}setSerializerCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>e}),this.serializerCompiler=e,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(e){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}};Ku.buildSchemaController=m2e;mU.exports=Ku});var S$=_((SVe,w$)=>{"use strict";var x$=PE(),b$=require("node:assert"),E$=Symbol.for("registered-plugin"),{kTestInternals:y2e}=or(),{exist:g2e,existReply:v2e,existRequest:x2e}=FE(),{FST_ERR_PLUGIN_VERSION_MISMATCH:_2e,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:b2e}=Ar(),{FSTWRN002:E2e}=us();function Qd(t){return t[Symbol.for("plugin-meta")]}function yU(t){let e=gU(t);if(e)return e;let r=require.cache;if(r){let n=Object.keys(r);for(let i=0;ie.trim()).join(" -- ")}function gU(t){return t[Symbol.for("fastify.display-name")]}function vU(t){return!!t[Symbol.for("skip-override")]}function xU(t){let e=Qd(t);if(!e)return;let r=e.dependencies;r&&(b$(Array.isArray(r),"The dependencies should be an array of strings"),r.forEach(n=>{b$(this[E$].indexOf(n)>-1,`The dependency '${n}' of plugin '${e.name}' is not registered`)}))}function _U(t){let e=Qd(t);if(!e)return;let{decorators:r,name:n}=e;r&&(r.fastify&&_$(this,"Fastify",r.fastify,n),r.reply&&_$(this,"Reply",r.reply,n),r.request&&_$(this,"Request",r.request,n))}var S2e={Fastify:g2e,Request:x2e,Reply:v2e};function _$(t,e,r,n){b$(Array.isArray(r),"The decorators should be an array of strings"),r.forEach(i=>{let s=typeof n=="string"?` required by '${n}'`:"";if(!S2e[e].call(t,i))throw new b2e(i,s,e)})}function A2e(t){let e=Qd(t);if(!e)return;let r=e.fastify,n=/-rc.+$/.test(this.version);if(!(n===!0&&x$.gt(this.version,x$.coerce(r))===!0)&&r&&x$.satisfies(this.version,r,{includePrerelease:n})===!1)throw new _2e(e.name,r,this.version)}function T2e(t){let e=Qd(t);if(!e)return;let r=e.name;if(r)return this[E$].push(r),r}function $2e(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&E2e(e||"anonymous")}function R2e(t){let e=T2e.call(this,t)||yU(t);return $2e.call(this,t,e),A2e.call(this,t),_U.call(this,t),xU.call(this,t),vU(t)}w$.exports={getPluginName:yU,getFuncPreview:w2e,kRegisteredPlugins:E$,getDisplayName:gU,registerPlugin:R2e};w$.exports[y2e]={shouldSkipOverride:vU,getMeta:Qd,checkDecorators:_U,checkDependencies:xU}});var Uy=_((AVe,bU)=>{"use strict";function P2e(t,e){let r=e||O2e();return t?I2e(t,r):r}function C2e(t,e){return t.genReqId(e)}function O2e(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function I2e(t,e){return function(r){return r.headers[t]||e(r)}}bU.exports={getGenReqId:C2e,reqIdGenFactory:P2e}});var AU=_((TVe,SU)=>{"use strict";var EU=12,N2e=0,A$=[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 k2e(t){var e=t.indexOf("%");if(e===-1)return t;for(var r=t.length,n="",i=0,s=0,o=e,a=EU;e>-1&&e>10),56320+(s&1023)),s=0,i=e+3,e=o=t.indexOf("%",i);else{if(a===N2e)return null;if(e+=3,e{"use strict";var TU=AU(),$U=/\+/g,RU=function(){};RU.prototype=Object.create(null);function L2e(t){let e=new RU;if(typeof t!="string")return e;let r=t.length,n="",i="",s=-1,o=-1,a=!1,c=!1,l=!1,u=!1,f=!1,d=0;for(let h=0;hs,f||(o=h),n=t.slice(s+1,o),f||n.length>0){l&&(n=n.replace($U," ")),a&&(n=TU(n)||n),f&&(i=t.slice(o+1,h),u&&(i=i.replace($U," ")),c&&(i=TU(i)||i));let p=e[n];p===void 0?e[n]=i:p.pop?p.push(i):e[n]=[p,i]}i="",s=h,o=h,a=!1,c=!1,l=!1,u=!1}else d===61?o<=s?o=h:c=!0:d===43?o>s?u=!0:l=!0:d===37&&(o>s?c=!0:a=!0);return e}PU.exports=L2e});var IU=_((RVe,OU)=>{var Gi=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),q2e=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 j2e(t){let e=t.length;if(e===0)return"";let r="",n=0,i=0;e:for(;i>6]+Gi[128|s&63];continue}if(s<55296||s>=57344){n=i+1,r+=Gi[224|s>>12]+Gi[128|s>>6&63]+Gi[128|s&63];continue}if(++i,i>=e)throw new Error("URI malformed");let o=t.charCodeAt(i)&1023;n=i+1,s=65536+((s&1023)<<10|o),r+=Gi[240|s>>18]+Gi[128|s>>12&63]+Gi[128|s>>6&63]+Gi[128|s&63]}return n===0?t:n{"use strict";var{encodeString:T$}=IU();function NU(t){let e=typeof t;return e==="string"?T$(t):e==="bigint"?t.toString():e==="boolean"?t?"true":"false":e==="number"&&Number.isFinite(t)?t<1e21?""+t:T$(""+t):""}function F2e(t){let e="";if(t===null||typeof t!="object")return e;let r="&",n=Object.keys(t),i=n.length,s=0;for(let o=0;o{"use strict";var LU=CU(),qU=DU(),jU={parse:LU,stringify:qU};Zd.exports=jU;Zd.exports.default=jU;Zd.exports.parse=LU;Zd.exports.stringify=qU});var BU=_(MU=>{"use strict";Object.defineProperty(MU,"__esModule",{value:!0})});var UU=_(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.types=void 0;var M2e;(function(t){t[t.ROOT=0]="ROOT",t[t.GROUP=1]="GROUP",t[t.POSITION=2]="POSITION",t[t.SET=3]="SET",t[t.RANGE=4]="RANGE",t[t.REPETITION=5]="REPETITION",t[t.REFERENCE=6]="REFERENCE",t[t.CHAR=7]="CHAR"})(M2e=ep.types||(ep.types={}))});var HU=_(zU=>{"use strict";Object.defineProperty(zU,"__esModule",{value:!0})});var Ls=_(Ds=>{"use strict";var B2e=Ds&&Ds.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),$$=Ds&&Ds.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&B2e(e,t,r)};Object.defineProperty(Ds,"__esModule",{value:!0});$$(BU(),Ds);$$(UU(),Ds);$$(HU(),Ds)});var zy=_(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.anyChar=jr.notWhitespace=jr.whitespace=jr.notInts=jr.ints=jr.notWords=jr.words=void 0;var lt=Ls(),VU=()=>[{type:lt.types.RANGE,from:48,to:57}],WU=()=>[{type:lt.types.CHAR,value:95},{type:lt.types.RANGE,from:97,to:122},{type:lt.types.RANGE,from:65,to:90},{type:lt.types.RANGE,from:48,to:57}],GU=()=>[{type:lt.types.CHAR,value:9},{type:lt.types.CHAR,value:10},{type:lt.types.CHAR,value:11},{type:lt.types.CHAR,value:12},{type:lt.types.CHAR,value:13},{type:lt.types.CHAR,value:32},{type:lt.types.CHAR,value:160},{type:lt.types.CHAR,value:5760},{type:lt.types.RANGE,from:8192,to:8202},{type:lt.types.CHAR,value:8232},{type:lt.types.CHAR,value:8233},{type:lt.types.CHAR,value:8239},{type:lt.types.CHAR,value:8287},{type:lt.types.CHAR,value:12288},{type:lt.types.CHAR,value:65279}],U2e=()=>[{type:lt.types.CHAR,value:10},{type:lt.types.CHAR,value:13},{type:lt.types.CHAR,value:8232},{type:lt.types.CHAR,value:8233}];jr.words=()=>({type:lt.types.SET,set:WU(),not:!1});jr.notWords=()=>({type:lt.types.SET,set:WU(),not:!0});jr.ints=()=>({type:lt.types.SET,set:VU(),not:!1});jr.notInts=()=>({type:lt.types.SET,set:VU(),not:!0});jr.whitespace=()=>({type:lt.types.SET,set:GU(),not:!1});jr.notWhitespace=()=>({type:lt.types.SET,set:GU(),not:!0});jr.anyChar=()=>({type:lt.types.SET,set:U2e(),not:!0})});var XU=_(Vn=>{"use strict";var z2e=Vn&&Vn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),H2e=Vn&&Vn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),V2e=Vn&&Vn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&z2e(e,t,r);return H2e(e,t),e};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.tokenizeClass=Vn.strToChars=void 0;var KU=Ls(),Xu=V2e(zy()),W2e="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";Vn.strToChars=t=>{let e=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return t.replace(e,(r,n,i,s,o,a,c)=>{if(i)return r;let l=n?8:s?parseInt(s,16):o?parseInt(o,16):a?W2e.indexOf(a):{0:0,t:9,n:10,v:11,f:12,r:13}[c],u=String.fromCharCode(l);return/[[\]{}^$.|?*+()]/.test(u)?`\\${u}`:u})};Vn.tokenizeClass=(t,e)=>{var r,n,i,s,o,a,c;let l=[],u,f,d=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(((?:\\)])|(((?:\\)?([^\]])))))|(\])|(?:\\)?([^])/g;for(;(u=d.exec(t))!==null;){let h=(c=(a=(o=(s=(i=(n=(r=u[1]&&Xu.words())!==null&&r!==void 0?r:u[2]&&Xu.ints())!==null&&n!==void 0?n:u[3]&&Xu.whitespace())!==null&&i!==void 0?i:u[4]&&Xu.notWords())!==null&&s!==void 0?s:u[5]&&Xu.notInts())!==null&&o!==void 0?o:u[6]&&Xu.notWhitespace())!==null&&a!==void 0?a:u[7]&&{type:KU.types.RANGE,from:(u[8]||u[9]).charCodeAt(0),to:(f=u[10]).charCodeAt(f.length-1)})!==null&&c!==void 0?c:(f=u[16])&&{type:KU.types.CHAR,value:f.charCodeAt(0)};if(h)l.push(h);else return[l,d.lastIndex]}throw new SyntaxError(`Invalid regular expression: /${e}/: Unterminated character class`)}});var R$=_(Ki=>{"use strict";var G2e=Ki&&Ki.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),K2e=Ki&&Ki.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),JU=Ki&&Ki.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&G2e(e,t,r);return K2e(e,t),e};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.tokenizer=void 0;var YU=JU(XU()),wr=Ls(),ec=JU(zy());Ki.tokenizer=t=>{let e=0,r,n={type:wr.types.ROOT,stack:[]},i=n,s=n.stack,o=[],a=[],c=0,l=f=>{throw new SyntaxError(`Invalid regular expression: /${t}/: Nothing to repeat at column ${f-1}`)},u=YU.strToChars(t);for(;ei){let s=r.stack.splice(r.index+1);for(let o of n.slice(i))r.stack.push({type:wr.types.CHAR,value:o.charCodeAt(0)});r.stack.push(...s)}}}}});var ZU=_(Fr=>{"use strict";var Y2e=Fr&&Fr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),J2e=Fr&&Fr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Q2e=Fr&&Fr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Y2e(e,t,r);return J2e(e,t),e};Object.defineProperty(Fr,"__esModule",{value:!0});Fr.NOTANYCHAR=Fr.WHITESPACE=Fr.WORDS=Fr.INTS=void 0;var Hy=Q2e(zy()),QU=Ls();function Vy(t){let e={},r=0;for(let n of t)n.type===QU.types.CHAR&&(e[n.value]=!0),n.type===QU.types.RANGE&&(e[`${n.from}-${n.to}`]=!0),r+=1;return{lookup:()=>Object.assign({},e),len:r}}Fr.INTS=Vy(Hy.ints().set);Fr.WORDS=Vy(Hy.words().set);Fr.WHITESPACE=Vy(Hy.whitespace().set);Fr.NOTANYCHAR=Vy(Hy.anyChar().set)});var tz=_(Wn=>{"use strict";var Z2e=Wn&&Wn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),eOe=Wn&&Wn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),tOe=Wn&&Wn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Z2e(e,t,r);return eOe(e,t),e};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.writeSetTokens=Wn.setChar=void 0;var Xy=Ls(),Wy=tOe(ZU());function Ky(t){return t===94?"\\^":t===92?"\\\\":t===93?"\\]":t===45?"\\-":String.fromCharCode(t)}Wn.setChar=Ky;function Gy(t,{lookup:e,len:r}){if(r!==t.length)return!1;let n=e();for(let i of t){if(i.type===Xy.types.SET)return!1;let s=i.type===Xy.types.CHAR?i.value:`${i.from}-${i.to}`;if(n[s])n[s]=!1;else return!1}return!0}function ez(t,e=!1){if(Gy(t.set,Wy.INTS))return t.not?"\\D":"\\d";if(Gy(t.set,Wy.WORDS))return t.not?"\\W":"\\w";if(t.not&&Gy(t.set,Wy.NOTANYCHAR))return".";if(Gy(t.set,Wy.WHITESPACE))return t.not?"\\S":"\\s";let r="";for(let i=0;i{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.reconstruct=void 0;var Do=Ls(),P$=tz(),rz=t=>t.map(Yu.reconstruct).join(""),nz=t=>{if("options"in t)return t.options.map(rz).join("|");if("stack"in t)return rz(t.stack);throw new Error("options or stack must be Root or Group token")};Yu.reconstruct=t=>{switch(t.type){case Do.types.ROOT:return nz(t);case Do.types.CHAR:{let e=String.fromCharCode(t.value);return(/[[\\{}$^.|?*+()]/.test(e)?"\\":"")+e}case Do.types.POSITION:return t.value==="^"||t.value==="$"?t.value:`\\${t.value}`;case Do.types.REFERENCE:return`\\${t.value}`;case Do.types.SET:return P$.writeSetTokens(t);case Do.types.GROUP:return`(${t.remember?"":t.followedBy?"?=":t.notFollowedBy?"?!":"?:"}${nz(t)})`;case Do.types.REPETITION:{let{min:e,max:r}=t,n;return e===0&&r===1?n="?":e===1&&r===1/0?n="+":e===0&&r===1/0?n="*":r===1/0?n=`{${e},}`:e===r?n=`{${e}}`:n=`{${e},${r}}`,`${Yu.reconstruct(t.value)}${n}`}case Do.types.RANGE:return`${P$.setChar(t.from)}-${P$.setChar(t.to)}`;default:throw new Error(`Invalid token type ${t}`)}}});var oz=_((Gn,Yy)=>{"use strict";var nOe=Gn&&Gn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),O$=Gn&&Gn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nOe(e,t,r)};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.types=void 0;var iz=Ls();Object.defineProperty(Gn,"types",{enumerable:!0,get:function(){return iz.types}});O$(R$(),Gn);O$(C$(),Gn);var sz=R$(),iOe=C$();O$(Ls(),Gn);Gn.default=sz.tokenizer;Yy.exports=sz.tokenizer;Yy.exports.types=iz.types;Yy.exports.reconstruct=iOe.reconstruct});var cz=_((BVe,Jy)=>{"use strict";var az=oz(),sOe=az.types;function I$(t,e){e||(e={});let r=e.limit===void 0?25:e.limit;oOe(t)?t=t.source:typeof t!="string"&&(t=String(t));try{t=az(t)}catch{return!1}let n=0;return function i(s,o){let a,c,l;if(s.type===sOe.REPETITION&&(o++,n++,o>1||n>r))return!1;if(s.options){for(a=0,l=s.options.length;a{"use strict";uz.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let t={};return{get:e=>t[e]||null,set:(e,r)=>{t[e]=r}}},deriveConstraint:t=>t.method,mustMatchWhenDerived:!0}});var yz=_((zVe,mz)=>{"use strict";var lz=On(),fz=Qy(),dz=Symbol("treeData");function pz(t,e=""){let r="",n=Object.keys(t);for(let i=0;ihz(e)):typeof t=="symbol"?t.toString():typeof t=="function"?aOe(t):t}function cOe(t,e){if(!e.includeMeta)return{};let r=e.buildPrettyMeta(t),n={},i=e.includeMeta;Array.isArray(i)||(i=Reflect.ownKeys(r));for(let s of i){if(!Object.prototype.hasOwnProperty.call(r,s))continue;let o=s.toString(),a=r[s];if(a!=null){let c=JSON.stringify(hz(a));n[o]=c}}return n}function uOe(t){let e="";for(let[r,n]of Object.entries(t))e+=` -\u2022 (${r}) ${n}`;return e}function lOe(t){let e={...t.opts.constraints},r=e[fz.name];return delete e[fz.name],{...t,method:r,opts:{constraints:e}}}function fOe(t){let e=` (${t.method})`,r=t.opts.constraints||{};return Object.keys(r).length!==0&&(e+=" "+JSON.stringify(r)),e+=uOe(t.metaData),e}function dOe(t){return t.reduce((e,r)=>{for(let n of e)if(lz(r.opts.constraints,n.opts.constraints)&&lz(r.metaData,n.metaData))return n.method+=", "+r.method,e;return e.push(r),e},[])}function pOe(t,e,r){let n=t.routes;return r.method===void 0&&(n=n.map(lOe)),n=n.map(i=>(i.metaData=cOe(i,r),i)),r.method===void 0&&(n=dOe(n)),n.map(fOe).join(` -${e}`)}function Zy(t,e,r,n){if((t.isLeafNode||n.commonPrefix!==!1)&&(r=r||"(empty root node)",e=e[r]={},t.isLeafNode&&(e[dz]=pOe(t,r,n)),r=""),t.staticChildren)for(let i of Object.values(t.staticChildren))Zy(i,e,r+i.prefix,n);if(t.parametricChildren)for(let i of Object.values(t.parametricChildren)){let s=Array.from(i.nodePaths).join("|");Zy(i,e,r+s,n)}t.wildcardChild&&Zy(t.wildcardChild,e,"*",n)}function hOe(t,e){let r={};return Zy(t,r,t.prefix,e),pz(r)}mz.exports={prettyPrintTree:hOe}});var vz=_((HVe,gz)=>{"use strict";var mOe=Qy(),N$=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,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)},o=Object.keys(i);o.length===0&&(this.unconstrainedHandler=s);for(let c of o)this.constraints.includes(c)||(c==="version"?this.constraints.unshift(c):this.constraints.push(c));let a=o.includes(mOe.name);if(!a&&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((c,l)=>Object.keys(c.constraints).length-Object.keys(l.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,i)}_compileCreateParamsObject(e){let r=[];for(let n=0;n{"use strict";var yOe=vz(),sg={STATIC:0,PARAMETRIC:1,WILDCARD:2},eg=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,r){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new yOe),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(r,e)}},tg=class extends eg{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,r){let n=this.staticChildren[e.charAt(r)];return n===void 0||!n.matchPrefix(e,r)?null:n}getStaticChild(e,r=0){if(e.length===r)return this;let n=this.findStaticMatchingChild(e,r);return n?n.getStaticChild(e,r+n.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let r=this.staticChildren[e.charAt(0)];if(r){let i=1;for(;i(i.regex&&i.regex.source)===r);return n||null}createParametricChild(e,r,n){let i=this.getParametricChild(e);return i?(i.nodePaths.add(n),i):(i=new ng(e,r,n),this.parametricChildren.push(i),this.parametricChildren.sort((s,o)=>s.isRegex?o.isRegex?s.staticSuffix===null?1:o.staticSuffix===null?-1:o.staticSuffix.endsWith(s.staticSuffix)?1:s.staticSuffix.endsWith(o.staticSuffix)?-1:0:-1:1),i)}getWildcardChild(){return this.wildcardChild}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new ig,this.wildcardChild}split(e,r){let n=this.prefix.slice(0,r),i=this.prefix.slice(r);this.prefix=i,this._compilePrefixMatch();let s=new t(n);return s.staticChildren[i.charAt(0)]=this,e.staticChildren[n.charAt(0)]=s,s}getNextNode(e,r,n,i){let s=this.findStaticMatchingChild(e,r),o=0;if(s===null){if(this.parametricChildren.length===0)return this.wildcardChild;s=this.parametricChildren[0],o=1}this.wildcardChild!==null&&n.push({paramsCount:i,brotherPathIndex:r,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=o;a--)n.push({paramsCount:i,brotherPathIndex:r,brotherNode:this.parametricChildren[a]});return s}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let r=1;r{"use strict";var gOe=require("node:assert");function tp(){if(!(this instanceof tp))return new tp;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}tp.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[r,n,i]=t.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=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),n>=(this.maxMinors[r]||0)&&(this.maxMinors[r]=n,this.store[`${r}.x`]=e,this.store[`${r}.x.x`]=e),i>=(this.maxPatches[`${r}.${n}`]||0)&&(this.maxPatches[`${r}.${n}`]=i,this.store[`${r}.${n}.x`]=e),this.store[`${r}.${n}.${i}`]=e,this};tp.prototype.get=function(t){return this.store[t]};bz.exports={name:"version",mustMatchWhenDerived:!0,storage:tp,validate(t){gOe(typeof t=="string","Version should be a string")}}});var Sz=_((GVe,wz)=>{"use strict";var vOe=require("node:assert");function xOe(){let t={},e=[];return{get:r=>{let n=t[r];if(n)return n;for(let i of e)if(i.host.test(r))return i.value},set:(r,n)=>{r instanceof RegExp?e.push({host:r,value:n}):t[r]=n}}}wz.exports={name:"host",mustMatchWhenDerived:!1,storage:xOe,validate(t){vOe(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var Tz=_((KVe,Az)=>{"use strict";var _Oe=Ez(),bOe=Sz(),k$=require("node:assert"),D$=class{constructor(e){if(this.strategies={version:_Oe,host:bOe},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let r of Object.values(e))this.addConstraintStrategy(r)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let r=this.strategies[e];return r!==void 0?r.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(k$(typeof e.name=="string"&&e.name!=="","strategy.name is required."),k$(e.storage&&typeof e.storage=="function","strategy.storage function is required."),k$(e.deriveConstraint&&typeof e.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[e.name]&&this.strategies[e.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${e.name}.`);if(this.isStrategyUsed(e.name))throw new Error(`There already exists a route with ${e.name} constraint.`);e.isCustom=!0,e.isAsync=e.deriveConstraint.length===3,this.strategies[e.name]=e,e.mustMatchWhenDerived&&this.noteUsage({[e.name]:e})}deriveConstraints(e,r,n){let i=this.deriveSyncConstraints(e,r);if(n===void 0)return i;this.deriveAsyncConstraints(i,e,r,n)}deriveSyncConstraints(e,r){}noteUsage(e){if(e){let r=this.strategiesInUse.size;for(let n in e)this.strategies[n].isAsync?this.asyncStrategiesInUse.add(n):this.strategiesInUse.add(n);r!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(let r in e){let n=e[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(e,r,n,i){let s=this.asyncStrategiesInUse.size;if(s===0){i(null,e);return}e=e||{};for(let o of this.asyncStrategiesInUse)this.strategies[o].deriveConstraint(r,n,(c,l)=>{if(c!==null){i(c);return}e[o]=l,--s===0&&i(null,e)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let e=["return {"];for(let r of this.strategiesInUse){let n=this.strategies[r];n.isCustom?e.push(` ${n.name}: this.strategies.${r}.deriveConstraint(req, ctx),`):r==="version"?e.push(" version: req.headers['accept-version'],"):e.push(" host: req.headers.host || req.headers[':authority'],")}e.push("}"),this.deriveSyncConstraints=new Function("req","ctx",e.join(` -`)).bind(this)}};Az.exports=D$});var Rz=_((XVe,$z)=>{"use strict";var EOe=["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"];$z.exports=EOe});var Oz=_((YVe,Cz)=>{"use strict";function Pz(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function wOe(t,e){let r=!1,n=!1,i="";for(let o=1;o{"use strict";var Ht=require("node:assert"),AOe=FU(),og=cz(),q$=On(),{prettyPrintTree:TOe}=yz(),{StaticNode:Iz,NODE_TYPES:Nz}=_z(),$Oe=Tz(),Ju=Rz(),L$=Qy(),{safeDecodeURI:ROe,safeDecodeURIComponent:kz}=Oz(),Dz=/^https?:\/\/.*?\//,tc=/(\/:[^/()]*?)\?(\/?)/;if(!og(Dz))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!og(tc))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Dt(t){if(!(this instanceof Dt))return new Dt(t);t=t||{},this._opts=t,t.defaultRoute?(Ht(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(Ht(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(Ht(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=POe,t.querystringParser?(Ht(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:AOe.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new $Oe(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Dt.prototype.on=function(e,r,n,i,s){typeof n=="function"&&(i!==void 0&&(s=i),i=n,n={}),Ht(typeof r=="string","Path should be a string"),Ht(r.length>0,"The path could not be empty"),Ht(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),Ht(typeof i=="function","Handler should be a function");let o=r.match(tc);if(o){Ht(r.length===o.index+o[0].length,"Optional Parameter needs to be the last parameter of the path");let l=r.replace(tc,"$1$2"),u=r.replace(tc,"$2")||"/";this.on(e,l,n,i,s),this.on(e,u,n,i,s);return}let a=r;this.ignoreDuplicateSlashes&&(r=j$(r)),this.ignoreTrailingSlash&&(r=F$(r));let c=Array.isArray(e)?e:[e];for(let l of c)Ht(typeof l=="string","Method should be a string"),Ht(Ju.includes(l),`Method '${l}' is not an http method.`),this._on(l,r,n,i,s,a)};Dt.prototype._on=function(e,r,n,i,s){let o={};n.constraints!==void 0&&(Ht(typeof n.constraints=="object"&&n.constraints!==null,"Constraints should be an object"),Object.keys(n.constraints).length!==0&&(o=n.constraints)),this.constrainer.validateConstraints(o),this.constrainer.noteUsage(o),this.trees[e]===void 0&&(this.trees[e]=new Iz("/"));let a=r;if(a==="*"&&this.trees[e].prefix.length!==0){let d=this.trees[e];this.trees[e]=new Iz(""),this.trees[e].staticChildren["/"]=d}let c=this.trees[e],l=c.prefix.length,u=[];for(let d=0;d<=a.length;d++){if(a.charCodeAt(d)===58&&a.charCodeAt(d+1)===58){d++;continue}let h=a.charCodeAt(d)===58&&a.charCodeAt(d+1)!==58,p=a.charCodeAt(d)===42;if(h||p||d===a.length&&d!==l){let m=a.slice(l,d);this.caseSensitive||(m=m.toLowerCase()),m=m.split("::").join(":"),m=m.split("%").join("%25"),c=c.createStaticChild(m)}if(h){let m=!1,g=!0,y="",b=[],x=d+1;for(let v=x;;v++){let E=a.charCodeAt(v),S=E===40,w=E===45||E===46,A=E===47||v===a.length;if(S||w||A){let T=a.slice(x,v);if(u.push(T),m=m||S||w,S){let C=jz(a,v),I=a.slice(v,C+1);this.allowUnsafeRegex||Ht(og(new RegExp(I)),`The regex '${I}' is not safe!`),b.push(qz(I)),v=C+1,g=!0}else b.push(g?"(.*?)":`(${y}|(?:(?!${y}).)*)`),g=!1;let $=v;for(;v0,"The path could not be empty"),Ht(r[0]==="/"||r[0]==="*","The first character of a path should be `/` or `*`"),Ht(typeof n>"u"||typeof n=="object"&&!Array.isArray(n)&&n!==null,"Constraints should be an object or undefined.");let i=r.match(tc);if(i){Ht(r.length===i.index+i[0].length,"Optional Parameter needs to be the last parameter of the path");let o=r.replace(tc,"$1$2"),a=r.replace(tc,"$2");this.off(e,o,n),this.off(e,a,n);return}this.ignoreDuplicateSlashes&&(r=j$(r)),this.ignoreTrailingSlash&&(r=F$(r));let s=Array.isArray(e)?e:[e];for(let o of s)this._off(o,r,n)};Dt.prototype._off=function(e,r,n){Ht(typeof e=="string","Method should be a string"),Ht(Ju.includes(e),`Method '${e}' is not an http method.`);function i(c){return e!==c.method||r!==c.path}function s(c){return i(c)||!q$(n,c.opts.constraints||{})}let o=n?s:i,a=this.routes.filter(o);this._rebuild(a)};Dt.prototype.lookup=function(e,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i===void 0){let s=this.constrainer.deriveConstraints(e,n),o=this.find(e.method,e.url,s);return this.callHandler(o,e,r,n)}this.constrainer.deriveConstraints(e,n,(s,o)=>{if(s!==null){i(s);return}try{let a=this.find(e.method,e.url,o),c=this.callHandler(a,e,r,n);i(null,c)}catch(a){i(a)}})};Dt.prototype.callHandler=function(e,r,n,i){return e===null?this._defaultRoute(r,n,i):i===void 0?e.handler(r,n,e.params,e.store,e.searchParams):e.handler.call(i,r,n,e.params,e.store,e.searchParams)};Dt.prototype.find=function(e,r,n){let i=this.trees[e];if(i===void 0)return null;r.charCodeAt(0)!==47&&(r=r.replace(Dz,"/")),this.ignoreDuplicateSlashes&&(r=j$(r));let s,o,a;try{s=ROe(r,this.useSemicolonDelimiter),r=s.path,o=s.querystring,a=s.shouldDecodeParam}catch{return this._onBadUrl(r)}this.ignoreTrailingSlash&&(r=F$(r));let c=r;this.caseSensitive===!1&&(r=r.toLowerCase());let l=this.maxParamLength,u=i.prefix.length,f=[],d=r.length,h=[];for(;;){if(u===d&&i.isLeafNode){let y=i.handlerStorage.getMatchingHandler(n);if(y!==null)return{handler:y.handler,store:y.store,params:y._createParamsObject(f),searchParams:this.querystringParser(o)}}let p=i.getNextNode(r,u,h,f.length);if(p===null){if(h.length===0)return null;let y=h.pop();u=y.brotherPathIndex,f.splice(y.paramsCount),p=y.brotherNode}if(i=p,i.kind===Nz.STATIC){u+=i.prefix.length;continue}if(i.kind===Nz.WILDCARD){let y=c.slice(u);a&&(y=kz(y)),f.push(y),u=d;continue}let m=c.indexOf("/",u);m===-1&&(m=d);let g=c.slice(u,m);if(a&&(g=kz(g)),i.isRegex){let y=i.regex.exec(g);if(y===null)continue;for(let b=1;bl)return null;f.push(x)}}else{if(g.length>l)return null;f.push(g)}u=m}};Dt.prototype._rebuild=function(t){this.reset();for(let e of t){let{method:r,path:n,opts:i,handler:s,store:o}=e;this._on(r,n,i,s,o)}};Dt.prototype._defaultRoute=function(t,e,r){if(this.defaultRoute!==null)return r===void 0?this.defaultRoute(t,e):this.defaultRoute.call(r,t,e);e.statusCode=404,e.end()};Dt.prototype._onBadUrl=function(t){if(this.onBadUrl===null)return null;let e=this.onBadUrl;return{handler:(r,n,i)=>e(t,r,n),params:{},store:null}};Dt.prototype.prettyPrint=function(t={}){let e=t.method;t.buildPrettyMeta=this.buildPrettyMeta.bind(this);let r=null;if(e===void 0){let{version:n,host:i,...s}=this.constrainer.strategies;s[L$.name]=L$;let o=new Dt({...this._opts,constraints:s}),a=this.routes.map(c=>{let l={...c.opts.constraints,[L$.name]:c.method};return{...c,method:"MERGED",opts:{constraints:l}}});o._rebuild(a),r=o.trees.MERGED}else r=this.trees[e];return r==null?"(empty tree)":TOe(r,t)};for(let t in Ju){if(!Ju.hasOwnProperty(t))continue;let e=Ju[t],r=e.toLowerCase();Dt.prototype[r]=function(n,i,s){return this.on(e,n,i,s)}}Dt.prototype.all=function(t,e,r){this.on(Ju,t,e,r)};Fz.exports=Dt;function Lz(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j$(t){return t.replace(/\/\/+/g,"/")}function F$(t){return t.length>1&&t.charCodeAt(t.length-1)===47?t.slice(0,-1):t}function qz(t){return t.charCodeAt(1)===94&&(t=t.slice(0,1)+t.slice(2)),t.charCodeAt(t.length-2)===36&&(t=t.slice(0,t.length-2)+t.slice(t.length-1)),t}function jz(t,e){let r=1;for(;e{"use strict";function B$(t,e,r,n){if(r===void 0)return e.header("content-length","0"),n(null,null);if(typeof r.resume=="function")return r.on("error",s=>{e.log.error({err:s},"Error on Stream found for HEAD route")}),r.resume(),n(null,null);let i=""+Buffer.byteLength(r);e.header("content-length",i),n(null,null)}function COe(t){return t==null?B$:Array.isArray(t)?[...t,B$]:[t,B$]}Mz.exports={parseHeadOnSendHandlers:COe}});var i7=_((ZVe,n7)=>{"use strict";var OOe=M$(),IOe=nm(),Uz=r_(),{onRequestAbortHookRunner:NOe,lifecycleHooks:zz,preParsingHookRunner:kOe,onTimeoutHookRunner:DOe,onRequestHookRunner:LOe}=Zs(),{supportedMethods:qOe}=kE(),{normalizeSchema:jOe}=Vl(),{parseHeadOnSendHandlers:FOe}=Bz(),{FSTDEP007:MOe,FSTDEP008:BOe,FSTDEP014:Hz}=us(),{compileSchemasForValidation:UOe,compileSchemasForSerialization:zOe}=Jx(),{FST_ERR_SCH_VALIDATION_BUILD:HOe,FST_ERR_SCH_SERIALIZATION_BUILD:VOe,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:WOe,FST_ERR_DUPLICATED_ROUTE:GOe,FST_ERR_INVALID_URL:KOe,FST_ERR_HOOK_INVALID_HANDLER:Vz,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:XOe,FST_ERR_ROUTE_DUPLICATED_HANDLER:YOe,FST_ERR_ROUTE_HANDLER_NOT_FN:Wz,FST_ERR_ROUTE_MISSING_HANDLER:JOe,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:QOe,FST_ERR_ROUTE_METHOD_INVALID:ZOe,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:eIe,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:tIe,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:U$}=Ar(),{kRoutePrefix:rIe,kLogLevel:nIe,kLogSerializers:Gz,kHooks:Kz,kSchemaController:iIe,kOptions:Xz,kReplySerializerDefault:z$,kReplyIsError:sIe,kRequestPayloadStream:oIe,kDisableRequestLogging:aIe,kSchemaErrorFormatter:cIe,kErrorHandler:Yz,kHasBeenDecorated:Jz,kRequestAcceptVersion:H$,kRouteByFastify:V$,kRouteContext:Qz}=or(),{buildErrorHandler:uIe}=Sf(),{createChildLogger:lIe}=Hl(),{getGenReqId:fIe}=Uy();function dIe(t){let e=OOe(t.config),r,n,i,s,o,a,c,l,u,f,d,h,p,m=!1;return{setup(A,T){r=T.avvio,n=T.fourOhFour,i=T.logger,s=T.hasLogger,o=T.setupResponseListeners,a=T.throwIfAlreadyStarted,h=T.validateHTTPVersion,d=A.exposeHeadRoutes,c=A.disableRequestLogging,l=A.ignoreTrailingSlash,u=A.ignoreDuplicateSlashes,f=Object.prototype.hasOwnProperty.call(A,"return503OnClosing")?A.return503OnClosing:!0,p=T.keepAliveConnections},routing:e.lookup.bind(e),route:S,hasRoute:v,prepareRoute:x,getDefaultRoute:function(){return Hz(),e.defaultRoute},setDefaultRoute:function(A){if(Hz(),typeof A!="function")throw new WOe;e.defaultRoute=A},routeHandler:w,closeRoutes:()=>{m=!0},printRoutes:e.prettyPrint.bind(e),addConstraintStrategy:g,hasConstraintStrategy:y,isAsyncConstraint:b,findRoute:E};function g(A){return a("Cannot add constraint strategy!"),e.addConstraintStrategy(A)}function y(A){return e.hasConstraintStrategy(A)}function b(){return e.constrainer.asyncStrategiesInUse.size>0}function x({method:A,url:T,options:$,handler:k,isFastify:C}){if(typeof T!="string")throw new KOe(typeof T);if(!k&&typeof $=="function")k=$,$={};else if(k&&typeof k=="function"){if(Object.prototype.toString.call($)!=="[object Object]")throw new XOe(A,T);if($.handler)throw typeof $.handler=="function"?new YOe(A,T):new Wz(A,T)}return $=Object.assign({},$,{method:A,url:T,path:T,handler:k||$&&$.handler}),S.call(this,{options:$,isFastify:C})}function v({options:A}){return E(A)!==null}function E(A){let T=e.find(A.method,A.url||"",A.constraints);return T?{handler:T.handler,params:T.params,searchParams:T.searchParams}:null}function S({options:A,isFastify:T}){let $={...A},{exposeHeadRoute:k}=$,I=k!=null?k:d,D=$.method==="GET"||Array.isArray($.method)&&$.method.includes("GET"),G=$.method==="HEAD"||Array.isArray($.method)&&$.method.includes("HEAD"),B=I&&D?{...A}:null;a("Cannot add route!");let z=$.url||$.path||"";if(Array.isArray($.method))for(var X=0;X<$.method.length;++X)$.method[X]=Zz($.method[X]),e7($.method[X],z,$.schema);else $.method=Zz($.method),e7($.method,z,$.schema);if(!$.handler)throw new JOe($.method,z);if($.errorHandler!==void 0&&typeof $.errorHandler!="function")throw new Wz($.method,z);r7($.bodyLimit);let j=this[rIe];if(z==="/"&&j.length>0&&$.method!=="HEAD")switch($.prefixTrailingSlash){case"slash":Y.call(this,{path:z,isFastify:T});break;case"no-slash":Y.call(this,{path:"",isFastify:T});break;case"both":default:Y.call(this,{path:"",isFastify:T}),l!==!0&&(u!==!0||!j.endsWith("/"))&&Y.call(this,{path:z,prefixing:!0,isFastify:T})}else z[0]==="/"&&j.endsWith("/")?Y.call(this,{path:z.slice(1),isFastify:T}):Y.call(this,{path:z,isFastify:T});return this;function Y({path:J,prefixing:K=!1,isFastify:Z=!1}){let pe=j+J;if($.url=pe,$.path=pe,$.routePath=J,$.prefix=j,$.logLevel=$.logLevel||this[nIe],(this[Gz]||$.logSerializers)&&($.logSerializers=Object.assign(Object.create(this[Gz]),$.logSerializers)),$.attachValidation==null&&($.attachValidation=!1),K===!1)for(let O of this[Kz].onRoute)O.call(this,$);for(let O of zz)if($&&O in $){if(Array.isArray($[O]))for(let L of $[O]){if(typeof L!="function")throw new Vz(O,Object.prototype.toString.call(L));if(O==="onSend"||O==="preSerialization"||O==="onError"||O==="preParsing"){if(L.constructor.name==="AsyncFunction"&&L.length===4)throw new U$}else if(O==="onRequestAbort"){if(L.constructor.name==="AsyncFunction"&&L.length!==1)throw new U$}else if(L.constructor.name==="AsyncFunction"&&L.length===3)throw new U$}else if($[O]!==void 0&&typeof $[O]!="function")throw new Vz(O,Object.prototype.toString.call($[O]))}let de=$.constraints||{},fe={...$.config,url:pe,method:$.method},ce=new IOe({schema:$.schema,handler:$.handler.bind(this),config:fe,errorHandler:$.errorHandler,childLoggerFactory:$.childLoggerFactory,bodyLimit:$.bodyLimit,logLevel:$.logLevel,logSerializers:$.logSerializers,attachValidation:$.attachValidation,schemaErrorFormatter:$.schemaErrorFormatter,replySerializer:this[z$],validatorCompiler:$.validatorCompiler,serializerCompiler:$.serializerCompiler,exposeHeadRoute:I,prefixTrailingSlash:$.prefixTrailingSlash||"both",server:this,isFastify:Z});$.version&&(BOe(),de.version=$.version);let ie=e.findRoute("HEAD",$.url,de),P=ie!==null;G&&P&&!ce[V$]&&ie.store[V$]&&e.off("HEAD",$.url,de);try{e.on($.method,$.url,{constraints:de},w,ce)}catch(O){if(!ce[V$])throw O.message.includes(`Method '${$.method}' already declared for route '${$.url}'`)?new GOe($.method,$.url):O}if(this.after((O,L)=>{ce.errorHandler=$.errorHandler?uIe(this[Yz],$.errorHandler):this[Yz],ce._parserOptions.limit=$.bodyLimit||null,ce.logLevel=$.logLevel,ce.logSerializers=$.logSerializers,ce.attachValidation=$.attachValidation,ce[z$]=this[z$],ce.schemaErrorFormatter=$.schemaErrorFormatter||this[cIe]||ce.schemaErrorFormatter,r.once("preReady",()=>{for(let R of zz){let N=this[Kz][R].concat($[R]||[]).map(q=>q.bind(this));ce[R]=N.length?N:null}for(;!ce.Request[Jz]&&ce.Request.parent;)ce.Request=ce.Request.parent;for(;!ce.Reply[Jz]&&ce.Reply.parent;)ce.Reply=ce.Reply.parent;if(n.setContext(this,ce),$.schema){ce.schema=jOe(ce.schema,this.initialConfig);let R=this[iIe];!$.validatorCompiler&&($.schema.body||$.schema.headers||$.schema.querystring||$.schema.params)&&R.setupValidator(this[Xz]);try{let N=typeof $?.validatorCompiler=="function"||R.isCustomValidatorCompiler;UOe(ce,$.validatorCompiler||R.validatorCompiler,N)}catch(N){throw new HOe($.method,pe,N.message)}$.schema.response&&!$.serializerCompiler&&R.setupSerializer(this[Xz]);try{zOe(ce,$.serializerCompiler||R.serializerCompiler)}catch(N){throw new VOe($.method,pe,N.message)}}}),L(O)}),I&&D&&!G&&!P){let O=FOe(B.onSend);x.call(this,{method:"HEAD",url:J,options:{...B,onSend:O},isFastify:!0})}else P&&k&&MOe()}}function w(A,T,$,k,C){let I=fIe(k.server,A),D={level:k.logLevel};k.logSerializers&&(D.serializers=k.logSerializers);let G=lIe(k,i,A,I,D);if(G[aIe]=c,!h(A.httpVersion)){G.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let j='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',Y={"Content-Type":"application/json","Content-Length":j.length};T.writeHead(505,Y),T.end(j);return}if(m===!0&&(A.httpVersionMajor!==2&&T.setHeader("Connection","close"),f)){let j={"Content-Type":"application/json","Content-Length":"80"};T.writeHead(503,j),T.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),G.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",mIe.bind({keepAliveConnections:p,socket:A.socket}))),A.headers[H$]!==void 0&&(A.headers["accept-version"]=A.headers[H$],A.headers[H$]=void 0);let z=new k.Request(I,$,A,C,G,k),X=new k.Reply(T,z,G);c===!1&&G.info({req:z},"incoming request"),(s===!0||k.onResponse!==null)&&o(X),k.onRequest!==null?LOe(k.onRequest,z,X,t7):t7(null,z,X),k.onRequestAbort!==null&&A.on("close",()=>{A.aborted&&NOe(k.onRequestAbort,z,pIe.bind(null,X))}),k.onTimeout!==null&&(z.raw.socket._meta||z.raw.socket.on("timeout",hIe),z.raw.socket._meta={context:k,request:z,reply:X})}}function pIe(t,e){e&&t.log.error({err:e},"onRequestAborted hook failed")}function hIe(){let{context:t,request:e,reply:r}=this._meta;DOe(t.onTimeout,e,r,yIe)}function Zz(t){if(typeof t!="string")throw new ZOe;if(t=t.toUpperCase(),qOe.indexOf(t)===-1)throw new QOe(t);return t}function e7(t,e,r){if((t==="GET"||t==="HEAD")&&r&&r.body)throw new eIe(t,e)}function r7(t){if(t!==void 0&&(!Number.isInteger(t)||t<=0))throw new tIe(t)}function t7(t,e,r){if(r.sent!==!0){if(t!=null){r[sIe]=!0,r.send(t);return}e[oIe]=e.raw,e[Qz].preParsing!==null?kOe(e[Qz].preParsing,e,r,Uz):Uz(null,e,r)}}function mIe(){this.keepAliveConnections.delete(this.socket)}function yIe(){}n7.exports={buildRouting:dIe,validateBodyLimitOption:r7}});var f7=_((eWe,l7)=>{"use strict";var gIe=M$(),s7=F0(),o7=rm(),vIe=nm(),{kRoutePrefix:xIe,kCanSetNotFoundHandler:rp,kFourOhFourLevelInstance:np,kFourOhFourContext:Xi,kHooks:_Ie,kErrorHandler:a7}=or(),{lifecycleHooks:bIe}=Zs(),{buildErrorHandler:EIe}=Sf(),{FST_ERR_NOT_FOUND:wIe}=Ar(),{createChildLogger:c7}=Hl(),{getGenReqId:u7}=Uy();function SIe(t){let{logger:e}=t,r=gIe({onBadUrl:o(),defaultRoute:u}),n=null;return{router:r,setNotFoundHandler:c,setContext:a,arrange404:i};function i(f){f[np]=f,f[rp]=!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 o(){return function(d,h,p){let m=this[np][Xi],g=u7(m.server,h),y=c7(m,e,h,g),b=new o7(g,null,h,null,y,m),x=new s7(p,b,y);n(b,x)}}function a(f,d){let h=Object.assign({},f[Xi]);h.onSend=d.onSend,d[Xi]=h}function c(f,d,h,p){this[rp]===void 0&&(this[rp]=!0),this[Xi]===void 0&&(this[Xi]=null);let m=this,g=this[xIe]||"/";if(this[rp]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${g}'`);typeof f=="object"&&(f.preHandler&&(Array.isArray(f.preHandler)?f.preHandler=f.preHandler.map(y=>y.bind(m)):f.preHandler=f.preHandler.bind(m)),f.preValidation&&(Array.isArray(f.preValidation)?f.preValidation=f.preValidation.map(y=>y.bind(m)):f.preValidation=f.preValidation.bind(m))),typeof f=="function"&&(d=f,f=void 0),f=f||{},d?(this[np][rp]=!1,d=d.bind(this),n=d):(d=s,n=s),this.after((y,b)=>{l.call(this,g,f,d,h,p),b(y)})}function l(f,d,h,p,m){let g=new vIe({schema:d.schema,handler:h,config:d.config||{},server:this});if(p.once("preReady",()=>{let y=this[Xi];for(let b of bIe){let x=this[_Ie][b].concat(d[b]||[]).map(v=>v.bind(this));y[b]=x.length?x:null}y.errorHandler=d.errorHandler?EIe(this[a7],d.errorHandler):this[a7]}),this[Xi]!==null&&f==="/"){Object.assign(this[Xi],g);return}this[np][Xi]=g,r.all(f+(f.endsWith("/")?"*":"/*"),m,g),r.all(f,m,g)}function u(f,d){let h=this[np][Xi],p=u7(h.server,f),m=c7(h,e,f,p);m.info({req:f},"incoming request");let g=new o7(p,null,f,null,m,h),y=new s7(d,g,m);g.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),g.log.warn(r.prettyPrint()),y.code(404).send(new wIe)}}l7.exports=SIe});var p7=_((tWe,ag)=>{"use strict";ag.exports=ut;ag.exports.default=ut;var d7={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:{}}}}}},AIe=Object.prototype.hasOwnProperty,TIe=new RegExp("idle","u");function ut(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(o===0)if(t&&typeof t=="object"&&!Array.isArray(t)){t.connectionTimeout===void 0&&(t.connectionTimeout=0),t.keepAliveTimeout===void 0&&(t.keepAliveTimeout=72e3),t.maxRequestsPerSocket===void 0&&(t.maxRequestsPerSocket=0),t.requestTimeout===void 0&&(t.requestTimeout=0),t.bodyLimit===void 0&&(t.bodyLimit=1048576),t.caseSensitive===void 0&&(t.caseSensitive=!0),t.allowUnsafeRegex===void 0&&(t.allowUnsafeRegex=!1),t.ignoreTrailingSlash===void 0&&(t.ignoreTrailingSlash=!1),t.ignoreDuplicateSlashes===void 0&&(t.ignoreDuplicateSlashes=!1),t.disableRequestLogging===void 0&&(t.disableRequestLogging=!1),t.jsonShorthand===void 0&&(t.jsonShorthand=!0),t.maxParamLength===void 0&&(t.maxParamLength=100),t.onProtoPoisoning===void 0&&(t.onProtoPoisoning="error"),t.onConstructorPoisoning===void 0&&(t.onConstructorPoisoning="error"),t.pluginTimeout===void 0&&(t.pluginTimeout=1e4),t.requestIdHeader===void 0&&(t.requestIdHeader="request-id"),t.requestIdLogLabel===void 0&&(t.requestIdLogLabel="reqId"),t.http2SessionTimeout===void 0&&(t.http2SessionTimeout=72e3),t.exposeHeadRoutes===void 0&&(t.exposeHeadRoutes=!0),t.useSemicolonDelimiter===void 0&&(t.useSemicolonDelimiter=!0);let p=o;for(let m in t)AIe.call(d7.properties,m)||delete t[m];if(p===o){let m=t.connectionTimeout,g=o;if(!(typeof m=="number"&&!(m%1)&&!isNaN(m)&&isFinite(m))){let y=typeof m,b;if(b===void 0)if(y==="boolean"||m===null||y==="string"&&m&&m==+m&&!(m%1))b=+m;else return ut.errors=[{instancePath:e+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;b!==void 0&&(m=b,t!==void 0&&(t.connectionTimeout=b))}var a=g===o;if(a){let y=t.keepAliveTimeout,b=o;if(!(typeof y=="number"&&!(y%1)&&!isNaN(y)&&isFinite(y))){let v=typeof y,E;if(E===void 0)if(v==="boolean"||y===null||v==="string"&&y&&y==+y&&!(y%1))E=+y;else return ut.errors=[{instancePath:e+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;E!==void 0&&(y=E,t!==void 0&&(t.keepAliveTimeout=E))}var a=b===o;if(a){if(t.forceCloseConnections!==void 0){let v=t.forceCloseConnections,E=o,S=o,w=!1,A=null,T=o;if(typeof v!="string"){let C=typeof v,I;if(I===void 0)if(C=="number"||C=="boolean")I=""+v;else if(v===null)I="";else{let D={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),o++}I!==void 0&&(v=I,t!==void 0&&(t.forceCloseConnections=I))}if(o===T&&typeof v=="string"&&!TIe.test(v)){let C={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};s===null?s=[C]:s.push(C),o++}var c=T===o;c&&(w=!0,A=0);let $=o;if(typeof v!="boolean"){let C;if(C===void 0)if(v==="false"||v===0||v===null)C=!1;else if(v==="true"||v===1)C=!0;else{let I={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[I]:s.push(I),o++}C!==void 0&&(v=C,t!==void 0&&(t.forceCloseConnections=C))}var c=$===o;if(c&&w?(w=!1,A=[A,1]):c&&(w=!0,A=1),w)o=S,s!==null&&(S?s.length=S:s=null);else{let C={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[C]:s.push(C),o++,ut.errors=s,!1}var a=E===o}else var a=!0;if(a){let v=t.maxRequestsPerSocket,E=o;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v))&&v!==null){let w=typeof v,A;if(A===void 0)if(w==="boolean"||v===null||w==="string"&&v&&v==+v&&!(v%1))A=+v;else if(v===""||v===0||v===!1)A=null;else return ut.errors=[{instancePath:e+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;A!==void 0&&(v=A,t!==void 0&&(t.maxRequestsPerSocket=A))}var a=E===o;if(a){let w=t.requestTimeout,A=o;if(!(typeof w=="number"&&!(w%1)&&!isNaN(w)&&isFinite(w))){let $=typeof w,k;if(k===void 0)if($==="boolean"||w===null||$==="string"&&w&&w==+w&&!(w%1))k=+w;else return ut.errors=[{instancePath:e+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;k!==void 0&&(w=k,t!==void 0&&(t.requestTimeout=k))}var a=A===o;if(a){let $=t.bodyLimit,k=o;if(!(typeof $=="number"&&!($%1)&&!isNaN($)&&isFinite($))){let I=typeof $,D;if(D===void 0)if(I==="boolean"||$===null||I==="string"&&$&&$==+$&&!($%1))D=+$;else return ut.errors=[{instancePath:e+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;D!==void 0&&($=D,t!==void 0&&(t.bodyLimit=D))}var a=k===o;if(a){let I=t.caseSensitive,D=o;if(typeof I!="boolean"){let B;if(B===void 0)if(I==="false"||I===0||I===null)B=!1;else if(I==="true"||I===1)B=!0;else return ut.errors=[{instancePath:e+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;B!==void 0&&(I=B,t!==void 0&&(t.caseSensitive=B))}var a=D===o;if(a){let B=t.allowUnsafeRegex,z=o;if(typeof B!="boolean"){let j;if(j===void 0)if(B==="false"||B===0||B===null)j=!1;else if(B==="true"||B===1)j=!0;else return ut.errors=[{instancePath:e+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;j!==void 0&&(B=j,t!==void 0&&(t.allowUnsafeRegex=j))}var a=z===o;if(a){if(t.http2!==void 0){let j=t.http2,Y=o;if(typeof j!="boolean"){let K;if(K===void 0)if(j==="false"||j===0||j===null)K=!1;else if(j==="true"||j===1)K=!0;else return ut.errors=[{instancePath:e+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;K!==void 0&&(j=K,t!==void 0&&(t.http2=K))}var a=Y===o}else var a=!0;if(a){if(t.https!==void 0){let j=t.https,Y=o,J=o,K=!0,Z=o,pe=o,de=o,fe=o,ce=!1,ie=null,P=o;if(typeof j!="boolean"){let R;if(R===void 0)if(j==="false"||j===0||j===null)R=!1;else if(j==="true"||j===1)R=!0;else{let N={};s===null?s=[N]:s.push(N),o++}R!==void 0&&(j=R,t!==void 0&&(t.https=R))}var l=P===o;l&&(ce=!0,ie=0);let O=o;if(j!==null){let R;if(R===void 0)if(j===""||j===0||j===!1)R=null;else{let N={};s===null?s=[N]:s.push(N),o++}R!==void 0&&(j=R,t!==void 0&&(t.https=R))}var l=O===o;if(l&&ce)ce=!1,ie=[ie,1];else{l&&(ce=!0,ie=1);let R=o;if(o===R)if(j&&typeof j=="object"&&!Array.isArray(j)){let q;if(j.allowHTTP1===void 0&&(q="allowHTTP1")){let U={};s===null?s=[U]:s.push(U),o++}else{let U=o;for(let F in j)F!=="allowHTTP1"&&delete j[F];if(U===o&&j.allowHTTP1!==void 0){let F=j.allowHTTP1;if(typeof F!="boolean"){let M;if(M===void 0)if(F==="false"||F===0||F===null)M=!1;else if(F==="true"||F===1)M=!0;else{let H={};s===null?s=[H]:s.push(H),o++}M!==void 0&&(F=M,j!==void 0&&(j.allowHTTP1=M))}}}}else{let q={};s===null?s=[q]:s.push(q),o++}var l=R===o;l&&ce?(ce=!1,ie=[ie,2]):l&&(ce=!0,ie=2)}if(ce)o=fe,s!==null&&(fe?s.length=fe:s=null);else{let R={};s===null?s=[R]:s.push(R),o++}var u=de===o;if(u){let R={};s===null?s=[R]:s.push(R),o++}else o=pe,s!==null&&(pe?s.length=pe:s=null);var f=Z===o;if(o=J,s!==null&&(J?s.length=J:s=null),f){let R=o;t.https=!0;var f=R===o;K=f}if(!K){let R={instancePath:e+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return s===null?s=[R]:s.push(R),o++,ut.errors=s,!1}var a=Y===o}else var a=!0;if(a){let j=t.ignoreTrailingSlash,Y=o;if(typeof j!="boolean"){let K;if(K===void 0)if(j==="false"||j===0||j===null)K=!1;else if(j==="true"||j===1)K=!0;else return ut.errors=[{instancePath:e+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;K!==void 0&&(j=K,t!==void 0&&(t.ignoreTrailingSlash=K))}var a=Y===o;if(a){let K=t.ignoreDuplicateSlashes,Z=o;if(typeof K!="boolean"){let de;if(de===void 0)if(K==="false"||K===0||K===null)de=!1;else if(K==="true"||K===1)de=!0;else return ut.errors=[{instancePath:e+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;de!==void 0&&(K=de,t!==void 0&&(t.ignoreDuplicateSlashes=de))}var a=Z===o;if(a){let de=t.disableRequestLogging,fe=o;if(typeof de!="boolean"){let ie;if(ie===void 0)if(de==="false"||de===0||de===null)ie=!1;else if(de==="true"||de===1)ie=!0;else return ut.errors=[{instancePath:e+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ie!==void 0&&(de=ie,t!==void 0&&(t.disableRequestLogging=ie))}var a=fe===o;if(a){let ie=t.jsonShorthand,P=o;if(typeof ie!="boolean"){let L;if(L===void 0)if(ie==="false"||ie===0||ie===null)L=!1;else if(ie==="true"||ie===1)L=!0;else return ut.errors=[{instancePath:e+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(ie=L,t!==void 0&&(t.jsonShorthand=L))}var a=P===o;if(a){let L=t.maxParamLength,R=o;if(!(typeof L=="number"&&!(L%1)&&!isNaN(L)&&isFinite(L))){let q=typeof L,U;if(U===void 0)if(q==="boolean"||L===null||q==="string"&&L&&L==+L&&!(L%1))U=+L;else return ut.errors=[{instancePath:e+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;U!==void 0&&(L=U,t!==void 0&&(t.maxParamLength=U))}var a=R===o;if(a){let q=t.onProtoPoisoning,U=o;if(typeof q!="string"){let M=typeof q,H;if(H===void 0)if(M=="number"||M=="boolean")H=""+q;else if(q===null)H="";else return ut.errors=[{instancePath:e+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;H!==void 0&&(q=H,t!==void 0&&(t.onProtoPoisoning=H))}var a=U===o;if(a){let M=t.onConstructorPoisoning,H=o;if(typeof M!="string"){let Q=typeof M,se;if(se===void 0)if(Q=="number"||Q=="boolean")se=""+M;else if(M===null)se="";else return ut.errors=[{instancePath:e+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;se!==void 0&&(M=se,t!==void 0&&(t.onConstructorPoisoning=se))}var a=H===o;if(a){let Q=t.pluginTimeout,se=o;if(!(typeof Q=="number"&&!(Q%1)&&!isNaN(Q)&&isFinite(Q))){let we=typeof Q,Ue;if(Ue===void 0)if(we==="boolean"||Q===null||we==="string"&&Q&&Q==+Q&&!(Q%1))Ue=+Q;else return ut.errors=[{instancePath:e+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Ue!==void 0&&(Q=Ue,t!==void 0&&(t.pluginTimeout=Ue))}var a=se===o;if(a){let we=t.requestIdHeader,Ue=o,dt=o,Te=!1,rt=o;if(we!==!1){let At={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:d7.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};s===null?s=[At]:s.push(At),o++}var d=rt===o;if(Te=Te||d,!Te){let At=o;if(typeof we!="string"){let Ys=typeof we,Ve;if(Ve===void 0)if(Ys=="number"||Ys=="boolean")Ve=""+we;else if(we===null)Ve="";else{let Wt={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Wt]:s.push(Wt),o++}Ve!==void 0&&(we=Ve,t!==void 0&&(t.requestIdHeader=Ve))}var d=At===o;Te=Te||d}if(Te)o=dt,s!==null&&(dt?s.length=dt:s=null);else{let At={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[At]:s.push(At),o++,ut.errors=s,!1}var a=Ue===o;if(a){let At=t.requestIdLogLabel,ei=o;if(typeof At!="string"){let Ve=typeof At,Wt;if(Wt===void 0)if(Ve=="number"||Ve=="boolean")Wt=""+At;else if(At===null)Wt="";else return ut.errors=[{instancePath:e+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Wt!==void 0&&(At=Wt,t!==void 0&&(t.requestIdLogLabel=Wt))}var a=ei===o;if(a){let Ve=t.http2SessionTimeout,Wt=o;if(!(typeof Ve=="number"&&!(Ve%1)&&!isNaN(Ve)&&isFinite(Ve))){let pt=typeof Ve,nt;if(nt===void 0)if(pt==="boolean"||Ve===null||pt==="string"&&Ve&&Ve==+Ve&&!(Ve%1))nt=+Ve;else return ut.errors=[{instancePath:e+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;nt!==void 0&&(Ve=nt,t!==void 0&&(t.http2SessionTimeout=nt))}var a=Wt===o;if(a){let pt=t.exposeHeadRoutes,nt=o;if(typeof pt!="boolean"){let hr;if(hr===void 0)if(pt==="false"||pt===0||pt===null)hr=!1;else if(pt==="true"||pt===1)hr=!0;else return ut.errors=[{instancePath:e+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;hr!==void 0&&(pt=hr,t!==void 0&&(t.exposeHeadRoutes=hr))}var a=nt===o;if(a){let hr=t.useSemicolonDelimiter,Ix=o;if(typeof hr!="boolean"){let Gt;if(Gt===void 0)if(hr==="false"||hr===0||hr===null)Gt=!1;else if(hr==="true"||hr===1)Gt=!0;else return ut.errors=[{instancePath:e+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Gt!==void 0&&(hr=Gt,t!==void 0&&(t.useSemicolonDelimiter=Gt))}var a=Ix===o;if(a){if(t.versioning!==void 0){let Gt=t.versioning,la=o;if(o===la)if(Gt&&typeof Gt=="object"&&!Array.isArray(Gt)){let $n;if(Gt.storage===void 0&&($n="storage")||Gt.deriveVersion===void 0&&($n="deriveVersion"))return ut.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:$n},message:"must have required property '"+$n+"'"}],!1}else return ut.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=la===o}else var a=!0;if(a)if(t.constraints!==void 0){let Gt=t.constraints,la=o;if(o===la)if(Gt&&typeof Gt=="object"&&!Array.isArray(Gt))for(let $n in Gt){let Sn=Gt[$n],dh=o;if(o===dh)if(Sn&&typeof Sn=="object"&&!Array.isArray(Sn)){let cs;if(Sn.name===void 0&&(cs="name")||Sn.storage===void 0&&(cs="storage")||Sn.validate===void 0&&(cs="validate")||Sn.deriveConstraint===void 0&&(cs="deriveConstraint"))return ut.errors=[{instancePath:e+"/constraints/"+$n.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:cs},message:"must have required property '"+cs+"'"}],!1;if(Sn.name!==void 0){let fa=Sn.name;if(typeof fa!="string"){let Dl=typeof fa,Kt;if(Kt===void 0)if(Dl=="number"||Dl=="boolean")Kt=""+fa;else if(fa===null)Kt="";else return ut.errors=[{instancePath:e+"/constraints/"+$n.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Kt!==void 0&&(fa=Kt,Sn!==void 0&&(Sn.name=Kt))}}}else return ut.errors=[{instancePath:e+"/constraints/"+$n.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=dh===o;if(!h)break}else return ut.errors=[{instancePath:e+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=la===o}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return ut.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ut.errors=s,o===0}ag.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 h7=_((rWe,ug)=>{"use strict";var cg=p7(),$Ie=Wh()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:RIe}=Ar();function PIe(t){let e=$Ie(t);if(!cg(e)){let r=new RIe(JSON.stringify(cg.errors.map(n=>n.message)));throw r.errors=cg.errors,r}return W$(e)}function W$(t){let e=Object.getOwnPropertyNames(t);for(let r of e){let n=t[r];ArrayBuffer.isView(n)&&!(n instanceof DataView)||(t[r]=n&&typeof n=="object"?W$(n):n)}return Object.freeze(t)}ug.exports=PIe;ug.exports.defaultInitOptions=cg.defaultInitOptions;ug.exports.utils={deepFreezeObject:W$}});var w7=_((nWe,E7)=>{"use strict";var{kAvvioBoot:CIe,kChildren:m7,kRoutePrefix:y7,kLogLevel:g7,kLogSerializers:G$,kHooks:K$,kSchemaController:Qu,kContentTypeParser:v7,kReply:x7,kRequest:_7,kFourOhFour:OIe,kPluginNameChain:b7}=or(),IIe=F0(),NIe=rm(),kIe=v$(),DIe=KE(),{buildHooks:LIe}=Zs(),ip=S$();E7.exports=function(e,r,n){let i=ip.registerPlugin.call(e,r),s=ip.getPluginName(r)||ip.getFuncPreview(r);if(i)return e[b7].push(s),e;let o=Object.create(e);e[m7].push(o),o.ready=e[CIe].bind(o),o[m7]=[],o[x7]=IIe.buildReply(o[x7]),o[_7]=NIe.buildRequest(o[_7]),o[v7]=DIe.helpers.buildContentTypeParser(o[v7]),o[K$]=LIe(o[K$]),o[y7]=qIe(o[y7],n.prefix),o[g7]=n.logLevel||o[g7],o[Qu]=kIe.buildSchemaController(e[Qu]),o.getSchema=o[Qu].getSchema.bind(o[Qu]),o.getSchemas=o[Qu].getSchemas.bind(o[Qu]),o[ip.kRegisteredPlugins]=Object.create(o[ip.kRegisteredPlugins]),o[b7]=[s],(o[G$]||n.logSerializers)&&(o[G$]=Object.assign(Object.create(o[G$]),n.logSerializers)),n.prefix&&o[OIe].arrange404(o);for(let a of o[K$].onRegister)a.call(this,o,n);return o};function qIe(t,e){return e?(t.endsWith("/")&&e[0]==="/"?e=e.slice(1):e[0]!=="/"&&(e="/"+e),t+e):t}});var A7=_((iWe,S7)=>{"use strict";S7.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var R7=_(X$=>{"use strict";X$.parse=HIe;X$.serialize=VIe;var jIe=Object.prototype.toString,FIe=Object.prototype.hasOwnProperty,MIe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,BIe=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,UIe=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,zIe=/^[\u0020-\u003A\u003D-\u007E]*$/;function HIe(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");var r={},n=t.length;if(n<2)return r;var i=e&&e.decode||WIe,s=0,o=0,a=0;do{if(o=t.indexOf("=",s),o===-1)break;if(a=t.indexOf(";",s),a===-1)a=n;else if(o>a){s=t.lastIndexOf(";",o-1)+1;continue}var c=T7(t,s,o),l=$7(t,o,c),u=t.slice(c,l);if(!FIe.call(r,u)){var f=T7(t,o+1,a),d=$7(t,a,f);t.charCodeAt(f)===34&&t.charCodeAt(d-1)===34&&(f++,d--);var h=t.slice(f,d);r[u]=KIe(h,i)}s=a+1}while(sr;){var n=t.charCodeAt(--e);if(n!==32&&n!==9)return e+1}return r}function VIe(t,e,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!MIe.test(t))throw new TypeError("argument name is invalid");var i=n(e);if(!BIe.test(i))throw new TypeError("argument val is invalid");var s=t+"="+i;if(!r)return s;if(r.maxAge!=null){var o=Math.floor(r.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+o}if(r.domain){if(!UIe.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!zIe.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){var a=r.expires;if(!GIe(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+a.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.partitioned&&(s+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){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 WIe(t){return t.indexOf("%")!==-1?decodeURIComponent(t):t}function GIe(t){return jIe.call(t)==="[object Date]"}function KIe(t,e){try{return e(t)}catch{return t}}});var O7=_((oWe,C7)=>{"use strict";var{URL:P7}=require("node:url"),Y$="http://localhost";C7.exports=function(e,r){(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]")&&e.startsWith("//")&&(e=Y$+e);let n=typeof e=="object"?Object.assign(new P7(Y$),e):new P7(e,Y$);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({},e.query,r);for(let s in i){let o=i[s];if(Array.isArray(o)){n.searchParams.delete(s);for(let a of o)n.searchParams.append(s,a)}else n.searchParams.set(s,o)}}return n}});var I7=_((aWe,J$)=>{"use strict";var{randomUUID:XIe}=require("node:crypto"),{Readable:YIe}=require("node:stream"),Zu;function JIe(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}function QIe(t){Zu=Zu??new TextEncoder;let e=`----formdata-${XIe()}`,r=`--${e}\r -Content-Disposition: form-data`;let n=c=>c.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),i=c=>c.replace(/\r?\n|\r/g,`\r -`),s=new Uint8Array([13,10]);async function*o(){for(let[c,l]of t)if(typeof l=="string")yield Zu.encode(`${r}; name="${n(i(c))}"\r -\r -`),yield Zu.encode(`${i(l)}\r -`);else{let u=`${r}; name="${n(i(c))}"`;l.name&&(u+=`; filename="${n(l.name)}"`),u+=`\r -Content-Type: ${l.type||"application/octet-stream"}\r -\r -`,yield Zu.encode(u),l.stream?yield*l.stream():yield l,yield s}yield Zu.encode(`--${e}--`)}return{stream:YIe.from(o()),contentType:`multipart/form-data; boundary=${e}`}}J$.exports.isFormDataLike=JIe;J$.exports.formDataToStream=QIe});var D7=_((cWe,lg)=>{"use strict";var{Readable:N7,addAbortSignal:ZIe}=require("node:stream"),Z$=require("node:util"),eNe=R7(),tNe=require("node:assert"),{createDeprecation:rNe}=Vx(),nNe=O7(),{isFormDataLike:iNe,formDataToStream:sNe}=I7(),{EventEmitter:oNe}=require("node:events"),aNe=rNe({name:"FastifyDeprecationLightMyRequest",code:"FST_LIGHTMYREQUEST_DEP01",message:'You are accessing "request.connection", use "request.socket" instead.'});function cNe(t){return t.port?t.host:t.hostname+(t.protocol==="https:"?":443":":80")}var Q$=class extends oNe{constructor(e){super(),this.remoteAddress=e}};function k7(t){return new e(this);function e(r){Yi.call(r,{...t,Request:void 0}),Object.assign(this,r);for(let n of Object.keys(Yi.prototype))this.constructor.prototype[n]=Yi.prototype[n];return Z$.inherits(this.constructor,t.Request),this}}function Yi(t){N7.call(this,{autoDestroy:!1});let e=nNe(t.url||t.path,t.query);this.url=e.pathname+e.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=t.method?t.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let r=t.headers||{};for(let o in r){let a=o.toLowerCase();if((a==="user-agent"||a==="content-type")&&r[o]===void 0){this.headers[a]=void 0;continue}let c=r[o];tNe(c!==void 0,'invalid value "undefined" for header '+o),this.headers[a]=""+c}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||t.authority||cNe(e),t.cookies){let{cookies:o}=t,a=Object.keys(o).map(c=>eNe.serialize(c,o[c]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new Q$(t.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return aNe(),this.socket},configurable:!0});let n=t.payload||t.body||null,i=n&&typeof n.resume=="function";if(iNe(n)){let o=sNe(n);n=o.stream,i=!0,this.headers["content-type"]=o.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 o of Object.keys(this.headers))this.rawHeaders.push(o,this.headers[o]);this._lightMyRequest={payload:n,isDone:!1,simulate:t.simulate||{}};let s=t.signal;return s&&ZIe(s,this),this}Z$.inherits(Yi,N7);Z$.inherits(k7,Yi);Yi.prototype.prepare=function(t){let e=this._lightMyRequest.payload;if(!e||typeof e.resume!="function")return t();let r=[];e.on("data",n=>r.push(Buffer.from(n))),e.on("end",()=>{let n=Buffer.concat(r);return this.headers["content-length"]=this.headers["content-length"]||""+n.length,this._lightMyRequest.payload=n,t()}),e.resume()};Yi.prototype._read=function(t){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)})};Yi.prototype.destroy=function(t){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,t&&(this._error=!0,process.nextTick(()=>this.emit("error",t))),process.nextTick(()=>this.emit("close")))};lg.exports=Yi;lg.exports.Request=Yi;lg.exports.CustomRequest=k7});var q7=_((uWe,sp)=>{"use strict";var fg={decodeValues:!0,map:!1,silent:!1};function eR(t){return typeof t!="string"||t in{}}function tR(){return Object.create(null)}function rR(t){return typeof t=="string"&&!!t.trim()}function nR(t,e){var r=t.split(";").filter(rR),n=r.shift(),i=uNe(n),s=i.name,o=i.value;if(e=e?Object.assign({},fg,e):fg,eR(s))return null;try{o=e.decodeValues?decodeURIComponent(o):o}catch(c){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",c)}var a=tR();return a.name=s,a.value=o,r.forEach(function(c){var l=c.split("="),u=l.shift().trimLeft().toLowerCase();if(!eR(u)){var f=l.join("=");if(u==="expires")a.expires=new Date(f);else if(u==="max-age"){var d=parseInt(f,10);Number.isNaN(d)||(a.maxAge=d)}else u==="secure"?a.secure=!0:u==="httponly"?a.httpOnly=!0:u==="samesite"?a.sameSite=f:u==="partitioned"?a.partitioned=!0:u&&(a[u]=f)}}),a}function uNe(t){var e="",r="",n=t.split("=");return n.length>1?(e=n.shift(),r=n.join("=")):r=t,{name:e,value:r}}function L7(t,e){if(e=e?Object.assign({},fg,e):fg,!t)return e.map?tR():[];if(t.headers)if(typeof t.headers.getSetCookie=="function")t=t.headers.getSetCookie();else if(t.headers["set-cookie"])t=t.headers["set-cookie"];else{var r=t.headers[Object.keys(t.headers).find(function(i){return i.toLowerCase()==="set-cookie"})];!r&&t.headers.cookie&&!e.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."),t=r}if(Array.isArray(t)||(t=[t]),e.map){var n=tR();return t.filter(rR).reduce(function(i,s){var o=nR(s,e);return o&&!eR(o.name)&&(i[o.name]=o),i},n)}else return t.filter(rR).map(function(i){return nR(i,e)}).filter(Boolean)}function lNe(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],r=0,n,i,s,o,a;function c(){for(;r=t.length)&&e.push(t.substring(n,t.length))}return e}sp.exports=L7;sp.exports.parse=L7;sp.exports.parseString=nR;sp.exports.splitCookiesString=lNe});var M7=_((lWe,F7)=>{"use strict";var op=require("node:http"),{Writable:fNe,Readable:dNe}=require("node:stream"),pNe=require("node:util"),hNe=q7();function Lo(t,e,r){op.ServerResponse.call(this,t),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(yNe()),this._promiseCallback=typeof r=="function";let n=!1,i=o=>{if(n=!0,this._promiseCallback)return process.nextTick(()=>e(o));process.nextTick(()=>e(null,o))},s=o=>{if(!n){if(n=!0,this._promiseCallback)return process.nextTick(()=>r(o));process.nextTick(()=>e(o,null))}};this.once("finish",()=>{let o=mNe(this);o.raw.req=t,i(o)}),this.connection.once("error",s),this.once("error",s),this.once("close",s)}pNe.inherits(Lo,op.ServerResponse);Lo.prototype.setTimeout=function(t,e){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},t),this.on("timeout",e),this};Lo.prototype.writeHead=function(){let t=op.ServerResponse.prototype.writeHead.apply(this,arguments);return j7(this),t};Lo.prototype.write=function(t,e,r){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),op.ServerResponse.prototype.write.call(this,t,e,r),this._lightMyRequest.payloadChunks.push(Buffer.from(t,e)),!0};Lo.prototype.end=function(t,e,r){t&&this.write(t,e),op.ServerResponse.prototype.end.call(this,r),this.emit("finish"),this.destroy()};Lo.prototype.destroy=function(t){this.destroyed||(this.destroyed=!0,t&&process.nextTick(()=>this.emit("error",t)),process.nextTick(()=>this.emit("close")))};Lo.prototype.addTrailers=function(t){for(let e in t)this._lightMyRequest.trailers[e.toLowerCase().trim()]=t[e].toString().trim()};function mNe(t){t._lightMyRequest.headers===null&&j7(t),gNe(t);let e={raw:{res:t},headers:t._lightMyRequest.headers,statusCode:t.statusCode,statusMessage:t.statusMessage,trailers:{},get cookies(){return hNe.parse(this)}},r=Buffer.concat(t._lightMyRequest.payloadChunks);return e.rawPayload=r,e.payload=r.toString(),e.body=e.payload,e.trailers=t._lightMyRequest.trailers,e.json=function(){return JSON.parse(e.payload)},e.stream=function(){return dNe.from(t._lightMyRequest.payloadChunks)},e}function yNe(){return new fNe({write(t,e,r){setImmediate(r)}})}function gNe(t){let e=t._lightMyRequest.headers;for(let r of Object.keys(e)){let n=e[r];Array.isArray(n)?e[r]=n.map(i=>""+i):e[r]=""+n}}function j7(t){t._lightMyRequest.headers=Object.assign({},t.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(e=>{let r=new RegExp("\\r\\n"+e+": ([^\\r]*)\\r\\n"),n=t._header.match(r);n&&(t._lightMyRequest.headers[e.toLowerCase()]=n[1])})}F7.exports=Lo});var B7=_((fWe,iR)=>{"use strict";iR.exports=Xt;iR.exports.default=Xt;var vNe={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 Xt(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o,c=!1,l=null,u=o;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.url===void 0&&(v="url")){let E={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};s===null?s=[E]:s.push(E),o++}}var d=u===o;d&&(c=!0,l=0);let f=o;if(t&&typeof t=="object"&&!Array.isArray(t)){let v;if(t.path===void 0&&(v="path")){let E={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};s===null?s=[E]:s.push(E),o++}}var d=f===o;if(d&&c?(c=!1,l=[l,1]):d&&(c=!0,l=1),c)o=a,s!==null&&(a?s.length=a:s=null);else{let v={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};return s===null?s=[v]:s.push(v),o++,Xt.errors=s,!1}if(o===0)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url!==void 0){let v=t.url,E=o,S=o,w=!1,A=null,T=o;if(typeof v!="string"){let k=typeof v,C;if(C===void 0)if(k=="number"||k=="boolean")C=""+v;else if(v===null)C="";else{let I={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),o++}C!==void 0&&(v=C,t!==void 0&&(t.url=C))}var p=T===o;p&&(w=!0,A=0);let $=o;if(o===$)if(v&&typeof v=="object"&&!Array.isArray(v)){let k;if(v.pathname===void 0&&(k="pathname")){let C={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};s===null?s=[C]:s.push(C),o++}else{if(v.protocol!==void 0){let C=v.protocol,I=o;if(typeof C!="string"){let D=typeof C,G;if(G===void 0)if(D=="number"||D=="boolean")G=""+C;else if(C===null)G="";else{let B={instancePath:e+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[B]:s.push(B),o++}G!==void 0&&(C=G,v!==void 0&&(v.protocol=G))}var h=I===o}else var h=!0;if(h){if(v.hostname!==void 0){let C=v.hostname,I=o;if(typeof C!="string"){let G=typeof C,B;if(B===void 0)if(G=="number"||G=="boolean")B=""+C;else if(C===null)B="";else{let z={instancePath:e+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),o++}B!==void 0&&(C=B,v!==void 0&&(v.hostname=B))}var h=I===o}else var h=!0;if(h)if(v.pathname!==void 0){let C=v.pathname,I=o;if(typeof C!="string"){let G=typeof C,B;if(B===void 0)if(G=="number"||G=="boolean")B=""+C;else if(C===null)B="";else{let z={instancePath:e+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),o++}B!==void 0&&(C=B,v!==void 0&&(v.pathname=B))}var h=I===o}else var h=!0}}}else{let k={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[k]:s.push(k),o++}var p=$===o;if(p&&w?(w=!1,A=[A,1]):p&&(w=!0,A=1),w)o=S,s!==null&&(S?s.length=S:s=null);else{let k={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[k]:s.push(k),o++,Xt.errors=s,!1}var m=E===o}else var m=!0;if(m){if(t.path!==void 0){let v=t.path,E=o,S=o,w=!1,A=null,T=o;if(typeof v!="string"){let C=typeof v,I;if(I===void 0)if(C=="number"||C=="boolean")I=""+v;else if(v===null)I="";else{let D={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),o++}I!==void 0&&(v=I,t!==void 0&&(t.path=I))}var y=T===o;y&&(w=!0,A=0);let $=o;if(o===$)if(v&&typeof v=="object"&&!Array.isArray(v)){let C;if(v.pathname===void 0&&(C="pathname")){let I={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};s===null?s=[I]:s.push(I),o++}else{if(v.protocol!==void 0){let I=v.protocol,D=o;if(typeof I!="string"){let G=typeof I,B;if(B===void 0)if(G=="number"||G=="boolean")B=""+I;else if(I===null)B="";else{let z={instancePath:e+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),o++}B!==void 0&&(I=B,v!==void 0&&(v.protocol=B))}var g=D===o}else var g=!0;if(g){if(v.hostname!==void 0){let I=v.hostname,D=o;if(typeof I!="string"){let B=typeof I,z;if(z===void 0)if(B=="number"||B=="boolean")z=""+I;else if(I===null)z="";else{let X={instancePath:e+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),o++}z!==void 0&&(I=z,v!==void 0&&(v.hostname=z))}var g=D===o}else var g=!0;if(g)if(v.pathname!==void 0){let I=v.pathname,D=o;if(typeof I!="string"){let B=typeof I,z;if(z===void 0)if(B=="number"||B=="boolean")z=""+I;else if(I===null)z="";else{let X={instancePath:e+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),o++}z!==void 0&&(I=z,v!==void 0&&(v.pathname=z))}var g=D===o}else var g=!0}}}else{let C={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[C]:s.push(C),o++}var y=$===o;if(y&&w?(w=!1,A=[A,1]):y&&(w=!0,A=1),w)o=S,s!==null&&(S?s.length=S:s=null);else{let C={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:A},message:"must match exactly one schema in oneOf"};return s===null?s=[C]:s.push(C),o++,Xt.errors=s,!1}var m=E===o}else var m=!0;if(m){if(t.cookies!==void 0){let v=t.cookies,E=o;if(o===E&&!(v&&typeof v=="object"&&!Array.isArray(v)))return Xt.errors=[{instancePath:e+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=E===o}else var m=!0;if(m){if(t.headers!==void 0){let v=t.headers,E=o;if(o===E&&!(v&&typeof v=="object"&&!Array.isArray(v)))return Xt.errors=[{instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=E===o}else var m=!0;if(m){if(t.query!==void 0){let v=t.query,E=o,S=o,w=!1,A=o;if(o===A&&!(v&&typeof v=="object"&&!Array.isArray(v))){let $={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),o++}var b=A===o;if(w=w||b,!w){let $=o;if(typeof v!="string"){let C=typeof v,I;if(I===void 0)if(C=="number"||C=="boolean")I=""+v;else if(v===null)I="";else{let D={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),o++}I!==void 0&&(v=I,t!==void 0&&(t.query=I))}var b=$===o;w=w||b}if(w)o=S,s!==null&&(S?s.length=S:s=null);else{let $={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),o++,Xt.errors=s,!1}var m=E===o}else var m=!0;if(m){if(t.simulate!==void 0){let v=t.simulate,E=o;if(o===E)if(v&&typeof v=="object"&&!Array.isArray(v)){if(v.end!==void 0){let w=v.end,A=o;if(typeof w!="boolean"){let T;if(T===void 0)if(w==="false"||w===0||w===null)T=!1;else if(w==="true"||w===1)T=!0;else return Xt.errors=[{instancePath:e+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;T!==void 0&&(w=T,v!==void 0&&(v.end=T))}var x=A===o}else var x=!0;if(x){if(v.split!==void 0){let w=v.split,A=o;if(typeof w!="boolean"){let $;if($===void 0)if(w==="false"||w===0||w===null)$=!1;else if(w==="true"||w===1)$=!0;else return Xt.errors=[{instancePath:e+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;$!==void 0&&(w=$,v!==void 0&&(v.split=$))}var x=A===o}else var x=!0;if(x){if(v.error!==void 0){let w=v.error,A=o;if(typeof w!="boolean"){let $;if($===void 0)if(w==="false"||w===0||w===null)$=!1;else if(w==="true"||w===1)$=!0;else return Xt.errors=[{instancePath:e+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;$!==void 0&&(w=$,v!==void 0&&(v.error=$))}var x=A===o}else var x=!0;if(x)if(v.close!==void 0){let w=v.close,A=o;if(typeof w!="boolean"){let $;if($===void 0)if(w==="false"||w===0||w===null)$=!1;else if(w==="true"||w===1)$=!0;else return Xt.errors=[{instancePath:e+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;$!==void 0&&(w=$,v!==void 0&&(v.close=$))}var x=A===o}else var x=!0}}}else return Xt.errors=[{instancePath:e+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=E===o}else var m=!0;if(m){if(t.authority!==void 0){let v=t.authority,E=o;if(typeof v!="string"){let w=typeof v,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+v;else if(v===null)A="";else return Xt.errors=[{instancePath:e+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(v=A,t!==void 0&&(t.authority=A))}var m=E===o}else var m=!0;if(m){if(t.remoteAddress!==void 0){let v=t.remoteAddress,E=o;if(typeof v!="string"){let w=typeof v,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+v;else if(v===null)A="";else return Xt.errors=[{instancePath:e+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(v=A,t!==void 0&&(t.remoteAddress=A))}var m=E===o}else var m=!0;if(m){if(t.method!==void 0){let v=t.method,E=o;if(typeof v!="string"){let w=typeof v,A;if(A===void 0)if(w=="number"||w=="boolean")A=""+v;else if(v===null)A="";else return Xt.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;A!==void 0&&(v=A,t!==void 0&&(t.method=A))}if(!(v==="ACL"||v==="BIND"||v==="CHECKOUT"||v==="CONNECT"||v==="COPY"||v==="DELETE"||v==="GET"||v==="HEAD"||v==="LINK"||v==="LOCK"||v==="M-SEARCH"||v==="MERGE"||v==="MKACTIVITY"||v==="MKCALENDAR"||v==="MKCOL"||v==="MOVE"||v==="NOTIFY"||v==="OPTIONS"||v==="PATCH"||v==="POST"||v==="PROPFIND"||v==="PROPPATCH"||v==="PURGE"||v==="PUT"||v==="REBIND"||v==="REPORT"||v==="SEARCH"||v==="SOURCE"||v==="SUBSCRIBE"||v==="TRACE"||v==="UNBIND"||v==="UNLINK"||v==="UNLOCK"||v==="UNSUBSCRIBE"||v==="acl"||v==="bind"||v==="checkout"||v==="connect"||v==="copy"||v==="delete"||v==="get"||v==="head"||v==="link"||v==="lock"||v==="m-search"||v==="merge"||v==="mkactivity"||v==="mkcalendar"||v==="mkcol"||v==="move"||v==="notify"||v==="options"||v==="patch"||v==="post"||v==="propfind"||v==="proppatch"||v==="purge"||v==="put"||v==="rebind"||v==="report"||v==="search"||v==="source"||v==="subscribe"||v==="trace"||v==="unbind"||v==="unlink"||v==="unlock"||v==="unsubscribe"))return Xt.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:vNe.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var m=E===o}else var m=!0;if(m)if(t.validate!==void 0){let v=t.validate,E=o;if(typeof v!="boolean"){let w;if(w===void 0)if(v==="false"||v===0||v===null)w=!1;else if(v==="true"||v===1)w=!0;else return Xt.errors=[{instancePath:e+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;w!==void 0&&(v=w,t!==void 0&&(t.validate=w))}var m=E===o}else var m=!0}}}}}}}}}else return Xt.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Xt.errors=s,o===0}});var H7=_((dWe,cp)=>{"use strict";var xNe=require("node:assert"),sR=D7(),dg=M7(),hg="The dispatch function has already been invoked",U7=B7();function oR(t,e,r){return r===void 0?new ap(t,e):pg(t,e,r)}function z7(t,e,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(()=>t.call(e,r,n))}function pg(t,e,r){if(e=typeof e=="string"?{url:e}:e,e.validate!==!1&&(xNe(typeof t=="function","dispatchFunc should be a function"),!U7(e)))throw new Error(U7.errors.map(o=>o.message));let n=e.server||{},i=e.Request?sR.CustomRequest:sR;if(t.request&&t.request.app===t&&(Object.setPrototypeOf(Object.getPrototypeOf(t.request),i.prototype),Object.setPrototypeOf(Object.getPrototypeOf(t.response),dg.prototype)),typeof r=="function"){let s=new i(e),o=new dg(s,r);return z7(t,n,s,o)}else return new Promise((s,o)=>{let a=new i(e),c=new dg(a,s,o);z7(t,n,a,c)})}function ap(t,e){typeof e=="string"?this.option={url:e}:this.option=Object.assign({},e),this.dispatch=t,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var _Ne=["delete","get","head","options","patch","post","put","trace"];_Ne.forEach(t=>{ap.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(hg);return this.option.url=e,this.option.method=t.toUpperCase(),this}});var bNe=["body","cookies","headers","payload","query"];bNe.forEach(t=>{ap.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(hg);return this.option[t]=e,this}});ap.prototype.end=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(hg);if(this._hasInvoked=!0,typeof t=="function")pg(this.dispatch,this.option,t);else return this._promise=pg(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(t=>{t!=="constructor"&&(ap.prototype[t]=function(...e){if(!this._promise){if(this._hasInvoked===!0)throw new Error(hg);this._hasInvoked=!0,this._promise=pg(this.dispatch,this.option)}return this._promise[t](...e)})});function ENe(t){return t instanceof sR||t instanceof dg||t&&t.constructor&&t.constructor.name==="_CustomLMRRequest"}cp.exports=oR;cp.exports.default=oR;cp.exports.inject=oR;cp.exports.isInjection=ENe});var sH=_((pWe,vg)=>{"use strict";var wNe="4.26.0",SNe=bI(),aR=require("node:http"),up,{kAvvioBoot:lp,kChildren:cR,kServerBindings:V7,kBodyLimit:ANe,kRoutePrefix:W7,kLogLevel:TNe,kLogSerializers:$Ne,kHooks:uR,kSchemaController:qo,kRequestAcceptVersion:RNe,kReplySerializerDefault:G7,kContentTypeParser:PNe,kReply:CNe,kRequest:ONe,kFourOhFour:INe,kState:Vt,kOptions:lR,kPluginNameChain:fp,kSchemaErrorFormatter:fR,kErrorHandler:mg,kKeepAliveConnections:dR,kChildLoggerFactory:pR,kGenReqId:hR}=or(),{createServer:NNe,compileValidateHTTPVersion:kNe}=HI(),dp=F0(),yg=rm(),DNe=nm(),{supportedMethods:LNe}=kE(),el=FE(),rc=KE(),K7=v$(),{Hooks:qNe,hookRunnerApplication:X7,supportedHooks:mR}=Zs(),{createLogger:jNe,createChildLogger:Y7,defaultChildLoggerFactory:FNe}=Hl(),J7=S$(),{getGenReqId:Q7,reqIdGenFactory:Z7}=Uy(),{buildRouting:MNe,validateBodyLimitOption:BNe}=i7(),UNe=f7(),iH=h7(),zNe=w7(),{FSTDEP009:HNe}=us(),VNe=A7(),{appendStackTrace:WNe,AVVIO_ERRORS_MAP:eH,...nc}=Ar(),{defaultInitOptions:vn}=iH,{FST_ERR_ASYNC_CONSTRAINT:GNe,FST_ERR_BAD_URL:KNe,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:XNe,FST_ERR_OPTIONS_NOT_OBJ:YNe,FST_ERR_QSP_NOT_FN:JNe,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:QNe,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:ZNe,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:eke,FST_ERR_VERSION_CONSTRAINT_NOT_STR:tke,FST_ERR_INSTANCE_ALREADY_LISTENING:rke,FST_ERR_REOPENED_CLOSE_SERVER:nke,FST_ERR_ROUTE_REWRITE_NOT_STR:ike,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:tH}=nc,{buildErrorHandler:rH}=Sf();function ske(t){let e={};return["errorHandler","logLevel","logSerializers"].concat(mR).forEach(n=>{e[n]=t.store[n]}),Object.assign({},e)}function gg(t){if(t=t||{},typeof t!="object")throw new YNe;if(t.querystringParser&&typeof t.querystringParser!="function")throw new JNe(typeof t.querystringParser);if(t.schemaController&&t.schemaController.bucket&&typeof t.schemaController.bucket!="function")throw new QNe(typeof t.schemaController.bucket);BNe(t.bodyLimit);let e=t.requestIdHeader===!1?!1:(t.requestIdHeader||vn.requestIdHeader).toLowerCase(),r=Z7(e,t.genReqId),n=t.requestIdLogLabel||"reqId",i=t.bodyLimit||vn.bodyLimit,s=t.disableRequestLogging||!1,o=Object.assign({customOptions:{},plugins:[]},t.ajv),a=t.frameworkErrors;if(!o.customOptions||Object.prototype.toString.call(o.customOptions)!=="[object Object]")throw new ZNe(typeof o.customOptions);if(!o.plugins||!Array.isArray(o.plugins))throw new eke(typeof o.plugins);let{logger:c,hasLogger:l}=jNe(t);t.connectionTimeout=t.connectionTimeout||vn.connectionTimeout,t.keepAliveTimeout=t.keepAliveTimeout||vn.keepAliveTimeout,t.maxRequestsPerSocket=t.maxRequestsPerSocket||vn.maxRequestsPerSocket,t.requestTimeout=t.requestTimeout||vn.requestTimeout,t.logger=c,t.requestIdHeader=e,t.requestIdLogLabel=n,t.disableRequestLogging=s,t.ajv=o,t.clientErrorHandler=t.clientErrorHandler||z;let u=iH(t);t.exposeHeadRoutes=u.exposeHeadRoutes;let f=t.constraints;t.versioning&&(HNe(),f={...f,version:{name:"version",mustMatchWhenDerived:!0,storage:t.versioning.storage,deriveConstraint:t.versioning.deriveVersion,validate(R){if(typeof R!="string")throw new tke}}});let d=MNe({config:{defaultRoute:X,onBadUrl:j,constraints:f,ignoreTrailingSlash:t.ignoreTrailingSlash||vn.ignoreTrailingSlash,ignoreDuplicateSlashes:t.ignoreDuplicateSlashes||vn.ignoreDuplicateSlashes,maxParamLength:t.maxParamLength||vn.maxParamLength,caseSensitive:t.caseSensitive,allowUnsafeRegex:t.allowUnsafeRegex||vn.allowUnsafeRegex,buildPrettyMeta:ske,querystringParser:t.querystringParser,useSemicolonDelimiter:t.useSemicolonDelimiter??vn.useSemicolonDelimiter}}),h=UNe(t),p=O(d,t);t.http2SessionTimeout=u.http2SessionTimeout;let{server:m,listen:g}=NNe(t,p),y=typeof m.closeAllConnections=="function",b=typeof m.closeIdleConnections=="function",x=t.forceCloseConnections;if(x==="idle"&&!b)throw new XNe;typeof x!="boolean"&&(x=b?"idle":!1);let v=!y&&x===!0?new Set:VNe(),E=dp.setupResponseListeners,S=K7.buildSchemaController(null,t.schemaController),w={[Vt]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[dR]:v,[lR]:t,[cR]:[],[V7]:[],[ANe]:i,[W7]:"",[TNe]:"",[$Ne]:null,[uR]:new qNe,[qo]:S,[fR]:null,[mg]:rH(),[pR]:FNe,[G7]:null,[PNe]:new rc(i,t.onProtoPoisoning||vn.onProtoPoisoning,t.onConstructorPoisoning||vn.onConstructorPoisoning),[CNe]:dp.buildReply(dp),[ONe]:yg.buildRequest(yg,t.trustProxy),[INe]:h,[J7.kRegisteredPlugins]:[],[fp]:["fastify"],[lp]:null,[hR]:r,routing:p,getDefaultRoute:d.getDefaultRoute.bind(d),setDefaultRoute:d.setDefaultRoute.bind(d),delete:function(N,q,U){return d.prepareRoute.call(this,{method:"DELETE",url:N,options:q,handler:U})},get:function(N,q,U){return d.prepareRoute.call(this,{method:"GET",url:N,options:q,handler:U})},head:function(N,q,U){return d.prepareRoute.call(this,{method:"HEAD",url:N,options:q,handler:U})},patch:function(N,q,U){return d.prepareRoute.call(this,{method:"PATCH",url:N,options:q,handler:U})},post:function(N,q,U){return d.prepareRoute.call(this,{method:"POST",url:N,options:q,handler:U})},put:function(N,q,U){return d.prepareRoute.call(this,{method:"PUT",url:N,options:q,handler:U})},options:function(N,q,U){return d.prepareRoute.call(this,{method:"OPTIONS",url:N,options:q,handler:U})},all:function(N,q,U){return d.prepareRoute.call(this,{method:LNe,url:N,options:q,handler:U})},route:function(N){return d.route.call(this,{options:N})},hasRoute:function(N){return d.hasRoute.call(this,{options:N})},findRoute:function(N){return d.findRoute(N)},log:c,withTypeProvider:D,addHook:G,addSchema:B,getSchema:S.getSchema.bind(S),getSchemas:S.getSchemas.bind(S),setValidatorCompiler:K,setSerializerCompiler:pe,setSchemaController:de,setReplySerializer:fe,setSchemaErrorFormatter:Z,setGenReqId:L,addContentTypeParser:rc.helpers.addContentTypeParser,hasContentTypeParser:rc.helpers.hasContentTypeParser,getDefaultJsonParser:rc.defaultParsers.getDefaultJsonParser,defaultTextParser:rc.defaultParsers.defaultTextParser,removeContentTypeParser:rc.helpers.removeContentTypeParser,removeAllContentTypeParsers:rc.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(R){return this[J7.kRegisteredPlugins].includes(R)||this[fp].includes(R)},listen:g,server:m,addresses:function(){let R=this[V7].map(N=>N.address());return R.push(this.server.address()),R.filter(N=>N)},decorate:el.add,hasDecorator:el.exist,decorateReply:el.decorateReply,decorateRequest:el.decorateRequest,hasRequestDecorator:el.existRequest,hasReplyDecorator:el.existReply,inject:C,printRoutes:P,setNotFoundHandler:J,setErrorHandler:ce,setChildLoggerFactory:ie,initialConfig:u,addConstraintStrategy:d.addConstraintStrategy.bind(d),hasConstraintStrategy:d.hasConstraintStrategy.bind(d)};Object.defineProperties(w,{listeningOrigin:{get(){let R=this.addresses().slice(-1).pop();if(typeof R=="string")return R;let N=R.family==="IPv6"?`[${R.address}]`:R.address;return`${this[lR].https?"https":"http"}://${N}:${R.port}`}},pluginName:{configurable:!0,get(){return this[fp].length>1?this[fp].join(" -> "):this[fp][0]}},prefix:{configurable:!0,get(){return this[W7]}},validatorCompiler:{configurable:!0,get(){return this[qo].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[qo].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[pR]}},version:{configurable:!0,get(){return wNe}},errorHandler:{configurable:!0,get(){return this[mg].func}},genReqId:{configurable:!0,get(){return this[hR]}}}),t.schemaErrorFormatter&&(nH(t.schemaErrorFormatter),w[fR]=t.schemaErrorFormatter.bind(w));let A=Number(t.pluginTimeout),T=SNe(w,{autostart:!1,timeout:isNaN(A)===!1?A:vn.pluginTimeout,expose:{use:"register"}});T.override=zNe,T.on("start",()=>w[Vt].started=!0),w[lp]=w.ready,w.ready=I,w.printPlugins=T.prettyPrint.bind(T),T.once("preReady",()=>{w.onClose((R,N)=>{w[Vt].closing=!0,d.closeRoutes(),X7("preClose",w[lp],w,function(){if(w[Vt].listening){if(x==="idle")R.server.closeIdleConnections();else if(y&&x)R.server.closeAllConnections();else if(x===!0)for(let q of w[dR])q.destroy(),w[dR].delete(q)}!t.serverFactory||w[Vt].listening?R.server.close(function(q){q&&q.code!=="ERR_SERVER_NOT_RUNNING"?N(null):N()}):process.nextTick(N,null)})})});let $=new DNe({server:w,config:{}});w.setNotFoundHandler(),h.arrange404(w),d.setup(t,{avvio:T,fourOhFour:h,logger:c,hasLogger:l,setupResponseListeners:E,throwIfAlreadyStarted:k,validateHTTPVersion:kNe(t),keepAliveConnections:v}),m.on("clientError",t.clientErrorHandler.bind(w));try{let N=require("node:diagnostics_channel").channel("fastify.initialization");N.hasSubscribers&&N.publish({fastify:w})}catch{}return"asyncDispose"in Symbol&&(w[Symbol.asyncDispose]=function(){return w.close()}),w;function k(R){if(w[Vt].started)throw new rke(R)}function C(R,N){if(up===void 0&&(up=H7()),w[Vt].started){if(w[Vt].closing){let q=new nke;if(N){N(q);return}else return Promise.reject(q)}return up(p,R,N)}if(N)this.ready(q=>{q?N(q,null):up(p,R,N)});else return up((q,U)=>{this.ready(function(F){if(F){U.emit("error",F);return}p(q,U)})},R)}function I(R){if(this[Vt].readyPromise!==null){if(R!=null){this[Vt].readyPromise.then(()=>R(null,w),R);return}return this[Vt].readyPromise}let N,q;if(process.nextTick(U),this[Vt].readyPromise=new Promise(function(M,H){N=M,q=H}),R)this[Vt].readyPromise.then(()=>R(null,w),R);else return this[Vt].readyPromise;function U(){w[lp]((M,H)=>{M||w[Vt].started||w[Vt].ready||w[Vt].booting?F(M):(w[Vt].booting=!0,X7("onReady",w[lp],w,F)),H()})}function F(M){if(M=M!=null&&eH[M.code]!=null?WNe(M,new eH[M.code](M.message)):M,M)return q(M);N(w),w[Vt].booting=!1,w[Vt].ready=!0,w[Vt].promise=null}}function D(){return this}function G(R,N){if(k('Cannot call "addHook"!'),N==null)throw new nc.FST_ERR_HOOK_INVALID_HANDLER(R,N);if(R==="onSend"||R==="preSerialization"||R==="onError"||R==="preParsing"){if(N.constructor.name==="AsyncFunction"&&N.length===4)throw new nc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(R==="onReady"||R==="onListen"){if(N.constructor.name==="AsyncFunction"&&N.length!==0)throw new nc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(R==="onRequestAbort"){if(N.constructor.name==="AsyncFunction"&&N.length!==1)throw new nc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(N.constructor.name==="AsyncFunction"&&N.length===3)throw new nc.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return R==="onClose"?this.onClose(N):R==="onReady"||R==="onListen"||R==="onRoute"?this[uR].add(R,N):this.after((U,F)=>{q.call(this,R,N),F(U)}),this;function q(U,F){this[uR].add(U,F),this[cR].forEach(M=>q.call(M,U,F))}}function B(R){return k('Cannot call "addSchema"!'),this[qo].add(R),this[cR].forEach(N=>N.addSchema(R)),this}function z(R,N){if(R.code==="ECONNRESET"||N.destroyed)return;let q,U,F,M;R.code==="ERR_HTTP_REQUEST_TIMEOUT"?(U="408",F=aR.STATUS_CODES[U],q=`{"error":"${F}","message":"Client Timeout","statusCode":408}`,M="timeout"):R.code==="HPE_HEADER_OVERFLOW"?(U="431",F=aR.STATUS_CODES[U],q=`{"error":"${F}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,M="header_overflow"):(U="400",F=aR.STATUS_CODES[U],q=`{"error":"${F}","message":"Client Error","statusCode":400}`,M="error"),this.log.trace({err:R},`client ${M}`),N.writable&&N.write(`HTTP/1.1 ${U} ${F}\r -Content-Length: ${q.length}\r -Content-Type: application/json\r -\r -${q}`),N.destroy(R)}function X(R,N){R.headers["accept-version"]!==void 0&&(R.headers[RNe]=R.headers["accept-version"],R.headers["accept-version"]=void 0),h.router.lookup(R,N)}function j(R,N,q){if(a){let F=Q7($.server,N),M=Y7($,c,N,F),H=new yg(F,null,N,null,M,$),V=new dp(q,H,M);return s===!1&&M.info({req:H},"incoming request"),a(new KNe(R),H,V)}let U=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${R}' is not a valid url component","statusCode":400}`;q.writeHead(400,{"Content-Type":"application/json","Content-Length":U.length}),q.end(U)}function Y(R,N,q){if(R!==!1)return function(F){if(F){if(a){let H=Q7($.server,N),V=Y7($,c,N,H),Q=new yg(H,null,N,null,V,$),se=new dp(q,Q,V);return s===!1&&V.info({req:Q},"incoming request"),a(new GNe,Q,se)}let M='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';q.writeHead(500,{"Content-Type":"application/json","Content-Length":M.length}),q.end(M)}}}function J(R,N){return k('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,R,N,T,d.routeHandler),this}function K(R){return k('Cannot call "setValidatorCompiler"!'),this[qo].setValidatorCompiler(R),this}function Z(R){return k('Cannot call "setSchemaErrorFormatter"!'),nH(R),this[fR]=R.bind(this),this}function pe(R){return k('Cannot call "setSerializerCompiler"!'),this[qo].setSerializerCompiler(R),this}function de(R){k('Cannot call "setSchemaController"!');let N=this[qo],q=K7.buildSchemaController(N,Object.assign({},N.opts,R));return this[qo]=q,this.getSchema=q.getSchema.bind(q),this.getSchemas=q.getSchemas.bind(q),this}function fe(R){return k('Cannot call "setReplySerializer"!'),this[G7]=R,this}function ce(R){return k('Cannot call "setErrorHandler"!'),this[mg]=rH(this[mg],R.bind(this)),this}function ie(R){return k('Cannot call "setChildLoggerFactory"!'),this[pR]=R,this}function P(R={}){return R.includeMeta=R.includeHooks?R.includeMeta?mR.concat(R.includeMeta):mR:R.includeMeta,d.printRoutes(R)}function O(R,{rewriteUrl:N,logger:q}){let U;return function(M,H){if(U===void 0&&(U=R.isAsyncConstraint()),N){M.originalUrl=M.url;let V=N.call(w,M);if(typeof V=="string")M.url=V;else{let Q=new ike(M.url,typeof V);M.destroy(Q)}}R.routing(M,H,Y(U,M,H))}}function L(R){return k('Cannot call "setGenReqId"!'),this[hR]=Z7(this[lR].requestIdHeader,R),this}}gg.errorCodes=nc;function nH(t){if(typeof t!="function")throw new tH(typeof t);if(t.constructor.name==="AsyncFunction")throw new tH("AsyncFunction")}vg.exports=gg;vg.exports.fastify=gg;vg.exports.default=gg});var Ge=_((xg,oH)=>{(function(t,e){typeof xg=="object"?oH.exports=xg=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(xg,function(){var t=t||function(e,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 y(){}return function(b){var x;return y.prototype=b,x=new y,y.prototype=null,x}}(),o={},a=o.lib={},c=a.Base=function(){return{extend:function(y){var b=s(this);return y&&b.mixIn(y),(!b.hasOwnProperty("init")||this.init===b.init)&&(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var b in y)y.hasOwnProperty(b)&&(this[b]=y[b]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=a.WordArray=c.extend({init:function(y,b){y=this.words=y||[],b!=r?this.sigBytes=b:this.sigBytes=y.length*4},toString:function(y){return(y||f).stringify(this)},concat:function(y){var b=this.words,x=y.words,v=this.sigBytes,E=y.sigBytes;if(this.clamp(),v%4)for(var S=0;S>>2]>>>24-S%4*8&255;b[v+S>>>2]|=w<<24-(v+S)%4*8}else for(var A=0;A>>2]=x[A>>>2];return this.sigBytes+=E,this},clamp:function(){var y=this.words,b=this.sigBytes;y[b>>>2]&=4294967295<<32-b%4*8,y.length=e.ceil(b/4)},clone:function(){var y=c.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var b=[],x=0;x>>2]>>>24-E%4*8&255;v.push((S>>>4).toString(16)),v.push((S&15).toString(16))}return v.join("")},parse:function(y){for(var b=y.length,x=[],v=0;v>>3]|=parseInt(y.substr(v,2),16)<<24-v%8*4;return new l.init(x,b/2)}},d=u.Latin1={stringify:function(y){for(var b=y.words,x=y.sigBytes,v=[],E=0;E>>2]>>>24-E%4*8&255;v.push(String.fromCharCode(S))}return v.join("")},parse:function(y){for(var b=y.length,x=[],v=0;v>>2]|=(y.charCodeAt(v)&255)<<24-v%4*8;return new l.init(x,b)}},h=u.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},p=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=h.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var b,x=this._data,v=x.words,E=x.sigBytes,S=this.blockSize,w=S*4,A=E/w;y?A=e.ceil(A):A=e.max((A|0)-this._minBufferSize,0);var T=A*S,$=e.min(T*4,E);if(T){for(var k=0;k{(function(t,e){typeof _g=="object"?aH.exports=_g=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(_g,function(t){return function(e){var r=t,n=r.lib,i=n.Base,s=n.WordArray,o=r.x64={},a=o.Word=i.extend({init:function(l,u){this.high=l,this.low=u}}),c=o.WordArray=i.extend({init:function(l,u){l=this.words=l||[],u!=e?this.sigBytes=u:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,u=l.length,f=[],d=0;d{(function(t,e){typeof bg=="object"?cH.exports=bg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(bg,function(t){return function(){if(typeof ArrayBuffer=="function"){var e=t,r=e.lib,n=r.WordArray,i=n.init,s=n.init=function(o){if(o instanceof ArrayBuffer&&(o=new Uint8Array(o)),(o instanceof Int8Array||typeof Uint8ClampedArray<"u"&&o instanceof Uint8ClampedArray||o instanceof Int16Array||o instanceof Uint16Array||o instanceof Int32Array||o instanceof Uint32Array||o instanceof Float32Array||o instanceof Float64Array)&&(o=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)),o instanceof Uint8Array){for(var a=o.byteLength,c=[],l=0;l>>2]|=o[l]<<24-l%4*8;i.call(this,c,a)}else i.apply(this,arguments)};s.prototype=n}}(),t.lib.WordArray})});var fH=_((Eg,lH)=>{(function(t,e){typeof Eg=="object"?lH.exports=Eg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Eg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,s=i.Utf16=i.Utf16BE={stringify:function(a){for(var c=a.words,l=a.sigBytes,u=[],f=0;f>>2]>>>16-f%4*8&65535;u.push(String.fromCharCode(d))}return u.join("")},parse:function(a){for(var c=a.length,l=[],u=0;u>>1]|=a.charCodeAt(u)<<16-u%2*16;return n.create(l,c*2)}};i.Utf16LE={stringify:function(a){for(var c=a.words,l=a.sigBytes,u=[],f=0;f>>2]>>>16-f%4*8&65535);u.push(String.fromCharCode(d))}return u.join("")},parse:function(a){for(var c=a.length,l=[],u=0;u>>1]|=o(a.charCodeAt(u)<<16-u%2*16);return n.create(l,c*2)}};function o(a){return a<<8&4278255360|a>>>8&16711935}}(),t.enc.Utf16})});var jo=_((wg,dH)=>{(function(t,e){typeof wg=="object"?dH.exports=wg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(wg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,s=i.Base64={stringify:function(a){var c=a.words,l=a.sigBytes,u=this._map;a.clamp();for(var f=[],d=0;d>>2]>>>24-d%4*8&255,p=c[d+1>>>2]>>>24-(d+1)%4*8&255,m=c[d+2>>>2]>>>24-(d+2)%4*8&255,g=h<<16|p<<8|m,y=0;y<4&&d+y*.75>>6*(3-y)&63));var b=u.charAt(64);if(b)for(;f.length%4;)f.push(b);return f.join("")},parse:function(a){var c=a.length,l=this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var f=0;f>>6-d%4*2,m=h|p;u[f>>>2]|=m<<24-f%4*8,f++}return n.create(u,f)}}(),t.enc.Base64})});var hH=_((Sg,pH)=>{(function(t,e){typeof Sg=="object"?pH.exports=Sg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Sg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.enc,s=i.Base64url={stringify:function(a,c){c===void 0&&(c=!0);var l=a.words,u=a.sigBytes,f=c?this._safe_map:this._map;a.clamp();for(var d=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,g=l[h+2>>>2]>>>24-(h+2)%4*8&255,y=p<<16|m<<8|g,b=0;b<4&&h+b*.75>>6*(3-b)&63));var x=f.charAt(64);if(x)for(;d.length%4;)d.push(x);return d.join("")},parse:function(a,c){c===void 0&&(c=!0);var l=a.length,u=c?this._safe_map:this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d>>6-d%4*2,m=h|p;u[f>>>2]|=m<<24-f%4*8,f++}return n.create(u,f)}}(),t.enc.Base64url})});var Fo=_((Ag,mH)=>{(function(t,e){typeof Ag=="object"?mH.exports=Ag=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ag,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,s=n.Hasher,o=r.algo,a=[];(function(){for(var h=0;h<64;h++)a[h]=e.abs(e.sin(h+1))*4294967296|0})();var c=o.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 g=p+m,y=h[g];h[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var b=this._hash.words,x=h[p+0],v=h[p+1],E=h[p+2],S=h[p+3],w=h[p+4],A=h[p+5],T=h[p+6],$=h[p+7],k=h[p+8],C=h[p+9],I=h[p+10],D=h[p+11],G=h[p+12],B=h[p+13],z=h[p+14],X=h[p+15],j=b[0],Y=b[1],J=b[2],K=b[3];j=l(j,Y,J,K,x,7,a[0]),K=l(K,j,Y,J,v,12,a[1]),J=l(J,K,j,Y,E,17,a[2]),Y=l(Y,J,K,j,S,22,a[3]),j=l(j,Y,J,K,w,7,a[4]),K=l(K,j,Y,J,A,12,a[5]),J=l(J,K,j,Y,T,17,a[6]),Y=l(Y,J,K,j,$,22,a[7]),j=l(j,Y,J,K,k,7,a[8]),K=l(K,j,Y,J,C,12,a[9]),J=l(J,K,j,Y,I,17,a[10]),Y=l(Y,J,K,j,D,22,a[11]),j=l(j,Y,J,K,G,7,a[12]),K=l(K,j,Y,J,B,12,a[13]),J=l(J,K,j,Y,z,17,a[14]),Y=l(Y,J,K,j,X,22,a[15]),j=u(j,Y,J,K,v,5,a[16]),K=u(K,j,Y,J,T,9,a[17]),J=u(J,K,j,Y,D,14,a[18]),Y=u(Y,J,K,j,x,20,a[19]),j=u(j,Y,J,K,A,5,a[20]),K=u(K,j,Y,J,I,9,a[21]),J=u(J,K,j,Y,X,14,a[22]),Y=u(Y,J,K,j,w,20,a[23]),j=u(j,Y,J,K,C,5,a[24]),K=u(K,j,Y,J,z,9,a[25]),J=u(J,K,j,Y,S,14,a[26]),Y=u(Y,J,K,j,k,20,a[27]),j=u(j,Y,J,K,B,5,a[28]),K=u(K,j,Y,J,E,9,a[29]),J=u(J,K,j,Y,$,14,a[30]),Y=u(Y,J,K,j,G,20,a[31]),j=f(j,Y,J,K,A,4,a[32]),K=f(K,j,Y,J,k,11,a[33]),J=f(J,K,j,Y,D,16,a[34]),Y=f(Y,J,K,j,z,23,a[35]),j=f(j,Y,J,K,v,4,a[36]),K=f(K,j,Y,J,w,11,a[37]),J=f(J,K,j,Y,$,16,a[38]),Y=f(Y,J,K,j,I,23,a[39]),j=f(j,Y,J,K,B,4,a[40]),K=f(K,j,Y,J,x,11,a[41]),J=f(J,K,j,Y,S,16,a[42]),Y=f(Y,J,K,j,T,23,a[43]),j=f(j,Y,J,K,C,4,a[44]),K=f(K,j,Y,J,G,11,a[45]),J=f(J,K,j,Y,X,16,a[46]),Y=f(Y,J,K,j,E,23,a[47]),j=d(j,Y,J,K,x,6,a[48]),K=d(K,j,Y,J,$,10,a[49]),J=d(J,K,j,Y,z,15,a[50]),Y=d(Y,J,K,j,A,21,a[51]),j=d(j,Y,J,K,G,6,a[52]),K=d(K,j,Y,J,S,10,a[53]),J=d(J,K,j,Y,I,15,a[54]),Y=d(Y,J,K,j,v,21,a[55]),j=d(j,Y,J,K,k,6,a[56]),K=d(K,j,Y,J,X,10,a[57]),J=d(J,K,j,Y,T,15,a[58]),Y=d(Y,J,K,j,B,21,a[59]),j=d(j,Y,J,K,w,6,a[60]),K=d(K,j,Y,J,D,10,a[61]),J=d(J,K,j,Y,E,15,a[62]),Y=d(Y,J,K,j,C,21,a[63]),b[0]=b[0]+j|0,b[1]=b[1]+Y|0,b[2]=b[2]+J|0,b[3]=b[3]+K|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,g=h.sigBytes*8;p[g>>>5]|=128<<24-g%32;var y=e.floor(m/4294967296),b=m;p[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,p[(g+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,h.sigBytes=(p.length+1)*4,this._process();for(var x=this._hash,v=x.words,E=0;E<4;E++){var S=v[E];v[E]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return x},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});function l(h,p,m,g,y,b,x){var v=h+(p&m|~p&g)+y+x;return(v<>>32-b)+p}function u(h,p,m,g,y,b,x){var v=h+(p&g|m&~g)+y+x;return(v<>>32-b)+p}function f(h,p,m,g,y,b,x){var v=h+(p^m^g)+y+x;return(v<>>32-b)+p}function d(h,p,m,g,y,b,x){var v=h+(m^(p|~g))+y+x;return(v<>>32-b)+p}r.MD5=s._createHelper(c),r.HmacMD5=s._createHmacHelper(c)}(Math),t.MD5})});var yR=_((Tg,yH)=>{(function(t,e){typeof Tg=="object"?yH.exports=Tg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Tg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,s=e.algo,o=[],a=s.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,l){for(var u=this._hash.words,f=u[0],d=u[1],h=u[2],p=u[3],m=u[4],g=0;g<80;g++){if(g<16)o[g]=c[l+g]|0;else{var y=o[g-3]^o[g-8]^o[g-14]^o[g-16];o[g]=y<<1|y>>>31}var b=(f<<5|f>>>27)+m+o[g];g<20?b+=(d&h|~d&p)+1518500249:g<40?b+=(d^h^p)+1859775393:g<60?b+=(d&h|d&p|h&p)-1894007588:b+=(d^h^p)-899497514,m=p,p=h,h=d<<30|d>>>2,d=f,f=b}u[0]=u[0]+f|0,u[1]=u[1]+d|0,u[2]=u[2]+h|0,u[3]=u[3]+p|0,u[4]=u[4]+m|0},_doFinalize:function(){var c=this._data,l=c.words,u=this._nDataBytes*8,f=c.sigBytes*8;return l[f>>>5]|=128<<24-f%32,l[(f+64>>>9<<4)+14]=Math.floor(u/4294967296),l[(f+64>>>9<<4)+15]=u,c.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var c=i.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=i._createHelper(a),e.HmacSHA1=i._createHmacHelper(a)}(),t.SHA1})});var Rg=_(($g,gH)=>{(function(t,e){typeof $g=="object"?gH.exports=$g=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})($g,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,s=n.Hasher,o=r.algo,a=[],c=[];(function(){function f(m){for(var g=e.sqrt(m),y=2;y<=g;y++)if(!(m%y))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&&(a[p]=d(e.pow(h,1/2))),c[p]=d(e.pow(h,1/3)),p++),h++})();var l=[],u=o.SHA256=s.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(f,d){for(var h=this._hash.words,p=h[0],m=h[1],g=h[2],y=h[3],b=h[4],x=h[5],v=h[6],E=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,T=l[S-2],$=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;l[S]=A+l[S-7]+$+l[S-16]}var k=b&x^~b&v,C=p&m^p&g^m&g,I=(p<<30|p>>>2)^(p<<19|p>>>13)^(p<<10|p>>>22),D=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),G=E+D+k+c[S]+l[S],B=I+C;E=v,v=x,x=b,b=y+G|0,y=g,g=m,m=p,p=G+B|0}h[0]=h[0]+p|0,h[1]=h[1]+m|0,h[2]=h[2]+g|0,h[3]=h[3]+y|0,h[4]=h[4]+b|0,h[5]=h[5]+x|0,h[6]=h[6]+v|0,h[7]=h[7]+E|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]=e.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(u),r.HmacSHA256=s._createHmacHelper(u)}(Math),t.SHA256})});var xH=_((Pg,vH)=>{(function(t,e,r){typeof Pg=="object"?vH.exports=Pg=e(Ge(),Rg()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(t.CryptoJS)})(Pg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=e.algo,s=i.SHA256,o=i.SHA224=s.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=s._doFinalize.call(this);return a.sigBytes-=4,a}});e.SHA224=s._createHelper(o),e.HmacSHA224=s._createHmacHelper(o)}(),t.SHA224})});var gR=_((Cg,_H)=>{(function(t,e,r){typeof Cg=="object"?_H.exports=Cg=e(Ge(),pp()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Cg,function(t){return function(){var e=t,r=e.lib,n=r.Hasher,i=e.x64,s=i.Word,o=i.WordArray,a=e.algo;function c(){return s.create.apply(s,arguments)}var l=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],u=[];(function(){for(var d=0;d<80;d++)u[d]=c()})();var f=a.SHA512=n.extend({_doReset:function(){this._hash=new o.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],g=p[1],y=p[2],b=p[3],x=p[4],v=p[5],E=p[6],S=p[7],w=m.high,A=m.low,T=g.high,$=g.low,k=y.high,C=y.low,I=b.high,D=b.low,G=x.high,B=x.low,z=v.high,X=v.low,j=E.high,Y=E.low,J=S.high,K=S.low,Z=w,pe=A,de=T,fe=$,ce=k,ie=C,P=I,O=D,L=G,R=B,N=z,q=X,U=j,F=Y,M=J,H=K,V=0;V<80;V++){var Q,se,he=u[V];if(V<16)se=he.high=d[h+V*2]|0,Q=he.low=d[h+V*2+1]|0;else{var we=u[V-15],Ue=we.high,dt=we.low,Te=(Ue>>>1|dt<<31)^(Ue>>>8|dt<<24)^Ue>>>7,rt=(dt>>>1|Ue<<31)^(dt>>>8|Ue<<24)^(dt>>>7|Ue<<25),er=u[V-2],At=er.high,ei=er.low,Ys=(At>>>19|ei<<13)^(At<<3|ei>>>29)^At>>>6,Ve=(ei>>>19|At<<13)^(ei<<3|At>>>29)^(ei>>>6|At<<26),Wt=u[V-7],rn=Wt.high,pt=Wt.low,nt=u[V-16],VZ=nt.high,hr=nt.low;Q=rt+pt,se=Te+rn+(Q>>>0>>0?1:0),Q=Q+Ve,se=se+Ys+(Q>>>0>>0?1:0),Q=Q+hr,se=se+VZ+(Q>>>0
>>0?1:0),he.high=se,he.low=Q}var Ix=L&N^~L&U,kO=R&q^~R&F,Gt=Z&de^Z&ce^de&ce,la=pe&fe^pe&ie^fe&ie,WZ=(Z>>>28|pe<<4)^(Z<<30|pe>>>2)^(Z<<25|pe>>>7),$n=(pe>>>28|Z<<4)^(pe<<30|Z>>>2)^(pe<<25|Z>>>7),Sn=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),dh=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),cs=l[V],fa=cs.high,Dl=cs.low,Kt=H+dh,Js=M+Sn+(Kt>>>0>>0?1:0),Kt=Kt+kO,Js=Js+Ix+(Kt>>>0>>0?1:0),Kt=Kt+Dl,Js=Js+fa+(Kt>>>0
>>0?1:0),Kt=Kt+Q,Js=Js+se+(Kt>>>0>>0?1:0),DO=$n+la,GZ=WZ+Gt+(DO>>>0<$n>>>0?1:0);M=U,H=F,U=N,F=q,N=L,q=R,R=O+Kt|0,L=P+Js+(R>>>0>>0?1:0)|0,P=ce,O=ie,ce=de,ie=fe,de=Z,fe=pe,pe=Kt+DO|0,Z=Js+GZ+(pe>>>0>>0?1:0)|0}A=m.low=A+pe,m.high=w+Z+(A>>>0>>0?1:0),$=g.low=$+fe,g.high=T+de+($>>>0>>0?1:0),C=y.low=C+ie,y.high=k+ce+(C>>>0>>0?1:0),D=b.low=D+O,b.high=I+P+(D>>>0>>0?1:0),B=x.low=B+R,x.high=G+L+(B>>>0>>0?1:0),X=v.low=X+q,v.high=z+N+(X>>>0>>0?1:0),Y=E.low=Y+F,E.high=j+U+(Y>>>0>>0?1:0),K=S.low=K+H,S.high=J+M+(K>>>0>>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 g=this._hash.toX32();return g},clone:function(){var d=n.clone.call(this);return d._hash=this._hash.clone(),d},blockSize:1024/32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),t.SHA512})});var EH=_((Og,bH)=>{(function(t,e,r){typeof Og=="object"?bH.exports=Og=e(Ge(),pp(),gR()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(t.CryptoJS)})(Og,function(t){return function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,s=e.algo,o=s.SHA512,a=s.SHA384=o.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 c=o._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=o._createHelper(a),e.HmacSHA384=o._createHmacHelper(a)}(),t.SHA384})});var SH=_((Ig,wH)=>{(function(t,e,r){typeof Ig=="object"?wH.exports=Ig=e(Ge(),pp()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(t.CryptoJS)})(Ig,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,s=n.Hasher,o=r.x64,a=o.Word,c=r.algo,l=[],u=[],f=[];(function(){for(var p=1,m=0,g=0;g<24;g++){l[p+5*m]=(g+1)*(g+2)/2%64;var y=m%5,b=(2*p+3*m)%5;p=y,m=b}for(var p=0;p<5;p++)for(var m=0;m<5;m++)u[p+5*m]=m+(2*p+3*m)%5*5;for(var x=1,v=0;v<24;v++){for(var E=0,S=0,w=0;w<7;w++){if(x&1){var A=(1<>>24)&16711935|(x<<24|x>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var E=g[b];E.high^=v,E.low^=x}for(var S=0;S<24;S++){for(var w=0;w<5;w++){for(var A=0,T=0,$=0;$<5;$++){var E=g[w+5*$];A^=E.high,T^=E.low}var k=d[w];k.high=A,k.low=T}for(var w=0;w<5;w++)for(var C=d[(w+4)%5],I=d[(w+1)%5],D=I.high,G=I.low,A=C.high^(D<<1|G>>>31),T=C.low^(G<<1|D>>>31),$=0;$<5;$++){var E=g[w+5*$];E.high^=A,E.low^=T}for(var B=1;B<25;B++){var A,T,E=g[B],z=E.high,X=E.low,j=l[B];j<32?(A=z<>>32-j,T=X<>>32-j):(A=X<>>64-j,T=z<>>64-j);var Y=d[u[B]];Y.high=A,Y.low=T}var J=d[0],K=g[0];J.high=K.high,J.low=K.low;for(var w=0;w<5;w++)for(var $=0;$<5;$++){var B=w+5*$,E=g[B],Z=d[B],pe=d[(w+1)%5+5*$],de=d[(w+2)%5+5*$];E.high=Z.high^~pe.high&de.high,E.low=Z.low^~pe.low&de.low}var E=g[0],fe=f[S];E.high^=fe.high,E.low^=fe.low}},_doFinalize:function(){var p=this._data,m=p.words,g=this._nDataBytes*8,y=p.sigBytes*8,b=this.blockSize*32;m[y>>>5]|=1<<24-y%32,m[(e.ceil((y+1)/b)*b>>>5)-1]|=128,p.sigBytes=m.length*4,this._process();for(var x=this._state,v=this.cfg.outputLength/8,E=v/8,S=[],w=0;w>>24)&16711935|(T<<24|T>>>8)&4278255360,$=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,S.push($),S.push(T)}return new i.init(S,v)},clone:function(){for(var p=s.clone.call(this),m=p._state=this._state.slice(0),g=0;g<25;g++)m[g]=m[g].clone();return p}});r.SHA3=s._createHelper(h),r.HmacSHA3=s._createHmacHelper(h)}(Math),t.SHA3})});var TH=_((Ng,AH)=>{(function(t,e){typeof Ng=="object"?AH.exports=Ng=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(Ng,function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,s=n.Hasher,o=r.algo,a=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]),c=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]),u=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=o.RIPEMD160=s.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,E){for(var S=0;S<16;S++){var w=E+S,A=v[w];v[w]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var T=this._hash.words,$=f.words,k=d.words,C=a.words,I=c.words,D=l.words,G=u.words,B,z,X,j,Y,J,K,Z,pe,de;J=B=T[0],K=z=T[1],Z=X=T[2],pe=j=T[3],de=Y=T[4];for(var fe,S=0;S<80;S+=1)fe=B+v[E+C[S]]|0,S<16?fe+=p(z,X,j)+$[0]:S<32?fe+=m(z,X,j)+$[1]:S<48?fe+=g(z,X,j)+$[2]:S<64?fe+=y(z,X,j)+$[3]:fe+=b(z,X,j)+$[4],fe=fe|0,fe=x(fe,D[S]),fe=fe+Y|0,B=Y,Y=j,j=x(X,10),X=z,z=fe,fe=J+v[E+I[S]]|0,S<16?fe+=b(K,Z,pe)+k[0]:S<32?fe+=y(K,Z,pe)+k[1]:S<48?fe+=g(K,Z,pe)+k[2]:S<64?fe+=m(K,Z,pe)+k[3]:fe+=p(K,Z,pe)+k[4],fe=fe|0,fe=x(fe,G[S]),fe=fe+de|0,J=de,de=pe,pe=x(Z,10),Z=K,K=fe;fe=T[1]+X+pe|0,T[1]=T[2]+j+de|0,T[2]=T[3]+Y+J|0,T[3]=T[4]+B+K|0,T[4]=T[0]+z+Z|0,T[0]=fe},_doFinalize:function(){var v=this._data,E=v.words,S=this._nDataBytes*8,w=v.sigBytes*8;E[w>>>5]|=128<<24-w%32,E[(w+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,v.sigBytes=(E.length+1)*4,this._process();for(var A=this._hash,T=A.words,$=0;$<5;$++){var k=T[$];T[$]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return A},clone:function(){var v=s.clone.call(this);return v._hash=this._hash.clone(),v}});function p(v,E,S){return v^E^S}function m(v,E,S){return v&E|~v&S}function g(v,E,S){return(v|~E)^S}function y(v,E,S){return v&S|E&~S}function b(v,E,S){return v^(E|~S)}function x(v,E){return v<>>32-E}r.RIPEMD160=s._createHelper(h),r.HmacRIPEMD160=s._createHmacHelper(h)}(Math),t.RIPEMD160})});var Dg=_((kg,$H)=>{(function(t,e){typeof kg=="object"?$H.exports=kg=e(Ge()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(kg,function(t){(function(){var e=t,r=e.lib,n=r.Base,i=e.enc,s=i.Utf8,o=e.algo,a=o.HMAC=n.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=s.parse(l));var u=c.blockSize,f=u*4;l.sigBytes>f&&(l=c.finalize(l)),l.clamp();for(var d=this._oKey=l.clone(),h=this._iKey=l.clone(),p=d.words,m=h.words,g=0;g{(function(t,e,r){typeof Lg=="object"?RH.exports=Lg=e(Ge(),Rg(),Dg()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(t.CryptoJS)})(Lg,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,s=e.algo,o=s.SHA256,a=s.HMAC,c=s.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:o,iterations:25e4}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,u){for(var f=this.cfg,d=a.create(f.hasher,l),h=i.create(),p=i.create([1]),m=h.words,g=p.words,y=f.keySize,b=f.iterations;m.length{(function(t,e,r){typeof qg=="object"?CH.exports=qg=e(Ge(),yR(),Dg()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(t.CryptoJS)})(qg,function(t){return function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,s=e.algo,o=s.MD5,a=s.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:o,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,l){for(var u,f=this.cfg,d=f.hasher.create(),h=i.create(),p=h.words,m=f.keySize,g=f.iterations;p.length{(function(t,e,r){typeof jg=="object"?OH.exports=jg=e(Ge(),qs()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(t.CryptoJS)})(jg,function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,s=n.WordArray,o=n.BufferedBlockAlgorithm,a=r.enc,c=a.Utf8,l=a.Base64,u=r.algo,f=u.EvpKDF,d=n.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(k,C){return this.create(this._ENC_XFORM_MODE,k,C)},createDecryptor:function(k,C){return this.create(this._DEC_XFORM_MODE,k,C)},init:function(k,C,I){this.cfg=this.cfg.extend(I),this._xformMode=k,this._key=C,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(k){return this._append(k),this._process()},finalize:function(k){k&&this._append(k);var C=this._doFinalize();return C},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function k(C){return typeof C=="string"?$:w}return function(C){return{encrypt:function(I,D,G){return k(D).encrypt(C,I,D,G)},decrypt:function(I,D,G){return k(D).decrypt(C,I,D,G)}}}}()}),h=n.StreamCipher=d.extend({_doFinalize:function(){var k=this._process(!0);return k},blockSize:1}),p=r.mode={},m=n.BlockCipherMode=i.extend({createEncryptor:function(k,C){return this.Encryptor.create(k,C)},createDecryptor:function(k,C){return this.Decryptor.create(k,C)},init:function(k,C){this._cipher=k,this._iv=C}}),g=p.CBC=function(){var k=m.extend();k.Encryptor=k.extend({processBlock:function(I,D){var G=this._cipher,B=G.blockSize;C.call(this,I,D,B),G.encryptBlock(I,D),this._prevBlock=I.slice(D,D+B)}}),k.Decryptor=k.extend({processBlock:function(I,D){var G=this._cipher,B=G.blockSize,z=I.slice(D,D+B);G.decryptBlock(I,D),C.call(this,I,D,B),this._prevBlock=z}});function C(I,D,G){var B,z=this._iv;z?(B=z,this._iv=e):B=this._prevBlock;for(var X=0;X>>2]&255;k.sigBytes-=C}},x=n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:g,padding:b}),reset:function(){var k;d.reset.call(this);var C=this.cfg,I=C.iv,D=C.mode;this._xformMode==this._ENC_XFORM_MODE?k=D.createEncryptor:(k=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==k?this._mode.init(this,I&&I.words):(this._mode=k.call(D,this,I&&I.words),this._mode.__creator=k)},_doProcessBlock:function(k,C){this._mode.processBlock(k,C)},_doFinalize:function(){var k,C=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(C.pad(this._data,this.blockSize),k=this._process(!0)):(k=this._process(!0),C.unpad(k)),k},blockSize:128/32}),v=n.CipherParams=i.extend({init:function(k){this.mixIn(k)},toString:function(k){return(k||this.formatter).stringify(this)}}),E=r.format={},S=E.OpenSSL={stringify:function(k){var C,I=k.ciphertext,D=k.salt;return D?C=s.create([1398893684,1701076831]).concat(D).concat(I):C=I,C.toString(l)},parse:function(k){var C,I=l.parse(k),D=I.words;return D[0]==1398893684&&D[1]==1701076831&&(C=s.create(D.slice(2,4)),D.splice(0,4),I.sigBytes-=16),v.create({ciphertext:I,salt:C})}},w=n.SerializableCipher=i.extend({cfg:i.extend({format:S}),encrypt:function(k,C,I,D){D=this.cfg.extend(D);var G=k.createEncryptor(I,D),B=G.finalize(C),z=G.cfg;return v.create({ciphertext:B,key:I,iv:z.iv,algorithm:k,mode:z.mode,padding:z.padding,blockSize:k.blockSize,formatter:D.format})},decrypt:function(k,C,I,D){D=this.cfg.extend(D),C=this._parse(C,D.format);var G=k.createDecryptor(I,D).finalize(C.ciphertext);return G},_parse:function(k,C){return typeof k=="string"?C.parse(k,this):k}}),A=r.kdf={},T=A.OpenSSL={execute:function(k,C,I,D,G){if(D||(D=s.random(64/8)),G)var B=f.create({keySize:C+I,hasher:G}).compute(k,D);else var B=f.create({keySize:C+I}).compute(k,D);var z=s.create(B.words.slice(C),I*4);return B.sigBytes=C*4,v.create({key:B,iv:z,salt:D})}},$=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:T}),encrypt:function(k,C,I,D){D=this.cfg.extend(D);var G=D.kdf.execute(I,k.keySize,k.ivSize,D.salt,D.hasher);D.iv=G.iv;var B=w.encrypt.call(this,k,C,G.key,D);return B.mixIn(G),B},decrypt:function(k,C,I,D){D=this.cfg.extend(D),C=this._parse(C,D.format);var G=D.kdf.execute(I,k.keySize,k.ivSize,C.salt,D.hasher);D.iv=G.iv;var B=w.decrypt.call(this,k,C,G.key,D);return B}})}()})});var NH=_((Fg,IH)=>{(function(t,e,r){typeof Fg=="object"?IH.exports=Fg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Fg,function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,i){var s=this._cipher,o=s.blockSize;r.call(this,n,i,o,s),this._prevBlock=n.slice(i,i+o)}}),e.Decryptor=e.extend({processBlock:function(n,i){var s=this._cipher,o=s.blockSize,a=n.slice(i,i+o);r.call(this,n,i,o,s),this._prevBlock=a}});function r(n,i,s,o){var a,c=this._iv;c?(a=c.slice(0),this._iv=void 0):a=this._prevBlock,o.encryptBlock(a,0);for(var l=0;l{(function(t,e,r){typeof Mg=="object"?kH.exports=Mg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Mg,function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var s=this._cipher,o=s.blockSize,a=this._iv,c=this._counter;a&&(c=this._counter=a.slice(0),this._iv=void 0);var l=c.slice(0);s.encryptBlock(l,0),c[o-1]=c[o-1]+1|0;for(var u=0;u{(function(t,e,r){typeof Bg=="object"?LH.exports=Bg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Bg,function(t){return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(s){if((s>>24&255)===255){var o=s>>16&255,a=s>>8&255,c=s&255;o===255?(o=0,a===255?(a=0,c===255?c=0:++c):++a):++o,s=0,s+=o<<16,s+=a<<8,s+=c}else s+=1<<24;return s}function n(s){return(s[0]=r(s[0]))===0&&(s[1]=r(s[1])),s}var i=e.Encryptor=e.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize,l=this._iv,u=this._counter;l&&(u=this._counter=l.slice(0),this._iv=void 0),n(u);var f=u.slice(0);a.encryptBlock(f,0);for(var d=0;d{(function(t,e,r){typeof Ug=="object"?jH.exports=Ug=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Ug,function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(n,i){var s=this._cipher,o=s.blockSize,a=this._iv,c=this._keystream;a&&(c=this._keystream=a.slice(0),this._iv=void 0),s.encryptBlock(c,0);for(var l=0;l{(function(t,e,r){typeof zg=="object"?MH.exports=zg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(zg,function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(r,n){this._cipher.encryptBlock(r,n)}}),e.Decryptor=e.extend({processBlock:function(r,n){this._cipher.decryptBlock(r,n)}}),e}(),t.mode.ECB})});var zH=_((Hg,UH)=>{(function(t,e,r){typeof Hg=="object"?UH.exports=Hg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Hg,function(t){return t.pad.AnsiX923={pad:function(e,r){var n=e.sigBytes,i=r*4,s=i-n%i,o=n+s-1;e.clamp(),e.words[o>>>2]|=s<<24-o%4*8,e.sigBytes+=s},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Ansix923})});var VH=_((Vg,HH)=>{(function(t,e,r){typeof Vg=="object"?HH.exports=Vg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Vg,function(t){return t.pad.Iso10126={pad:function(e,r){var n=r*4,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(e){var r=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=r}},t.pad.Iso10126})});var GH=_((Wg,WH)=>{(function(t,e,r){typeof Wg=="object"?WH.exports=Wg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Wg,function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971})});var XH=_((Gg,KH)=>{(function(t,e,r){typeof Gg=="object"?KH.exports=Gg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Gg,function(t){return t.pad.ZeroPadding={pad:function(e,r){var n=r*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var r=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(r[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},t.pad.ZeroPadding})});var JH=_((Kg,YH)=>{(function(t,e,r){typeof Kg=="object"?YH.exports=Kg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Kg,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})});var ZH=_((Xg,QH)=>{(function(t,e,r){typeof Xg=="object"?QH.exports=Xg=e(Ge(),tr()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(t.CryptoJS)})(Xg,function(t){return function(e){var r=t,n=r.lib,i=n.CipherParams,s=r.enc,o=s.Hex,a=r.format,c=a.Hex={stringify:function(l){return l.ciphertext.toString(o)},parse:function(l){var u=o.parse(l);return i.create({ciphertext:u})}}}(),t.format.Hex})});var tV=_((Yg,eV)=>{(function(t,e,r){typeof Yg=="object"?eV.exports=Yg=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(Yg,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo,s=[],o=[],a=[],c=[],l=[],u=[],f=[],d=[],h=[],p=[];(function(){for(var y=[],b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(var x=0,v=0,b=0;b<256;b++){var E=v^v<<1^v<<2^v<<3^v<<4;E=E>>>8^E&255^99,s[x]=E,o[E]=x;var S=y[x],w=y[S],A=y[w],T=y[E]*257^E*16843008;a[x]=T<<24|T>>>8,c[x]=T<<16|T>>>16,l[x]=T<<8|T>>>24,u[x]=T;var T=A*16843009^w*65537^S*257^x*16843008;f[E]=T<<24|T>>>8,d[E]=T<<16|T>>>16,h[E]=T<<8|T>>>24,p[E]=T,x?(x=S^y[y[y[A^S]]],v^=y[y[v]]):x=v=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=n.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,x=b.words,v=b.sigBytes/4,E=this._nRounds=v+6,S=(E+1)*4,w=this._keySchedule=[],A=0;A6&&A%v==4&&(y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255]):(y=y<<8|y>>>24,y=s[y>>>24]<<24|s[y>>>16&255]<<16|s[y>>>8&255]<<8|s[y&255],y^=m[A/v|0]<<24),w[A]=w[A-v]^y);for(var T=this._invKeySchedule=[],$=0;$>>24]]^d[s[y>>>16&255]]^h[s[y>>>8&255]]^p[s[y&255]]}}},encryptBlock:function(y,b){this._doCryptBlock(y,b,this._keySchedule,a,c,l,u,s)},decryptBlock:function(y,b){var x=y[b+1];y[b+1]=y[b+3],y[b+3]=x,this._doCryptBlock(y,b,this._invKeySchedule,f,d,h,p,o);var x=y[b+1];y[b+1]=y[b+3],y[b+3]=x},_doCryptBlock:function(y,b,x,v,E,S,w,A){for(var T=this._nRounds,$=y[b]^x[0],k=y[b+1]^x[1],C=y[b+2]^x[2],I=y[b+3]^x[3],D=4,G=1;G>>24]^E[k>>>16&255]^S[C>>>8&255]^w[I&255]^x[D++],z=v[k>>>24]^E[C>>>16&255]^S[I>>>8&255]^w[$&255]^x[D++],X=v[C>>>24]^E[I>>>16&255]^S[$>>>8&255]^w[k&255]^x[D++],j=v[I>>>24]^E[$>>>16&255]^S[k>>>8&255]^w[C&255]^x[D++];$=B,k=z,C=X,I=j}var B=(A[$>>>24]<<24|A[k>>>16&255]<<16|A[C>>>8&255]<<8|A[I&255])^x[D++],z=(A[k>>>24]<<24|A[C>>>16&255]<<16|A[I>>>8&255]<<8|A[$&255])^x[D++],X=(A[C>>>24]<<24|A[I>>>16&255]<<16|A[$>>>8&255]<<8|A[k&255])^x[D++],j=(A[I>>>24]<<24|A[$>>>16&255]<<16|A[k>>>8&255]<<8|A[C&255])^x[D++];y[b]=B,y[b+1]=z,y[b+2]=X,y[b+3]=j},keySize:256/32});e.AES=n._createHelper(g)}(),t.AES})});var nV=_((Jg,rV)=>{(function(t,e,r){typeof Jg=="object"?rV.exports=Jg=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(Jg,function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,s=e.algo,o=[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],a=[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],c=[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}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=s.DES=i.extend({_doReset:function(){for(var m=this._key,g=m.words,y=[],b=0;b<56;b++){var x=o[b]-1;y[b]=g[x>>>5]>>>31-x%32&1}for(var v=this._subKeys=[],E=0;E<16;E++){for(var S=v[E]=[],w=c[E],b=0;b<24;b++)S[b/6|0]|=y[(a[b]-1+w)%28]<<31-b%6,S[4+(b/6|0)]|=y[28+(a[b+24]-1+w)%28]<<31-b%6;S[0]=S[0]<<1|S[0]>>>31;for(var b=1;b<7;b++)S[b]=S[b]>>>(b-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var A=this._invSubKeys=[],b=0;b<16;b++)A[b]=v[15-b]},encryptBlock:function(m,g){this._doCryptBlock(m,g,this._subKeys)},decryptBlock:function(m,g){this._doCryptBlock(m,g,this._invSubKeys)},_doCryptBlock:function(m,g,y){this._lBlock=m[g],this._rBlock=m[g+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 b=0;b<16;b++){for(var x=y[b],v=this._lBlock,E=this._rBlock,S=0,w=0;w<8;w++)S|=l[w][((E^x[w])&u[w])>>>0];this._lBlock=E,this._rBlock=v^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[g]=this._lBlock,m[g+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(m,g){var y=(this._lBlock>>>m^this._rBlock)&g;this._rBlock^=y,this._lBlock^=y<>>m^this._lBlock)&g;this._lBlock^=y,this._rBlock^=y<192.");var y=g.slice(0,2),b=g.length<4?g.slice(0,2):g.slice(2,4),x=g.length<6?g.slice(0,2):g.slice(4,6);this._des1=f.createEncryptor(n.create(y)),this._des2=f.createEncryptor(n.create(b)),this._des3=f.createEncryptor(n.create(x))},encryptBlock:function(m,g){this._des1.encryptBlock(m,g),this._des2.decryptBlock(m,g),this._des3.encryptBlock(m,g)},decryptBlock:function(m,g){this._des3.decryptBlock(m,g),this._des2.encryptBlock(m,g),this._des1.decryptBlock(m,g)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=i._createHelper(p)}(),t.TripleDES})});var sV=_((Qg,iV)=>{(function(t,e,r){typeof Qg=="object"?iV.exports=Qg=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(Qg,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,s=i.RC4=n.extend({_doReset:function(){for(var c=this._key,l=c.words,u=c.sigBytes,f=this._S=[],d=0;d<256;d++)f[d]=d;for(var d=0,h=0;d<256;d++){var p=d%u,m=l[p>>>2]>>>24-p%4*8&255;h=(h+f[d]+m)%256;var g=f[d];f[d]=f[h],f[h]=g}this._i=this._j=0},_doProcessBlock:function(c,l){c[l]^=o.call(this)},keySize:256/32,ivSize:0});function o(){for(var c=this._S,l=this._i,u=this._j,f=0,d=0;d<4;d++){l=(l+1)%256,u=(u+c[l])%256;var h=c[l];c[l]=c[u],c[u]=h,f|=c[(c[l]+c[u])%256]<<24-d*8}return this._i=l,this._j=u,f}e.RC4=n._createHelper(s);var a=i.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)o.call(this)}});e.RC4Drop=n._createHelper(a)}(),t.RC4})});var aV=_((Zg,oV)=>{(function(t,e,r){typeof Zg=="object"?oV.exports=Zg=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(Zg,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,s=[],o=[],a=[],c=i.Rabbit=n.extend({_doReset:function(){for(var u=this._key.words,f=this.cfg.iv,d=0;d<4;d++)u[d]=(u[d]<<8|u[d]>>>24)&16711935|(u[d]<<24|u[d]>>>8)&4278255360;var h=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],p=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[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,g=m[0],y=m[1],b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v=b>>>16|x&4294901760,E=x<<16|b&65535;p[0]^=b,p[1]^=v,p[2]^=x,p[3]^=E,p[4]^=b,p[5]^=v,p[6]^=x,p[7]^=E;for(var d=0;d<4;d++)l.call(this)}},_doProcessBlock:function(u,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,u[f+h]^=s[h]},blockSize:128/32,ivSize:64/32});function l(){for(var u=this._X,f=this._C,d=0;d<8;d++)o[d]=f[d];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var d=0;d<8;d++){var h=u[d]+f[d],p=h&65535,m=h>>>16,g=((p*p>>>17)+p*m>>>15)+m*m,y=((h&4294901760)*h|0)+((h&65535)*h|0);a[d]=g^y}u[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,u[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,u[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,u[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,u[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,u[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,u[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,u[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=n._createHelper(c)}(),t.Rabbit})});var uV=_((ev,cV)=>{(function(t,e,r){typeof ev=="object"?cV.exports=ev=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(ev,function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,i=e.algo,s=[],o=[],a=[],c=i.RabbitLegacy=n.extend({_doReset:function(){var u=this._key.words,f=this.cfg.iv,d=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],h=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[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,g=m[0],y=m[1],b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,v=b>>>16|x&4294901760,E=x<<16|b&65535;h[0]^=b,h[1]^=v,h[2]^=x,h[3]^=E,h[4]^=b,h[5]^=v,h[6]^=x,h[7]^=E;for(var p=0;p<4;p++)l.call(this)}},_doProcessBlock:function(u,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,u[f+h]^=s[h]},blockSize:128/32,ivSize:64/32});function l(){for(var u=this._X,f=this._C,d=0;d<8;d++)o[d]=f[d];f[0]=f[0]+1295307597+this._b|0,f[1]=f[1]+3545052371+(f[0]>>>0>>0?1:0)|0,f[2]=f[2]+886263092+(f[1]>>>0>>0?1:0)|0,f[3]=f[3]+1295307597+(f[2]>>>0>>0?1:0)|0,f[4]=f[4]+3545052371+(f[3]>>>0>>0?1:0)|0,f[5]=f[5]+886263092+(f[4]>>>0>>0?1:0)|0,f[6]=f[6]+1295307597+(f[5]>>>0>>0?1:0)|0,f[7]=f[7]+3545052371+(f[6]>>>0>>0?1:0)|0,this._b=f[7]>>>0>>0?1:0;for(var d=0;d<8;d++){var h=u[d]+f[d],p=h&65535,m=h>>>16,g=((p*p>>>17)+p*m>>>15)+m*m,y=((h&4294901760)*h|0)+((h&65535)*h|0);a[d]=g^y}u[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,u[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,u[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,u[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,u[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,u[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,u[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,u[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=n._createHelper(c)}(),t.RabbitLegacy})});var fV=_((tv,lV)=>{(function(t,e,r){typeof tv=="object"?lV.exports=tv=e(Ge(),jo(),Fo(),qs(),tr()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(t.CryptoJS)})(tv,function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,i=e.algo;let s=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[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 c={pbox:[],sbox:[]};function l(p,m){let g=m>>24&255,y=m>>16&255,b=m>>8&255,x=m&255,v=p.sbox[0][g]+p.sbox[1][y];return v=v^p.sbox[2][b],v=v+p.sbox[3][x],v}function u(p,m,g){let y=m,b=g,x;for(let v=0;v1;--v)y=y^p.pbox[v],b=l(p,y)^b,x=y,y=b,b=x;return x=y,y=b,b=x,b=b^p.pbox[1],y=y^p.pbox[0],{left:y,right:b}}function d(p,m,g){for(let E=0;E<4;E++){p.sbox[E]=[];for(let S=0;S<256;S++)p.sbox[E][S]=a[E][S]}let y=0;for(let E=0;E=g&&(y=0);let b=0,x=0,v=0;for(let E=0;E{(function(t,e,r){typeof rv=="object"?dV.exports=rv=e(Ge(),pp(),uH(),fH(),jo(),hH(),Fo(),yR(),Rg(),xH(),gR(),EH(),SH(),TH(),Dg(),PH(),qs(),tr(),NH(),DH(),qH(),FH(),BH(),zH(),VH(),GH(),XH(),JH(),ZH(),tV(),nV(),sV(),aV(),uV(),fV()):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"],e):t.CryptoJS=e(t.CryptoJS)})(rv,function(t){return t})});var TV=_((xWe,AV)=>{var SV=require("stream").Stream,Mke=require("util");AV.exports=xi;function xi(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Mke.inherits(xi,SV);xi.create=function(t,e){var r=new this;e=e||{};for(var n in e)r[n]=e[n];r.source=t;var i=t.emit;return t.emit=function(){return r._handleEmit(arguments),i.apply(t,arguments)},t.on("error",function(){}),r.pauseStream&&t.pause(),r};Object.defineProperty(xi.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});xi.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};xi.prototype.resume=function(){this._released||this.release(),this.source.resume()};xi.prototype.pause=function(){this.source.pause()};xi.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};xi.prototype.pipe=function(){var t=SV.prototype.pipe.apply(this,arguments);return this.resume(),t};xi.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};xi.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var CV=_((_We,PV)=>{var Bke=require("util"),RV=require("stream").Stream,$V=TV();PV.exports=Lt;function Lt(){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}Bke.inherits(Lt,RV);Lt.create=function(t){var e=new this;t=t||{};for(var r in t)e[r]=t[r];return e};Lt.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Lt.prototype.append=function(t){var e=Lt.isStreamLike(t);if(e){if(!(t instanceof $V)){var r=$V.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=r}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Lt.prototype.pipe=function(t,e){return RV.prototype.pipe.call(this,t,e),this.resume(),t};Lt.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}};Lt.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(r){var n=Lt.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};Lt.prototype._pipeNext=function(t){this._currentStream=t;var e=Lt.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var r=t;this.write(r),this._getNext()};Lt.prototype._handleErrors=function(t){var e=this;t.on("error",function(r){e._emitError(r)})};Lt.prototype.write=function(t){this.emit("data",t)};Lt.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Lt.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")};Lt.prototype.end=function(){this._reset(),this.emit("end")};Lt.prototype.destroy=function(){this._reset(),this.emit("close")};Lt.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Lt.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Lt.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Lt.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var OV=_((bWe,Uke)=>{Uke.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 NV=_((EWe,IV)=>{IV.exports=OV()});var LV=_(_n=>{"use strict";var av=NV(),zke=require("path").extname,kV=/^\s*([^;\s]*)(?:;|\s|$)/,Hke=/^text\//i;_n.charset=DV;_n.charsets={lookup:DV};_n.contentType=Vke;_n.extension=Wke;_n.extensions=Object.create(null);_n.lookup=Gke;_n.types=Object.create(null);Kke(_n.extensions,_n.types);function DV(t){if(!t||typeof t!="string")return!1;var e=kV.exec(t),r=e&&av[e[1].toLowerCase()];return r&&r.charset?r.charset:e&&Hke.test(e[1])?"UTF-8":!1}function Vke(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?_n.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var r=_n.charset(e);r&&(e+="; charset="+r.toLowerCase())}return e}function Wke(t){if(!t||typeof t!="string")return!1;var e=kV.exec(t),r=e&&_n.extensions[e[1].toLowerCase()];return!r||!r.length?!1:r[0]}function Gke(t){if(!t||typeof t!="string")return!1;var e=zke("x."+t).toLowerCase().substr(1);return e&&_n.types[e]||!1}function Kke(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(av).forEach(function(i){var s=av[i],o=s.extensions;if(!(!o||!o.length)){t[i]=o;for(var a=0;au||l===u&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}})}});var jV=_((SWe,qV)=>{qV.exports=Xke;function Xke(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var bR=_((AWe,MV)=>{var FV=jV();MV.exports=Yke;function Yke(t){var e=!1;return FV(function(){e=!0}),function(n,i){e?t(n,i):FV(function(){t(n,i)})}}});var ER=_((TWe,BV)=>{BV.exports=Jke;function Jke(t){Object.keys(t.jobs).forEach(Qke.bind(t)),t.jobs={}}function Qke(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var wR=_(($We,zV)=>{var UV=bR(),Zke=ER();zV.exports=eDe;function eDe(t,e,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=tDe(e,i,t[i],function(s,o){i in r.jobs&&(delete r.jobs[i],s?Zke(r):r.results[i]=o,n(s,r.results))})}function tDe(t,e,r,n){var i;return t.length==2?i=t(r,UV(n)):i=t(r,e,UV(n)),i}});var SR=_((RWe,HV)=>{HV.exports=rDe;function rDe(t,e){var r=!Array.isArray(t),n={index:0,keyedList:r||e?Object.keys(t):null,jobs:{},results:r?{}:[],size:r?Object.keys(t).length:t.length};return e&&n.keyedList.sort(r?e:function(i,s){return e(t[i],t[s])}),n}});var AR=_((PWe,VV)=>{var nDe=ER(),iDe=bR();VV.exports=sDe;function sDe(t){Object.keys(this.jobs).length&&(this.index=this.size,nDe(this),iDe(t)(null,this.results))}});var GV=_((CWe,WV)=>{var oDe=wR(),aDe=SR(),cDe=AR();WV.exports=uDe;function uDe(t,e,r){for(var n=aDe(t);n.index<(n.keyedList||t).length;)oDe(t,e,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 cDe.bind(n,r)}});var TR=_((OWe,cv)=>{var KV=wR(),lDe=SR(),fDe=AR();cv.exports=dDe;cv.exports.ascending=XV;cv.exports.descending=pDe;function dDe(t,e,r,n){var i=lDe(t,r);return KV(t,e,i,function s(o,a){if(o){n(o,a);return}if(i.index++,i.index<(i.keyedList||t).length){KV(t,e,i,s);return}n(null,i.results)}),fDe.bind(i,n)}function XV(t,e){return te?1:0}function pDe(t,e){return-1*XV(t,e)}});var JV=_((IWe,YV)=>{var hDe=TR();YV.exports=mDe;function mDe(t,e,r){return hDe(t,e,null,r)}});var ZV=_((NWe,QV)=>{QV.exports={parallel:GV(),serial:JV(),serialOrdered:TR()}});var $R=_((kWe,eW)=>{"use strict";eW.exports=Object});var rW=_((DWe,tW)=>{"use strict";tW.exports=Error});var iW=_((LWe,nW)=>{"use strict";nW.exports=EvalError});var oW=_((qWe,sW)=>{"use strict";sW.exports=RangeError});var cW=_((jWe,aW)=>{"use strict";aW.exports=ReferenceError});var lW=_((FWe,uW)=>{"use strict";uW.exports=SyntaxError});var Mo=_((MWe,fW)=>{"use strict";fW.exports=TypeError});var pW=_((BWe,dW)=>{"use strict";dW.exports=URIError});var mW=_((UWe,hW)=>{"use strict";hW.exports=Math.abs});var gW=_((zWe,yW)=>{"use strict";yW.exports=Math.floor});var xW=_((HWe,vW)=>{"use strict";vW.exports=Math.max});var bW=_((VWe,_W)=>{"use strict";_W.exports=Math.min});var wW=_((WWe,EW)=>{"use strict";EW.exports=Math.pow});var AW=_((GWe,SW)=>{"use strict";SW.exports=Math.round});var $W=_((KWe,TW)=>{"use strict";TW.exports=Number.isNaN||function(e){return e!==e}});var PW=_((XWe,RW)=>{"use strict";var yDe=$W();RW.exports=function(e){return yDe(e)||e===0?e:e<0?-1:1}});var OW=_((YWe,CW)=>{"use strict";CW.exports=Object.getOwnPropertyDescriptor});var RR=_((JWe,IW)=>{"use strict";var uv=OW();if(uv)try{uv([],"length")}catch{uv=null}IW.exports=uv});var kW=_((QWe,NW)=>{"use strict";var lv=Object.defineProperty||!1;if(lv)try{lv({},"a",{value:1})}catch{lv=!1}NW.exports=lv});var PR=_((ZWe,DW)=>{"use strict";DW.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},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;e[r]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var jW=_((eGe,qW)=>{"use strict";var LW=typeof Symbol<"u"&&Symbol,gDe=PR();qW.exports=function(){return typeof LW!="function"||typeof Symbol!="function"||typeof LW("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gDe()}});var CR=_((tGe,FW)=>{"use strict";FW.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var OR=_((rGe,MW)=>{"use strict";var vDe=$R();MW.exports=vDe.getPrototypeOf||null});var zW=_((nGe,UW)=>{"use strict";var xDe="Function.prototype.bind called on incompatible ",_De=Object.prototype.toString,bDe=Math.max,EDe="[object Function]",BW=function(e,r){for(var n=[],i=0;i{"use strict";var ADe=zW();HW.exports=Function.prototype.bind||ADe});var fv=_((sGe,VW)=>{"use strict";VW.exports=Function.prototype.call});var IR=_((oGe,WW)=>{"use strict";WW.exports=Function.prototype.apply});var KW=_((aGe,GW)=>{"use strict";GW.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var YW=_((cGe,XW)=>{"use strict";var TDe=gp(),$De=IR(),RDe=fv(),PDe=KW();XW.exports=PDe||TDe.call(RDe,$De)});var NR=_((uGe,JW)=>{"use strict";var CDe=gp(),ODe=Mo(),IDe=fv(),NDe=YW();JW.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new ODe("a function is required");return NDe(CDe,IDe,e)}});var nG=_((lGe,rG)=>{"use strict";var kDe=NR(),QW=RR(),eG;try{eG=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var kR=!!eG&&QW&&QW(Object.prototype,"__proto__"),tG=Object,ZW=tG.getPrototypeOf;rG.exports=kR&&typeof kR.get=="function"?kDe([kR.get]):typeof ZW=="function"?function(e){return ZW(e==null?e:tG(e))}:!1});var cG=_((fGe,aG)=>{"use strict";var iG=CR(),sG=OR(),oG=nG();aG.exports=iG?function(e){return iG(e)}:sG?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return sG(e)}:oG?function(e){return oG(e)}:null});var dv=_((dGe,uG)=>{"use strict";var DDe=Function.prototype.call,LDe=Object.prototype.hasOwnProperty,qDe=gp();uG.exports=qDe.call(DDe,LDe)});var bp=_((pGe,mG)=>{"use strict";var He,jDe=$R(),FDe=rW(),MDe=iW(),BDe=oW(),UDe=cW(),ol=lW(),sl=Mo(),zDe=pW(),HDe=mW(),VDe=gW(),WDe=xW(),GDe=bW(),KDe=wW(),XDe=AW(),YDe=PW(),pG=Function,DR=function(t){try{return pG('"use strict"; return ('+t+").constructor;")()}catch{}},vp=RR(),JDe=kW(),LR=function(){throw new sl},QDe=vp?function(){try{return arguments.callee,LR}catch{try{return vp(arguments,"callee").get}catch{return LR}}}():LR,nl=jW()(),cr=cG(),ZDe=OR(),e4e=CR(),hG=IR(),xp=fv(),il={},t4e=typeof Uint8Array>"u"||!cr?He:cr(Uint8Array),ic={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?He:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?He:ArrayBuffer,"%ArrayIteratorPrototype%":nl&&cr?cr([][Symbol.iterator]()):He,"%AsyncFromSyncIteratorPrototype%":He,"%AsyncFunction%":il,"%AsyncGenerator%":il,"%AsyncGeneratorFunction%":il,"%AsyncIteratorPrototype%":il,"%Atomics%":typeof Atomics>"u"?He:Atomics,"%BigInt%":typeof BigInt>"u"?He:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?He:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?He:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?He:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":FDe,"%eval%":eval,"%EvalError%":MDe,"%Float16Array%":typeof Float16Array>"u"?He:Float16Array,"%Float32Array%":typeof Float32Array>"u"?He:Float32Array,"%Float64Array%":typeof Float64Array>"u"?He:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?He:FinalizationRegistry,"%Function%":pG,"%GeneratorFunction%":il,"%Int8Array%":typeof Int8Array>"u"?He:Int8Array,"%Int16Array%":typeof Int16Array>"u"?He:Int16Array,"%Int32Array%":typeof Int32Array>"u"?He:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":nl&&cr?cr(cr([][Symbol.iterator]())):He,"%JSON%":typeof JSON=="object"?JSON:He,"%Map%":typeof Map>"u"?He:Map,"%MapIteratorPrototype%":typeof Map>"u"||!nl||!cr?He:cr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":jDe,"%Object.getOwnPropertyDescriptor%":vp,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?He:Promise,"%Proxy%":typeof Proxy>"u"?He:Proxy,"%RangeError%":BDe,"%ReferenceError%":UDe,"%Reflect%":typeof Reflect>"u"?He:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?He:Set,"%SetIteratorPrototype%":typeof Set>"u"||!nl||!cr?He:cr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?He:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":nl&&cr?cr(""[Symbol.iterator]()):He,"%Symbol%":nl?Symbol:He,"%SyntaxError%":ol,"%ThrowTypeError%":QDe,"%TypedArray%":t4e,"%TypeError%":sl,"%Uint8Array%":typeof Uint8Array>"u"?He:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?He:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?He:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?He:Uint32Array,"%URIError%":zDe,"%WeakMap%":typeof WeakMap>"u"?He:WeakMap,"%WeakRef%":typeof WeakRef>"u"?He:WeakRef,"%WeakSet%":typeof WeakSet>"u"?He:WeakSet,"%Function.prototype.call%":xp,"%Function.prototype.apply%":hG,"%Object.defineProperty%":JDe,"%Object.getPrototypeOf%":ZDe,"%Math.abs%":HDe,"%Math.floor%":VDe,"%Math.max%":WDe,"%Math.min%":GDe,"%Math.pow%":KDe,"%Math.round%":XDe,"%Math.sign%":YDe,"%Reflect.getPrototypeOf%":e4e};if(cr)try{null.error}catch(t){lG=cr(cr(t)),ic["%Error.prototype%"]=lG}var lG,r4e=function t(e){var r;if(e==="%AsyncFunction%")r=DR("async function () {}");else if(e==="%GeneratorFunction%")r=DR("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=DR("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&cr&&(r=cr(i.prototype))}return ic[e]=r,r},fG={__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"]},_p=gp(),pv=dv(),n4e=_p.call(xp,Array.prototype.concat),i4e=_p.call(hG,Array.prototype.splice),dG=_p.call(xp,String.prototype.replace),hv=_p.call(xp,String.prototype.slice),s4e=_p.call(xp,RegExp.prototype.exec),o4e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,a4e=/\\(\\)?/g,c4e=function(e){var r=hv(e,0,1),n=hv(e,-1);if(r==="%"&&n!=="%")throw new ol("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ol("invalid intrinsic syntax, expected opening `%`");var i=[];return dG(e,o4e,function(s,o,a,c){i[i.length]=a?dG(c,a4e,"$1"):o||s}),i},u4e=function(e,r){var n=e,i;if(pv(fG,n)&&(i=fG[n],n="%"+i[0]+"%"),pv(ic,n)){var s=ic[n];if(s===il&&(s=r4e(n)),typeof s>"u"&&!r)throw new sl("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new ol("intrinsic "+e+" does not exist!")};mG.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new sl("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new sl('"allowMissing" argument must be a boolean');if(s4e(/^%?[^%]*%?$/,e)===null)throw new ol("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=c4e(e),i=n.length>0?n[0]:"",s=u4e("%"+i+"%",r),o=s.name,a=s.value,c=!1,l=s.alias;l&&(i=l[0],i4e(n,n4e([0,1],l)));for(var u=1,f=!0;u=n.length){var m=vp(a,d);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else f=pv(a,d),a=a[d];f&&!c&&(ic[o]=a)}}return a}});var gG=_((hGe,yG)=>{"use strict";var l4e=PR();yG.exports=function(){return l4e()&&!!Symbol.toStringTag}});var _G=_((mGe,xG)=>{"use strict";var f4e=bp(),vG=f4e("%Object.defineProperty%",!0),d4e=gG()(),p4e=dv(),h4e=Mo(),mv=d4e?Symbol.toStringTag:null;xG.exports=function(e,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 h4e("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");mv&&(n||!p4e(e,mv))&&(vG?vG(e,mv,{configurable:!i,enumerable:!1,value:r,writable:!1}):e[mv]=r)}});var EG=_((yGe,bG)=>{"use strict";bG.exports=function(t,e){return Object.keys(e).forEach(function(r){t[r]=t[r]||e[r]}),t}});var SG=_((gGe,wG)=>{"use strict";var MR=CV(),m4e=require("util"),qR=require("path"),y4e=require("http"),g4e=require("https"),v4e=require("url").parse,x4e=require("fs"),_4e=require("stream").Stream,b4e=require("crypto"),jR=LV(),E4e=ZV(),w4e=_G(),Bo=dv(),FR=EG();function tt(t){if(!(this instanceof tt))return new tt(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],MR.call(this),t=t||{};for(var e in t)this[e]=t[e]}m4e.inherits(tt,MR);tt.LINE_BREAK=`\r -`;tt.DEFAULT_CONTENT_TYPE="application/octet-stream";tt.prototype.append=function(t,e,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=MR.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(t,e,r),s=this._multiPartFooter();n(i),n(e),n(s),this._trackLength(i,e,r)};tt.prototype._trackLength=function(t,e,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(t)+tt.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Bo(e,"httpVersion"))&&!(e instanceof _4e))&&(r.knownLength||this._valuesToMeasure.push(e))};tt.prototype._lengthRetriever=function(t,e){Bo(t,"fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):x4e.stat(t.path,function(r,n){if(r){e(r);return}var i=n.size-(t.start?t.start:0);e(null,i)}):Bo(t,"httpVersion")?e(null,Number(t.headers["content-length"])):Bo(t,"httpModule")?(t.on("response",function(r){t.pause(),e(null,Number(r.headers["content-length"]))}),t.resume()):e("Unknown stream")};tt.prototype._multiPartHeader=function(t,e,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(e,r),i=this._getContentType(e,r),s="",o={"Content-Disposition":["form-data",'name="'+t+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&FR(o,r.header);var a;for(var c in o)if(Bo(o,c)){if(a=o[c],a==null)continue;Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+tt.LINE_BREAK)}return"--"+this.getBoundary()+tt.LINE_BREAK+s+tt.LINE_BREAK};tt.prototype._getContentDisposition=function(t,e){var r;if(typeof e.filepath=="string"?r=qR.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t&&(t.name||t.path)?r=qR.basename(e.filename||t&&(t.name||t.path)):t&&t.readable&&Bo(t,"httpVersion")&&(r=qR.basename(t.client._httpMessage.path||"")),r)return'filename="'+r+'"'};tt.prototype._getContentType=function(t,e){var r=e.contentType;return!r&&t&&t.name&&(r=jR.lookup(t.name)),!r&&t&&t.path&&(r=jR.lookup(t.path)),!r&&t&&t.readable&&Bo(t,"httpVersion")&&(r=t.headers["content-type"]),!r&&(e.filepath||e.filename)&&(r=jR.lookup(e.filepath||e.filename)),!r&&t&&typeof t=="object"&&(r=tt.DEFAULT_CONTENT_TYPE),r};tt.prototype._multiPartFooter=function(){return function(t){var e=tt.LINE_BREAK,r=this._streams.length===0;r&&(e+=this._lastBoundary()),t(e)}.bind(this)};tt.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+tt.LINE_BREAK};tt.prototype.getHeaders=function(t){var e,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)Bo(t,e)&&(r[e.toLowerCase()]=t[e]);return r};tt.prototype.setBoundary=function(t){if(typeof t!="string")throw new TypeError("FormData boundary must be a string");this._boundary=t};tt.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};tt.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),r=0,n=this._streams.length;r{"use strict";var F4e=require("url").parse,M4e={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},B4e=String.prototype.endsWith||function(t){return t.length<=this.length&&this.indexOf(t,this.length-t.length)!==-1};function U4e(t){var e=typeof t=="string"?F4e(t):t||{},r=e.protocol,n=e.host,i=e.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||M4e[r]||0,!z4e(n,i)))return"";var s=ll("npm_config_"+r+"_proxy")||ll(r+"_proxy")||ll("npm_config_proxy")||ll("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function z4e(t,e){var r=(ll("npm_config_no_proxy")||ll("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,o=i?parseInt(i[2]):0;return o&&o!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!B4e.call(t,s)):t!==s}):!0}function ll(t){return process.env[t.toLowerCase()]||process.env[t.toUpperCase()]||""}FG.getProxyForUrl=U4e});var UG=_((vKe,BG)=>{var fl=1e3,dl=fl*60,pl=dl*60,ac=pl*24,H4e=ac*7,V4e=ac*365.25;BG.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return W4e(t);if(r==="number"&&isFinite(t))return e.long?K4e(t):G4e(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function W4e(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*V4e;case"weeks":case"week":case"w":return r*H4e;case"days":case"day":case"d":return r*ac;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pl;case"minutes":case"minute":case"mins":case"min":case"m":return r*dl;case"seconds":case"second":case"secs":case"sec":case"s":return r*fl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function G4e(t){var e=Math.abs(t);return e>=ac?Math.round(t/ac)+"d":e>=pl?Math.round(t/pl)+"h":e>=dl?Math.round(t/dl)+"m":e>=fl?Math.round(t/fl)+"s":t+"ms"}function K4e(t){var e=Math.abs(t);return e>=ac?xv(t,e,ac,"day"):e>=pl?xv(t,e,pl,"hour"):e>=dl?xv(t,e,dl,"minute"):e>=fl?xv(t,e,fl,"second"):t+" ms"}function xv(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var YR=_((xKe,zG)=>{function X4e(t){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=UG(),r.destroy=l,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let f=0;for(let d=0;d{if(S==="%%")return"%";v++;let A=r.formatters[w];if(typeof A=="function"){let T=g[v];S=A.call(y,T),g.splice(v,1),v--}return S}),r.formatArgs.call(y,g),(y.log||r.log).apply(y,g)}return m.namespace=u,m.useColors=r.useColors(),m.color=r.selectColor(u),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(u)),p),set:g=>{d=g}}),typeof r.init=="function"&&r.init(m),m}function n(u,f){let d=r(this.namespace+(typeof f>"u"?":":f)+u);return d.log=this.log,d}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let f=(typeof u=="string"?u:"").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(u,f){let d=0,h=0,p=-1,m=0;for(;d"-"+f)].join(",");return r.enable(""),u}function a(u){for(let f of r.skips)if(s(u,f))return!1;for(let f of r.names)if(s(u,f))return!0;return!1}function c(u){return u instanceof Error?u.stack||u.message:u}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}zG.exports=X4e});var HG=_((bn,_v)=>{bn.formatArgs=J4e;bn.save=Q4e;bn.load=Z4e;bn.useColors=Y4e;bn.storage=e3e();bn.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();bn.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 Y4e(){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 t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function J4e(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+_v.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}bn.log=console.debug||console.log||(()=>{});function Q4e(t){try{t?bn.storage.setItem("debug",t):bn.storage.removeItem("debug")}catch{}}function Z4e(){let t;try{t=bn.storage.getItem("debug")||bn.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function e3e(){try{return localStorage}catch{}}_v.exports=YR()(bn);var{formatters:t3e}=_v.exports;t3e.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var WG=_((_Ke,VG)=>{"use strict";VG.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n{"use strict";var r3e=require("os"),GG=require("tty"),Xn=WG(),{env:ur}=process,Ho;Xn("no-color")||Xn("no-colors")||Xn("color=false")||Xn("color=never")?Ho=0:(Xn("color")||Xn("colors")||Xn("color=true")||Xn("color=always"))&&(Ho=1);"FORCE_COLOR"in ur&&(ur.FORCE_COLOR==="true"?Ho=1:ur.FORCE_COLOR==="false"?Ho=0:Ho=ur.FORCE_COLOR.length===0?1:Math.min(parseInt(ur.FORCE_COLOR,10),3));function JR(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function QR(t,e){if(Ho===0)return 0;if(Xn("color=16m")||Xn("color=full")||Xn("color=truecolor"))return 3;if(Xn("color=256"))return 2;if(t&&!e&&Ho===void 0)return 0;let r=Ho||0;if(ur.TERM==="dumb")return r;if(process.platform==="win32"){let n=r3e.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ur)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ur)||ur.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ur)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ur.TEAMCITY_VERSION)?1:0;if(ur.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ur){let n=parseInt((ur.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ur.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ur.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ur.TERM)||"COLORTERM"in ur?1:r}function n3e(t){let e=QR(t,t&&t.isTTY);return JR(e)}KG.exports={supportsColor:n3e,stdout:JR(QR(!0,GG.isatty(1))),stderr:JR(QR(!0,GG.isatty(2)))}});var JG=_((lr,Ev)=>{var i3e=require("tty"),bv=require("util");lr.init=f3e;lr.log=c3e;lr.formatArgs=o3e;lr.save=u3e;lr.load=l3e;lr.useColors=s3e;lr.destroy=bv.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");lr.colors=[6,2,3,4,5,1];try{let t=XG();t&&(t.stderr||t).level>=2&&(lr.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{}lr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];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),t[r]=n,t},{});function s3e(){return"colors"in lr.inspectOpts?!!lr.inspectOpts.colors:i3e.isatty(process.stderr.fd)}function o3e(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(` -`).join(` -`+s),t.push(i+"m+"+Ev.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=a3e()+e+" "+t[0]}function a3e(){return lr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c3e(...t){return process.stderr.write(bv.formatWithOptions(lr.inspectOpts,...t)+` -`)}function u3e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function l3e(){return process.env.DEBUG}function f3e(t){t.inspectOpts={};let e=Object.keys(lr.inspectOpts);for(let r=0;re.trim()).join(" ")};YG.O=function(t){return this.inspectOpts.colors=this.useColors,bv.inspect(t,this.inspectOpts)}});var QG=_((EKe,ZR)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ZR.exports=HG():ZR.exports=JG()});var eK=_((wKe,ZG)=>{var Ap;ZG.exports=function(){if(!Ap){try{Ap=QG()("follow-redirects")}catch{}typeof Ap!="function"&&(Ap=function(){})}Ap.apply(null,arguments)}});var sK=_((SKe,fP)=>{var $p=require("url"),Tp=$p.URL,d3e=require("http"),p3e=require("https"),iP=require("stream").Writable,sP=require("assert"),tK=eK();(function(){var e=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=uc(Error.captureStackTrace);!e&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var oP=!1;try{sP(new Tp(""))}catch(t){oP=t.code==="ERR_INVALID_URL"}var h3e=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],aP=["abort","aborted","connect","error","socket","timeout"],cP=Object.create(null);aP.forEach(function(t){cP[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var tP=Rp("ERR_INVALID_URL","Invalid URL",TypeError),rP=Rp("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),m3e=Rp("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",rP),y3e=Rp("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),g3e=Rp("ERR_STREAM_WRITE_AFTER_END","write after end"),v3e=iP.prototype.destroy||nK;function En(t,e){iP.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(i){r.emit("error",i instanceof rP?i:new rP({cause:i}))}},this._performRequest()}En.prototype=Object.create(iP.prototype);En.prototype.abort=function(){lP(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};En.prototype.destroy=function(t){return lP(this._currentRequest,t),v3e.call(this,t),this};En.prototype.write=function(t,e,r){if(this._ending)throw new g3e;if(!cc(t)&&!b3e(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(uc(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new y3e),this.abort())};En.prototype.end=function(t,e,r){if(uc(t)?(r=t,t=e=null):uc(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};En.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};En.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};En.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}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),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),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(t){En.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(En.prototype,t,{get:function(){return this._currentRequest[t]}})});En.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};En.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of aP)n.on(i,cP[i]);if(this._currentUrl=/^\//.test(this._options.path)?$p.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(l){if(n===o._currentRequest)if(l)o.emit("error",l);else if(s=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(lP(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new m3e;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],eP(/^content-/i,this._options.headers));var o=eP(/^host$/i,this._options.headers),a=uP(this._currentUrl),c=o||a.host,l=/^\w+:/.test(r)?this._currentUrl:$p.format(Object.assign(a,{host:c})),u=x3e(r,l);if(tK("redirecting to",u.href),this._isRedirect=!0,nP(u,this._options),(u.protocol!==a.protocol&&u.protocol!=="https:"||u.host!==c&&!_3e(u.host,c))&&eP(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),uc(i)){var f={headers:t.headers,statusCode:e},d={url:l,method:s,headers:n};i(this._options,f,d),this._sanitizeOptions(this._options)}this._performRequest()};function rK(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(l,u,f){return E3e(l)?l=nP(l):cc(l)?l=nP(uP(l)):(f=u,u=iK(l),l={protocol:i}),uc(u)&&(f=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},l,u),u.nativeProtocols=r,!cc(u.host)&&!cc(u.hostname)&&(u.hostname="::1"),sP.equal(u.protocol,i,"protocol mismatch"),tK("options",u),new En(u,f)}function c(l,u,f){var d=o.request(l,u,f);return d.end(),d}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function nK(){}function uP(t){var e;if(oP)e=new Tp(t);else if(e=iK($p.parse(t)),!cc(e.protocol))throw new tP({input:t});return e}function x3e(t,e){return oP?new Tp(t,e):uP($p.resolve(e,t))}function iK(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new tP({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new tP({input:t.href||t});return t}function nP(t,e){var r=e||{};for(var n of h3e)r[n]=t[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 eP(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Rp(t,e,r){function n(i){uc(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}function lP(t,e){for(var r of aP)t.removeListener(r,cP[r]);t.on("error",nK),t.destroy(e)}function _3e(t,e){sP(cc(t)&&cc(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function cc(t){return typeof t=="string"||t instanceof String}function uc(t){return typeof t=="function"}function b3e(t){return typeof t=="object"&&"length"in t}function E3e(t){return Tp&&t instanceof Tp}fP.exports=rK({http:d3e,https:p3e});fP.exports.wrap=rK});var CP=_((RP,PP)=>{(function(t,e){typeof RP=="object"&&typeof PP<"u"?PP.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(RP,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",s="minute",o="hour",a="day",c="week",l="month",u="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,g={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(C){var I=["th","st","nd","rd"],D=C%100;return"["+C+(I[(D-20)%10]||I[D]||I[0])+"]"}},y=function(C,I,D){var G=String(C);return!G||G.length>=I?C:""+Array(I+1-G.length).join(D)+C},b={s:y,z:function(C){var I=-C.utcOffset(),D=Math.abs(I),G=Math.floor(D/60),B=D%60;return(I<=0?"+":"-")+y(G,2,"0")+":"+y(B,2,"0")},m:function C(I,D){if(I.date()1)return C(X[0])}else{var j=I.name;v[j]=I,B=j}return!G&&B&&(x=B),B||!G&&x},A=function(C,I){if(S(C))return C.clone();var D=typeof I=="object"?I:{};return D.date=C,D.args=arguments,new $(D)},T=b;T.l=w,T.i=S,T.w=function(C,I){return A(C,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var $=function(){function C(D){this.$L=w(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[E]=!0}var I=C.prototype;return I.parse=function(D){this.$d=function(G){var B=G.date,z=G.utc;if(B===null)return new Date(NaN);if(T.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var X=B.match(p);if(X){var j=X[2]-1||0,Y=(X[7]||"0").substring(0,3);return z?new Date(Date.UTC(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,Y)):new Date(X[1],j,X[3]||1,X[4]||0,X[5]||0,X[6]||0,Y)}}return new Date(B)}(D),this.init()},I.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},I.$utils=function(){return T},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(D,G){var B=A(D);return this.startOf(G)<=B&&B<=this.endOf(G)},I.isAfter=function(D,G){return A(D){"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.getOptions=Be.setOptions=Be.hasOwnProp=Be.formatDate=Be.camelify=Be.splitByCommaWithPreservingQuotes=Be.trim=Be.splitAt=Be.tryCatch=Be.byteSequenceToHex=Be.hexToByteSequence=Be.toNumber=Be.INVALIDPLAYLIST=Be.CONDITIONALPARAMCHECK=Be.PARAMCHECK=Be.CONDITIONALASSERT=Be.ASSERT=Be.THROW=void 0;var Ip={};function pc(t){if(!Ip.strictMode){Ip.silent||console.error(t.message);return}throw t}Be.THROW=pc;function hLe(t,...e){for(let[r,n]of e.entries())n||pc(new Error(`${t} : Failed at [${r}]`))}Be.ASSERT=hLe;function mLe(...t){for(let[e,[r,n]]of t.entries())r&&(n||pc(new Error(`Conditional Assert : Failed at [${e}]`)))}Be.CONDITIONALASSERT=mLe;function yLe(...t){for(let[e,r]of t.entries())r===void 0&&pc(new Error(`Param Check : Failed at [${e}]`))}Be.PARAMCHECK=yLe;function gLe(...t){for(let[e,[r,n]]of t.entries())r&&n===void 0&&pc(new Error(`Conditional Param Check : Failed at [${e}]`))}Be.CONDITIONALPARAMCHECK=gLe;function vLe(t){pc(new Error(`Invalid Playlist : ${t}`))}Be.INVALIDPLAYLIST=vLe;function VK(t,e=10){if(typeof t=="number")return t;let r=e===10?Number.parseFloat(t):Number.parseInt(t,e);return Number.isNaN(r)?0:r}Be.toNumber=VK;function xLe(t){(t.startsWith("0x")||t.startsWith("0X"))&&(t=t.slice(2));let e=[];for(let r=0;r{"use strict";var CLe=Ke&&Ke.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),OLe=Ke&&Ke.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),ILe=Ke&&Ke.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&CLe(e,t,r);return OLe(e,t),e};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.RenditionReport=Ke.PrefetchSegment=Ke.PartialSegment=Ke.Segment=Ke.MediaPlaylist=Ke.MasterPlaylist=Ke.Playlist=Ke.SpliceInfo=Ke.DateRange=Ke.MediaInitializationSection=Ke.Key=Ke.SessionData=Ke.Variant=Ke.Rendition=void 0;var Jt=ILe(Np()),OP=class{constructor({type:e,uri:r,groupId:n,language:i,assocLanguage:s,name:o,isDefault:a,autoselect:c,forced:l,instreamId:u,characteristics:f,channels:d}){Jt.PARAMCHECK(e,n,o),Jt.CONDITIONALASSERT([e==="SUBTITLES",r],[e==="CLOSED-CAPTIONS",u],[e==="CLOSED-CAPTIONS",!r],[l,e==="SUBTITLES"]),this.type=e,this.uri=r,this.groupId=n,this.language=i,this.assocLanguage=s,this.name=o,this.isDefault=a,this.autoselect=c,this.forced=l,this.instreamId=u,this.characteristics=f,this.channels=d}};Ke.Rendition=OP;var IP=class{constructor({uri:e,isIFrameOnly:r=!1,bandwidth:n,averageBandwidth:i,score:s,codecs:o,resolution:a,frameRate:c,hdcpLevel:l,allowedCpc:u,videoRange:f,stableVariantId:d,programId:h,audio:p=[],video:m=[],subtitles:g=[],closedCaptions:y=[],currentRenditions:b={audio:0,video:0,subtitles:0,closedCaptions:0}}){Jt.PARAMCHECK(e,n),this.uri=e,this.isIFrameOnly=r,this.bandwidth=n,this.averageBandwidth=i,this.score=s,this.codecs=o,this.resolution=a,this.frameRate=c,this.hdcpLevel=l,this.allowedCpc=u,this.videoRange=f,this.stableVariantId=d,this.programId=h,this.audio=p,this.video=m,this.subtitles=g,this.closedCaptions=y,this.currentRenditions=b}};Ke.Variant=IP;var NP=class{constructor({id:e,value:r,uri:n,language:i}){Jt.PARAMCHECK(e,r||n),Jt.ASSERT("SessionData cannot have both value and uri, shoud be either.",!(r&&n)),this.id=e,this.value=r,this.uri=n,this.language=i}};Ke.SessionData=NP;var kP=class{constructor({method:e,uri:r,iv:n,format:i,formatVersion:s}){Jt.PARAMCHECK(e),Jt.CONDITIONALPARAMCHECK([e!=="NONE",r]),Jt.CONDITIONALASSERT([e==="NONE",!(r||n||i||s)]),this.method=e,this.uri=r,this.iv=n,this.format=i,this.formatVersion=s}};Ke.Key=kP;var DP=class{constructor({hint:e=!1,uri:r,mimeType:n,byterange:i}){Jt.PARAMCHECK(r),this.hint=e,this.uri=r,this.mimeType=n,this.byterange=i}};Ke.MediaInitializationSection=DP;var LP=class{constructor({id:e,classId:r,start:n,end:i,duration:s,plannedDuration:o,endOnNext:a,attributes:c={}}){Jt.PARAMCHECK(e),Jt.CONDITIONALPARAMCHECK([a===!0,r]),Jt.CONDITIONALASSERT([i,n],[i,n<=i],[s,s>=0],[o,o>=0]),this.id=e,this.classId=r,this.start=n,this.end=i,this.duration=s,this.plannedDuration=o,this.endOnNext=a,this.attributes=c}};Ke.DateRange=LP;var qP=class{constructor({type:e,duration:r,tagName:n,value:i}){Jt.PARAMCHECK(e),Jt.CONDITIONALPARAMCHECK([e==="OUT",r]),Jt.CONDITIONALPARAMCHECK([e==="RAW",n]),this.type=e,this.duration=r,this.tagName=n,this.value=i}};Ke.SpliceInfo=qP;var gl=class{constructor(e){Jt.PARAMCHECK(e),this.type=e}},kp=class extends gl{constructor({isMasterPlaylist:e,uri:r,version:n,independentSegments:i=!1,start:s,source:o}){super("playlist"),Jt.PARAMCHECK(e),this.isMasterPlaylist=e,this.uri=r,this.version=n,this.independentSegments=i,this.start=s,this.source=o}};Ke.Playlist=kp;var jP=class extends kp{constructor(e={}){super({...e,isMasterPlaylist:!0});let{variants:r=[],currentVariant:n,sessionDataList:i=[],sessionKeyList:s=[]}=e;this.variants=r,this.currentVariant=n,this.sessionDataList=i,this.sessionKeyList=s}};Ke.MasterPlaylist=jP;var FP=class extends kp{constructor(e={}){super({...e,isMasterPlaylist:!1});let{targetDuration:r,mediaSequenceBase:n=0,discontinuitySequenceBase:i=0,endlist:s=!1,playlistType:o,isIFrame:a,segments:c=[],prefetchSegments:l=[],lowLatencyCompatibility:u,partTargetDuration:f,renditionReports:d=[],skip:h=0,hash:p}=e;this.targetDuration=r,this.mediaSequenceBase=n,this.discontinuitySequenceBase=i,this.endlist=s,this.playlistType=o,this.isIFrame=a,this.segments=c,this.prefetchSegments=l,this.lowLatencyCompatibility=u,this.partTargetDuration=f,this.renditionReports=d,this.skip=h,this.hash=p}};Ke.MediaPlaylist=FP;var MP=class extends gl{constructor({uri:e,mimeType:r,data:n,duration:i,title:s,byterange:o,discontinuity:a,mediaSequenceNumber:c=0,discontinuitySequence:l=0,key:u,map:f,programDateTime:d,dateRange:h,markers:p=[],parts:m=[]}){super("segment"),this.uri=e,this.mimeType=r,this.data=n,this.duration=i,this.title=s,this.byterange=o,this.discontinuity=a,this.mediaSequenceNumber=c,this.discontinuitySequence=l,this.key=u,this.map=f,this.programDateTime=d,this.dateRange=h,this.markers=p,this.parts=m}};Ke.Segment=MP;var BP=class extends gl{constructor({hint:e=!1,uri:r,duration:n,independent:i,byterange:s,gap:o}){super("part"),Jt.PARAMCHECK(r),this.hint=e,this.uri=r,this.duration=n,this.independent=i,this.duration=n,this.byterange=s,this.gap=o}};Ke.PartialSegment=BP;var UP=class extends gl{constructor({uri:e,discontinuity:r,mediaSequenceNumber:n=0,discontinuitySequence:i=0,key:s}){super("prefetch"),Jt.PARAMCHECK(e),this.uri=e,this.discontinuity=r,this.mediaSequenceNumber=n,this.discontinuitySequence=i,this.key=s}};Ke.PrefetchSegment=UP;var zP=class{constructor({uri:e,lastMSN:r,lastPart:n}){Jt.PARAMCHECK(e),this.uri=e,this.lastMSN=r,this.lastPart=n}};Ke.RenditionReport=zP});var ZK=_(Bs=>{"use strict";var NLe=Bs&&Bs.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kLe=Bs&&Bs.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),DLe=Bs&&Bs.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&NLe(e,t,r);return kLe(e,t),e};Object.defineProperty(Bs,"__esModule",{value:!0});var re=DLe(Np()),fr=HP();function JK(t){return re.trim(t,'"')}function LLe(t){switch(t){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 qLe(t){let e=re.splitAt(t,",");return{duration:re.toNumber(e[0]),title:decodeURIComponent(escape(e[1]))}}function QK(t){let e=re.splitAt(t,"@");return{length:re.toNumber(e[0]),offset:e[1]?re.toNumber(e[1]):-1}}function jLe(t){let e=re.splitAt(t,"x");return{width:re.toNumber(e[0]),height:re.toNumber(e[1])}}function FLe(t){let e="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",r=t.split(",");r.length===0&&re.INVALIDPLAYLIST(e);let n=[];for(let i of r){let[s,o]=re.splitAt(i,":");if(!s||!o){re.INVALIDPLAYLIST(e);continue}n.push({format:s,cpcList:o.split("/")})}return n}function MLe(t){let e=re.hexToByteSequence(t);return e.length!==16&&re.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),e}function BLe(t){return t.startsWith('"')?JK(t):t.startsWith("0x")||t.startsWith("0X")?re.hexToByteSequence(t):re.toNumber(t)}function VP(t,e){e.IV&&t.compatibleVersion<2&&(t.compatibleVersion=2),(e.KEYFORMAT||e.KEYFORMATVERSIONS)&&t.compatibleVersion<5&&(t.compatibleVersion=5)}function WK(t){let e={};for(let r of re.splitByCommaWithPreservingQuotes(t)){let[n,i]=re.splitAt(r,"="),s=JK(i);switch(n){case"URI":e[n]=s;break;case"START-DATE":case"END-DATE":e[n]=new Date(s);break;case"IV":e[n]=MLe(s);break;case"BYTERANGE":e[n]=QK(s);break;case"RESOLUTION":e[n]=jLe(s);break;case"ALLOWED-CPC":e[n]=FLe(s);break;case"END-ON-NEXT":case"DEFAULT":case"AUTOSELECT":case"FORCED":case"PRECISE":case"CAN-BLOCK-RELOAD":case"INDEPENDENT":case"GAP":e[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":e[n]=re.toNumber(s);break;default:n.startsWith("SCTE35-")?e[n]=re.hexToByteSequence(s):n.startsWith("X-")?e[n]=BLe(i):(n==="VIDEO-RANGE"&&s!=="SDR"&&s!=="HLG"&&s!=="PQ"&&re.INVALIDPLAYLIST(`VIDEO-RANGE: unknown value "${s}"`),e[n]=s)}}return e}function ULe(t,e){switch(t){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[re.toNumber(e),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(e))?[null,WK(e)]:[re.toNumber(e),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,WK(e)];case"EXTINF":return[qLe(e),null];case"EXT-X-BYTERANGE":return[QK(e),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(e),null];case"EXT-X-PLAYLIST-TYPE":return[e,null];default:return[e,null]}}function GK(){re.INVALIDPLAYLIST("The file contains both media and master playlist tags.")}function zLe(t){let e=t.indexOf(":");return e===-1?[t.slice(1).trim(),null]:[t.slice(1,e).trim(),t.slice(e+1).trim()]}function HLe({attributes:t}){return new fr.Rendition({type:t.TYPE,uri:t.URI,groupId:t["GROUP-ID"],language:t.LANGUAGE,assocLanguage:t["ASSOC-LANGUAGE"],name:t.NAME,isDefault:t.DEFAULT,autoselect:t.AUTOSELECT,forced:t.FORCED,instreamId:t["INSTREAM-ID"],characteristics:t.CHARACTERISTICS,channels:t.CHANNELS})}function VLe(t,e){let r=!1;for(let n of t){if(n.name===e.name)return"All EXT-X-MEDIA tags in the same Group MUST have different NAME attributes.";n.isDefault&&(r=!0)}return r&&e.isDefault?"EXT-X-MEDIA A Group MUST NOT have more than one member with a DEFAULT attribute of YES.":""}function WLe(t,e,r){let n=HLe(e),i=t[re.camelify(r)],s=VLe(i,n);s&&re.INVALIDPLAYLIST(s),i.push(n),n.isDefault&&(t.currentRenditions[re.camelify(r)]=i.length-1)}function GLe(t,e,r){for(let n of["AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS"])n==="CLOSED-CAPTIONS"&&t[n]==="NONE"?(r.isClosedCaptionsNone=!0,e.closedCaptions=[]):t[n]&&!e[re.camelify(n)].some(i=>i.groupId===t[n])&&re.INVALIDPLAYLIST(`${n} attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ${n}.`)}function KK(t,e,r,n,i){let s=new fr.Variant({uri:r,bandwidth:e.BANDWIDTH,averageBandwidth:e["AVERAGE-BANDWIDTH"],score:e.SCORE,codecs:e.CODECS,resolution:e.RESOLUTION,frameRate:e["FRAME-RATE"],hdcpLevel:e["HDCP-LEVEL"],allowedCpc:e["ALLOWED-CPC"],videoRange:e["VIDEO-RANGE"],stableVariantId:e["STABLE-VARIANT-ID"],programId:e["PROGRAM-ID"]});for(let o of t)if(o.name==="EXT-X-MEDIA"){let a=o.attributes,c=a.TYPE;if((!c||!a["GROUP-ID"])&&re.INVALIDPLAYLIST("EXT-X-MEDIA TYPE attribute is REQUIRED."),e[c]===a["GROUP-ID"]&&(WLe(s,o,c),c==="CLOSED-CAPTIONS")){for(let{instreamId:l}of s.closedCaptions)if(l&&l.startsWith("SERVICE")&&i.compatibleVersion<7){i.compatibleVersion=7;break}}}return GLe(e,s,i),s.isIFrameOnly=n,s}function KLe(t,e){if(t.method!==e.method||t.uri!==e.uri)return!1;if(t.iv){if(!e.iv||t.iv.length!==e.iv.length)return!1;for(let r=0;rl.id===c.id&&l.language===c.language)&&re.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(c)}else if(s==="EXT-X-SESSION-KEY"){a.METHOD==="NONE"&&re.INVALIDPLAYLIST("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");let c=new fr.Key({method:a.METHOD,uri:a.URI,iv:a.IV,format:a.KEYFORMAT,formatVersion:a.KEYFORMATVERSIONS});r.sessionKeyList.some(l=>KLe(l,c))&&re.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."),VP(e,a),r.sessionKeyList.push(c)}else s==="EXT-X-INDEPENDENT-SEGMENTS"?(r.independentSegments&&re.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),r.independentSegments=!0):s==="EXT-X-START"&&(r.start&&re.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof a["TIME-OFFSET"]!="number"&&re.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),r.start={offset:a["TIME-OFFSET"],precise:a.PRECISE||!1});if(n)for(let i of r.variants)typeof i.score!="number"&&re.INVALIDPLAYLIST("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute");if(e.isClosedCaptionsNone)for(let i of r.variants)i.closedCaptions.length>0&&re.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 XK(t,e,r,n,i,s,o){let a=new fr.Segment({uri:e,mediaSequenceNumber:i,discontinuitySequence:s}),c=!1,l=!1;for(let u=r;u<=n;u++){let{name:f,value:d,attributes:h}=t[u];if(f==="EXTINF")!Number.isInteger(d.duration)&&o.compatibleVersion<3&&(o.compatibleVersion=3),Math.round(d.duration)>o.targetDuration&&re.INVALIDPLAYLIST("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),a.duration=d.duration,a.title=d.title;else if(f==="EXT-X-BYTERANGE")o.compatibleVersion<4&&(o.compatibleVersion=4),a.byterange=d;else if(f==="EXT-X-DISCONTINUITY")a.parts.length>0&&re.INVALIDPLAYLIST("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),a.discontinuity=!0;else if(f==="EXT-X-KEY")a.parts.length>0&&re.INVALIDPLAYLIST("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),VP(o,h),a.key=new fr.Key({method:h.METHOD,uri:h.URI,iv:h.IV,format:h.KEYFORMAT,formatVersion:h.KEYFORMATVERSIONS});else if(f==="EXT-X-MAP")a.parts.length>0&&re.INVALIDPLAYLIST("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),o.compatibleVersion<5&&(o.compatibleVersion=5),o.hasMap=!0,a.map=new fr.MediaInitializationSection({uri:h.URI,byterange:h.BYTERANGE});else if(f==="EXT-X-PROGRAM-DATE-TIME")a.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]);a.dateRange=new fr.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")a.markers.push(new fr.SpliceInfo({type:"OUT",duration:h&&h.DURATION||d}));else if(f==="EXT-X-CUE-IN")a.markers.push(new fr.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")a.markers.push(new fr.SpliceInfo({type:"RAW",tagName:f,value:d}));else if(f==="EXT-X-PRELOAD-HINT"&&!h.TYPE)re.INVALIDPLAYLIST("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory");else if(f==="EXT-X-PRELOAD-HINT"&&h.TYPE==="PART"&&l)re.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)re.INVALIDPLAYLIST("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else if(f==="EXT-X-PRELOAD-HINT"&&h.TYPE==="MAP")c&&re.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),c=!0,o.hasMap=!0,a.map=new fr.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&&re.INVALIDPLAYLIST("EXT-X-PART: DURATION attribute is mandatory"),f==="EXT-X-PRELOAD-HINT"&&(l=!0);let p=new fr.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});a.parts.push(p)}}return a}function YLe(t,e,r,n,i,s,o){let a=new fr.PrefetchSegment({uri:e,mediaSequenceNumber:i,discontinuitySequence:s});for(let c=r;c<=n;c++){let{name:l,attributes:u}=t[c];l==="EXTINF"?re.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXTINF tag."):l==="EXT-X-DISCONTINUITY"?re.INVALIDPLAYLIST("A prefetch segment must not be advertised with an EXT-X-DISCONTINUITY tag."):l==="EXT-X-PREFETCH-DISCONTINUITY"?a.discontinuity=!0:l==="EXT-X-KEY"?(VP(o,u),a.key=new fr.Key({method:u.METHOD,uri:u.URI,iv:u.IV,format:u.KEYFORMAT,formatVersion:u.KEYFORMATVERSIONS})):l==="EXT-X-MAP"&&re.INVALIDPLAYLIST("Prefetch segments must not be advertised with an EXT-X-MAP tag.")}return a}function JLe(t,e){let r=new fr.MediaPlaylist,n=-1,i=0,s=!1,o=!1,a=0,c=null,l=null,u=!1;for(let[f,d]of t.entries()){let{name:h,value:p,attributes:m,category:g}=d;if(g==="Segment"){n===-1&&(n=f),h==="EXT-X-DISCONTINUITY"&&(s=!0);continue}if(h==="EXT-X-VERSION")r.version===void 0?r.version=p:re.INVALIDPLAYLIST("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if(h==="EXT-X-TARGETDURATION")r.targetDuration=e.targetDuration=p;else if(h==="EXT-X-MEDIA-SEQUENCE")r.segments.length>0&&re.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&&re.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),s&&re.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),r.discontinuitySequenceBase=a=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")e.compatibleVersion<4&&(e.compatibleVersion=4),r.isIFrame=!0;else if(h==="EXT-X-INDEPENDENT-SEGMENTS")r.independentSegments&&re.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&&re.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof m["TIME-OFFSET"]!="number"&&re.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"]||re.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"]||re.INVALIDPLAYLIST("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),r.partTargetDuration=m["PART-TARGET"];else if(h==="EXT-X-RENDITION-REPORT")m.URI||re.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),m.URI.search(/^[a-z]+:/)===0&&re.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),r.renditionReports.push(new fr.RenditionReport({uri:m.URI,lastMSN:m["LAST-MSN"],lastPart:m["LAST-PART"]}));else if(h==="EXT-X-SKIP")m["SKIPPED-SEGMENTS"]||re.INVALIDPLAYLIST("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),e.compatibleVersion<9&&(e.compatibleVersion=9),r.skip=m["SKIPPED-SEGMENTS"],i+=r.skip;else if(h==="EXT-X-PREFETCH"){let y=YLe(t,p,n===-1?f:n,f-1,i++,a,e);y&&(y.discontinuity&&(y.discontinuitySequence++,a=y.discontinuitySequence),y.key?c=y.key:y.key=c,r.prefetchSegments.push(y)),o=!0,n=-1}else if(typeof d=="string"){n===-1&&re.INVALIDPLAYLIST("A URI line is not preceded by any segment tags"),r.targetDuration||re.INVALIDPLAYLIST("The EXT-X-TARGETDURATION tag is REQUIRED"),o&&re.INVALIDPLAYLIST("These segments must appear after all complete segments.");let y=XK(t,d,n,f-1,i++,a,e);y&&([a,c,l]=YK(r,y,a,c,l),!u&&y.parts.length>0&&(u=!0)),n=-1}}if(n!==-1){let f=XK(t,"",n,t.length-1,i++,a,e);if(f){let{parts:d}=f;d.length>0&&!r.endlist&&!d.at(-1)?.hint&&re.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"),YK(r,f,c,l),!u&&f.parts.length>0&&(u=!0)}}return QLe(r.segments),r.lowLatencyCompatibility&&ZLe(r,u),r}function YK(t,e,r,n,i){let{discontinuity:s,key:o,map:a,byterange:c,uri:l}=e;if(s&&(e.discontinuitySequence=r+1),o||(e.key=n),a||(e.map=i),c&&c.offset===-1){let{segments:u}=t;if(u.length>0){let f=u.at(-1);f.byterange&&f.uri===l?c.offset=f.byterange.offset+f.byterange.length:re.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 re.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return t.segments.push(e),[e.discontinuitySequence,e.key,e.map]}function QLe(t){let e=new Map,r=new Map,n=!1,i=!1;for(let s=t.length-1;s>=0;s--){let{programDateTime:o,dateRange:a}=t[s];if(o&&(i=!0),a&&a.start){n=!0,a.endOnNext&&(a.end||a.duration)&&re.INVALIDPLAYLIST("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");let c=a.start.getTime(),l=a.duration||0;a.end&&a.duration&&c+l*1e3!==a.end.getTime()&&re.INVALIDPLAYLIST("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),a.endOnNext&&(a.end=e.get(a.classId)),e.set(a.classId,a.start);let u=a.end?a.end.getTime():a.start.getTime()+(a.duration||0)*1e3,f=r.get(a.classId);if(f){for(let d of f)(d.start<=c&&d.end>c||d.start>=c&&d.start0&&lr&&re.INVALIDPLAYLIST("PART-TARGET is the maximum duration of any Partial Segment"),f0&&(l.lastPart=u.parts.length-1)}}function eqe(t,e){if(t==="Segment"||t==="MediaPlaylist"){if(e.isMasterPlaylist===void 0){e.isMasterPlaylist=!1;return}e.isMasterPlaylist&&GK();return}if(t==="MasterPlaylist"){if(e.isMasterPlaylist===void 0){e.isMasterPlaylist=!0;return}e.isMasterPlaylist===!1&&GK()}}function tqe(t,e){let[r,n]=zLe(t),i=LLe(r);if(eqe(i,e),i==="Unknown")return null;i==="MediaPlaylist"&&r!=="EXT-X-RENDITION-REPORT"&&r!=="EXT-X-PREFETCH"&&(e.hash[r]&&re.INVALIDPLAYLIST("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),e.hash[r]=!0);let[s,o]=ULe(r,n);return{name:r,category:i,value:s,attributes:o}}function rqe(t,e){let r=[];for(let n of t.split(` -`)){let i=Buffer.from(n.trim()).toString();if(i){if(i.startsWith("#")){if(i.startsWith("#EXT")){let s=tqe(i,e);s&&r.push(s)}continue}r.push(i)}}return(r.length===0||r[0].name!=="EXTM3U")&&re.INVALIDPLAYLIST("The EXTM3U tag MUST be the first line."),r}function nqe(t,e){let r;return e.isMasterPlaylist?r=XLe(t,e):(r=JLe(t,e),!r.isIFrame&&e.hasMap&&e.compatibleVersion<6&&(e.compatibleVersion=6)),e.compatibleVersion>1&&(!r.version||r.version{"use strict";var sqe=Us&&Us.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),oqe=Us&&Us.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),aqe=Us&&Us.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&sqe(e,t,r);return oqe(e,t),e};Object.defineProperty(Us,"__esModule",{value:!0});var Ei=aqe(Np()),cqe=["#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"],uqe=["#EXT-X-MEDIA"],WP=class extends Array{constructor(e){super(),this.baseUri=e}push(...e){for(let r of e){if(!r.startsWith("#")){super.push(r);continue}if(cqe.some(n=>r.startsWith(n))){super.push(r);continue}if(this.includes(r)){if(uqe.some(n=>r.startsWith(n)))continue;Ei.INVALIDPLAYLIST(`Redundant item (${r})`)}super.push(r)}return this.length}};function GP(t,e){let r=1e3;e&&(r=10**e);let n=Math.round(t*r)/r;return e?n.toFixed(e):n}function lqe(t){let e=t.toString(10),r=e.indexOf(".");return r===-1?0:e.length-r-1}function fqe(t,e){for(let r of e.sessionDataList)t.push(dqe(r));for(let r of e.sessionKeyList)t.push(eX(r,!0));for(let r of e.variants)pqe(t,r)}function dqe(t){let e=[`DATA-ID="${t.id}"`];return t.language&&e.push(`LANGUAGE="${t.language}"`),t.value?e.push(`VALUE="${t.value}"`):t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-SESSION-DATA:${e.join(",")}`}function eX(t,e){let r=e?"#EXT-X-SESSION-KEY":"#EXT-X-KEY",n=[`METHOD=${t.method}`];return t.uri&&n.push(`URI="${t.uri}"`),t.iv&&(t.iv.length!==16&&Ei.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),n.push(`IV=${Ei.byteSequenceToHex(t.iv)}`)),t.format&&n.push(`KEYFORMAT="${t.format}"`),t.formatVersion&&n.push(`KEYFORMATVERSIONS="${t.formatVersion}"`),`${r}:${n.join(",")}`}function pqe(t,e){let r=e.isIFrameOnly?"#EXT-X-I-FRAME-STREAM-INF":"#EXT-X-STREAM-INF",n=[`BANDWIDTH=${e.bandwidth}`];if(e.averageBandwidth&&n.push(`AVERAGE-BANDWIDTH=${e.averageBandwidth}`),e.isIFrameOnly&&n.push(`URI="${e.uri}"`),e.codecs&&n.push(`CODECS="${e.codecs}"`),e.resolution&&n.push(`RESOLUTION=${e.resolution.width}x${e.resolution.height}`),e.frameRate&&n.push(`FRAME-RATE=${GP(e.frameRate,3)}`),e.hdcpLevel&&n.push(`HDCP-LEVEL=${e.hdcpLevel}`),e.audio.length>0){n.push(`AUDIO="${e.audio[0].groupId}"`);for(let i of e.audio)t.push(Cv(i))}if(e.video.length>0){n.push(`VIDEO="${e.video[0].groupId}"`);for(let i of e.video)t.push(Cv(i))}if(e.subtitles.length>0){n.push(`SUBTITLES="${e.subtitles[0].groupId}"`);for(let i of e.subtitles)t.push(Cv(i))}if(Ei.getOptions().allowClosedCaptionsNone&&e.closedCaptions.length===0)n.push("CLOSED-CAPTIONS=NONE");else if(e.closedCaptions.length>0){n.push(`CLOSED-CAPTIONS="${e.closedCaptions[0].groupId}"`);for(let i of e.closedCaptions)t.push(Cv(i))}if(e.score&&n.push(`SCORE=${e.score}`),e.allowedCpc){let i=[];for(let{format:s,cpcList:o}of e.allowedCpc)i.push(`${s}:${o.join("/")}`);n.push(`ALLOWED-CPC="${i.join(",")}"`)}e.videoRange&&n.push(`VIDEO-RANGE=${e.videoRange}`),e.stableVariantId&&n.push(`STABLE-VARIANT-ID="${e.stableVariantId}"`),e.programId&&n.push(`PROGRAM-ID=${e.programId}`),t.push(`${r}:${n.join(",")}`),e.isIFrameOnly||t.push(`${e.uri}`)}function Cv(t){let e=[`TYPE=${t.type}`,`GROUP-ID="${t.groupId}"`,`NAME="${t.name}"`];return t.isDefault!==void 0&&e.push(`DEFAULT=${t.isDefault?"YES":"NO"}`),t.autoselect!==void 0&&e.push(`AUTOSELECT=${t.autoselect?"YES":"NO"}`),t.forced!==void 0&&e.push(`FORCED=${t.forced?"YES":"NO"}`),t.language&&e.push(`LANGUAGE="${t.language}"`),t.assocLanguage&&e.push(`ASSOC-LANGUAGE="${t.assocLanguage}"`),t.instreamId&&e.push(`INSTREAM-ID="${t.instreamId}"`),t.characteristics&&e.push(`CHARACTERISTICS="${t.characteristics}"`),t.channels&&e.push(`CHANNELS="${t.channels}"`),t.uri&&e.push(`URI="${t.uri}"`),`#EXT-X-MEDIA:${e.join(",")}`}function hqe(t,e){let r="",n="",i=!1;if(e.targetDuration&&t.push(`#EXT-X-TARGETDURATION:${e.targetDuration}`),e.lowLatencyCompatibility){let{canBlockReload:s,canSkipUntil:o,holdBack:a,partHoldBack:c}=e.lowLatencyCompatibility,l=[];l.push(`CAN-BLOCK-RELOAD=${s?"YES":"NO"}`),o!==void 0&&l.push(`CAN-SKIP-UNTIL=${o}`),a!==void 0&&l.push(`HOLD-BACK=${a}`),c!==void 0&&l.push(`PART-HOLD-BACK=${c}`),t.push(`#EXT-X-SERVER-CONTROL:${l.join(",")}`)}e.partTargetDuration&&t.push(`#EXT-X-PART-INF:PART-TARGET=${e.partTargetDuration}`),e.mediaSequenceBase&&t.push(`#EXT-X-MEDIA-SEQUENCE:${e.mediaSequenceBase}`),e.discontinuitySequenceBase&&t.push(`#EXT-X-DISCONTINUITY-SEQUENCE:${e.discontinuitySequenceBase}`),e.playlistType&&t.push(`#EXT-X-PLAYLIST-TYPE:${e.playlistType}`),e.isIFrame&&t.push("#EXT-X-I-FRAMES-ONLY"),e.skip>0&&t.push(`#EXT-X-SKIP:SKIPPED-SEGMENTS=${e.skip}`);for(let s of e.segments){let o="";[r,n,o]=mqe(t,s,r,n,e.version),o==="OUT"?i=!0:o==="IN"&&i&&(i=!1)}e.playlistType==="VOD"&&i&&t.push("#EXT-X-CUE-IN"),e.prefetchSegments.length>2&&Ei.INVALIDPLAYLIST("The server must deliver no more than two prefetch segments");for(let s of e.prefetchSegments)s.discontinuity&&t.push("#EXT-X-PREFETCH-DISCONTINUITY"),t.push(`#EXT-X-PREFETCH:${s.uri}`);e.endlist&&t.push("#EXT-X-ENDLIST");for(let s of e.renditionReports){let o=[];o.push(`URI="${s.uri}"`,`LAST-MSN=${s.lastMSN}`),s.lastPart!==void 0&&o.push(`LAST-PART=${s.lastPart}`),t.push(`#EXT-X-RENDITION-REPORT:${o.join(",")}`)}}function mqe(t,e,r,n,i=1){let s=!1,o="";if(e.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),e.key){let c=eX(e.key);c!==r&&(t.push(c),r=c)}if(e.map){let c=yqe(e.map);c!==n&&(t.push(c),n=c)}if(e.programDateTime&&t.push(`#EXT-X-PROGRAM-DATE-TIME:${Ei.formatDate(e.programDateTime)}`),e.dateRange&&t.push(gqe(e.dateRange)),e.markers.length>0&&(o=vqe(t,e.markers)),e.parts.length>0&&(s=xqe(t,e.parts)),s)return[r,n];let a=i<3?Math.round(e.duration):GP(e.duration,lqe(e.duration));return t.push(`#EXTINF:${a},${unescape(encodeURIComponent(e.title||""))}`),e.byterange&&t.push(`#EXT-X-BYTERANGE:${KP(e.byterange)}`),Array.prototype.push.call(t,`${e.uri}`),[r,n,o]}function yqe(t){let e=[`URI="${t.uri}"`];return t.byterange&&e.push(`BYTERANGE="${KP(t.byterange)}"`),`#EXT-X-MAP:${e.join(",")}`}function KP({offset:t,length:e}){return`${e}@${t}`}function gqe(t){let e=[`ID="${t.id}"`];t.start&&e.push(`START-DATE="${Ei.formatDate(t.start)}"`),t.end&&e.push(`END-DATE="${Ei.formatDate(t.end)}"`),t.duration&&e.push(`DURATION=${t.duration}`),t.plannedDuration&&e.push(`PLANNED-DURATION=${t.plannedDuration}`),t.classId&&e.push(`CLASS="${t.classId}"`),t.endOnNext&&e.push("END-ON-NEXT=YES");for(let r of Object.keys(t.attributes))r.startsWith("X-")?typeof t.attributes[r]=="number"?e.push(`${r}=${t.attributes[r]}`):e.push(`${r}="${t.attributes[r]}"`):r.startsWith("SCTE35-")&&e.push(`${r}=${Ei.byteSequenceToHex(t.attributes[r])}`);return`#EXT-X-DATERANGE:${e.join(",")}`}function vqe(t,e){let r="";for(let n of e)if(n.type==="OUT")r="OUT",t.push(`#EXT-X-CUE-OUT:DURATION=${n.duration}`);else if(n.type==="IN")r="IN",t.push("#EXT-X-CUE-IN");else if(n.type==="RAW"){let i=n.value?`:${n.value}`:"";t.push(`#${n.tagName}${i}`)}return r}function xqe(t,e){let r=!1;for(let n of e)if(n.hint){let i=[];if(i.push("TYPE=PART",`URI="${n.uri}"`),n.byterange){let{offset:s,length:o}=n.byterange;i.push(`BYTERANGE-START=${s}`),o&&i.push(`BYTERANGE-LENGTH=${o}`)}t.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=${KP(n.byterange)}`),n.independent&&i.push("INDEPENDENT=YES"),n.gap&&i.push("GAP=YES"),t.push(`#EXT-X-PART:${i.join(",")}`)}return r}function _qe(t){Ei.PARAMCHECK(t),Ei.ASSERT("Not a playlist",t.type==="playlist");let e=new WP(t.uri);return e.push("#EXTM3U"),t.version&&e.push(`#EXT-X-VERSION:${t.version}`),t.independentSegments&&e.push("#EXT-X-INDEPENDENT-SEGMENTS"),t.start&&e.push(`#EXT-X-START:TIME-OFFSET=${GP(t.start.offset)}${t.start.precise?",PRECISE=YES":""}`),t.isMasterPlaylist?fqe(e,t):hqe(e,t),e.join(` -`)}Us.default=_qe});var iX=_(Qt=>{"use strict";var bqe=Qt&&Qt.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Eqe=Qt&&Qt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),wqe=Qt&&Qt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bqe(e,t,r);return Eqe(e,t),e},rX=Qt&&Qt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.setOptions=Qt.getOptions=Qt.types=Qt.stringify=Qt.parse=void 0;var nX=Np();Object.defineProperty(Qt,"getOptions",{enumerable:!0,get:function(){return nX.getOptions}});Object.defineProperty(Qt,"setOptions",{enumerable:!0,get:function(){return nX.setOptions}});var Sqe=rX(ZK());Qt.parse=Sqe.default;var Aqe=rX(tX());Qt.stringify=Aqe.default;var Tqe=wqe(HP());Qt.types=Tqe});var nC=_((pJe,EX)=>{EX.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Jo=_(vc=>{var iC,Yqe=[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];vc.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};vc.getSymbolTotalCodewords=function(e){return Yqe[e]};vc.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};vc.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');iC=e};vc.isKanjiModeEnabled=function(){return typeof iC<"u"};vc.toSJIS=function(e){return iC(e)}});var Fv=_(Qn=>{Qn.L={bit:1};Qn.M={bit:0};Qn.Q={bit:3};Qn.H={bit:2};function Jqe(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Qn.L;case"m":case"medium":return Qn.M;case"q":case"quartile":return Qn.Q;case"h":case"high":return Qn.H;default:throw new Error("Unknown EC Level: "+t)}}Qn.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Qn.from=function(e,r){if(Qn.isValid(e))return e;try{return Jqe(e)}catch{return r}}});var AX=_((yJe,SX)=>{function wX(){this.buffer=[],this.length=0}wX.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};SX.exports=wX});var $X=_((gJe,TX)=>{function Bp(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Bp.prototype.set=function(t,e,r,n){let i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)};Bp.prototype.get=function(t,e){return this.data[t*this.size+e]};Bp.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bp.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};TX.exports=Bp});var RX=_(Mv=>{var Qqe=Jo().getSymbolSize;Mv.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=Qqe(e),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,s=[n-7];for(let o=1;o{var Zqe=Jo().getSymbolSize,PX=7;CX.getPositions=function(e){let r=Zqe(e);return[[0,0],[r-PX,0],[0,r-PX]]}});var IX=_(St=>{St.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var xc={N1:3,N2:3,N3:40,N4:10};St.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};St.from=function(e){return St.isValid(e)?parseInt(e,10):void 0};St.getPenaltyN1=function(e){let r=e.size,n=0,i=0,s=0,o=null,a=null;for(let c=0;c=5&&(n+=xc.N1+(i-5)),o=u,i=1),u=e.get(l,c),u===a?s++:(s>=5&&(n+=xc.N1+(s-5)),a=u,s=1)}i>=5&&(n+=xc.N1+(i-5)),s>=5&&(n+=xc.N1+(s-5))}return n};St.getPenaltyN2=function(e){let r=e.size,n=0;for(let i=0;i=10&&(i===1488||i===93)&&n++,s=s<<1&2047|e.get(a,o),a>=10&&(s===1488||s===93)&&n++}return n*xc.N3};St.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let s=0;s{var Qo=Fv(),Bv=[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],Uv=[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];sC.getBlocksCount=function(e,r){switch(r){case Qo.L:return Bv[(e-1)*4+0];case Qo.M:return Bv[(e-1)*4+1];case Qo.Q:return Bv[(e-1)*4+2];case Qo.H:return Bv[(e-1)*4+3];default:return}};sC.getTotalCodewordsCount=function(e,r){switch(r){case Qo.L:return Uv[(e-1)*4+0];case Qo.M:return Uv[(e-1)*4+1];case Qo.Q:return Uv[(e-1)*4+2];case Qo.H:return Uv[(e-1)*4+3];default:return}}});var NX=_(Hv=>{var Up=new Uint8Array(512),zv=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Up[r]=e,zv[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Up[r]=Up[r-255]})();Hv.log=function(e){if(e<1)throw new Error("log("+e+")");return zv[e]};Hv.exp=function(e){return Up[e]};Hv.mul=function(e,r){return e===0||r===0?0:Up[zv[e]+zv[r]]}});var kX=_(zp=>{var aC=NX();zp.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let i=0;i=0;){let i=n[0];for(let o=0;o{var DX=kX();function cC(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}cC.prototype.initialize=function(e){this.degree=e,this.genPoly=DX.generateECPolynomial(this.degree)};cC.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=DX.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};LX.exports=cC});var uC=_(jX=>{jX.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var lC=_(Hs=>{var FX="[0-9]+",tje="[A-Z $%*+\\-./:]+",Hp="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Hp=Hp.replace(/u/g,"\\u");var rje="(?:(?![A-Z0-9 $%*+\\-./:]|"+Hp+`)(?:.|[\r -]))+`;Hs.KANJI=new RegExp(Hp,"g");Hs.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Hs.BYTE=new RegExp(rje,"g");Hs.NUMERIC=new RegExp(FX,"g");Hs.ALPHANUMERIC=new RegExp(tje,"g");var nje=new RegExp("^"+Hp+"$"),ije=new RegExp("^"+FX+"$"),sje=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Hs.testKanji=function(e){return nje.test(e)};Hs.testNumeric=function(e){return ije.test(e)};Hs.testAlphanumeric=function(e){return sje.test(e)}});var Zo=_(Zt=>{var oje=uC(),fC=lC();Zt.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Zt.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Zt.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Zt.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Zt.MIXED={bit:-1};Zt.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!oje.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};Zt.getBestModeForData=function(e){return fC.testNumeric(e)?Zt.NUMERIC:fC.testAlphanumeric(e)?Zt.ALPHANUMERIC:fC.testKanji(e)?Zt.KANJI:Zt.BYTE};Zt.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};Zt.isValid=function(e){return e&&e.bit&&e.ccBits};function aje(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return Zt.NUMERIC;case"alphanumeric":return Zt.ALPHANUMERIC;case"kanji":return Zt.KANJI;case"byte":return Zt.BYTE;default:throw new Error("Unknown mode: "+t)}}Zt.from=function(e,r){if(Zt.isValid(e))return e;try{return aje(e)}catch{return r}}});var HX=_(_c=>{var Vv=Jo(),cje=oC(),MX=Fv(),ea=Zo(),dC=uC(),UX=7973,BX=Vv.getBCHDigit(UX);function uje(t,e,r){for(let n=1;n<=40;n++)if(e<=_c.getCapacity(n,r,t))return n}function zX(t,e){return ea.getCharCountIndicator(t,e)+4}function lje(t,e){let r=0;return t.forEach(function(n){let i=zX(n.mode,e);r+=i+n.getBitsLength()}),r}function fje(t,e){for(let r=1;r<=40;r++)if(lje(t,r)<=_c.getCapacity(r,e,ea.MIXED))return r}_c.from=function(e,r){return dC.isValid(e)?parseInt(e,10):r};_c.getCapacity=function(e,r,n){if(!dC.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=ea.BYTE);let i=Vv.getSymbolTotalCodewords(e),s=cje.getTotalCodewordsCount(e,r),o=(i-s)*8;if(n===ea.MIXED)return o;let a=o-zX(n,e);switch(n){case ea.NUMERIC:return Math.floor(a/10*3);case ea.ALPHANUMERIC:return Math.floor(a/11*2);case ea.KANJI:return Math.floor(a/13);case ea.BYTE:default:return Math.floor(a/8)}};_c.getBestVersionForData=function(e,r){let n,i=MX.from(r,MX.M);if(Array.isArray(e)){if(e.length>1)return fje(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return uje(n.mode,n.getLength(),i)};_c.getEncodedBits=function(e){if(!dC.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;Vv.getBCHDigit(r)-BX>=0;)r^=UX<{var pC=Jo(),WX=1335,dje=21522,VX=pC.getBCHDigit(WX);GX.getEncodedBits=function(e,r){let n=e.bit<<3|r,i=n<<10;for(;pC.getBCHDigit(i)-VX>=0;)i^=WX<{var pje=Zo();function _l(t){this.mode=pje.NUMERIC,this.data=t.toString()}_l.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};_l.prototype.getLength=function(){return this.data.length};_l.prototype.getBitsLength=function(){return _l.getBitsLength(this.data.length)};_l.prototype.write=function(e){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),e.put(i,10);let s=this.data.length-r;s>0&&(n=this.data.substr(r),i=parseInt(n,10),e.put(i,s*3+1))};XX.exports=_l});var QX=_((OJe,JX)=>{var hje=Zo(),hC=["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 bl(t){this.mode=hje.ALPHANUMERIC,this.data=t}bl.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};bl.prototype.getLength=function(){return this.data.length};bl.prototype.getBitsLength=function(){return bl.getBitsLength(this.data.length)};bl.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=hC.indexOf(this.data[r])*45;n+=hC.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(hC.indexOf(this.data[r]),6)};JX.exports=bl});var eY=_((IJe,ZX)=>{var mje=Zo();function El(t){this.mode=mje.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}El.getBitsLength=function(e){return e*8};El.prototype.getLength=function(){return this.data.length};El.prototype.getBitsLength=function(){return El.getBitsLength(this.data.length)};El.prototype.write=function(t){for(let e=0,r=this.data.length;e{var yje=Zo(),gje=Jo();function wl(t){this.mode=yje.KANJI,this.data=t}wl.getBitsLength=function(e){return e*13};wl.prototype.getLength=function(){return this.data.length};wl.prototype.getBitsLength=function(){return wl.getBitsLength(this.data.length)};wl.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};tY.exports=wl});var nY=_((kJe,mC)=>{"use strict";var Vp={single_source_shortest_paths:function(t,e,r){var n={},i={};i[e]=0;var s=Vp.PriorityQueue.make();s.push(e,0);for(var o,a,c,l,u,f,d,h,p;!s.empty();){o=s.pop(),a=o.value,l=o.cost,u=t[a]||{};for(c in u)u.hasOwnProperty(c)&&(f=u[c],d=l+f,h=i[c],p=typeof i[c]>"u",(p||h>d)&&(i[c]=d,s.push(c,d),n[c]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var m=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(m)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,i;n;)r.push(n),i=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=Vp.single_source_shortest_paths(t,e,r);return Vp.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Vp.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof mC<"u"&&(mC.exports=Vp)});var fY=_(Sl=>{var ft=Zo(),oY=YX(),aY=QX(),cY=eY(),uY=rY(),Wp=lC(),Wv=Jo(),vje=nY();function iY(t){return unescape(encodeURIComponent(t)).length}function Gp(t,e,r){let n=[],i;for(;(i=t.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function lY(t){let e=Gp(Wp.NUMERIC,ft.NUMERIC,t),r=Gp(Wp.ALPHANUMERIC,ft.ALPHANUMERIC,t),n,i;return Wv.isKanjiModeEnabled()?(n=Gp(Wp.BYTE,ft.BYTE,t),i=Gp(Wp.KANJI,ft.KANJI,t)):(n=Gp(Wp.BYTE_KANJI,ft.BYTE,t),i=[]),e.concat(r,n,i).sort(function(o,a){return o.index-a.index}).map(function(o){return{data:o.data,mode:o.mode,length:o.length}})}function yC(t,e){switch(e){case ft.NUMERIC:return oY.getBitsLength(t);case ft.ALPHANUMERIC:return aY.getBitsLength(t);case ft.KANJI:return uY.getBitsLength(t);case ft.BYTE:return cY.getBitsLength(t)}}function xje(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function _je(t){let e=[];for(let r=0;r{var Kv=Jo(),gC=Fv(),Eje=AX(),wje=$X(),Sje=RX(),Aje=OX(),_C=IX(),bC=oC(),Tje=qX(),Gv=HX(),$je=KX(),Rje=Zo(),vC=fY();function Pje(t,e){let r=t.size,n=Aje.getPositions(e);for(let i=0;i=0&&a<=6&&(c===0||c===6)||c>=0&&c<=6&&(a===0||a===6)||a>=2&&a<=4&&c>=2&&c<=4?t.set(s+a,o+c,!0,!0):t.set(s+a,o+c,!1,!0))}}function Cje(t){let e=t.size;for(let r=8;r>a&1)===1,t.set(i,s,o,!0),t.set(s,i,o,!0)}function xC(t,e,r){let n=t.size,i=$je.getEncodedBits(e,r),s,o;for(s=0;s<15;s++)o=(i>>s&1)===1,s<6?t.set(s,8,o,!0):s<8?t.set(s+1,8,o,!0):t.set(n-15+s,8,o,!0),s<8?t.set(8,n-s-1,o,!0):s<9?t.set(8,15-s-1+1,o,!0):t.set(8,15-s-1,o,!0);t.set(n-8,8,1,!0)}function Nje(t,e){let r=t.size,n=-1,i=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let c=0;c<2;c++)if(!t.isReserved(i,a-c)){let l=!1;o>>s&1)===1),t.set(i,a-c,l),s--,s===-1&&(o++,s=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function kje(t,e,r){let n=new Eje;r.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),Rje.getCharCountIndicator(c.mode,t)),c.write(n)});let i=Kv.getSymbolTotalCodewords(t),s=bC.getTotalCodewordsCount(t,e),o=(i-s)*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(o-n.getLengthInBits())/8;for(let c=0;c=7&&Ije(c,e),Nje(c,o),isNaN(n)&&(n=_C.getBestMask(c,xC.bind(null,c,r))),_C.applyMask(n,c),xC(c,r,n),{modules:c,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}dY.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=gC.M,i,s;return typeof r<"u"&&(n=gC.from(r.errorCorrectionLevel,gC.M),i=Gv.from(r.version),s=_C.from(r.maskPattern),r.toSJISFunc&&Kv.setToSJISFunction(r.toSJISFunc)),Lje(e,i,n,s)}});var wC=_((qJe,hY)=>{"use strict";var qje=require("util"),pY=require("stream"),wi=hY.exports=function(){pY.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};qje.inherits(wi,pY);wi.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e}),process.nextTick(function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}.bind(this))};wi.prototype.write=function(t,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let r;return Buffer.isBuffer(t)?r=t:r=Buffer.from(t,e||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};wi.prototype.end=function(t,e){t&&this.write(t,e),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};wi.prototype.destroySoon=wi.prototype.end;wi.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};wi.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};wi.prototype._processReadAllowingLess=function(t){this._reads.shift();let e=this._buffers[0];e.length>t.length?(this._buffered-=t.length,this._buffers[0]=e.slice(t.length),t.func.call(this,e.slice(0,t.length))):(this._buffered-=e.length,this._buffers.shift(),t.func.call(this,e))};wi.prototype._processRead=function(t){this._reads.shift();let e=0,r=0,n=Buffer.alloc(t.length);for(;e0&&this._buffers.splice(0,r),this._buffered-=t.length,t.func.call(this,n)};wi.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let t=this._reads[0];if(t.allowLess)this._processReadAllowingLess(t);else if(this._buffered>=t.length)this._processRead(t);else break}this._buffers&&!this.writable&&this._end()}catch(t){this.emit("error",t)}}});var AC=_(SC=>{"use strict";var ta=[{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]}];SC.getImagePasses=function(t,e){let r=[],n=t%8,i=e%8,s=(t-n)/8,o=(e-i)/8;for(let a=0;a0&&u>0&&r.push({width:l,height:u,index:a})}return r};SC.getInterlaceIterator=function(t){return function(e,r,n){let i=e%ta[n].x.length,s=(e-i)/ta[n].x.length*8+ta[n].x[i],o=r%ta[n].y.length,a=(r-o)/ta[n].y.length*8+ta[n].y[o];return s*4+a*t*4}}});var TC=_((FJe,mY)=>{"use strict";mY.exports=function(e,r,n){let i=e+r-n,s=Math.abs(i-e),o=Math.abs(i-r),a=Math.abs(i-n);return s<=o&&s<=a?e:o<=a?r:n}});var $C=_((MJe,gY)=>{"use strict";var jje=AC(),Fje=TC();function yY(t,e,r){let n=t*e;return r!==8&&(n=Math.ceil(n/(8/r))),n}var Al=gY.exports=function(t,e){let r=t.width,n=t.height,i=t.interlace,s=t.bpp,o=t.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],i){let a=jje.getImagePasses(r,n);for(let c=0;ci?e[s-n]:0;e[s]=o+a}};Al.prototype._unFilterType2=function(t,e,r){let n=this._lastLine;for(let i=0;ii?e[o-n]:0,u=Math.floor((l+c)/2);e[o]=a+u}};Al.prototype._unFilterType4=function(t,e,r){let n=this._xComparison,i=n-1,s=this._lastLine;for(let o=0;oi?e[o-n]:0,u=o>i&&s?s[o-n]:0,f=Fje(l,c,u);e[o]=a+f}};Al.prototype._reverseFilterLine=function(t){let e=t[0],r,n=this._images[this._imageIndex],i=n.byteWidth;if(e===0)r=t.slice(1,i+1);else switch(r=Buffer.alloc(i),e){case 1:this._unFilterType1(t,r,i);break;case 2:this._unFilterType2(t,r,i);break;case 3:this._unFilterType3(t,r,i);break;case 4:this._unFilterType4(t,r,i);break;default:throw new Error("Unrecognised filter type - "+e)}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 _Y=_((BJe,xY)=>{"use strict";var Mje=require("util"),vY=wC(),Bje=$C(),Uje=xY.exports=function(t){vY.call(this);let e=[],r=this;this._filter=new Bje(t,{read:this.read.bind(this),write:function(n){e.push(n)},complete:function(){r.emit("complete",Buffer.concat(e))}}),this._filter.start()};Mje.inherits(Uje,vY)});var Tl=_((UJe,bY)=>{"use strict";bY.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 CC=_((zJe,EY)=>{"use strict";var RC=[];(function(){for(let t=0;t<256;t++){let e=t;for(let r=0;r<8;r++)e&1?e=3988292384^e>>>1:e=e>>>1;RC[t]=e}})();var PC=EY.exports=function(){this._crc=-1};PC.prototype.write=function(t){for(let e=0;e>>8;return!0};PC.prototype.crc32=function(){return this._crc^-1};PC.crc32=function(t){let e=-1;for(let r=0;r>>8;return e^-1}});var OC=_((HJe,wY)=>{"use strict";var ir=Tl(),zje=CC(),dr=wY.exports=function(t,e){this._options=t,t.checkCRC=t.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[ir.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[ir.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[ir.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[ir.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[ir.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[ir.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};dr.prototype.start=function(){this.read(ir.PNG_SIGNATURE.length,this._parseSignature.bind(this))};dr.prototype._parseSignature=function(t){let e=ir.PNG_SIGNATURE;for(let r=0;rthis._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let e=0;e0?this._handleIDAT(r):this._handleChunkEnd()};dr.prototype._handleIEND=function(t){this.read(t,this._parseIEND.bind(this))};dr.prototype._parseIEND=function(t){this._crc.write(t),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var IC=_(AY=>{"use strict";var SY=AC(),Hje=[function(){},function(t,e,r,n){if(n===e.length)throw new Error("Ran out of data");let i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=255},function(t,e,r,n){if(n+1>=e.length)throw new Error("Ran out of data");let i=e[n];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=e[n+1]},function(t,e,r,n){if(n+2>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=255},function(t,e,r,n){if(n+3>=e.length)throw new Error("Ran out of data");t[r]=e[n],t[r+1]=e[n+1],t[r+2]=e[n+2],t[r+3]=e[n+3]}],Vje=[function(){},function(t,e,r,n){let i=e[0];t[r]=i,t[r+1]=i,t[r+2]=i,t[r+3]=n},function(t,e,r){let n=e[0];t[r]=n,t[r+1]=n,t[r+2]=n,t[r+3]=e[1]},function(t,e,r,n){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=n},function(t,e,r){t[r]=e[0],t[r+1]=e[1],t[r+2]=e[2],t[r+3]=e[3]}];function Wje(t,e){let r=[],n=0;function i(){if(n===t.length)throw new Error("Ran out of data");let s=t[n];n++;let o,a,c,l,u,f,d,h;switch(e){default:throw new Error("unrecognised depth");case 16:d=t[n],n++,r.push((s<<8)+d);break;case 4:d=s&15,h=s>>4,r.push(h,d);break;case 2:u=s&3,f=s>>2&3,d=s>>4&3,h=s>>6&3,r.push(h,d,f,u);break;case 1:o=s&1,a=s>>1&1,c=s>>2&1,l=s>>3&1,u=s>>4&1,f=s>>5&1,d=s>>6&1,h=s>>7&1,r.push(h,d,f,u,l,c,a,o);break}}return{get:function(s){for(;r.length{"use strict";function Xje(t,e,r,n,i){let s=0;for(let o=0;o{"use strict";var Qje=require("util"),kC=require("zlib"),$Y=wC(),Zje=_Y(),e8e=OC(),t8e=IC(),r8e=NC(),rs=RY.exports=function(t){$Y.call(this),this._parser=new e8e(t,{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=t,this.writable=!0,this._parser.start()};Qje.inherits(rs,$Y);rs.prototype._handleError=function(t){this.emit("error",t),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};rs.prototype._inflateData=function(t){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=kC.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,kC.Z_MIN_CHUNK);this._inflate=kC.createInflate({chunkSize:n});let i=r,s=this.emit.bind(this,"error");this._inflate.on("error",function(a){i&&s(a)}),this._filter.on("complete",this._complete.bind(this));let o=this._filter.write.bind(this._filter);this._inflate.on("data",function(a){i&&(a.length>i&&(a=a.slice(0,i)),i-=a.length,o(a))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(t)};rs.prototype._handleMetaData=function(t){this._metaData=t,this._bitmapInfo=Object.create(t),this._filter=new Zje(this._bitmapInfo)};rs.prototype._handleTransColor=function(t){this._bitmapInfo.transColor=t};rs.prototype._handlePalette=function(t){this._bitmapInfo.palette=t};rs.prototype._simpleTransparency=function(){this._metaData.alpha=!0};rs.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};rs.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};rs.prototype._complete=function(t){if(this.errord)return;let e;try{let r=t8e.dataToBitMap(t,this._bitmapInfo);e=r8e(r,this._bitmapInfo),r=null}catch(r){this._handleError(r);return}this.emit("parsed",e)}});var OY=_((KJe,CY)=>{"use strict";var Zn=Tl();CY.exports=function(t,e,r,n){let i=[Zn.COLORTYPE_COLOR_ALPHA,Zn.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 t}let s=n.bitDepth!==16?t:new Uint16Array(t.buffer),o=255,a=Zn.COLORTYPE_TO_BPP_MAP[n.inputColorType];a===4&&!n.inputHasAlpha&&(a=3);let c=Zn.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(o=65535,c*=2);let l=Buffer.alloc(e*r*c),u=0,f=0,d=n.bgColor||{};d.red===void 0&&(d.red=o),d.green===void 0&&(d.green=o),d.blue===void 0&&(d.blue=o);function h(){let p,m,g,y=o;switch(n.inputColorType){case Zn.COLORTYPE_COLOR_ALPHA:y=s[u+3],p=s[u],m=s[u+1],g=s[u+2];break;case Zn.COLORTYPE_COLOR:p=s[u],m=s[u+1],g=s[u+2];break;case Zn.COLORTYPE_ALPHA:y=s[u+1],p=s[u],m=p,g=p;break;case Zn.COLORTYPE_GRAYSCALE:p=s[u],m=p,g=p;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(i||(y/=o,p=Math.min(Math.max(Math.round((1-y)*d.red+y*p),0),o),m=Math.min(Math.max(Math.round((1-y)*d.green+y*m),0),o),g=Math.min(Math.max(Math.round((1-y)*d.blue+y*g),0),o))),{red:p,green:m,blue:g,alpha:y}}for(let p=0;p{"use strict";var IY=TC();function n8e(t,e,r,n,i){for(let s=0;s=s?t[e+o-s]:0,c=t[e+o]-a;n[i+o]=c}}function o8e(t,e,r,n){let i=0;for(let s=0;s=n?t[e+s-n]:0,a=t[e+s]-o;i+=Math.abs(a)}return i}function a8e(t,e,r,n,i){for(let s=0;s0?t[e+s-r]:0,a=t[e+s]-o;n[i+s]=a}}function c8e(t,e,r){let n=0,i=e+r;for(let s=e;s0?t[s-r]:0,a=t[s]-o;n+=Math.abs(a)}return n}function u8e(t,e,r,n,i,s){for(let o=0;o=s?t[e+o-s]:0,c=e>0?t[e+o-r]:0,l=t[e+o]-(a+c>>1);n[i+o]=l}}function l8e(t,e,r,n){let i=0;for(let s=0;s=n?t[e+s-n]:0,a=e>0?t[e+s-r]:0,c=t[e+s]-(o+a>>1);i+=Math.abs(c)}return i}function f8e(t,e,r,n,i,s){for(let o=0;o=s?t[e+o-s]:0,c=e>0?t[e+o-r]:0,l=e>0&&o>=s?t[e+o-(r+s)]:0,u=t[e+o]-IY(a,c,l);n[i+o]=u}}function d8e(t,e,r,n){let i=0;for(let s=0;s=n?t[e+s-n]:0,a=e>0?t[e+s-r]:0,c=e>0&&s>=n?t[e+s-(r+n)]:0,l=t[e+s]-IY(o,a,c);i+=Math.abs(l)}return i}var p8e={0:n8e,1:s8e,2:a8e,3:u8e,4:f8e},h8e={0:i8e,1:o8e,2:c8e,3:l8e,4:d8e};NY.exports=function(t,e,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 o=e*i,a=0,c=0,l=Buffer.alloc((o+1)*r),u=s[0];for(let f=0;f1){let d=1/0;for(let h=0;h{"use strict";var Br=Tl(),m8e=CC(),y8e=OY(),g8e=kY(),v8e=require("zlib"),ra=DY.exports=function(t){if(this._options=t,t.deflateChunkSize=t.deflateChunkSize||32*1024,t.deflateLevel=t.deflateLevel!=null?t.deflateLevel:9,t.deflateStrategy=t.deflateStrategy!=null?t.deflateStrategy:3,t.inputHasAlpha=t.inputHasAlpha!=null?t.inputHasAlpha:!0,t.deflateFactory=t.deflateFactory||v8e.createDeflate,t.bitDepth=t.bitDepth||8,t.colorType=typeof t.colorType=="number"?t.colorType:Br.COLORTYPE_COLOR_ALPHA,t.inputColorType=typeof t.inputColorType=="number"?t.inputColorType:Br.COLORTYPE_COLOR_ALPHA,[Br.COLORTYPE_GRAYSCALE,Br.COLORTYPE_COLOR,Br.COLORTYPE_COLOR_ALPHA,Br.COLORTYPE_ALPHA].indexOf(t.colorType)===-1)throw new Error("option color type:"+t.colorType+" is not supported at present");if([Br.COLORTYPE_GRAYSCALE,Br.COLORTYPE_COLOR,Br.COLORTYPE_COLOR_ALPHA,Br.COLORTYPE_ALPHA].indexOf(t.inputColorType)===-1)throw new Error("option input color type:"+t.inputColorType+" is not supported at present");if(t.bitDepth!==8&&t.bitDepth!==16)throw new Error("option bit depth:"+t.bitDepth+" is not supported at present")};ra.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};ra.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};ra.prototype.filterData=function(t,e,r){let n=y8e(t,e,r,this._options),i=Br.COLORTYPE_TO_BPP_MAP[this._options.colorType];return g8e(n,e,r,this._options,i)};ra.prototype._packChunk=function(t,e){let r=e?e.length:0,n=Buffer.alloc(r+12);return n.writeUInt32BE(r,0),n.writeUInt32BE(t,4),e&&e.copy(n,8),n.writeInt32BE(m8e.crc32(n.slice(4,n.length-4)),n.length-4),n};ra.prototype.packGAMA=function(t){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(t*Br.GAMMA_DIVISION),0),this._packChunk(Br.TYPE_gAMA,e)};ra.prototype.packIHDR=function(t,e){let r=Buffer.alloc(13);return r.writeUInt32BE(t,0),r.writeUInt32BE(e,4),r[8]=this._options.bitDepth,r[9]=this._options.colorType,r[10]=0,r[11]=0,r[12]=0,this._packChunk(Br.TYPE_IHDR,r)};ra.prototype.packIDAT=function(t){return this._packChunk(Br.TYPE_IDAT,t)};ra.prototype.packIEND=function(){return this._packChunk(Br.TYPE_IEND,null)}});var FY=_((JJe,jY)=>{"use strict";var x8e=require("util"),LY=require("stream"),_8e=Tl(),b8e=DC(),qY=jY.exports=function(t){LY.call(this);let e=t||{};this._packer=new b8e(e),this._deflate=this._packer.createDeflate(),this.readable=!0};x8e.inherits(qY,LY);qY.prototype.pack=function(t,e,r,n){this.emit("data",Buffer.from(_8e.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,r)),n&&this.emit("data",this._packer.packGAMA(n));let i=this._packer.filterData(t,e,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 VY=_((Kp,HY)=>{"use strict";var MY=require("assert").ok,$l=require("zlib"),E8e=require("util"),BY=require("buffer").kMaxLength;function bc(t){if(!(this instanceof bc))return new bc(t);t&&t.chunkSize<$l.Z_MIN_CHUNK&&(t.chunkSize=$l.Z_MIN_CHUNK),$l.Inflate.call(this,t),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,t&&t.maxLength!=null&&(this._maxLength=t.maxLength)}function w8e(t){return new bc(t)}function UY(t,e){e&&process.nextTick(e),t._handle&&(t._handle.close(),t._handle=null)}bc.prototype._processChunk=function(t,e,r){if(typeof r=="function")return $l.Inflate._processChunk.call(this,t,e,r);let n=this,i=t&&t.length,s=this._chunkSize-this._offset,o=this._maxLength,a=0,c=[],l=0,u;this.on("error",function(p){u=p});function f(p,m){if(n._hadError)return;let g=s-m;if(MY(g>=0,"have should not go down"),g>0){let y=n._buffer.slice(n._offset,n._offset+g);if(n._offset+=g,y.length>o&&(y=y.slice(0,o)),c.push(y),l+=y.length,o-=y.length,o===0)return!1}return(m===0||n._offset>=n._chunkSize)&&(s=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),m===0?(a+=i-p,i=p,!0):!1}MY(this._handle,"zlib binding closed");let d;do d=this._handle.writeSync(e,t,a,i,this._buffer,this._offset,s),d=d||this._writeState;while(!this._hadError&&f(d[0],d[1]));if(this._hadError)throw u;if(l>=BY)throw UY(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+BY.toString(16)+" bytes");let h=Buffer.concat(c,l);return UY(this),h};E8e.inherits(bc,$l.Inflate);function S8e(t,e){if(typeof e=="string"&&(e=Buffer.from(e)),!(e instanceof Buffer))throw new TypeError("Not a string or buffer");let r=t._finishFlushFlag;return r==null&&(r=$l.Z_FINISH),t._processChunk(e,r)}function zY(t,e){return S8e(new bc(e),t)}HY.exports=Kp=zY;Kp.Inflate=bc;Kp.createInflate=w8e;Kp.inflateSync=zY});var LC=_((QJe,GY)=>{"use strict";var WY=GY.exports=function(t){this._buffer=t,this._reads=[]};WY.prototype.read=function(t,e){this._reads.push({length:Math.abs(t),allowLess:t<0,func:e})};WY.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let t=this._reads[0];if(this._buffer.length&&(this._buffer.length>=t.length||t.allowLess)){this._reads.shift();let e=this._buffer;this._buffer=e.slice(t.length),t.func.call(this,e.slice(0,t.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 XY=_(KY=>{"use strict";var A8e=LC(),T8e=$C();KY.process=function(t,e){let r=[],n=new A8e(t);return new T8e(e,{read:n.read.bind(n),write:function(s){r.push(s)},complete:function(){}}).start(),n.process(),Buffer.concat(r)}});var ZY=_((eQe,QY)=>{"use strict";var YY=!0,JY=require("zlib"),$8e=VY();JY.deflateSync||(YY=!1);var R8e=LC(),P8e=XY(),C8e=OC(),O8e=IC(),I8e=NC();QY.exports=function(t,e){if(!YY)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(v){r=v}let i;function s(v){i=v}function o(v){i.transColor=v}function a(v){i.palette=v}function c(){i.alpha=!0}let l;function u(v){l=v}let f=[];function d(v){f.push(v)}let h=new R8e(t);if(new C8e(e,{read:h.read.bind(h),error:n,metadata:s,gamma:u,palette:a,transColor:o,inflateData:d,simpleTransparency:c}).start(),h.process(),r)throw r;let m=Buffer.concat(f);f.length=0;let g;if(i.interlace)g=JY.inflateSync(m);else{let E=((i.width*i.bpp*i.depth+7>>3)+1)*i.height;g=$8e(m,{chunkSize:E,maxLength:E})}if(m=null,!g||!g.length)throw new Error("bad png - invalid inflate data response");let y=P8e.process(g,i);m=null;let b=O8e.dataToBitMap(y,i);y=null;let x=I8e(b,i);return i.data=x,i.gamma=l||0,i}});var nJ=_((tQe,rJ)=>{"use strict";var eJ=!0,tJ=require("zlib");tJ.deflateSync||(eJ=!1);var N8e=Tl(),k8e=DC();rJ.exports=function(t,e){if(!eJ)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let r=e||{},n=new k8e(r),i=[];i.push(Buffer.from(N8e.PNG_SIGNATURE)),i.push(n.packIHDR(t.width,t.height)),t.gamma&&i.push(n.packGAMA(t.gamma));let s=n.filterData(t.data,t.width,t.height),o=tJ.deflateSync(s,n.getDeflateOptions());if(s=null,!o||!o.length)throw new Error("bad png - invalid compressed data response");return i.push(n.packIDAT(o)),i.push(n.packIEND()),Buffer.concat(i)}});var iJ=_(qC=>{"use strict";var D8e=ZY(),L8e=nJ();qC.read=function(t,e){return D8e(t,e||{})};qC.write=function(t,e){return L8e(t,e)}});var aJ=_(oJ=>{"use strict";var q8e=require("util"),sJ=require("stream"),j8e=PY(),F8e=FY(),M8e=iJ(),en=oJ.PNG=function(t){sJ.call(this),t=t||{},this.width=t.width|0,this.height=t.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,t.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new j8e(t),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(e){this.data=e,this.emit("parsed",e)}.bind(this)),this._packer=new F8e(t),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"))};q8e.inherits(en,sJ);en.sync=M8e;en.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)};en.prototype.parse=function(t,e){if(e){let r,n;r=function(i){this.removeListener("error",n),this.data=i,e(null,this)}.bind(this),n=function(i){this.removeListener("parsed",r),e(i,null)}.bind(this),this.once("parsed",r),this.once("error",n)}return this.end(t),this};en.prototype.write=function(t){return this._parser.write(t),!0};en.prototype.end=function(t){this._parser.end(t)};en.prototype._metadata=function(t){this.width=t.width,this.height=t.height,this.emit("metadata",t)};en.prototype._gamma=function(t){this.gamma=t};en.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};en.bitblt=function(t,e,r,n,i,s,o,a){if(r|=0,n|=0,i|=0,s|=0,o|=0,a|=0,r>t.width||n>t.height||r+i>t.width||n+s>t.height)throw new Error("bitblt reading outside image");if(o>e.width||a>e.height||o+i>e.width||a+s>e.height)throw new Error("bitblt writing outside image");for(let c=0;c{function cJ(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Ec.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:cJ(e.color.dark||"#000000ff"),light:cJ(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Ec.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Ec.getImageWidth=function(e,r){let n=Ec.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Ec.qrToImageData=function(e,r,n){let i=r.modules.size,s=r.modules.data,o=Ec.getScale(i,n),a=Math.floor((i+n.margin*2)*o),c=n.margin*o,l=[n.color.light,n.color.dark];for(let u=0;u=c&&f>=c&&u{var B8e=require("fs"),U8e=aJ().PNG,jC=Xp();ns.render=function(e,r){let n=jC.getOptions(r),i=n.rendererOpts,s=jC.getImageWidth(e.modules.size,n);i.width=s,i.height=s;let o=new U8e(i);return jC.qrToImageData(o.data,e,n),o};ns.renderToDataURL=function(e,r,n){typeof n>"u"&&(n=r,r=void 0),ns.renderToBuffer(e,r,function(i,s){i&&n(i);let o="data:image/png;base64,";o+=s.toString("base64"),n(null,o)})};ns.renderToBuffer=function(e,r,n){typeof n>"u"&&(n=r,r=void 0);let i=ns.render(e,r),s=[];i.on("error",n),i.on("data",function(o){s.push(o)}),i.on("end",function(){n(null,Buffer.concat(s))}),i.pack()};ns.renderToFile=function(e,r,n,i){typeof i>"u"&&(i=n,n=void 0);let s=!1,o=(...c)=>{s||(s=!0,i.apply(null,c))},a=B8e.createWriteStream(e);a.on("error",o),a.on("close",o),ns.renderToFileStream(a,r,n)};ns.renderToFileStream=function(e,r,n){ns.render(r,n).pack().pipe(e)}});var lJ=_(Xv=>{var z8e=Xp(),H8e={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},V8e={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function W8e(t,e,r){return t&&e?r.BB:t&&!e?r.BW:!t&&e?r.WB:r.WW}Xv.render=function(t,e,r){let n=z8e.getOptions(e),i=H8e;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(i=V8e);let s=t.modules.size,o=t.modules.data,a="",c=Array(s+n.margin*2+1).join(i.WW);c=Array(n.margin/2+1).join(c+` -`);let l=Array(n.margin+1).join(i.WW);a+=c;for(let u=0;u"u"&&(i=n,n=void 0);let s=require("fs"),o=Xv.render(r,n);s.writeFile(e,o,i)}});var dJ=_(fJ=>{fJ.render=function(t,e,r){let n=t.modules.size,i=t.modules.data,s="\x1B[40m \x1B[0m",o="\x1B[47m \x1B[0m",a="",c=Array(n+3).join(o),l=Array(2).join(o);a+=c+` -`;for(let u=0;u{var G8e="\x1B[47m",K8e="\x1B[40m",FC="\x1B[37m",MC="\x1B[30m",wc="\x1B[0m",X8e=G8e+MC,Y8e=K8e+FC,J8e=function(t,e,r){return{"00":wc+" "+t,"01":wc+e+"\u2584"+t,"02":wc+r+"\u2584"+t,10:wc+e+"\u2580"+t,11:" ",12:"\u2584",20:wc+r+"\u2580"+t,21:"\u2580",22:"\u2588"}},pJ=function(t,e,r,n){let i=e+1;if(r>=i||n>=i||n<-1||r<-1)return"0";if(r>=e||n>=e||n<0||r<0)return"1";let s=n*e+r;return t[s]?"2":"1"},hJ=function(t,e,r,n){return pJ(t,e,r,n)+pJ(t,e,r,n+1)};mJ.render=function(t,e,r){let n=t.modules.size,i=t.modules.data,s=!!(e&&e.inverse),o=e&&e.inverse?Y8e:X8e,l=J8e(o,s?MC:FC,s?FC:MC),u=wc+` -`+o,f=o;for(let d=-1;d{var Q8e=dJ(),Z8e=yJ();gJ.render=function(t,e,r){return e&&e.small?Z8e.render(t,e,r):Q8e.render(t,e,r)}});var UC=_(_J=>{var eFe=Xp();function xJ(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function BC(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function tFe(t,e,r){let n="",i=0,s=!1,o=0;for(let a=0;a0&&c>0&&t[a-1]||(n+=s?BC("M",c+r,.5+l+r):BC("m",i,0),i=0,s=!1),c+1':"",l="',u='viewBox="0 0 '+a+" "+a+'"',d=''+c+l+` -`;return typeof n=="function"&&n(null,d),d}});var bJ=_(Yv=>{var rFe=UC();Yv.render=rFe.render;Yv.renderToFile=function(e,r,n,i){typeof i>"u"&&(i=n,n=void 0);let s=require("fs"),a=''+Yv.render(r,n);s.writeFile(e,a,i)}});var EJ=_(Jv=>{var zC=Xp();function nFe(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function iFe(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}Jv.render=function(e,r,n){let i=n,s=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(s=iFe()),i=zC.getOptions(i);let o=zC.getImageWidth(e.modules.size,i),a=s.getContext("2d"),c=a.createImageData(o,o);return zC.qrToImageData(c.data,e,i),nFe(a,s,o),a.putImageData(c,0,0),s};Jv.renderToDataURL=function(e,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let s=Jv.render(e,r,i),o=i.type||"image/png",a=i.rendererOpts||{};return s.toDataURL(o,a.quality)}});var SJ=_(Yp=>{var sFe=nC(),HC=EC(),wJ=EJ(),oFe=UC();function VC(t,e,r,n,i){let s=[].slice.call(arguments,1),o=s.length,a=typeof s[o-1]=="function";if(!a&&!sFe())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(i=r,r=e,e=n=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(r=e,e=n=void 0):o===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(c,l){try{let u=HC.create(r,n);c(t(u,e,n))}catch(u){l(u)}})}try{let c=HC.create(r,n);i(null,t(c,e,n))}catch(c){i(c)}}Yp.create=HC.create;Yp.toCanvas=VC.bind(null,wJ.render);Yp.toDataURL=VC.bind(null,wJ.renderToDataURL);Yp.toString=VC.bind(null,function(t,e,r){return oFe.render(t,r)})});var RJ=_(na=>{var AJ=nC(),WC=EC(),aFe=uJ(),TJ=lJ(),cFe=vJ(),$J=bJ();function Jp(t,e,r){if(typeof t>"u")throw new Error("String required as first argument");if(typeof r>"u"&&(r=e,e={}),typeof r!="function")if(AJ())e=r||{},r=null;else throw new Error("Callback required as last argument");return{opts:e,cb:r}}function uFe(t){return t.slice((t.lastIndexOf(".")-1>>>0)+2).toLowerCase()}function Qv(t){switch(t){case"svg":return $J;case"txt":case"utf8":return TJ;case"png":case"image/png":default:return aFe}}function lFe(t){switch(t){case"svg":return $J;case"terminal":return cFe;case"utf8":default:return TJ}}function Qp(t,e,r){if(!r.cb)return new Promise(function(n,i){try{let s=WC.create(e,r.opts);return t(s,r.opts,function(o,a){return o?i(o):n(a)})}catch(s){i(s)}});try{let n=WC.create(e,r.opts);return t(n,r.opts,r.cb)}catch(n){r.cb(n)}}na.create=WC.create;na.toCanvas=SJ().toCanvas;na.toString=function(e,r,n){let i=Jp(e,r,n),s=i.opts?i.opts.type:void 0,o=lFe(s);return Qp(o.render,e,i)};na.toDataURL=function(e,r,n){let i=Jp(e,r,n),s=Qv(i.opts.type);return Qp(s.renderToDataURL,e,i)};na.toBuffer=function(e,r,n){let i=Jp(e,r,n),s=Qv(i.opts.type);return Qp(s.renderToBuffer,e,i)};na.toFile=function(e,r,n,i){if(typeof e!="string"||!(typeof r=="string"||typeof r=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!AJ())throw new Error("Too few arguments provided");let s=Jp(r,n,i),o=s.opts.type||uFe(e),c=Qv(o).renderToFile.bind(null,e);return Qp(c,r,s)};na.toFileStream=function(e,r,n){if(arguments.length<2)throw new Error("Too few arguments provided");let i=Jp(r,n,e.emit.bind(e,"error")),o=Qv("png").renderToFileStream.bind(null,e);Qp(o,r,i)}});var Zp=_((mQe,PJ)=>{PJ.exports=RJ()});var BJ=_((AQe,MJ)=>{MJ.exports=require("util").inspect});var sh=_((TQe,aQ)=>{var u2=typeof Map=="function"&&Map.prototype,e2=Object.getOwnPropertyDescriptor&&u2?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ix=u2&&e2&&typeof e2.get=="function"?e2.get:null,UJ=u2&&Map.prototype.forEach,l2=typeof Set=="function"&&Set.prototype,t2=Object.getOwnPropertyDescriptor&&l2?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,sx=l2&&t2&&typeof t2.get=="function"?t2.get:null,zJ=l2&&Set.prototype.forEach,EFe=typeof WeakMap=="function"&&WeakMap.prototype,rh=EFe?WeakMap.prototype.has:null,wFe=typeof WeakSet=="function"&&WeakSet.prototype,nh=wFe?WeakSet.prototype.has:null,SFe=typeof WeakRef=="function"&&WeakRef.prototype,HJ=SFe?WeakRef.prototype.deref:null,AFe=Boolean.prototype.valueOf,TFe=Object.prototype.toString,$Fe=Function.prototype.toString,RFe=String.prototype.match,f2=String.prototype.slice,oa=String.prototype.replace,PFe=String.prototype.toUpperCase,VJ=String.prototype.toLowerCase,eQ=RegExp.prototype.test,WJ=Array.prototype.concat,ss=Array.prototype.join,CFe=Array.prototype.slice,GJ=Math.floor,i2=typeof BigInt=="function"?BigInt.prototype.valueOf:null,r2=Object.getOwnPropertySymbols,s2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ih=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Rl||!0)?Symbol.toStringTag:null,tQ=Object.prototype.propertyIsEnumerable,KJ=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function XJ(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||eQ.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-GJ(-t):GJ(t);if(n!==t){var i=String(n),s=f2.call(e,i.length+1);return oa.call(i,r,"$&_")+"."+oa.call(oa.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return oa.call(e,r,"$&_")}var o2=BJ(),YJ=o2.custom,JJ=iQ(YJ)?YJ:null,rQ={__proto__:null,double:'"',single:"'"},OFe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};aQ.exports=function t(e,r,n,i){var s=r||{};if(Ks(s,"quoteStyle")&&!Ks(rQ,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ks(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 o=Ks(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ks(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(Ks(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return oQ(e,s);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return a?XJ(e,c):c}if(typeof e=="bigint"){var l=String(e)+"n";return a?XJ(e,l):l}var u=typeof s.depth>"u"?5:s.depth;if(typeof n>"u"&&(n=0),n>=u&&u>0&&typeof e=="object")return a2(e)?"[Array]":"[Object]";var f=XFe(s,n);if(typeof i>"u")i=[];else if(sQ(i,e)>=0)return"[Circular]";function d(I,D,G){if(D&&(i=CFe.call(i),i.push(D)),G){var B={depth:s.depth};return Ks(s,"quoteStyle")&&(B.quoteStyle=s.quoteStyle),t(I,B,n+1,i)}return t(I,s,n+1,i)}if(typeof e=="function"&&!QJ(e)){var h=MFe(e),p=nx(e,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+ss.call(p,", ")+" }":"")}if(iQ(e)){var m=Rl?oa.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):s2.call(e);return typeof e=="object"&&!Rl?th(m):m}if(WFe(e)){for(var g="<"+VJ.call(String(e.nodeName)),y=e.attributes||[],b=0;b",g}if(a2(e)){if(e.length===0)return"[]";var x=nx(e,d);return f&&!KFe(x)?"["+c2(x,f)+"]":"[ "+ss.call(x,", ")+" ]"}if(kFe(e)){var v=nx(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!tQ.call(e,"cause")?"{ ["+String(e)+"] "+ss.call(WJ.call("[cause]: "+d(e.cause),v),", ")+" }":v.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ss.call(v,", ")+" }"}if(typeof e=="object"&&o){if(JJ&&typeof e[JJ]=="function"&&o2)return o2(e,{depth:u-n});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(BFe(e)){var E=[];return UJ&&UJ.call(e,function(I,D){E.push(d(D,e,!0)+" => "+d(I,e))}),ZJ("Map",ix.call(e),E,f)}if(HFe(e)){var S=[];return zJ&&zJ.call(e,function(I){S.push(d(I,e))}),ZJ("Set",sx.call(e),S,f)}if(UFe(e))return n2("WeakMap");if(VFe(e))return n2("WeakSet");if(zFe(e))return n2("WeakRef");if(LFe(e))return th(d(Number(e)));if(jFe(e))return th(d(i2.call(e)));if(qFe(e))return th(AFe.call(e));if(DFe(e))return th(d(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!NFe(e)&&!QJ(e)){var w=nx(e,d),A=KJ?KJ(e)===Object.prototype:e instanceof Object||e.constructor===Object,T=e instanceof Object?"":"null prototype",$=!A&&ih&&Object(e)===e&&ih in e?f2.call(aa(e),8,-1):T?"Object":"",k=A||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",C=k+($||T?"["+ss.call(WJ.call([],$||[],T||[]),": ")+"] ":"");return w.length===0?C+"{}":f?C+"{"+c2(w,f)+"}":C+"{ "+ss.call(w,", ")+" }"}return String(e)};function nQ(t,e,r){var n=r.quoteStyle||e,i=rQ[n];return i+t+i}function IFe(t){return oa.call(String(t),/"/g,""")}function Ac(t){return!ih||!(typeof t=="object"&&(ih in t||typeof t[ih]<"u"))}function a2(t){return aa(t)==="[object Array]"&&Ac(t)}function NFe(t){return aa(t)==="[object Date]"&&Ac(t)}function QJ(t){return aa(t)==="[object RegExp]"&&Ac(t)}function kFe(t){return aa(t)==="[object Error]"&&Ac(t)}function DFe(t){return aa(t)==="[object String]"&&Ac(t)}function LFe(t){return aa(t)==="[object Number]"&&Ac(t)}function qFe(t){return aa(t)==="[object Boolean]"&&Ac(t)}function iQ(t){if(Rl)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!s2)return!1;try{return s2.call(t),!0}catch{}return!1}function jFe(t){if(!t||typeof t!="object"||!i2)return!1;try{return i2.call(t),!0}catch{}return!1}var FFe=Object.prototype.hasOwnProperty||function(t){return t in this};function Ks(t,e){return FFe.call(t,e)}function aa(t){return TFe.call(t)}function MFe(t){if(t.name)return t.name;var e=RFe.call($Fe.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function sQ(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return oQ(f2.call(t,0,e.maxStringLength),e)+n}var i=OFe[e.quoteStyle||"single"];i.lastIndex=0;var s=oa.call(oa.call(t,i,"\\$1"),/[\x00-\x1f]/g,GFe);return nQ(s,"single",e)}function GFe(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+PFe.call(e.toString(16))}function th(t){return"Object("+t+")"}function n2(t){return t+" { ? }"}function ZJ(t,e,r,n){var i=n?c2(r,n):ss.call(r,", ");return t+" ("+e+") {"+i+"}"}function KFe(t){for(var e=0;e=0)return!1;return!0}function XFe(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ss.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ss.call(Array(e+1),r)}}function c2(t,e){if(t.length===0)return"";var r=` -`+e.prev+e.base;return r+ss.call(t,","+r)+` -`+e.prev}function nx(t,e){var r=a2(t),n=[];if(r){n.length=t.length;for(var i=0;i{"use strict";var YFe=sh(),JFe=Mo(),ox=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},QFe=function(t,e){if(t){var r=ox(t,e);return r&&r.value}},ZFe=function(t,e,r){var n=ox(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},e5e=function(t,e){return t?!!ox(t,e):!1},t5e=function(t,e){if(t)return ox(t,e,!0)};cQ.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new JFe("Side channel does not contain "+YFe(n))},delete:function(n){var i=e&&e.next,s=t5e(e,n);return s&&i&&i===s&&(e=void 0),!!s},get:function(n){return QFe(e,n)},has:function(n){return e5e(e,n)},set:function(n,i){e||(e={next:void 0}),ZFe(e,n,i)}};return r}});var d2=_((RQe,dQ)=>{"use strict";var lQ=bp(),fQ=NR(),r5e=fQ([lQ("%String.prototype.indexOf%")]);dQ.exports=function(e,r){var n=lQ(e,!!r);return typeof n=="function"&&r5e(e,".prototype.")>-1?fQ([n]):n}});var p2=_((PQe,hQ)=>{"use strict";var n5e=bp(),oh=d2(),i5e=sh(),s5e=Mo(),pQ=n5e("%Map%",!0),o5e=oh("Map.prototype.get",!0),a5e=oh("Map.prototype.set",!0),c5e=oh("Map.prototype.has",!0),u5e=oh("Map.prototype.delete",!0),l5e=oh("Map.prototype.size",!0);hQ.exports=!!pQ&&function(){var e,r={assert:function(n){if(!r.has(n))throw new s5e("Side channel does not contain "+i5e(n))},delete:function(n){if(e){var i=u5e(e,n);return l5e(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return o5e(e,n)},has:function(n){return e?c5e(e,n):!1},set:function(n,i){e||(e=new pQ),a5e(e,n,i)}};return r}});var yQ=_((CQe,mQ)=>{"use strict";var f5e=bp(),cx=d2(),d5e=sh(),ax=p2(),p5e=Mo(),Pl=f5e("%WeakMap%",!0),h5e=cx("WeakMap.prototype.get",!0),m5e=cx("WeakMap.prototype.set",!0),y5e=cx("WeakMap.prototype.has",!0),g5e=cx("WeakMap.prototype.delete",!0);mQ.exports=Pl?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new p5e("Side channel does not contain "+d5e(i))},delete:function(i){if(Pl&&i&&(typeof i=="object"||typeof i=="function")){if(e)return g5e(e,i)}else if(ax&&r)return r.delete(i);return!1},get:function(i){return Pl&&i&&(typeof i=="object"||typeof i=="function")&&e?h5e(e,i):r&&r.get(i)},has:function(i){return Pl&&i&&(typeof i=="object"||typeof i=="function")&&e?y5e(e,i):!!r&&r.has(i)},set:function(i,s){Pl&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Pl),m5e(e,i,s)):ax&&(r||(r=ax()),r.set(i,s))}};return n}:ax});var vQ=_((OQe,gQ)=>{"use strict";var v5e=Mo(),x5e=sh(),_5e=uQ(),b5e=p2(),E5e=yQ(),w5e=E5e||b5e||_5e;gQ.exports=function(){var e,r={assert:function(n){if(!r.has(n))throw new v5e("Side channel does not contain "+x5e(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=w5e()),e.set(n,i)}};return r}});var ux=_((IQe,xQ)=>{"use strict";var S5e=String.prototype.replace,A5e=/%20/g,h2={RFC1738:"RFC1738",RFC3986:"RFC3986"};xQ.exports={default:h2.RFC3986,formatters:{RFC1738:function(t){return S5e.call(t,A5e,"+")},RFC3986:function(t){return String(t)}},RFC1738:h2.RFC1738,RFC3986:h2.RFC3986}});var g2=_((NQe,bQ)=>{"use strict";var T5e=ux(),m2=Object.prototype.hasOwnProperty,Tc=Array.isArray,os=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),$5e=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Tc(n)){for(var i=[],s=0;s=y2?o.slice(c,c+y2):o,u=[],f=0;f=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||s===T5e.RFC1738&&(d===40||d===41)){u[u.length]=l.charAt(f);continue}if(d<128){u[u.length]=os[d];continue}if(d<2048){u[u.length]=os[192|d>>6]+os[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=os[224|d>>12]+os[128|d>>6&63]+os[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|l.charCodeAt(f)&1023),u[u.length]=os[240|d>>18]+os[128|d>>12&63]+os[128|d>>6&63]+os[128|d&63]}a+=u.join("")}return a},I5e=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i{"use strict";var wQ=vQ(),lx=g2(),ah=ux(),q5e=Object.prototype.hasOwnProperty,SQ={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},as=Array.isArray,j5e=Array.prototype.push,AQ=function(t,e){j5e.apply(t,as(e)?e:[e])},F5e=Date.prototype.toISOString,EQ=ah.default,sr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:lx.encode,encodeValuesOnly:!1,filter:void 0,format:EQ,formatter:ah.formatters[EQ],indices:!1,serializeDate:function(e){return F5e.call(e)},skipNulls:!1,strictNullHandling:!1},M5e=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},v2={},B5e=function t(e,r,n,i,s,o,a,c,l,u,f,d,h,p,m,g,y,b){for(var x=e,v=b,E=0,S=!1;(v=v.get(v2))!==void 0&&!S;){var w=v.get(e);if(E+=1,typeof w<"u"){if(w===E)throw new RangeError("Cyclic object value");S=!0}typeof v.get(v2)>"u"&&(E=0)}if(typeof u=="function"?x=u(r,x):x instanceof Date?x=h(x):n==="comma"&&as(x)&&(x=lx.maybeMap(x,function(Y){return Y instanceof Date?h(Y):Y})),x===null){if(o)return l&&!g?l(r,sr.encoder,y,"key",p):r;x=""}if(M5e(x)||lx.isBuffer(x)){if(l){var A=g?r:l(r,sr.encoder,y,"key",p);return[m(A)+"="+m(l(x,sr.encoder,y,"value",p))]}return[m(r)+"="+m(String(x))]}var T=[];if(typeof x>"u")return T;var $;if(n==="comma"&&as(x))g&&l&&(x=lx.maybeMap(x,l)),$=[{value:x.length>0?x.join(",")||null:void 0}];else if(as(u))$=u;else{var k=Object.keys(x);$=f?k.sort(f):k}var C=c?String(r).replace(/\./g,"%2E"):String(r),I=i&&as(x)&&x.length===1?C+"[]":C;if(s&&as(x)&&x.length===0)return I+"[]";for(var D=0;D<$.length;++D){var G=$[D],B=typeof G=="object"&&G&&typeof G.value<"u"?G.value:x[G];if(!(a&&B===null)){var z=d&&c?String(G).replace(/\./g,"%2E"):String(G),X=as(x)?typeof n=="function"?n(I,z):I:I+(d?"."+z:"["+z+"]");b.set(e,E);var j=wQ();j.set(v2,b),AQ(T,t(B,X,n,i,s,o,a,c,n==="comma"&&g&&as(x)?null:l,u,f,d,h,p,m,g,y,j))}}return T},U5e=function(e){if(!e)return sr;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||sr.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ah.default;if(typeof e.format<"u"){if(!q5e.call(ah.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ah.formatters[n],s=sr.filter;(typeof e.filter=="function"||as(e.filter))&&(s=e.filter);var o;if(e.arrayFormat in SQ?o=e.arrayFormat:"indices"in e?o=e.indices?"indices":"repeat":o=sr.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:sr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:sr.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:sr.allowEmptyArrays,arrayFormat:o,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:sr.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?sr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:sr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:sr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:sr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:sr.encodeValuesOnly,filter:s,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:sr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:sr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:sr.strictNullHandling}};TQ.exports=function(t,e){var r=t,n=U5e(e),i,s;typeof n.filter=="function"?(s=n.filter,r=s("",r)):as(n.filter)&&(s=n.filter,i=s);var o=[];if(typeof r!="object"||r===null)return"";var a=SQ[n.arrayFormat],c=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var l=wQ(),u=0;u0?p+h:""}});var OQ=_((DQe,CQ)=>{"use strict";var $c=g2(),x2=Object.prototype.hasOwnProperty,RQ=Array.isArray,qt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:$c.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},z5e=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},PQ=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},H5e="utf8=%26%2310003%3B",V5e="utf8=%E2%9C%93",W5e=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,r.throwOnLimitExceeded?s+1:s);if(r.throwOnLimitExceeded&&o.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var a=-1,c,l=r.charset;if(r.charsetSentinel)for(c=0;c-1&&(p=RQ(p)?[p]:p);var m=x2.call(n,h);m&&r.duplicates==="combine"?n[h]=$c.combine(n[h],p):(!m||r.duplicates==="last")&&(n[h]=p)}return n},G5e=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var s=t.slice(0,-1).join("");i=Array.isArray(e)&&e[s]?e[s].length:0}for(var o=n?e:PQ(e,r,i),a=t.length-1;a>=0;--a){var c,l=t[a];if(l==="[]"&&r.parseArrays)c=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:$c.combine([],o);else{c=r.plainObjects?{__proto__:null}:{};var u=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,f=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,d=parseInt(f,10);!r.parseArrays&&f===""?c={0:o}:!isNaN(d)&&l!==f&&String(d)===f&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(c=[],c[d]=o):f!=="__proto__"&&(c[f]=o)}o=c}return o},K5e=function(e,r,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(s),l=c?s.slice(0,c.index):s,u=[];if(l){if(!n.plainObjects&&x2.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=a.exec(s))!==null&&f"u"?qt.charset:e.charset,n=typeof e.duplicates>"u"?qt.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:qt.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:qt.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:qt.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:qt.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:qt.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:qt.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:qt.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:qt.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:qt.decoder,delimiter:typeof e.delimiter=="string"||$c.isRegExp(e.delimiter)?e.delimiter:qt.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:qt.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:qt.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:qt.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:qt.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:qt.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:qt.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}};CQ.exports=function(t,e){var r=X5e(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?W5e(t,r):t,i=r.plainObjects?{__proto__:null}:{},s=Object.keys(n),o=0;o{"use strict";var Y5e=$Q(),J5e=OQ(),Q5e=ux();IQ.exports={formats:Q5e,parse:J5e,stringify:Y5e}});var b2=_((NQ,fx)=>{(function(t){"use strict";var e,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,s="[BigNumber Error] ",o=s+"Number primitive has more than 15 significant digits: ",a=1e14,c=14,l=9007199254740991,u=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,d=1e9;function h(E){var S,w,A,T=Z.prototype={constructor:Z,toString:null,valueOf:null},$=new Z(1),k=20,C=4,I=-7,D=21,G=-1e7,B=1e7,z=!1,X=1,j=0,Y={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},J="0123456789abcdefghijklmnopqrstuvwxyz",K=!0;function Z(P,O){var L,R,N,q,U,F,M,H,V=this;if(!(V instanceof Z))return new Z(P,O);if(O==null){if(P&&P._isBigNumber===!0){V.s=P.s,!P.c||P.e>B?V.c=V.e=null:P.e=10;U/=10,q++);q>B?V.c=V.e=null:(V.e=q,V.c=[P]);return}H=String(P)}else{if(!r.test(H=String(P)))return A(V,H,F);V.s=H.charCodeAt(0)==45?(H=H.slice(1),-1):1}(q=H.indexOf("."))>-1&&(H=H.replace(".","")),(U=H.search(/e/i))>0?(q<0&&(q=U),q+=+H.slice(U+1),H=H.substring(0,U)):q<0&&(q=H.length)}else{if(y(O,2,J.length,"Base"),O==10&&K)return V=new Z(P),ce(V,k+V.e+1,C);if(H=String(P),F=typeof P=="number"){if(P*0!=0)return A(V,H,F,O);if(V.s=1/P<0?(H=H.slice(1),-1):1,Z.DEBUG&&H.replace(/^0\.0*|\./,"").length>15)throw Error(o+P)}else V.s=H.charCodeAt(0)===45?(H=H.slice(1),-1):1;for(L=J.slice(0,O),q=U=0,M=H.length;Uq){q=M;continue}}else if(!N&&(H==H.toUpperCase()&&(H=H.toLowerCase())||H==H.toLowerCase()&&(H=H.toUpperCase()))){N=!0,U=-1,q=0;continue}return A(V,String(P),F,O)}F=!1,H=w(H,O,10,V.s),(q=H.indexOf("."))>-1?H=H.replace(".",""):q=H.length}for(U=0;H.charCodeAt(U)===48;U++);for(M=H.length;H.charCodeAt(--M)===48;);if(H=H.slice(U,++M)){if(M-=U,F&&Z.DEBUG&&M>15&&(P>l||P!==i(P)))throw Error(o+V.s*P);if((q=q-U-1)>B)V.c=V.e=null;else if(q=-d&&N<=d&&N===i(N)){if(R[0]===0){if(N===0&&R.length===1)return!0;break e}if(O=(N+1)%c,O<1&&(O+=c),String(R[0]).length==O){for(O=0;O=a||L!==i(L))break e;if(L!==0)return!0}}}else if(R===null&&N===null&&(q===null||q===1||q===-1))return!0;throw Error(s+"Invalid BigNumber: "+P)},Z.maximum=Z.max=function(){return de(arguments,-1)},Z.minimum=Z.min=function(){return de(arguments,1)},Z.random=function(){var P=9007199254740992,O=Math.random()*P&2097151?function(){return i(Math.random()*P)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(L){var R,N,q,U,F,M=0,H=[],V=new Z($);if(L==null?L=k:y(L,0,d),U=n(L/c),z)if(crypto.getRandomValues){for(R=crypto.getRandomValues(new Uint32Array(U*=2));M>>11),F>=9e15?(N=crypto.getRandomValues(new Uint32Array(2)),R[M]=N[0],R[M+1]=N[1]):(H.push(F%1e14),M+=2);M=U/2}else if(crypto.randomBytes){for(R=crypto.randomBytes(U*=7);M=9e15?crypto.randomBytes(7).copy(R,M):(H.push(F%1e14),M+=7);M=U/7}else throw z=!1,Error(s+"crypto unavailable");if(!z)for(;M=10;F/=10,M++);MN-1&&(F[U+1]==null&&(F[U+1]=0),F[U+1]+=F[U]/N|0,F[U]%=N)}return F.reverse()}return function(L,R,N,q,U){var F,M,H,V,Q,se,he,we,Ue=L.indexOf("."),dt=k,Te=C;for(Ue>=0&&(V=j,j=0,L=L.replace(".",""),we=new Z(R),se=we.pow(L.length-Ue),j=V,we.c=O(v(m(se.c),se.e,"0"),10,N,P),we.e=we.c.length),he=O(L,R,N,U?(F=J,P):(F=P,J)),H=V=he.length;he[--V]==0;he.pop());if(!he[0])return F.charAt(0);if(Ue<0?--H:(se.c=he,se.e=H,se.s=q,se=S(se,we,dt,Te,N),he=se.c,Q=se.r,H=se.e),M=H+dt+1,Ue=he[M],V=N/2,Q=Q||M<0||he[M+1]!=null,Q=Te<4?(Ue!=null||Q)&&(Te==0||Te==(se.s<0?3:2)):Ue>V||Ue==V&&(Te==4||Q||Te==6&&he[M-1]&1||Te==(se.s<0?8:7)),M<1||!he[0])L=Q?v(F.charAt(1),-dt,F.charAt(0)):F.charAt(0);else{if(he.length=M,Q)for(--N;++he[--M]>N;)he[M]=0,M||(++H,he=[1].concat(he));for(V=he.length;!he[--V];);for(Ue=0,L="";Ue<=V;L+=F.charAt(he[Ue++]));L=v(L,H,F.charAt(0))}return L}}(),S=function(){function P(R,N,q){var U,F,M,H,V=0,Q=R.length,se=N%f,he=N/f|0;for(R=R.slice();Q--;)M=R[Q]%f,H=R[Q]/f|0,U=he*M+H*se,F=se*M+U%f*f+V,V=(F/q|0)+(U/f|0)+he*H,R[Q]=F%q;return V&&(R=[V].concat(R)),R}function O(R,N,q,U){var F,M;if(q!=U)M=q>U?1:-1;else for(F=M=0;FN[F]?1:-1;break}return M}function L(R,N,q,U){for(var F=0;q--;)R[q]-=F,F=R[q]1;R.splice(0,1));}return function(R,N,q,U,F){var M,H,V,Q,se,he,we,Ue,dt,Te,rt,er,At,ei,Ys,Ve,Wt,rn=R.s==N.s?1:-1,pt=R.c,nt=N.c;if(!pt||!pt[0]||!nt||!nt[0])return new Z(!R.s||!N.s||(pt?nt&&pt[0]==nt[0]:!nt)?NaN:pt&&pt[0]==0||!nt?rn*0:rn/0);for(Ue=new Z(rn),dt=Ue.c=[],H=R.e-N.e,rn=q+H+1,F||(F=a,H=p(R.e/c)-p(N.e/c),rn=rn/c|0),V=0;nt[V]==(pt[V]||0);V++);if(nt[V]>(pt[V]||0)&&H--,rn<0)dt.push(1),Q=!0;else{for(ei=pt.length,Ve=nt.length,V=0,rn+=2,se=i(F/(nt[0]+1)),se>1&&(nt=P(nt,se,F),pt=P(pt,se,F),Ve=nt.length,ei=pt.length),At=Ve,Te=pt.slice(0,Ve),rt=Te.length;rt=F/2&&Ys++;do{if(se=0,M=O(nt,Te,Ve,rt),M<0){if(er=Te[0],Ve!=rt&&(er=er*F+(Te[1]||0)),se=i(er/Ys),se>1)for(se>=F&&(se=F-1),he=P(nt,se,F),we=he.length,rt=Te.length;O(he,Te,we,rt)==1;)se--,L(he,Ve=10;rn/=10,V++);ce(Ue,q+(Ue.e=V+H*c-1)+1,U,Q)}else Ue.e=H,Ue.r=+Q;return Ue}}();function pe(P,O,L,R){var N,q,U,F,M;if(L==null?L=C:y(L,0,8),!P.c)return P.toString();if(N=P.c[0],U=P.e,O==null)M=m(P.c),M=R==1||R==2&&(U<=I||U>=D)?x(M,U):v(M,U,"0");else if(P=ce(new Z(P),O,L),q=P.e,M=m(P.c),F=M.length,R==1||R==2&&(O<=q||q<=I)){for(;FU),M=v(M,q,"0"),q+1>F){if(--O>0)for(M+=".";O--;M+="0");}else if(O+=q-F,O>0)for(q+1==F&&(M+=".");O--;M+="0");return P.s<0&&N?"-"+M:M}function de(P,O){for(var L,R,N=1,q=new Z(P[0]);N=10;N/=10,R++);return(L=R+L*c-1)>B?P.c=P.e=null:L=10;F/=10,N++);if(q=O-N,q<0)q+=c,U=O,M=Q[H=0],V=i(M/se[N-U-1]%10);else if(H=n((q+1)/c),H>=Q.length)if(R){for(;Q.length<=H;Q.push(0));M=V=0,N=1,q%=c,U=q-c+1}else break e;else{for(M=F=Q[H],N=1;F>=10;F/=10,N++);q%=c,U=q-c+N,V=U<0?0:i(M/se[N-U-1]%10)}if(R=R||O<0||Q[H+1]!=null||(U<0?M:M%se[N-U-1]),R=L<4?(V||R)&&(L==0||L==(P.s<0?3:2)):V>5||V==5&&(L==4||R||L==6&&(q>0?U>0?M/se[N-U]:0:Q[H-1])%10&1||L==(P.s<0?8:7)),O<1||!Q[0])return Q.length=0,R?(O-=P.e+1,Q[0]=se[(c-O%c)%c],P.e=-O||0):Q[0]=P.e=0,P;if(q==0?(Q.length=H,F=1,H--):(Q.length=H+1,F=se[c-q],Q[H]=U>0?i(M/se[N-U]%se[U])*F:0),R)for(;;)if(H==0){for(q=1,U=Q[0];U>=10;U/=10,q++);for(U=Q[0]+=F,F=1;U>=10;U/=10,F++);q!=F&&(P.e++,Q[0]==a&&(Q[0]=1));break}else{if(Q[H]+=F,Q[H]!=a)break;Q[H--]=0,F=1}for(q=Q.length;Q[--q]===0;Q.pop());}P.e>B?P.c=P.e=null:P.e=D?x(O,L):v(O,L,"0"),P.s<0?"-"+O:O)}return T.absoluteValue=T.abs=function(){var P=new Z(this);return P.s<0&&(P.s=1),P},T.comparedTo=function(P,O){return g(this,new Z(P,O))},T.decimalPlaces=T.dp=function(P,O){var L,R,N,q=this;if(P!=null)return y(P,0,d),O==null?O=C:y(O,0,8),ce(new Z(q),P+q.e+1,O);if(!(L=q.c))return null;if(R=((N=L.length-1)-p(this.e/c))*c,N=L[N])for(;N%10==0;N/=10,R--);return R<0&&(R=0),R},T.dividedBy=T.div=function(P,O){return S(this,new Z(P,O),k,C)},T.dividedToIntegerBy=T.idiv=function(P,O){return S(this,new Z(P,O),0,1)},T.exponentiatedBy=T.pow=function(P,O){var L,R,N,q,U,F,M,H,V,Q=this;if(P=new Z(P),P.c&&!P.isInteger())throw Error(s+"Exponent not an integer: "+ie(P));if(O!=null&&(O=new Z(O)),F=P.e>14,!Q.c||!Q.c[0]||Q.c[0]==1&&!Q.e&&Q.c.length==1||!P.c||!P.c[0])return V=new Z(Math.pow(+ie(Q),F?P.s*(2-b(P)):+ie(P))),O?V.mod(O):V;if(M=P.s<0,O){if(O.c?!O.c[0]:!O.s)return new Z(NaN);R=!M&&Q.isInteger()&&O.isInteger(),R&&(Q=Q.mod(O))}else{if(P.e>9&&(Q.e>0||Q.e<-1||(Q.e==0?Q.c[0]>1||F&&Q.c[1]>=24e7:Q.c[0]<8e13||F&&Q.c[0]<=9999975e7)))return q=Q.s<0&&b(P)?-0:0,Q.e>-1&&(q=1/q),new Z(M?1/q:q);j&&(q=n(j/c+2))}for(F?(L=new Z(.5),M&&(P.s=1),H=b(P)):(N=Math.abs(+ie(P)),H=N%2),V=new Z($);;){if(H){if(V=V.times(Q),!V.c)break;q?V.c.length>q&&(V.c.length=q):R&&(V=V.mod(O))}if(N){if(N=i(N/2),N===0)break;H=N%2}else if(P=P.times(L),ce(P,P.e+1,1),P.e>14)H=b(P);else{if(N=+ie(P),N===0)break;H=N%2}Q=Q.times(Q),q?Q.c&&Q.c.length>q&&(Q.c.length=q):R&&(Q=Q.mod(O))}return R?V:(M&&(V=$.div(V)),O?V.mod(O):q?ce(V,j,C,U):V)},T.integerValue=function(P){var O=new Z(this);return P==null?P=C:y(P,0,8),ce(O,O.e+1,P)},T.isEqualTo=T.eq=function(P,O){return g(this,new Z(P,O))===0},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(P,O){return g(this,new Z(P,O))>0},T.isGreaterThanOrEqualTo=T.gte=function(P,O){return(O=g(this,new Z(P,O)))===1||O===0},T.isInteger=function(){return!!this.c&&p(this.e/c)>this.c.length-2},T.isLessThan=T.lt=function(P,O){return g(this,new Z(P,O))<0},T.isLessThanOrEqualTo=T.lte=function(P,O){return(O=g(this,new Z(P,O)))===-1||O===0},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&this.c[0]==0},T.minus=function(P,O){var L,R,N,q,U=this,F=U.s;if(P=new Z(P,O),O=P.s,!F||!O)return new Z(NaN);if(F!=O)return P.s=-O,U.plus(P);var M=U.e/c,H=P.e/c,V=U.c,Q=P.c;if(!M||!H){if(!V||!Q)return V?(P.s=-O,P):new Z(Q?U:NaN);if(!V[0]||!Q[0])return Q[0]?(P.s=-O,P):new Z(V[0]?U:C==3?-0:0)}if(M=p(M),H=p(H),V=V.slice(),F=M-H){for((q=F<0)?(F=-F,N=V):(H=M,N=Q),N.reverse(),O=F;O--;N.push(0));N.reverse()}else for(R=(q=(F=V.length)<(O=Q.length))?F:O,F=O=0;O0)for(;O--;V[L++]=0);for(O=a-1;R>F;){if(V[--R]=0;){for(L=0,se=er[N]%dt,he=er[N]/dt|0,U=M,q=N+U;q>N;)H=rt[--U]%dt,V=rt[U]/dt|0,F=he*H+V*se,H=se*H+F%dt*dt+we[q]+L,L=(H/Ue|0)+(F/dt|0)+he*V,we[q--]=H%Ue;we[q]=L}return L?++R:we.splice(0,1),fe(P,we,R)},T.negated=function(){var P=new Z(this);return P.s=-P.s||null,P},T.plus=function(P,O){var L,R=this,N=R.s;if(P=new Z(P,O),O=P.s,!N||!O)return new Z(NaN);if(N!=O)return P.s=-O,R.minus(P);var q=R.e/c,U=P.e/c,F=R.c,M=P.c;if(!q||!U){if(!F||!M)return new Z(N/0);if(!F[0]||!M[0])return M[0]?P:new Z(F[0]?R:N*0)}if(q=p(q),U=p(U),F=F.slice(),N=q-U){for(N>0?(U=q,L=M):(N=-N,L=F),L.reverse();N--;L.push(0));L.reverse()}for(N=F.length,O=M.length,N-O<0&&(L=M,M=F,F=L,O=N),N=0;O;)N=(F[--O]=F[O]+M[O]+N)/a|0,F[O]=a===F[O]?0:F[O]%a;return N&&(F=[N].concat(F),++U),fe(P,F,U)},T.precision=T.sd=function(P,O){var L,R,N,q=this;if(P!=null&&P!==!!P)return y(P,1,d),O==null?O=C:y(O,0,8),ce(new Z(q),P,O);if(!(L=q.c))return null;if(N=L.length-1,R=N*c+1,N=L[N]){for(;N%10==0;N/=10,R--);for(N=L[0];N>=10;N/=10,R++);}return P&&q.e+1>R&&(R=q.e+1),R},T.shiftedBy=function(P){return y(P,-l,l),this.times("1e"+P)},T.squareRoot=T.sqrt=function(){var P,O,L,R,N,q=this,U=q.c,F=q.s,M=q.e,H=k+4,V=new Z("0.5");if(F!==1||!U||!U[0])return new Z(!F||F<0&&(!U||U[0])?NaN:U?q:1/0);if(F=Math.sqrt(+ie(q)),F==0||F==1/0?(O=m(U),(O.length+M)%2==0&&(O+="0"),F=Math.sqrt(+O),M=p((M+1)/2)-(M<0||M%2),F==1/0?O="5e"+M:(O=F.toExponential(),O=O.slice(0,O.indexOf("e")+1)+M),L=new Z(O)):L=new Z(F+""),L.c[0]){for(M=L.e,F=M+H,F<3&&(F=0);;)if(N=L,L=V.times(N.plus(S(q,N,H,1))),m(N.c).slice(0,F)===(O=m(L.c)).slice(0,F))if(L.e0&&we>0){for(q=we%F||F,V=he.substr(0,q);q0&&(V+=H+he.slice(q)),se&&(V="-"+V)}R=Q?V+(L.decimalSeparator||"")+((M=+L.fractionGroupSize)?Q.replace(new RegExp("\\d{"+M+"}\\B","g"),"$&"+(L.fractionGroupSeparator||"")):Q):V}return(L.prefix||"")+R+(L.suffix||"")},T.toFraction=function(P){var O,L,R,N,q,U,F,M,H,V,Q,se,he=this,we=he.c;if(P!=null&&(F=new Z(P),!F.isInteger()&&(F.c||F.s!==1)||F.lt($)))throw Error(s+"Argument "+(F.isInteger()?"out of range: ":"not an integer: ")+ie(F));if(!we)return new Z(he);for(O=new Z($),H=L=new Z($),R=M=new Z($),se=m(we),q=O.e=se.length-he.e-1,O.c[0]=u[(U=q%c)<0?c+U:U],P=!P||F.comparedTo(O)>0?q>0?O:H:F,U=B,B=1/0,F=new Z(se),M.c[0]=0;V=S(F,O,0,1),N=L.plus(V.times(R)),N.comparedTo(P)!=1;)L=R,R=N,H=M.plus(V.times(N=H)),M=N,O=F.minus(V.times(N=O)),F=N;return N=S(P.minus(L),R,0,1),M=M.plus(N.times(H)),L=L.plus(N.times(R)),M.s=H.s=he.s,q=q*2,Q=S(H,R,q,C).minus(he).abs().comparedTo(S(M,L,q,C).minus(he).abs())<1?[H,R]:[M,L],B=U,Q},T.toNumber=function(){return+ie(this)},T.toPrecision=function(P,O){return P!=null&&y(P,1,d),pe(this,P,O,2)},T.toString=function(P){var O,L=this,R=L.s,N=L.e;return N===null?R?(O="Infinity",R<0&&(O="-"+O)):O="NaN":(P==null?O=N<=I||N>=D?x(m(L.c),N):v(m(L.c),N,"0"):P===10&&K?(L=ce(new Z(L),k+N+1,C),O=v(m(L.c),L.e,"0")):(y(P,2,J.length,"Base"),O=w(v(m(L.c),N,"0"),10,P,R,!0)),R<0&&L.c[0]&&(O="-"+O)),O},T.valueOf=T.toJSON=function(){return ie(this)},T._isBigNumber=!0,E!=null&&Z.set(E),Z}function p(E){var S=E|0;return E>0||E===S?S:S-1}function m(E){for(var S,w,A=1,T=E.length,$=E[0]+"";AD^w?1:-1;for(C=(I=T.length)<(D=$.length)?I:D,k=0;k$[k]^w?1:-1;return I==D?0:I>D^w?1:-1}function y(E,S,w,A){if(Ew||E!==i(E))throw Error(s+(A||"Argument")+(typeof E=="number"?Ew?" out of range: ":" not an integer: ":" not a primitive number: ")+String(E))}function b(E){var S=E.c.length-1;return p(E.e/c)==S&&E.c[S]%2!=0}function x(E,S){return(E.length>1?E.charAt(0)+"."+E.slice(1):E)+(S<0?"e":"e+")+S}function v(E,S,w){var A,T;if(S<0){for(T=w+".";++S;T+=w);E=T+E}else if(A=E.length,++S>A){for(T=w,S-=A;--S;T+=w);E+=T}else S{var kQ=b2(),DQ=LQ.exports;(function(){"use strict";function t(l){return l<10?"0"+l:l}var e=/[\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",'"':'\\"',"\\":"\\\\"},o;function a(l){return r.lastIndex=0,r.test(l)?'"'+l.replace(r,function(u){var f=s[u];return typeof f=="string"?f:"\\u"+("0000"+u.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+l+'"'}function c(l,u){var f,d,h,p,m=n,g,y=u[l],b=y!=null&&(y instanceof kQ||kQ.isBigNumber(y));switch(y&&typeof y=="object"&&typeof y.toJSON=="function"&&(y=y.toJSON(l)),typeof o=="function"&&(y=o.call(u,l,y)),typeof y){case"string":return b?y:a(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":case"bigint":return String(y);case"object":if(!y)return"null";if(n+=i,g=[],Object.prototype.toString.apply(y)==="[object Array]"){for(p=y.length,f=0;f{var dx=null,Z5e=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,e6e=/(?: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)/,t6e=function(t){"use strict";var e={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(t!=null){if(t.strict===!0&&(e.strict=!0),t.storeAsString===!0&&(e.storeAsString=!0),e.alwaysParseAsBig=t.alwaysParseAsBig===!0?t.alwaysParseAsBig:!1,e.useNativeBigInt=t.useNativeBigInt===!0?t.useNativeBigInt:!1,typeof t.constructorAction<"u")if(t.constructorAction==="error"||t.constructorAction==="ignore"||t.constructorAction==="preserve")e.constructorAction=t.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);if(typeof t.protoAction<"u")if(t.protoAction==="error"||t.protoAction==="ignore"||t.protoAction==="preserve")e.protoAction=t.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`)}var r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "},s,o=function(m){throw{name:"SyntaxError",message:m,at:r,text:s}},a=function(m){return m&&m!==n&&o("Expected '"+m+"' instead of '"+n+"'"),n=s.charAt(r),r+=1,n},c=function(){var m,g="";for(n==="-"&&(g="-",a("-"));n>="0"&&n<="9";)g+=n,a();if(n===".")for(g+=".";a()&&n>="0"&&n<="9";)g+=n;if(n==="e"||n==="E")for(g+=n,a(),(n==="-"||n==="+")&&(g+=n,a());n>="0"&&n<="9";)g+=n,a();if(m=+g,!isFinite(m))o("Bad number");else return dx==null&&(dx=b2()),g.length>15?e.storeAsString?g:e.useNativeBigInt?BigInt(g):new dx(g):e.alwaysParseAsBig?e.useNativeBigInt?BigInt(m):new dx(m):m},l=function(){var m,g,y="",b;if(n==='"')for(var x=r;a();){if(n==='"')return r-1>x&&(y+=s.substring(x,r-1)),a(),y;if(n==="\\"){if(r-1>x&&(y+=s.substring(x,r-1)),a(),n==="u"){for(b=0,g=0;g<4&&(m=parseInt(a(),16),!!isFinite(m));g+=1)b=b*16+m;y+=String.fromCharCode(b)}else if(typeof i[n]=="string")y+=i[n];else break;x=r}}o("Bad string")},u=function(){for(;n&&n<=" ";)a()},f=function(){switch(n){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}o("Unexpected '"+n+"'")},d,h=function(){var m=[];if(n==="["){if(a("["),u(),n==="]")return a("]"),m;for(;n;){if(m.push(d()),u(),n==="]")return a("]"),m;a(","),u()}}o("Bad array")},p=function(){var m,g=Object.create(null);if(n==="{"){if(a("{"),u(),n==="}")return a("}"),g;for(;n;){if(m=l(),u(),a(":"),e.strict===!0&&Object.hasOwnProperty.call(g,m)&&o('Duplicate key "'+m+'"'),Z5e.test(m)===!0?e.protoAction==="error"?o("Object contains forbidden prototype property"):e.protoAction==="ignore"?d():g[m]=d():e6e.test(m)===!0?e.constructorAction==="error"?o("Object contains forbidden constructor property"):e.constructorAction==="ignore"?d():g[m]=d():g[m]=d(),u(),n==="}")return a("}"),g;a(","),u()}}o("Bad object")};return d=function(){switch(u(),n){case"{":return p();case"[":return h();case'"':return l();case"-":return c();default:return n>="0"&&n<="9"?c():f()}},function(m,g){var y;return s=m+"",r=0,n=" ",y=d(),u(),n&&o("Syntax error"),typeof g=="function"?function b(x,v){var E,S,w=x[v];return w&&typeof w=="object"&&Object.keys(w).forEach(function(A){S=b(w,A),S!==void 0?w[A]=S:delete w[A]}),g.call(x,v,w)}({"":y},""):y}};jQ.exports=t6e});var UQ=_((FQe,px)=>{var MQ=qQ().stringify,BQ=FQ();px.exports=function(t){return{parse:BQ(t),stringify:MQ}};px.exports.parse=BQ();px.exports.stringify=MQ});var mZ=_(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.removeTrailingChar=Rc.merge=void 0;var N6e=(...t)=>{let e={};return t.forEach(function(r){var n;for(n in r)n in e&&e[n]===null?e[n]=r[n]:n in e&&Array.isArray(e[n])?e[n]=e[n].concat(r[n]):n in e&&typeof e[n]=="object"?e[n]=(0,Rc.merge)(e[n],r[n]):e[n]=r[n]}),e};Rc.merge=N6e;var k6e=(t,e)=>t.length>1&&t.endsWith(e)?t.substring(0,t.length-1):t;Rc.removeTrailingChar=k6e});var Il=_(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.DataError=ua.DatabaseError=ua.NestedError=void 0;var uh=class extends Error{inner;id;constructor(e,r,n){super(e),this.inner=n,this.id=r,this.name=this.constructor.name}toString(){let e=this.name+": "+this.message;return this.inner?e+`: -`+this.inner:e}};ua.NestedError=uh;var Q2=class extends uh{};ua.DatabaseError=Q2;var Z2=class extends uh{};ua.DataError=Z2});var iO=_(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getArrayIndicies=tn.validateArrayIndex=tn.validateArrayIndicies=tn.isInt=tn.ArrayInfo=tn.arrayRegex=void 0;var xx=Il(),D6e=()=>/^([\.0-9a-zA-Z_$\-][0-9a-zA-Z_\-$\.]*)\[((?!(\]|\[)).*|)\]$/gm;tn.arrayRegex=D6e;var eO={},tO=class t{property;index=0;append=!1;indicies=[];constructor(e,r){this.property=e;let n=r[0]??0;if(this.append=n===""||r[r.length-1]==="",this.indicies=r,rO(n))this.index=parseInt(n);else if(!this.append)throw new xx.DataError("Only numerical values accepted for array index",200)}static processArray(e){if(typeof e>"u")return null;if(eO[e])return eO[e];let n=(0,tn.arrayRegex)().exec(e.trim());if(n!=null){let i=n[1],s="["+n[2].toString()+"]",o=nO(s);return yZ(o),eO[e]=new t(i,o)}return null}getIndex(e,r){if(this.append)return-1;let n=this.index;if(n==-1){let i=r?e:e[this.property];return i.length===0?0:i.length-1}return n}getData(e){if(this.append)throw new xx.DataError("Can't get data when appending",100);let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(e);return n[r]}setData(e,r){if(this.append){let n=e[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(e);n===-1?i.push(r):i[n]=r}}delete(e){if(this.append)throw new xx.DataError("Can't delete an appended data",10);let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(e);n.splice(r,1)}isValid(e){let{index:r,dataForProperty:n}=this.getArrayDataAndIndexFromProperty(e);return n.hasOwnProperty(r)}getArrayDataAndIndexFromProperty(e){let r=0,n=e instanceof Array?e:e[this.property]??e;if(this.indicies.length>0){r=+this.indicies[this.indicies.length-1];for(let i=0;i1}};tn.ArrayInfo=tO;function rO(t){return!isNaN(t)&&Number(t)==t&&!isNaN(parseInt(t,10))}tn.isInt=rO;function yZ(t){let e=t.filter(r=>r==="");if(e.length>1)throw Error("Only one append index is supported for nested arrays");if(e.length===1&&t[t.length-1]!=="")throw Error("Append index must be at the end of the nested array")}tn.validateArrayIndicies=yZ;function gZ(t){if(t.length!==0&&!rO(t))throw new xx.DataError("Only numerical values accepted for array index",200)}tn.validateArrayIndex=gZ;function nO(t){if(t.length===0)return[];if(t.charAt(0)!=="[")throw new Error("Invalid array syntax detected");let e=t.substring(1,t.indexOf("]"));gZ(e);let r=e.length+2;return[e,...nO(t.substring(r))]}tn.getArrayIndicies=nO});var _Z=_(_x=>{"use strict";Object.defineProperty(_x,"__esModule",{value:!0});_x.DBParentData=void 0;var vZ=iO(),xZ=Il(),sO=class{parent;data;db;dataPath;constructor(e,r,n,i){this.parent=i,this.data=e,this.db=r,this.dataPath=n}checkArray(e=!1){let r=vZ.ArrayInfo.processArray(this.parent);if(r&&(!r.append||e)&&!r.isValid(this.data))throw new xZ.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 e=this.checkArray();return e?e.getData(this.data):this.data[this.parent]}setData(e){if(this.parent===void 0){this.db.resetData(e);return}let r=vZ.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 xZ.DataError("DataPath: /"+this.dataPath+". "+r.property+" is not an array.",11);r.setData(this.data,e)}else this.data[this.parent]=e}delete(){if(this.parent===void 0){this.db.resetData({});return}let e=this.checkArray(!0);e?e.delete(this.data):delete this.data[this.parent]}};_x.DBParentData=sO});var EZ=_((jZe,bZ)=>{bZ.exports=function(){"use strict";function t(){this.readers=0,this.queue=[]}function e(s,o,a){var c;typeof s!="function"?(i.hasOwnProperty(s)||(i[s]=new t),c=i[s]):(a=o,o=s,c=n),a||(a={});var l=null;a.hasOwnProperty("scope")&&(l=a.scope);var u=function(){var h=!1;return function(){h||(h=!0,c.readers--,c.queue.length&&c.queue[0]())}}();if(c.readers<0||c.queue.length){var f=!1;if(c.queue.push(function(){!f&&c.readers>=0&&(f=!0,c.queue.shift(),c.readers++,o.call(l,u),c.queue.length&&c.queue[0]())}),a.hasOwnProperty("timeout")){var d=null;a.hasOwnProperty("timeoutCallback")&&(d=a.timeoutCallback),setTimeout(function(){f||(f=!0,c.queue.shift(),d&&d.call(a.scope))},a.timeout)}}else c.readers++,o.call(a.scope,u)}function r(s,o,a){var c;typeof s!="function"?(i.hasOwnProperty(s)||(i[s]=new t),c=i[s]):(a=o,o=s,c=n),a||(a={});var l=null;a.hasOwnProperty("scope")&&(l=a.scope);var u=function(){var h=!1;return function(){h||(h=!0,c.readers=0,c.queue.length&&c.queue[0]())}}();if(c.readers||c.queue.length){var f=!1;if(c.queue.push(function(){f||c.readers||(f=!0,c.queue.shift(),c.readers=-1,o.call(a.scope,u))}),a.hasOwnProperty("timeout")){var d=null;a.hasOwnProperty("timeoutCallback")&&(d=a.timeoutCallback),setTimeout(function(){f||(f=!0,c.queue.shift(),d&&d.call(l))},a.timeout)}}else c.readers=-1,o.call(a.scope,u)}var n=new t,i={};this.readLock=e,this.writeLock=r,this.async={readLock:function(s,o,a){typeof s!="function"?e(s,function(c){o.call(this,null,c)},a):(o=s,a=o,e(function(c){o.call(this,null,c)},a))},writeLock:function(s,o,a){typeof s!="function"?r(s,function(c){o.call(this,null,c)},a):(o=s,a=o,r(function(c){o.call(this,null,c)},a))}}}});var wZ=_(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});bx.TimeoutError=void 0;var L6e=Il(),oO=class extends L6e.NestedError{};bx.TimeoutError=oO});var TZ=_(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.writeLockAsync=Nl.readLockAsync=void 0;var q6e=EZ(),SZ=wZ(),AZ=new q6e,j6e=(t,e=null)=>{let r={};return e!=null&&(r={timeout:e}),new Promise((n,i)=>{AZ.readLock(async s=>{try{let o=await t();n(o)}catch(o){i(o)}finally{s()}},{...r,timeoutCallback(){i(new SZ.TimeoutError("Timeout",100))}})})};Nl.readLockAsync=j6e;var F6e=(t,e=null)=>{let r={};return e!=null&&(r={timeout:e}),new Promise((n,i)=>{AZ.writeLock(async s=>{try{let o=await t();n(o)}catch(o){i(o)}finally{s()}},{...r,timeoutCallback(){i(new SZ.TimeoutError("Timeout",100))}})})};Nl.writeLockAsync=F6e});var cO=_(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.JsonAdapter=void 0;var aO=class{adapter;humanReadable;dateRegex=new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}","m");constructor(e,r=!1){this.adapter=e,this.humanReadable=r}replacer(e,r){return r}reviver(e,r){return typeof r=="string"&&this.dateRegex.exec(r)!=null?new Date(r):r}async readAsync(){let e=await this.adapter.readAsync();return e==null?(await this.writeAsync({}),{}):JSON.parse(e,this.reviver.bind(this))}writeAsync(e){let r="";return this.humanReadable?r=JSON.stringify(e,this.replacer.bind(this),4):r=JSON.stringify(e,this.replacer.bind(this)),this.adapter.writeAsync(r)}};Ex.JsonAdapter=aO});var lO=_(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});Sx.FileAdapter=void 0;var wx=require("fs/promises"),M6e=require("path"),uO=class{filename;fsync;constructor(e,r){this.filename=e,this.fsync=r}async readAsync(){try{return await(0,wx.readFile)(this.filename,{encoding:"utf-8"})}catch(e){if(e.code==="ENOENT")return null;throw e}}async writeAsync(e){let r=null;try{r=await(0,wx.open)(this.filename,"w")}catch(n){if(n.code!=="ENOENT")throw n;let i=M6e.dirname(this.filename);await(0,wx.mkdir)(i,{recursive:!0}),r=await(0,wx.open)(this.filename,"w")}try{await r.writeFile(e,{encoding:"utf-8"}),this.fsync&&await r.sync()}finally{await r.close()}}};Sx.FileAdapter=uO});var $Z=_(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ConfigWithAdapter=kl.Config=void 0;var B6e=require("path"),U6e=cO(),z6e=lO(),fO=class{adapter;filename;saveOnPush;separator;constructor(e,r=!0,n=!1,i="/",s=!1){this.filename=e,B6e.extname(e)===""&&(this.filename+=".json"),this.saveOnPush=r,this.separator=i,this.adapter=new U6e.JsonAdapter(new z6e.FileAdapter(this.filename,s),n)}};kl.Config=fO;var dO=class{adapter;saveOnPush;separator;constructor(e,r=!0,n="/"){this.adapter=e,this.saveOnPush=r,this.separator=n}};kl.ConfigWithAdapter=dO});var OZ=_(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.JsonDB=Hr.FileAdapter=Hr.JsonAdapter=Hr.DataError=Hr.DatabaseError=Hr.ConfigWithAdapter=Hr.Config=void 0;var RZ=mZ(),zr=Il(),H6e=_Z(),V6e=iO(),pO=TZ(),PZ=$Z();Object.defineProperty(Hr,"Config",{enumerable:!0,get:function(){return PZ.Config}});Object.defineProperty(Hr,"ConfigWithAdapter",{enumerable:!0,get:function(){return PZ.ConfigWithAdapter}});var CZ=Il();Object.defineProperty(Hr,"DatabaseError",{enumerable:!0,get:function(){return CZ.DatabaseError}});Object.defineProperty(Hr,"DataError",{enumerable:!0,get:function(){return CZ.DataError}});var W6e=cO();Object.defineProperty(Hr,"JsonAdapter",{enumerable:!0,get:function(){return W6e.JsonAdapter}});var G6e=lO();Object.defineProperty(Hr,"FileAdapter",{enumerable:!0,get:function(){return G6e.FileAdapter}});var hO=class{loaded=!1;data={};config;constructor(e){this.config=e}processDataPath(e){if(e===void 0||!e.trim())throw new zr.DataError("The Data Path can't be empty",6);if(e==this.config.separator)return[];e=(0,RZ.removeTrailingChar)(e,this.config.separator);let r=e.split(this.config.separator);return r.shift(),r}async retrieveData(e,r=!1){await this.load();let n=this,i=(s,o)=>{let a=e[o];function c(u=!1){if(s.hasOwnProperty(a))s=s[a];else if(r)u?s[a]=[]:s[a]={},s=s[a];else throw new zr.DataError(`Can't find dataPath: ${n.config.separator}${e.join(n.config.separator)}. Stopped at ${a}`,5)}let l=V6e.ArrayInfo.processArray(a);if(l){if(a=l.property,c(!0),!Array.isArray(s))throw new zr.DataError(`DataPath: ${n.config.separator}${e.join(n.config.separator)}. ${a} is not an array.`,11);let u=l.getIndex(s,!0);if(!l.append&&s.hasOwnProperty(u))s=l.getData(s);else if(r)l.append?(s.push({}),s=s[s.length-1]):(s[u]={},s=s[u]);else throw new zr.DataError(`DataPath: ${n.config.separator}${e.join(n.config.separator)}. . Can't find index ${l.index} in array ${a}`,10)}else c();return e.length==++o?s:i(s,o)};return e.length===0?this.data:i(this.data,0)}async getParentData(e,r){let n=this.processDataPath(e),i=n.pop();return new H6e.DBParentData(await this.retrieveData(n,r),this,e,i)}getData(e){return(0,pO.readLockAsync)(async()=>{let r=this.processDataPath(e);return this.retrieveData(r,!1)})}getObject(e){return this.getData(e)}async getObjectDefault(e,r){try{return await this.getData(e)}catch(n){if(!(n instanceof zr.DataError)||n.id!=5)throw n;return r}}async exists(e){try{return await this.getData(e),!0}catch(r){if(r instanceof zr.DataError)return!1;throw r}}async count(e){let r=await this.getData(e);if(!Array.isArray(r))throw new zr.DataError(`DataPath: ${e} is not an array.`,11);let n=this.processDataPath(e);return(await this.retrieveData(n,!1)).length}async getIndex(e,r,n="id"){return(await this.getArrayData(e)).map(function(s){return s[n]}).indexOf(r)}async getIndexValue(e,r){return(await this.getArrayData(e)).indexOf(r)}async getArrayData(e){let r=await this.getData(e);if(!Array.isArray(r))throw new zr.DataError(`DataPath: ${e} is not an array.`,11);let n=this.processDataPath(e);return this.retrieveData(n,!1)}async filter(e,r){let n=await this.getData(e);if(Array.isArray(n))return n.filter(r);if(n instanceof Object){let s=Object.entries(n).filter(o=>r(o[1],o[0]));return!s||s.length<1?void 0:s.map(o=>o[1])}throw new zr.DataError("The entry at the path ("+e+") needs to be either an Object or an Array",12)}async find(e,r){let n=await this.getData(e);if(Array.isArray(n))return n.find(r);if(n instanceof Object){let s=Object.entries(n).find(o=>r(o[1],o[0]));return!s||s.length<2?void 0:s[1]}throw new zr.DataError("The entry at the path ("+e+") needs to be either an Object or an Array",12)}async push(e,r,n=!0){return(0,pO.writeLockAsync)(async()=>{let i=await this.getParentData(e,!0),s=r;if(!n){if(Array.isArray(r)){let o=i.getData();if(o===void 0)o=[];else if(!Array.isArray(o))throw new zr.DataError("Can't merge another type of data with an Array",3);s=o.concat(r)}else if(r===Object(r)){if(Array.isArray(i.getData()))throw new zr.DataError("Can't merge an Array with an Object",4);s=(0,RZ.merge)(i.getData(),r)}}i.setData(s),this.config.saveOnPush&&await this.save()})}async delete(e){await(0,pO.writeLockAsync)(async()=>{(await this.getParentData(e,!0)).delete(),this.config.saveOnPush&&await this.save()})}resetData(e){this.data=e}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(e){throw new zr.DatabaseError("Can't Load Database",1,e)}}async save(e){if(e=e||!1,!e&&!this.loaded)throw new zr.DatabaseError("DataBase not loaded. Can't write",7);try{await this.config.adapter.writeAsync(this.data)}catch(r){throw new zr.DatabaseError("Can't save the database",2,r)}}async fromPath(e,r="id"){let[,...n]=e.split("/"),i=n.reduce((o,a,c)=>{if(c%2===0)o[`${a}`]="";else{let u=Object.keys(o);o[`${u[u.length-1]}`]=`${a}`}return o},{}),s=[];for await(let o of Object.keys(i)){s.push(`/${o}`);let a=i[o];try{let c=await this.getIndex(s.join(""),a,r);s.push(`[${c}]`)}catch(c){throw new zr.DataError(`DataPath: ${s.join("")}/${a} not found.`,13,c)}}return s.join("")}};Hr.JsonDB=hO});var OMe={};LO(OMe,{start:()=>PMe,stop:()=>CMe});module.exports=ZZ(OMe);var HZ=$e(sH(),1);var jK=$e(xn(),1);function hp(t,e){return function(){return t.apply(e,arguments)}}var{toString:oke}=Object.prototype,{getPrototypeOf:_R}=Object,iv=(t=>e=>{let r=oke.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ji=t=>(t=t.toLowerCase(),e=>iv(e)===t),sv=t=>e=>typeof e===t,{isArray:tl}=Array,mp=sv("undefined");function ake(t){return t!==null&&!mp(t)&&t.constructor!==null&&!mp(t.constructor)&&Kn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var mV=Ji("ArrayBuffer");function cke(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&mV(t.buffer),e}var uke=sv("string"),Kn=sv("function"),yV=sv("number"),ov=t=>t!==null&&typeof t=="object",lke=t=>t===!0||t===!1,nv=t=>{if(iv(t)!=="object")return!1;let e=_R(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},fke=Ji("Date"),dke=Ji("File"),pke=Ji("Blob"),hke=Ji("FileList"),mke=t=>ov(t)&&Kn(t.pipe),yke=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Kn(t.append)&&((e=iv(t))==="formdata"||e==="object"&&Kn(t.toString)&&t.toString()==="[object FormData]"))},gke=Ji("URLSearchParams"),vke=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yp(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),tl(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}var vV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xV=t=>!mp(t)&&t!==vV;function xR(){let{caseless:t}=xV(this)&&this||{},e={},r=(n,i)=>{let s=t&&gV(e,i)||i;nv(e[s])&&nv(n)?e[s]=xR(e[s],n):nv(n)?e[s]=xR({},n):tl(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n(yp(e,(i,s)=>{r&&Kn(i)?t[s]=hp(i,r):t[s]=i},{allOwnKeys:n}),t),_ke=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bke=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Eke=(t,e,r,n)=>{let i,s,o,a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=r!==!1&&_R(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},wke=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},Ske=t=>{if(!t)return null;if(tl(t))return t;let e=t.length;if(!yV(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ake=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&_R(Uint8Array)),Tke=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(t,s[0],s[1])}},$ke=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Rke=Ji("HTMLFormElement"),Pke=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),pV=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Cke=Ji("RegExp"),_V=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};yp(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},Oke=t=>{_V(t,(e,r)=>{if(Kn(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=t[r];if(Kn(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ike=(t,e)=>{let r={},n=i=>{i.forEach(s=>{r[s]=!0})};return tl(t)?n(t):n(String(t).split(e)),r},Nke=()=>{},kke=(t,e)=>(t=+t,Number.isFinite(t)?t:e),vR="abcdefghijklmnopqrstuvwxyz",hV="0123456789",bV={DIGIT:hV,ALPHA:vR,ALPHA_DIGIT:vR+vR.toUpperCase()+hV},Dke=(t=16,e=bV.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function Lke(t){return!!(t&&Kn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}var qke=t=>{let e=new Array(10),r=(n,i)=>{if(ov(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;let s=tl(n)?[]:{};return yp(n,(o,a)=>{let c=r(o,i+1);!mp(c)&&(s[a]=c)}),e[i]=void 0,s}}return n};return r(t,0)},jke=Ji("AsyncFunction"),Fke=t=>t&&(ov(t)||Kn(t))&&Kn(t.then)&&Kn(t.catch),W={isArray:tl,isArrayBuffer:mV,isBuffer:ake,isFormData:yke,isArrayBufferView:cke,isString:uke,isNumber:yV,isBoolean:lke,isObject:ov,isPlainObject:nv,isUndefined:mp,isDate:fke,isFile:dke,isBlob:pke,isRegExp:Cke,isFunction:Kn,isStream:mke,isURLSearchParams:gke,isTypedArray:Ake,isFileList:hke,forEach:yp,merge:xR,extend:xke,trim:vke,stripBOM:_ke,inherits:bke,toFlatObject:Eke,kindOf:iv,kindOfTest:Ji,endsWith:wke,toArray:Ske,forEachEntry:Tke,matchAll:$ke,isHTMLForm:Rke,hasOwnProperty:pV,hasOwnProp:pV,reduceDescriptors:_V,freezeMethods:Oke,toObjectSet:Ike,toCamelCase:Pke,noop:Nke,toFiniteNumber:kke,findKey:gV,global:vV,isContextDefined:xV,ALPHABET:bV,generateString:Dke,isSpecCompliantForm:Lke,toJSONObject:qke,isAsyncFn:jke,isThenable:Fke};function rl(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}W.inherits(rl,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var EV=rl.prototype,wV={};["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(t=>{wV[t]={value:t}});Object.defineProperties(rl,wV);Object.defineProperty(EV,"isAxiosError",{value:!0});rl.from=(t,e,r,n,i,s)=>{let o=Object.create(EV);return W.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),rl.call(o,t.message,e,r,n,i),o.cause=t,o.name=t.name,s&&Object.assign(o,s),o};var ue=rl;var AG=$e(SG(),1),yv=AG.default;function BR(t){return W.isPlainObject(t)||W.isArray(t)}function $G(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function TG(t,e,r){return t?t.concat(e).map(function(i,s){return i=$G(i),!r&&s?"["+i+"]":i}).join(r?".":""):e}function S4e(t){return W.isArray(t)&&!t.some(BR)}var A4e=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function T4e(t,e,r){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new(yv||FormData),r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!W.isUndefined(g[m])});let n=r.metaTokens,i=r.visitor||u,s=r.dots,o=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(W.isDate(p))return p.toISOString();if(!c&&W.isBlob(p))throw new ue("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(p)||W.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let y=p;if(p&&!g&&typeof p=="object"){if(W.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(W.isArray(p)&&S4e(p)||(W.isFileList(p)||W.endsWith(m,"[]"))&&(y=W.toArray(p)))return m=$G(m),y.forEach(function(x,v){!(W.isUndefined(x)||x===null)&&e.append(o===!0?TG([m],v,s):o===null?m:m+"[]",l(x))}),!1}return BR(p)?!0:(e.append(TG(g,m,s),l(p)),!1)}let f=[],d=Object.assign(A4e,{defaultVisitor:u,convertValue:l,isVisitable:BR});function h(p,m){if(!W.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),W.forEach(p,function(y,b){(!(W.isUndefined(y)||y===null)&&i.call(e,y,W.isString(b)?b.trim():b,m,d))===!0&&h(y,m?m.concat(b):[b])}),f.pop()}}if(!W.isObject(t))throw new TypeError("data must be an object");return h(t),e}var Uo=T4e;function RG(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function PG(t,e){this._pairs=[],t&&Uo(t,this,e)}var CG=PG.prototype;CG.append=function(e,r){this._pairs.push([e,r])};CG.toString=function(e){let r=e?function(n){return e.call(this,n,RG)}:RG;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};var OG=PG;function $4e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sc(t,e,r){if(!e)return t;let n=r&&r.encode||$4e,i=r&&r.serialize,s;if(i?s=i(e,r):s=W.isURLSearchParams(e)?e.toString():new OG(e,r).toString(n),s){let o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}var UR=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(n){n!==null&&e(n)})}},zR=UR;var al={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var IG=$e(require("url"),1),NG=IG.default.URLSearchParams;var kG={isNode:!0,classes:{URLSearchParams:NG,FormData:yv,Blob:typeof Blob<"u"&&Blob||null},protocols:["http","https","file","data"]};var HR={};LO(HR,{hasBrowserEnv:()=>DG,hasStandardBrowserEnv:()=>R4e,hasStandardBrowserWebWorkerEnv:()=>P4e});var DG=typeof window<"u"&&typeof document<"u",R4e=(t=>DG&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),P4e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var rr={...HR,...kG};function VR(t,e){return Uo(t,new rr.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rr.isNode&&W.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function C4e(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function O4e(t){let e={},r=Object.keys(t),n,i=r.length,s;for(n=0;n=r.length;return o=!o&&W.isArray(i)?i.length:o,c?(W.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!W.isObject(i[o]))&&(i[o]=[]),e(r,n,i[o],s)&&W.isArray(i[o])&&(i[o]=O4e(i[o])),!a)}if(W.isFormData(t)&&W.isFunction(t.entries)){let r={};return W.forEachEntry(t,(n,i)=>{e(C4e(n),i,r,0)}),r}return null}var gv=I4e;function N4e(t,e,r){if(W.isString(t))try{return(e||JSON.parse)(t),W.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var WR={transitional:al,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",i=n.indexOf("application/json")>-1,s=W.isObject(e);if(s&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return i?JSON.stringify(gv(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return VR(e,this.formSerializer).toString();if((a=W.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return Uo(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),N4e(e)):e}],transformResponse:[function(e){let r=this.transitional||WR.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&W.isString(e)&&(n&&!this.responseType||i)){let o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?ue.from(a,ue.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{WR.headers[t]={}});var cl=WR;var k4e=W.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"]),LG=t=>{let e={},r,n,i;return t&&t.split(` -`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||e[r]&&k4e[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};var qG=Symbol("internals");function Ep(t){return t&&String(t).trim().toLowerCase()}function vv(t){return t===!1||t==null?t:W.isArray(t)?t.map(vv):String(t)}function D4e(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}var L4e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function GR(t,e,r,n,i){if(W.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!W.isString(e)){if(W.isString(n))return e.indexOf(n)!==-1;if(W.isRegExp(n))return n.test(e)}}function q4e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function j4e(t,e){let r=W.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}var ul=class{constructor(e){e&&this.set(e)}set(e,r,n){let i=this;function s(a,c,l){let u=Ep(c);if(!u)throw new Error("header name must be a non-empty string");let f=W.findKey(i,u);(!f||i[f]===void 0||l===!0||l===void 0&&i[f]!==!1)&&(i[f||c]=vv(a))}let o=(a,c)=>W.forEach(a,(l,u)=>s(l,u,c));return W.isPlainObject(e)||e instanceof this.constructor?o(e,r):W.isString(e)&&(e=e.trim())&&!L4e(e)?o(LG(e),r):e!=null&&s(r,e,n),this}get(e,r){if(e=Ep(e),e){let n=W.findKey(this,e);if(n){let i=this[n];if(!r)return i;if(r===!0)return D4e(i);if(W.isFunction(r))return r.call(this,i,n);if(W.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Ep(e),e){let n=W.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||GR(this,this[n],n,r)))}return!1}delete(e,r){let n=this,i=!1;function s(o){if(o=Ep(o),o){let a=W.findKey(n,o);a&&(!r||GR(n,n[a],a,r))&&(delete n[a],i=!0)}}return W.isArray(e)?e.forEach(s):s(e),i}clear(e){let r=Object.keys(this),n=r.length,i=!1;for(;n--;){let s=r[n];(!e||GR(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let r=this,n={};return W.forEach(this,(i,s)=>{let o=W.findKey(n,s);if(o){r[o]=vv(i),delete r[s];return}let a=e?q4e(s):String(s).trim();a!==s&&delete r[s],r[a]=vv(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return W.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&W.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[qG]=this[qG]={accessors:{}}).accessors,i=this.prototype;function s(o){let a=Ep(o);n[a]||(j4e(i,o),n[a]=!0)}return W.isArray(e)?e.forEach(s):s(e),this}};ul.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(ul.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});W.freezeMethods(ul);var nr=ul;function wp(t,e){let r=this||cl,n=e||r,i=nr.from(n.headers),s=n.data;return W.forEach(t,function(a){s=a.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Sp(t){return!!(t&&t.__CANCEL__)}function jG(t,e,r){ue.call(this,t??"canceled",ue.ERR_CANCELED,e,r),this.name="CanceledError"}W.inherits(jG,ue,{__CANCEL__:!0});var _i=jG;function zo(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new ue("Request failed with status code "+r.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function KR(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function XR(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function oc(t,e){return t&&!KR(e)?XR(t,e):e}var xK=$e(MG(),1),_K=$e(require("http"),1),bK=$e(require("https"),1),EK=$e(require("util"),1),wK=$e(sK(),1),js=$e(require("zlib"),1);var lc="1.6.7";function Pp(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var w3e=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function dP(t,e,r){let n=r&&r.Blob||rr.classes.Blob,i=Pp(t);if(e===void 0&&n&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let s=w3e.exec(t);if(!s)throw new ue("Invalid URL",ue.ERR_INVALID_URL);let o=s[1],a=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),a?"base64":"utf8");if(e){if(!n)throw new ue("Blob is not supported",ue.ERR_NOT_SUPPORT);return new n([l],{type:o})}return l}throw new ue("Unsupported protocol "+i,ue.ERR_NOT_SUPPORT)}var fc=$e(require("stream"),1);var aK=$e(require("stream"),1);function S3e(t,e){let r=0,n=1e3/e,i=null;return function(o,a){let c=Date.now();if(o||c-r>n)return i&&(clearTimeout(i),i=null),r=c,t.apply(null,a);i||(i=setTimeout(()=>(i=null,r=Date.now(),t.apply(null,a)),n-(c-r)))}}var oK=S3e;function A3e(t,e){t=t||10;let r=new Array(t),n=new Array(t),i=0,s=0,o;return e=e!==void 0?e:1e3,function(c){let l=Date.now(),u=n[s];o||(o=l),r[i]=c,n[i]=l;let f=s,d=0;for(;f!==i;)d+=r[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),l-o!W.isUndefined(c[a])),super({readableHighWaterMark:e.chunkSize});let r=this,n=this[Sv]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=wv(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",a=>{a==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let s=0;n.updateProgress=oK(function(){let c=n.length,l=n.bytesSeen,u=l-s;if(!u||r.destroyed)return;let f=i(u);s=l,process.nextTick(()=>{r.emit("progress",{loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:f||void 0,estimated:f&&c&&l<=c?(c-l)/f:void 0})})},n.ticksRate);let o=()=>{n.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(e){let r=this[Sv];return r.onReadCallback&&r.onReadCallback(),super._read(e)}_transform(e,r,n){let i=this,s=this[Sv],o=s.maxRate,a=this.readableHighWaterMark,c=s.timeWindow,l=1e3/c,u=o/l,f=s.minChunkSize!==!1?Math.max(s.minChunkSize,u*.01):0;function d(p,m){let g=Buffer.byteLength(p);s.bytesSeen+=g,s.bytes+=g,s.isCaptured&&s.updateProgress(),i.push(p)?process.nextTick(m):s.onReadCallback=()=>{s.onReadCallback=null,process.nextTick(m)}}let h=(p,m)=>{let g=Buffer.byteLength(p),y=null,b=a,x,v=0;if(o){let E=Date.now();(!s.ts||(v=E-s.ts)>=c)&&(s.ts=E,x=u-s.bytes,s.bytes=x<0?-x:0,v=0),x=u-s.bytes}if(o){if(x<=0)return setTimeout(()=>{m(null,p)},c-v);xb&&g-b>f&&(y=p.subarray(b),p=p.subarray(0,b)),d(p,y?()=>{process.nextTick(m,null,y)}:m)};h(e,function p(m,g){if(m)return n(m);g?h(g,p):n(null)})}setLength(e){return this[Sv].length=+e,this}},hP=pP;var SK=$e(require("events"),1);var uK=require("util"),lK=require("stream");var{asyncIterator:cK}=Symbol,T3e=async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[cK]?yield*t[cK]():yield t},Av=T3e;var $3e=W.ALPHABET.ALPHA_DIGIT+"-_",Cp=new uK.TextEncoder,Vo=`\r -`,R3e=Cp.encode(Vo),P3e=2,mP=class{constructor(e,r){let{escapeName:n}=this.constructor,i=W.isString(r),s=`Content-Disposition: form-data; name="${n(e)}"${!i&&r.name?`; filename="${n(r.name)}"`:""}${Vo}`;i?r=Cp.encode(String(r).replace(/\r?\n|\r\n?/g,Vo)):s+=`Content-Type: ${r.type||"application/octet-stream"}${Vo}`,this.headers=Cp.encode(s+Vo),this.contentLength=i?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+P3e,this.name=e,this.value=r}async*encode(){yield this.headers;let{value:e}=this;W.isTypedArray(e)?yield e:yield*Av(e),yield R3e}static escapeName(e){return String(e).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},C3e=(t,e,r)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+W.generateString(i,$3e)}=r||{};if(!W.isFormData(t))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let o=Cp.encode("--"+s+Vo),a=Cp.encode("--"+s+"--"+Vo+Vo),c=a.byteLength,l=Array.from(t.entries()).map(([f,d])=>{let h=new mP(f,d);return c+=h.size,h});c+=o.byteLength*l.length,c=W.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),e&&e(u),lK.Readable.from(async function*(){for(let f of l)yield o,yield*f.encode();yield a}())},fK=C3e;var dK=$e(require("stream"),1),yP=class extends dK.default.Transform{__transform(e,r,n){this.push(e),n()}_transform(e,r,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,r)}this.__transform(e,r,n)}},pK=yP;var O3e=(t,e)=>W.isAsyncFn(t)?function(...r){let n=r.pop();t.apply(this,r).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(s){n(s)}},n)}:t,hK=O3e;var mK={flush:js.default.constants.Z_SYNC_FLUSH,finishFlush:js.default.constants.Z_SYNC_FLUSH},I3e={flush:js.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:js.default.constants.BROTLI_OPERATION_FLUSH},yK=W.isFunction(js.default.createBrotliDecompress),{http:N3e,https:k3e}=wK.default,D3e=/https:?/,gK=rr.protocols.map(t=>t+":");function L3e(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}function AK(t,e,r){let n=e;if(!n&&n!==!1){let i=(0,xK.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");t.headers["Proxy-Authorization"]="Basic "+s}t.headers.host=t.hostname+(t.port?":"+t.port:"");let i=n.hostname||n.host;t.hostname=i,t.host=i,t.port=n.port,t.path=r,n.protocol&&(t.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}t.beforeRedirects.proxy=function(s){AK(s,e,s.href)}}var q3e=typeof process<"u"&&W.kindOf(process)==="process",j3e=t=>new Promise((e,r)=>{let n,i,s=(c,l)=>{i||(i=!0,n&&n(c,l))},o=c=>{s(c),e(c)},a=c=>{s(c,!0),r(c)};t(o,a,c=>n=c).catch(a)}),F3e=({address:t,family:e})=>{if(!W.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},vK=(t,e)=>F3e(W.isObject(t)?t:{address:t,family:e}),TK=q3e&&function(e){return j3e(async function(n,i,s){let{data:o,lookup:a,family:c}=e,{responseType:l,responseEncoding:u}=e,f=e.method.toUpperCase(),d,h=!1,p;if(a){let z=hK(a,X=>W.isArray(X)?X:[X]);a=(X,j,Y)=>{z(X,j,(J,K,Z)=>{if(J)return Y(J);let pe=W.isArray(K)?K.map(de=>vK(de)):[vK(K,Z)];j.all?Y(J,pe):Y(J,pe[0].address,pe[0].family)})}}let m=new SK.default,g=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),m.removeAllListeners()};s((z,X)=>{d=!0,X&&(h=!0,g())});function y(z){m.emit("abort",!z||z.type?new _i(null,e,p):z)}m.once("abort",i),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));let b=oc(e.baseURL,e.url),x=new URL(b,"http://localhost"),v=x.protocol||gK[0];if(v==="data:"){let z;if(f!=="GET")return zo(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{z=dP(e.url,l==="blob",{Blob:e.env&&e.env.Blob})}catch(X){throw ue.from(X,ue.ERR_BAD_REQUEST,e)}return l==="text"?(z=z.toString(u),(!u||u==="utf8")&&(z=W.stripBOM(z))):l==="stream"&&(z=fc.default.Readable.from(z)),zo(n,i,{data:z,status:200,statusText:"OK",headers:new nr,config:e})}if(gK.indexOf(v)===-1)return i(new ue("Unsupported protocol "+v,ue.ERR_BAD_REQUEST,e));let E=nr.from(e.headers).normalize();E.set("User-Agent","axios/"+lc,!1);let S=e.onDownloadProgress,w=e.onUploadProgress,A=e.maxRate,T,$;if(W.isSpecCompliantForm(o)){let z=E.getContentType(/boundary=([-_\w\d]{10,70})/i);o=fK(o,X=>{E.set(X)},{tag:`axios-${lc}-boundary`,boundary:z&&z[1]||void 0})}else if(W.isFormData(o)&&W.isFunction(o.getHeaders)){if(E.set(o.getHeaders()),!E.hasContentLength())try{let z=await EK.default.promisify(o.getLength).call(o);Number.isFinite(z)&&z>=0&&E.setContentLength(z)}catch{}}else if(W.isBlob(o))o.size&&E.setContentType(o.type||"application/octet-stream"),E.setContentLength(o.size||0),o=fc.default.Readable.from(Av(o));else if(o&&!W.isStream(o)){if(!Buffer.isBuffer(o))if(W.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(W.isString(o))o=Buffer.from(o,"utf-8");else return i(new ue("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ue.ERR_BAD_REQUEST,e));if(E.setContentLength(o.length,!1),e.maxBodyLength>-1&&o.length>e.maxBodyLength)return i(new ue("Request body larger than maxBodyLength limit",ue.ERR_BAD_REQUEST,e))}let k=W.toFiniteNumber(E.getContentLength());W.isArray(A)?(T=A[0],$=A[1]):T=$=A,o&&(w||T)&&(W.isStream(o)||(o=fc.default.Readable.from(o,{objectMode:!1})),o=fc.default.pipeline([o,new hP({length:k,maxRate:W.toFiniteNumber(T)})],W.noop),w&&o.on("progress",z=>{w(Object.assign(z,{upload:!0}))}));let C;if(e.auth){let z=e.auth.username||"",X=e.auth.password||"";C=z+":"+X}if(!C&&x.username){let z=x.username,X=x.password;C=z+":"+X}C&&E.delete("authorization");let I;try{I=sc(x.pathname+x.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(z){let X=new Error(z.message);return X.config=e,X.url=e.url,X.exists=!0,i(X)}E.set("Accept-Encoding","gzip, compress, deflate"+(yK?", br":""),!1);let D={path:I,method:f,headers:E.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:C,protocol:v,family:c,beforeRedirect:L3e,beforeRedirects:{}};!W.isUndefined(a)&&(D.lookup=a),e.socketPath?D.socketPath=e.socketPath:(D.hostname=x.hostname,D.port=x.port,AK(D,e.proxy,v+"//"+x.hostname+(x.port?":"+x.port:"")+D.path));let G,B=D3e.test(D.protocol);if(D.agent=B?e.httpsAgent:e.httpAgent,e.transport?G=e.transport:e.maxRedirects===0?G=B?bK.default:_K.default:(e.maxRedirects&&(D.maxRedirects=e.maxRedirects),e.beforeRedirect&&(D.beforeRedirects.config=e.beforeRedirect),G=B?k3e:N3e),e.maxBodyLength>-1?D.maxBodyLength=e.maxBodyLength:D.maxBodyLength=1/0,e.insecureHTTPParser&&(D.insecureHTTPParser=e.insecureHTTPParser),p=G.request(D,function(X){if(p.destroyed)return;let j=[X],Y=+X.headers["content-length"];if(S){let de=new hP({length:W.toFiniteNumber(Y),maxRate:W.toFiniteNumber($)});S&&de.on("progress",fe=>{S(Object.assign(fe,{download:!0}))}),j.push(de)}let J=X,K=X.req||p;if(e.decompress!==!1&&X.headers["content-encoding"])switch((f==="HEAD"||X.statusCode===204)&&delete X.headers["content-encoding"],(X.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":j.push(js.default.createUnzip(mK)),delete X.headers["content-encoding"];break;case"deflate":j.push(new pK),j.push(js.default.createUnzip(mK)),delete X.headers["content-encoding"];break;case"br":yK&&(j.push(js.default.createBrotliDecompress(I3e)),delete X.headers["content-encoding"])}J=j.length>1?fc.default.pipeline(j,W.noop):j[0];let Z=fc.default.finished(J,()=>{Z(),g()}),pe={status:X.statusCode,statusText:X.statusMessage,headers:new nr(X.headers),config:e,request:K};if(l==="stream")pe.data=J,zo(n,i,pe);else{let de=[],fe=0;J.on("data",function(ie){de.push(ie),fe+=ie.length,e.maxContentLength>-1&&fe>e.maxContentLength&&(h=!0,J.destroy(),i(new ue("maxContentLength size of "+e.maxContentLength+" exceeded",ue.ERR_BAD_RESPONSE,e,K)))}),J.on("aborted",function(){if(h)return;let ie=new ue("maxContentLength size of "+e.maxContentLength+" exceeded",ue.ERR_BAD_RESPONSE,e,K);J.destroy(ie),i(ie)}),J.on("error",function(ie){p.destroyed||i(ue.from(ie,null,e,K))}),J.on("end",function(){try{let ie=de.length===1?de[0]:Buffer.concat(de);l!=="arraybuffer"&&(ie=ie.toString(u),(!u||u==="utf8")&&(ie=W.stripBOM(ie))),pe.data=ie}catch(ie){return i(ue.from(ie,null,e,pe.request,pe))}zo(n,i,pe)})}m.once("abort",de=>{J.destroyed||(J.emit("error",de),J.destroy())})}),m.once("abort",z=>{i(z),p.destroy(z)}),p.on("error",function(X){i(ue.from(X,null,e,p))}),p.on("socket",function(X){X.setKeepAlive(!0,1e3*60)}),e.timeout){let z=parseInt(e.timeout,10);if(Number.isNaN(z)){i(new ue("error trying to parse `config.timeout` to int",ue.ERR_BAD_OPTION_VALUE,e,p));return}p.setTimeout(z,function(){if(d)return;let j=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Y=e.transitional||al;e.timeoutErrorMessage&&(j=e.timeoutErrorMessage),i(new ue(j,Y.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,p)),y()})}if(W.isStream(o)){let z=!1,X=!1;o.on("end",()=>{z=!0}),o.once("error",j=>{X=!0,p.destroy(j)}),o.on("close",()=>{!z&&!X&&y(new _i("Request stream has been aborted",e,p))}),o.pipe(p)}else p.end(o)})};var $K=rr.hasStandardBrowserEnv?{write(t,e,r,n,i,s){let o=[t+"="+encodeURIComponent(e)];W.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),W.isString(n)&&o.push("path="+n),W.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){let e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};var RK=rr.hasStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){let o=s;return e&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{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(o){let a=W.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function PK(t,e){let r=0,n=wv(50,250);return i=>{let s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,c=n(a),l=s<=o;r=s;let u={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&l?(o-s)/c:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}var M3e=typeof XMLHttpRequest<"u",CK=M3e&&function(t){return new Promise(function(r,n){let i=t.data,s=nr.from(t.headers).normalize(),{responseType:o,withXSRFToken:a}=t,c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let u;if(W.isFormData(i)){if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((u=s.getContentType())!==!1){let[m,...g]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];s.setContentType([m||"multipart/form-data",...g].join("; "))}}let f=new XMLHttpRequest;if(t.auth){let m=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+g))}let d=oc(t.baseURL,t.url);f.open(t.method.toUpperCase(),sc(d,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function h(){if(!f)return;let m=nr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:m,config:t,request:f};zo(function(x){r(x),l()},function(x){n(x),l()},y),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 ue("Request aborted",ue.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new ue("Network Error",ue.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",y=t.transitional||al;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),n(new ue(g,y.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,t,f)),f=null},rr.hasStandardBrowserEnv&&(a&&W.isFunction(a)&&(a=a(t)),a||a!==!1&&RK(d))){let m=t.xsrfHeaderName&&t.xsrfCookieName&&$K.read(t.xsrfCookieName);m&&s.set(t.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&W.forEach(s.toJSON(),function(g,y){f.setRequestHeader(y,g)}),W.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),o&&o!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",PK(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",PK(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=m=>{f&&(n(!m||m.type?new _i(null,t,f):m),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));let p=Pp(d);if(p&&rr.protocols.indexOf(p)===-1){n(new ue("Unsupported protocol "+p+":",ue.ERR_BAD_REQUEST,t));return}f.send(i||null)})};var gP={http:TK,xhr:CK};W.forEach(gP,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var OK=t=>`- ${t}`,B3e=t=>W.isFunction(t)||t===null||t===!1,Tv={getAdapter:t=>{t=W.isArray(t)?t:[t];let{length:e}=t,r,n,i={};for(let s=0;s`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build")),o=e?s.length>1?`since : -`+s.map(OK).join(` -`):" "+OK(s[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:gP};function vP(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new _i(null,t)}function $v(t){return vP(t),t.headers=nr.from(t.headers),t.data=wp.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Tv.getAdapter(t.adapter||cl.adapter)(t).then(function(n){return vP(t),n.data=wp.call(t,t.transformResponse,n),n.headers=nr.from(n.headers),n},function(n){return Sp(n)||(vP(t),n&&n.response&&(n.response.data=wp.call(t,t.transformResponse,n.response),n.response.headers=nr.from(n.response.headers))),Promise.reject(n)})}var IK=t=>t instanceof nr?t.toJSON():t;function Fs(t,e){e=e||{};let r={};function n(l,u,f){return W.isPlainObject(l)&&W.isPlainObject(u)?W.merge.call({caseless:f},l,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function i(l,u,f){if(W.isUndefined(u)){if(!W.isUndefined(l))return n(void 0,l,f)}else return n(l,u,f)}function s(l,u){if(!W.isUndefined(u))return n(void 0,u)}function o(l,u){if(W.isUndefined(u)){if(!W.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function a(l,u,f){if(f in e)return n(l,u);if(f in t)return n(void 0,l)}let c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(l,u)=>i(IK(l),IK(u),!0)};return W.forEach(Object.keys(Object.assign({},t,e)),function(u){let f=c[u]||i,d=f(t[u],e[u],u);W.isUndefined(d)&&f!==a||(r[u]=d)}),r}var xP={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{xP[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var NK={};xP.transitional=function(e,r,n){function i(s,o){return"[Axios v"+lc+"] Transitional option '"+s+"'"+o+(n?". "+n:"")}return(s,o,a)=>{if(e===!1)throw new ue(i(o," has been removed"+(r?" in "+r:"")),ue.ERR_DEPRECATED);return r&&!NK[o]&&(NK[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,o,a):!0}};function U3e(t,e,r){if(typeof t!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let s=n[i],o=e[s];if(o){let a=t[s],c=a===void 0||o(a,s,t);if(c!==!0)throw new ue("option "+s+" must be "+c,ue.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ue("Unknown option "+s,ue.ERR_BAD_OPTION)}}var Rv={assertOptions:U3e,validators:xP};var Wo=Rv.validators,hl=class{constructor(e){this.defaults=e,this.interceptors={request:new zR,response:new zR}}async request(e,r){try{return await this._request(e,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(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Fs(this.defaults,r);let{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Rv.assertOptions(n,{silentJSONParsing:Wo.transitional(Wo.boolean),forcedJSONParsing:Wo.transitional(Wo.boolean),clarifyTimeoutError:Wo.transitional(Wo.boolean)},!1),i!=null&&(W.isFunction(i)?r.paramsSerializer={serialize:i}:Rv.assertOptions(i,{encode:Wo.function,serialize:Wo.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&W.merge(s.common,s[r.method]);s&&W.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),r.headers=nr.concat(o,s);let a=[],c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});let l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,f=0,d;if(!c){let p=[$v.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,l),d=p.length,u=Promise.resolve(r);f{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,o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s,o,a){n.reason||(n.reason=new _i(s,o,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new t(function(i){e=i}),cancel:e}}},kK=_P;function bP(t){return function(r){return t.apply(null,r)}}function EP(t){return W.isObject(t)&&t.isAxiosError===!0}var wP={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(wP).forEach(([t,e])=>{wP[e]=t});var DK=wP;function LK(t){let e=new Op(t),r=hp(Op.prototype.request,e);return W.extend(r,Op.prototype,e,{allOwnKeys:!0}),W.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return LK(Fs(t,i))},r}var Yt=LK(cl);Yt.Axios=Op;Yt.CanceledError=_i;Yt.CancelToken=kK;Yt.isCancel=Sp;Yt.VERSION=lc;Yt.toFormData=Uo;Yt.AxiosError=ue;Yt.Cancel=Yt.CanceledError;Yt.all=function(e){return Promise.all(e)};Yt.spread=bP;Yt.isAxiosError=EP;Yt.mergeConfig=Fs;Yt.AxiosHeaders=nr;Yt.formToJSON=t=>gv(W.isHTMLForm(t)?new FormData(t):t);Yt.getAdapter=Tv.getAdapter;Yt.HttpStatusCode=DK;Yt.default=Yt;var le=Yt;var{Axios:AYe,AxiosError:TYe,CanceledError:$Ye,isCancel:RYe,CancelToken:PYe,VERSION:CYe,all:OYe,Cancel:IYe,isAxiosError:NYe,spread:kYe,toFormData:DYe,AxiosHeaders:LYe,HttpStatusCode:qYe,formToJSON:jYe,getAdapter:FYe,mergeConfig:MYe}=le;var bi=jK.default,z3e=G3e,ml=Y3e,Qi=[],Yn=[],H3e=typeof Uint8Array<"u"?Uint8Array:Array,SP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(dc=0,qK=SP.length;dc0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function W3e(t,e,r){return(e+r)*3/4-r}function G3e(t){var e,r=V3e(t),n=r[0],i=r[1],s=new H3e(W3e(t,n,i)),o=0,a=i>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=Yn[t.charCodeAt(c)]<<2|Yn[t.charCodeAt(c+1)]>>4,s[o++]=e&255),i===1&&(e=Yn[t.charCodeAt(c)]<<10|Yn[t.charCodeAt(c+1)]<<4|Yn[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function K3e(t){return Qi[t>>18&63]+Qi[t>>12&63]+Qi[t>>6&63]+Qi[t&63]}function X3e(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(Qi[e>>2]+Qi[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Qi[e>>10]+Qi[e>>4&63]+Qi[e<<2&63]+"=")),i.join("")}var Pv=new Uint8Array([136,168,48,203,16,118]),J3e=[50,48,49,57,121,115,97,112,112,55,53,50,55],Q3e=100,Z3e=163,AP=[new Uint8Array([255,216,255]),new Uint8Array([137,80,78,71,13,10,26,10]),new Uint8Array([71,73,70])];function eLe(t){if(t===null||t.length===0)return;let e=!1;for(let r=0;rn||r<=0)&&(r=n);for(let s=0;s(e++,e{t.post("/init",sLe),t.post("/home",oLe),t.post("/category",aLe),t.post("/detail",cLe),t.post("/play",uLe),t.post("/search",lLe),t.get("/proxy",fLe)}};var $P="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 BK(t,e){return t.trim()==e.trim()?e:e.trim().replaceAll(t,"").replace(/<|>|《|》/g,"").replace(/\$|#/g," ").trim()}function UK(t){let e=t/1048576;return e>1024?`${(e/1024).toFixed(2)}GB`:`${parseInt(e).toFixed(0)}MB`}function dLe(t,e){if(!t||!e)return{length:0,sequence:"",offset:0};for(var r="",n=t.length,i=e.length,s=new Array(n),o=0,a=0,c=0;co&&(o=s[c][u],f=c-s[c][u]+1,a===f?r+=t[c]:(a=f,r="",r+=t.substr(a,c+1-a))));return{length:o,sequence:r,offset:f}}function yl(t,e){let r=[],n=0;for(let s=0;sr[n].lcs.length&&(n=s)}let i=r[n];return{allLCS:r,bestMatch:i,bestMatchIndex:n}}function Ms(t){return new Promise(e=>setTimeout(e,t))}var Zi=t=>t.map(e=>e.split(";")[0]+";");var vl=$e(CP(),1),hc=$e(xn(),1);var zK=$e(require("https"),1),HK=$e(require("http"),1),pLe=le.create({httpsAgent:new zK.default.Agent({keepAlive:!1,rejectUnauthorized:!1}),httpAgent:new HK.default.Agent({keepAlive:!1})}),wn=pLe;var cX=$e(iX(),1);function sX(t){let e=/(E|EP)0?([1-9]\d*).*/.exec(t);if(e)return Number(e[2]);let r=/.*?([1-9]\d*).*/.exec(t);return r?Number(r[1]):null}function Jn(t,e){let r={};return e.length===0||(e.sort((n,i)=>{let s=sX(n.vod_name),o=sX(i.vod_name);return s!==null&&o!==null?s-o:n.vod_name.localeCompare(i.vod_name)}),e=e.map(n=>{let i=UK(n.vod_size);return{vod_id:n.vod_id,vod_name:BK("",` ${n.vod_name.replace(/.[^.]+$/,"")} [${i}]`)}}),r.from=t,r.url=e.map(n=>n.vod_name+"$"+n.vod_id).join("#")),r}var Dp=t=>getPanEnabled("ali")&&/www.alipan.com|www.aliyundrive.com/.test(t),Lp=t=>getPanEnabled("quark")&&t.includes("https://pan.quark.cn"),qp=t=>getPanEnabled("uc")&&t.includes("https://drive.uc.cn"),XP=t=>getPanEnabled("tianyi")&&t.includes("https://cloud.189.cn"),YP=t=>getPanEnabled("yidong")&&t.includes("yun.139.com"),JP=t=>getPanEnabled("123")&&/www.123684.com|www.123865.com|www.123912.com|www.123pan.com|www.123pan.cn|www.123592.com/.test(t),QP=t=>getPanEnabled("115")&&/115.com|anxia.com|115cdn.com/.test(t);function uX(t){let r=/https:\/\/www\.alipan\.com\/s\/([^\\/]+)(\/folder\/([^\\/]+))?|https:\/\/www\.aliyundrive\.com\/s\/([^\\/]+)(\/folder\/([^\\/]+))?/.exec(t);return r?{shareId:r[1]||r[4],folderId:r[3]||r[6]||"root"}:null}var $qe="https://api.aliyundrive.com",Rqe="https://open.aliyundrive.com/adrive/v1.0",Ko={},Mr={},es={},kv=null,eC="/ali",oX="CatVodOpen",mc=null,Ov="",Iv="",ZP="",Nv="",Dv={"User-Agent":$P,Referer:"https://www.aliyundrive.com/"};async function Pqe(t){kv=t.server.db;let e=t.server.config.ali;Ov=hc.default.enc.Hex.stringify(hc.default.MD5(e.token)).toString(),Iv=hc.default.enc.Hex.stringify(hc.default.MD5(e.token280)).toString();let r=await kv.getObjectDefault(eC,{});r[Ov]&&(ZP=r[Ov]),r[Iv]&&(Nv=r[Iv])}async function Lv(t,e,r,n){r=r||{};let i=t.startsWith("adrive/");Object.assign(r,Dv),i&&Object.assign(r,{Authorization:Mr.auth});let s=await wn.post(`${$qe}/${t}`,e,{headers:r}).catch(a=>(console.error(a),a.response||{status:500,data:{}})),o=n||3;return s.status===429&&o>0?(await Ms(1e3),await Lv(t,e,r,o-1)):s.data||{}}async function yc(t,e,r,n){r=r||{},Object.assign(r,{Authorization:es.auth});let i=await wn.post(`${Rqe}/${t}`,e,{headers:r}).catch(o=>(console.error(o),o.response||{status:500,data:{}})),s=n||3;return i.status===429&&s>0?(await Ms(1e3),await yc(t,e,r,s-1)):i.data||{}}async function Cqe(){if(!Mr.user_id||Mr.expire_time-(0,vl.default)().unix()<120){let t=await wn.post("https://auth.aliyundrive.com/v2/account/token",{refresh_token:ZP,grant_type:"refresh_token"},{headers:Dv}).catch(e=>e.response||{status:500,data:{}});t.status==200&&(Mr=t.data,Mr.expire_time=(0,vl.default)(t.data.expire_time).unix(),Mr.auth=`${Mr.token_type} ${Mr.access_token}`,ZP=Mr.refresh_token,await kv.push(eC+"/"+Ov,Mr.refresh_token))}}async function Oqe(){if(!es.access_token||es.expire_time-(0,vl.default)().unix()<120){let t=await wn.post("https://aliyundrive-oauth.messense.me/oauth/access_token",{grant_type:"refresh_token",refresh_token:Nv},{headers:Dv}).catch(e=>e.response||{status:500,data:{}});if(t.status!=200&&(t=await wn.post("https://api.nn.ci/alist/ali_open/token",{grant_type:"refresh_token",refresh_token:Nv},{headers:Dv}).catch(e=>e.response||{status:500,data:{}})),t.status==200){es=t.data;let e=JSON.parse(hc.default.enc.Base64.parse(t.data.access_token.split(".")[1]).toString(hc.default.enc.Utf8));es.expire_time=e.exp,es.auth=`${es.token_type} ${es.access_token}`,Nv=es.refresh_token,await kv.push(eC+"/"+Iv,es.refresh_token)}}}async function aX(){let t=await yc("openFile/list",{drive_id:Mr.drive.resource_drive_id,parent_file_id:mc,limit:100,order_by:"updated_at",order_direction:"DESC"});if(t.items)for(let e of t.items){let r=await yc("openFile/delete",{drive_id:Mr.drive.resource_drive_id,file_id:e.file_id});console.log(r)}}async function Iqe(t){if(!Mr.device_id)return;if(mc){t&&await aX();return}let e=await yc("user/getDriveInfo",{});if(e.resource_drive_id){Mr.drive=e;let r=e.resource_drive_id,n=await yc("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===oX){mc=i.file_id,await aX();break}if(!mc){let i=await yc("openFile/create",{check_name_mode:"refuse",drive_id:r,name:oX,parent_file_id:"root",type:"folder"});console.log(i),i.file_id&&(mc=i.file_id)}}}}async function lX(t){if(!Ko[t.shareId]||Ko[t.shareId].expire_time-(0,vl.default)().unix()<120){delete Ko[t.shareId];let e=await Lv("v2/share_link/get_share_token",{share_id:t.shareId,share_pwd:t.sharePwd||""});e.expire_time&&(e.expire_time=(0,vl.default)(e.expire_time).unix(),Ko[t.shareId]=e)}}var Nqe=["srt","ass","scc","stl","ttml"];async function kqe(t){let e=typeof t=="string"?uX(t):t;if(!e)return[];if(await lX(e),!Ko[e.shareId])return[];let r=[],n=[],i=async function(s,o,a){let c=await Lv("adrive/v2/file/list_by_share",{share_id:s,parent_file_id:o,limit:200,order_by:"name",order_direction:"ASC",marker:a||""},{"X-Share-Token":Ko[s].share_token}),l=c.items;if(!l)return[];if(c.next_marker){let f=await i(s,o,c.next_marker);for(let d of f)l.push(d)}let u=[];for(let f of l)if(f.type==="folder")u.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"&&Nqe.some(d=>f.file_extension.endsWith(d))&&n.push(f);for(let f of u){let d=await i(f.share_id,f.file_id);for(let h of d)l.push(h)}return l};return await i(e.shareId,e.folderId),n.length>0&&r.forEach(s=>{var o=yl(s,n);o.bestMatch&&(s.subtitle=o.bestMatch.target)}),r}var jp={};async function Dqe(t,e,r){if(await Cqe(),await Oqe(),await Iqe(r),r){let i=Object.keys(jp);for(let s of i)delete jp[s]}if(!mc||(await lX({shareId:t}),!Ko[t]))return null;let n=await Lv("adrive/v2/file/copy",{file_id:e,share_id:t,auto_rename:!0,to_parent_file_id:mc,to_drive_id:Mr.drive.resource_drive_id},{"X-Share-Token":Ko[t].share_token});return n.file_id?n.file_id:!1}async function Lqe(t,e){if(!jp[e]){let i=await Dqe(t,e,!0);if(!i)return null;jp[e]=i}let n=(await yc("openFile/getVideoPreviewPlayInfo",{file_id:jp[e],drive_id:Mr.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 fX(t){if(Dp(t)){let e=uX(t);if(e){let r=await kqe(e);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})),Jn(getPanName("ali")+"-"+e.shareId,r)}else return{}}}var qqe={};async function dX(t,e){await Pqe(t);let r=t.body.flag,i=t.body.id.split("*"),s=0;if(r.startsWith(getPanName("ali"))){let o=await Lqe(i[0],i[1]);qqe[i[1]]=o,o.sort((d,h)=>h.template_width-d.template_width);let a=["\u8D85\u6E05","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],c=["QHD","FHD","HD","SD","LD"],l=[],u=t.server.address().url+t.server.prefix+"/proxy/ali";l.push("\u539F\u753B"),l.push(`${u}/src/redirect/${i[0]}/${i[1]}/.bin`);let f={parse:0,url:l};return i[2]&&(f.extra={subt:`${u}/src/subt/${i[0]}/${i[2]}/.bin`}),o.forEach(d=>{s=c.indexOf(d.template_id),l.push(a[s]),l.push(`${u}/trans/${d.template_id.toLowerCase()}/${i[0]}/${i[1]}/.m3u8`)}),f}}var Fqe=$e(xn(),1);var xl=$e(require("fs"),1);var Mqe=(process.env.NODE_PATH||".")+"/vod_cache",oJe=1024*1024*100;async function pX(t){try{if(xl.default.existsSync(t)){let e=await xl.default.promises.readdir(t);await Promise.all(e.map(async r=>{let n=`${t}/${r}`;(await xl.default.promises.stat(n)).isDirectory()?await pX(n):await xl.default.promises.unlink(n)})),await xl.default.promises.rmdir(t)}}catch(e){console.error("Error deleting folder:",e)}}pX(Mqe);var tC=$e(xn(),1);var Ae=Mp;(function(t,e){let r=Mp,n=t();for(;;)try{if(-parseInt(r(414))/1+-parseInt(r(392))/2*(parseInt(r(432))/3)+parseInt(r(477))/4+parseInt(r(518))/5*(-parseInt(r(405))/6)+parseInt(r(385))/7*(parseInt(r(458))/8)+parseInt(r(398))/9+-parseInt(r(500))/10*(-parseInt(r(588))/11)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(jv,309040+4281*22);function gX(t){let e=Mp,r=/https:\/\/pan\.quark\.cn\/s\/([^\\|#/]+)/,n=r[e(577)](t);return n?{shareId:n[1],folderId:"0"}:null}var zs=Ae(460)+Ae(484),vX={"User-Agent":Ae(526)+Ae(400)+Ae(494)+Ae(351)+Ae(604)+Ae(362)+Ae(389)+Ae(499)+Ae(346)+Ae(498)+Ae(481)+Ae(610)+Ae(595)+Ae(352)+Ae(504)+Ae(594)+Ae(603)+Ae(570)+Ae(344)+"ch",Referer:Ae(551)+Ae(599)},rC=null,qv=null,hX=Ae(523)+Ae(581)+Ae(512)+Ae(338),Xo="",Yo={},mX=Ae(430),gc=null;async function Uqe(t){let e=Ae;rC=t[e(450)].db;let r=t[e(450)][e(488)][e(549)];Xo=r[e(394)],qv=tC.default[e(454)][e(529)][e(410)](tC.default[e(571)](r[e(394)]))[e(507)]();let n=await rC[e(602)+e(552)](e(468),{});n[qv]&&(Xo=n[qv])}async function ts(t,e,r,n,i){let s=Ae,o={mawas:function(l,u){return l===u},MZgsA:function(l,u){return l(u)},wFJhE:s(357),NMzeA:s(471)+s(582)+s(560),Hnpjj:function(l,u){return l(u)},BqKcC:function(l,u){return l||u},MLlJP:function(l,u){return l||u},JTDRt:function(l,u){return l||u},ejpax:s(557),gJWBK:function(l,u){return l==u},sbqIQ:s(496),pndFV:s(340),oMsYj:s(568),rWHNO:function(l,u){return l!=u},FpLUc:function(l,u){return l===u},JzrfL:function(l,u){return l>u},fTDVx:function(l,u){return l(u)},Balrm:function(l,u,f,d,h,p){return l(u,f,d,h,p)},fHWKo:function(l,u){return l-u}};r=o[s(584)](r,{}),Object[s(559)](r,vX),Object[s(559)](r,{Cookie:o[s(572)](Xo,"")}),n=o[s(473)](n,o[s(368)]);let a=o[s(612)](n,o[s(592)])?await wn[s(496)](hX+"/"+t,{headers:r})[s(422)](l=>{let u=s;return console[u(406)](l),o[u(465)](l?.[u(486)]?.[u(528)],956+-21*-107+-2802)&&o[u(554)](messageToDart,{action:o[u(516)],opt:{message:o[u(579)],duration:5}}),l[u(486)]||{status:500,data:{}}}):await wn[s(557)](hX+"/"+t,e,{headers:r})[s(422)](l=>{let u=s;return console[u(406)](l),o[u(465)](l?.[u(486)]?.[u(528)],1102*5+-1*395+-2*2357)&&o[u(341)](messageToDart,{action:o[u(516)],opt:{message:o[u(579)],duration:5}}),l[u(486)]||{status:500,data:{}}}),c=o[s(473)](i,3);if(a[s(546)][o[s(367)]]){let l=a[s(546)][o[s(367)]][s(366)](o[s(412)])[s(522)](/__puus=([^;]+)/);l&&o[s(444)](Xo[s(522)](/__puus=([^;]+)/)[-7274+-291*-25],l[1])&&(Xo=Xo[s(452)](/__puus=[^;]+/,s(575)+l[-8863*1+-7615+1*16479]),await rC[s(563)](s(381)+qv,Xo))}return o[s(596)](a[s(528)],-3*-479+671*7+35*-163)&&o[s(525)](c,16*331+1*-8161+-1*-2865)?(await o[s(441)](Ms,1e3),await o[s(353)](ts,t,e,r,n,o[s(521)](c,5259+-58*127+34*62))):a[s(376)]||{}}async function yX(){let t=Ae,e={QqKAs:function(n,i,s,o,a){return n(i,s,o,a)},TByZW:t(496),syMni:function(n,i){return n>i},mEfBQ:function(n,i,s){return n(i,s)}},r=await e[t(345)](ts,t(409)+zs+t(515)+gc+(t(593)+t(391)+t(532)+t(429)+t(399)+t(605)),{},{},e[t(459)]);if(r[t(376)]&&r[t(376)][t(491)]&&e[t(601)](r[t(376)][t(491)][t(364)],3884+1*-3884)){let n=await e[t(550)](ts,t(536)+"e?"+zs,{action_type:2,filelist:r[t(376)][t(491)][t(609)](i=>i[t(419)]),exclude_fids:[]});console[t(530)](n)}}function jv(){let t=["resolution","hNcIe","ect/","video_list",";;;","_size=200&"," Channel/p","MD5","MLlJP","what","lBIYJ","__puus=","OnzxM","exec","/.mp4","NMzeA","dir","ive.quark.","\uFF0C\u8BF7\u524D\u5F80\u3010\u914D\u7F6E\u3011\u7AD9\u6E90","shareId","BqKcC","VqHOh","rBDjr",",file_name","294789CsHDLE",":asc","RuyQH","download_u","sbqIQ","&_page=1&_","491100 Saf","896.160 El","FpLUc","bRChe","obj_catego","n.quark.cn","ceil","syMni","getObjectD","ari/537.36",") AppleWeb","desc","zWEur","string","folderId","map","me/100.0.4","down","gJWBK","LjZAE","bestMatch","stoken","drive/","share_fid_","set-cookie","Hnpjj","split","address","ckk_other_","QqKAs"," quark-clo","epage/deta","extra","CoiGn","filter","Win64; x64","ectron/18.","Balrm","il?","SdjuB","GgvaR","toast",".stl","size","&_sort=fil","/src/down/","Kit/537.36","&retry_ind","length","bhYYA","join","pndFV","ejpax","mfVpp","QTMVy","nWSuU","EiTgo","lqzXv","epage/save","fmp4","data","VQWZU","video","share/shar","VwEVL","/quark/",".srt","vgTFT","some","236516vUztVC","subtitle","EfNCl","lwZaz"," (KHTML, l","updated_at","size=200&_","22RSFQzB","/src/redir","cookie","RBajv","video_info","trans","4465413gHWtXp","pdated_at:","0 (Windows",".ttml","low","_type:asc,","crLuE","624ImsNPi","error","_sort=file","Vrqam","file/sort?","stringify","params","oMsYj","normal,low","74173sVaEpZ","p_fids","wiyPY","GnXFy","task_id","fid",",high,supe","qwftM","catch","FhaPs","aqdZx","flag","indexOf","RxaEv","e_type:asc","type:asc,u","CatVodOpen","GnAht","48423pDwnAT","enqhi","fileId","&_size=",":desc","mOVqo","nWYjx",".ass","ex=","fTDVx","QGoRm","startsWith","rWHNO","type","MxDOz","endsWith","file","/.bin","server","pIVLU","replace","toLowerCas","enc","task?","klpnj","&force=0&_","8vXKUkp","TByZW","pr=ucpro&f","/proxy/qua","fQqpu","yYwTH","super","mawas","epage/toke","vhSPl","/quark","HCIas","igTYL","\u5938\u514Btoken\u5DF2\u8FC7\u671F","keys","JTDRt","url","target","file?","297200rOhUiC","metadata","eivUB","tdYid",".5.20 Chro","/trans/","dcrRr","r=pc","twAqr","response","&stoken=","config","HXCTK","qUHAE","list","token","site"," NT 10.0; ","noyZG","get","/src/subt/","ud-drive/2","ike Gecko)","110DXYprO","LPRTY","prefix","xSnuu","3.5.4-b478","save_as","body","toString","cwffg","0&_page=1&","ay?","sharePwd","cn/1/cloud","file/downl","page=","&pdir_fid=","wFJhE","save_as_to","11735BuRJYf","forEach","uOWnF","fHWKo","match","https://dr","high","JzrfL","Mozilla/5.","link","status","Hex","log","normal","sort=file_","&pwd_id=","eVbky","shYVi","file/delet","ghgti",".scc","_total","FXOxe","r,2k,4k","cLTey","file/v2/pl","bprxT","rIYHe","headers","oad?","toYZJ","quark","mEfBQ","https://pa","efault","wIkve","MZgsA","file_name","redirect","post","ceLqF","assign","\u8FDB\u884C\u914D\u7F6E","&task_id=","accessable","push"];return jv=function(){return t},jv()}async function zqe(t){let e=Ae,r={mfVpp:function(i){return i()},eVbky:function(i,s,o,a,c){return i(s,o,a,c)},lBIYJ:e(496),tdYid:function(i,s){return i===s},VqHOh:function(i){return i()},Vrqam:function(i,s,o){return i(s,o)}};if(gc){t&&await r[e(369)](yX);return}let n=await r[e(534)](ts,e(409)+zs+(e(515)+e(509)+e(569)+e(407)+e(403)+e(390)+e(436)),{},{},r[e(574)]);if(n[e(376)]&&n[e(376)][e(491)]){for(let i of n[e(376)][e(491)])if(r[e(480)](i[e(555)],mX)){gc=i[e(419)],await r[e(585)](yX);break}}if(!gc){let i=await r[e(408)](ts,e(476)+zs,{pdir_fid:"0",file_name:mX,dir_path:"",dir_init_lock:!1});console[e(530)](i),i[e(376)]&&i[e(376)][e(419)]&&(gc=i[e(376)][e(419)])}}async function xX(t){let e=Ae,r={VQWZU:function(n,i,s){return n(i,s)}};if(!Yo[t[e(583)]]){delete Yo[t[e(583)]];let n=await r[e(377)](ts,e(379)+e(466)+"n?"+zs,{pwd_id:t[e(583)],passcode:t[e(511)]||""});n[e(376)]&&n[e(376)][e(615)]&&(Yo[t[e(583)]]=n[e(376)])}}var Hqe=[Ae(382),Ae(439),Ae(538),Ae(358),Ae(401)];async function Vqe(t){let e=Ae,r={noyZG:function(a,c){return a||c},bRChe:function(a,c,l,u,f){return a(c,l,u,f)},EfNCl:function(a,c){return a(c)},CoiGn:e(496),crLuE:function(a,c){return a===c},pIVLU:function(a,c){return a===c},FhaPs:function(a,c){return a===c},GgvaR:e(378),zWEur:function(a,c){return ac}},n=r[e(451)](typeof t,r[e(535)])?r[e(387)](gX,t):t;if(!n)return[];if(await r[e(540)](xX,n),!Yo[n[e(583)]])return[];let i=[],s=[],o=async function(a,c,l){let u=e,f=2661+-81*-14+-3695;l=r[u(495)](l,981+-98*10);let d=await r[u(597)](ts,u(379)+u(347)+u(354)+zs+u(533)+a+u(487)+r[u(387)](encodeURIComponent,Yo[a][u(615)])+u(515)+c+(u(457)+u(514))+l+u(435)+f+(u(360)+u(428)+u(587)+u(589)),{},{},r[u(349)]);if(!d[u(376)])return[];let h=d[u(376)][u(491)];if(!h)return[];let p=[];for(let m of h)if(r[u(404)](m[u(580)],!0))p[u(563)](m);else if(r[u(451)](m[u(448)],!0)&&r[u(423)](m[u(598)+"ry"],r[u(356)])){if(r[u(606)](m[u(359)],r[u(355)](r[u(553)](2280+2*-1321+1386,8803+2593*-3),7742+633*1+62*-135)))continue;m[u(615)]=Yo[n[u(583)]][u(615)],i[u(563)](m)}else r[u(404)](m[u(445)],r[u(388)])&&Hqe[u(384)](g=>m[u(555)][u(447)](g))&&s[u(563)](m);if(r[u(606)](l,Math[u(600)](r[u(421)](d[u(478)][u(539)],f)))){let m=await r[u(433)](o,a,c,r[u(463)](l,1));for(let g of m)h[u(563)](g)}for(let m of p){let g=await r[u(456)](o,a,m[u(419)]);for(let y of g)h[u(563)](y)}return h};return await r[e(544)](o,n[e(583)],n[e(608)]),r[e(470)](s[e(364)],319*19+21*37+6838*-1)&&i[e(519)](a=>{let c=e;var l=r[c(373)](yl,a,s);l[c(614)]&&(a[c(386)]=l[c(614)][c(475)])}),i}var Fp={};async function Wqe(t,e,r,n,i){let s=Ae,o={twAqr:function(c,l){return c(l)},ceLqF:function(c,l,u){return c(l,u)},VwEVL:s(527),aqdZx:function(c,l,u,f,d){return c(l,u,f,d)},cLTey:s(496),MxDOz:function(c,l){return c>l},rBDjr:function(c,l){return c>l}};if(await o[s(485)](zqe,i),i){let c=Object[s(472)](Fp);for(let l of c)delete Fp[l]}if(!gc||!e&&(await o[s(485)](xX,{shareId:t}),!Yo[t]))return null;let a=await o[s(558)](ts,s(379)+s(374)+"?"+zs,{fid_list:[r],fid_token_list:[n],to_pdir_fid:gc,pwd_id:t,stoken:e||Yo[t][s(615)],pdir_fid:"0",scene:o[s(380)]});if(a[s(376)]&&a[s(376)][s(418)]){let c=0;for(;;){let l=await o[s(424)](ts,s(455)+zs+s(561)+a[s(376)][s(418)]+(s(363)+s(440))+c,{},{},o[s(542)]);if(l[s(376)]&&l[s(376)][s(505)]&&l[s(376)][s(505)][s(517)+s(415)]&&o[s(446)](l[s(376)][s(505)][s(517)+s(415)][s(364)],-233*-37+4868+-13489))return l[s(376)][s(505)][s(517)+s(415)][-62*63+10*-331+451*16];if(c++,o[s(586)](c,-13221+-6613*-2))break;await o[s(485)](Ms,1e3)}}return!1}async function Gqe(t,e,r,n){let i=Ae,s={eivUB:function(a,c,l,u,f,d){return a(c,l,u,f,d)},EiTgo:function(a,c,l){return a(c,l)},fQqpu:i(413)+i(420)+i(541),OnzxM:i(375)};if(!Fp[r]){let a=await s[i(479)](Wqe,t,e,r,n,!0);if(!a)return null;Fp[r]=a}let o=await s[i(372)](ts,i(543)+i(510)+zs,{fid:Fp[r],resolutions:s[i(462)],supports:s[i(576)]});return o[i(376)]&&o[i(376)][i(567)]?o[i(376)][i(567)]:null}function Mp(t,e){let r=jv();return Mp=function(n,i){return n=n-(-1873*2+8386+-4302),r[n]},Mp(t,e)}async function _X(t){let e=Ae,r={RBajv:function(n,i){return n(i)},dcrRr:e(551)+e(599),vhSPl:function(n,i){return n(i)},ghgti:function(n,i,s){return n(i,s)},cwffg:function(n,i){return n+i},mOVqo:e(549)};if(r[e(395)](Lp,r[e(483)])){let n=r[e(467)](gX,t);if(n){let i=await r[e(395)](Vqe,n);return i=i[e(609)](s=>{let o=e;return{vod_id:[n[o(583)],s[o(615)],s[o(419)],s[o(339)+o(492)],s[o(386)]?s[o(386)][o(419)]:"",s[o(386)]?s[o(386)][o(339)+o(492)]:""][o(366)]("*"),vod_name:s[o(555)],vod_size:s[o(359)]}}),r[e(537)](Jn,r[e(508)](r[e(508)](r[e(467)](getPanName,r[e(437)]),"-"),n[e(583)]),i)}else return{}}}var Kqe={};async function bX(t,e){let r=Ae,n={bhYYA:function(c,l){return c(l)},wiyPY:r(549),QGoRm:function(c,l,u,f,d){return c(l,u,f,d)},rIYHe:r(464),LPRTY:r(524),nWSuU:r(402),qUHAE:r(531),QTMVy:function(c,l){return c+l},HCIas:r(461)+"rk",RuyQH:function(c,l){return c(l)}};await n[r(365)](Uqe,t);let i=t[r(506)][r(425)],s=t[r(506)].id,o=s[r(342)]("*"),a=-3141+1*7042+-3901;if(i[r(443)](n[r(365)](getPanName,n[r(416)]))){let c=(await n[r(442)](Gqe,o[0],o[1],o[2],o[3]))[r(350)](p=>p[r(562)]);Kqe[o[-1279+-6661*1+2*3971]]=c;let l=[],u=["\u8D85\u6E05","\u84DD\u5149","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],f=["4k","2k",n[r(545)],n[r(501)],n[r(371)],n[r(490)]],d=n[r(370)](n[r(370)](t[r(450)][r(343)]()[r(474)],t[r(450)][r(502)]),n[r(469)]);l[r(563)]("\u4EE3\u7406"),l[r(563)](d+r(361)+o[157*-58+-3438+12544]+"/"+n[r(590)](encodeURIComponent,o[-15*-484+-1*9850+2591])+"*"+o[-17*-3+1703*-5+3*2822]+"*"+o[4713+-2*-3676+-12062]+r(449)),l[r(563)]("\u539F\u753B"),l[r(563)](d+(r(393)+r(566))+o[0]+"/"+n[r(590)](encodeURIComponent,o[7*980+1701*4+-13663*1])+"*"+o[-31*-176+4726+-2*5090]+"*"+o[2*-2057+2184+-1933*-1]+r(449));let h={parse:0,url:l,header:Object[r(559)]({Cookie:Xo},vX)};return o[8074+1*-8993+922]&&(h[r(348)]={subt:d+r(497)+o[0]+"/"+n[r(365)](encodeURIComponent,o[-5208*1+-6182+11391])+"*"+o[-4559+-4563*-1]+"*"+o[-3*-2439+730+-8042]+r(449)}),c[r(519)](p=>{let m=r;a=f[m(426)](p[m(564)]),l[m(563)](u[a]),l[m(563)](d+m(482)+p[m(564)][m(453)+"e"]()+"/"+o[1*6995+-1*-4993+-11988]+"/"+n[m(365)](encodeURIComponent,o[-2*582+-1516+7*383])+"*"+o[2762*-2+1*8861+-3335]+"*"+o[2767+2764*-1]+m(578))}),h}}var Ws=$e(xn(),1);var OJ=$e(Zp(),1),Vs=$e(xn(),1);var GC="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",CJ=[],KC=null,fFe=async t=>{let e=Vs.default.enc.Hex.stringify(Vs.default.MD5(t.config.uc.cookie)).toString();return(await t.db.getObjectDefault("/uc",{}))[e]??""},dFe=async(t,e)=>{let r=Vs.default.enc.Hex.stringify(Vs.default.MD5(t.config.uc.cookie)).toString();await t.db.push(`/uc/${r}`,e)},XC=async t=>{let e=Vs.default.enc.Hex.stringify(Vs.default.MD5(t.config.uc.ut)).toString();return(await t.db.getObjectDefault("/uc",{}))[e]??""},YC=async(t,e)=>{let r=Vs.default.enc.Hex.stringify(Vs.default.MD5(t.config.uc.ut)).toString();await t.db.push(`/uc/${r}`,e)};async function JC(t){t.get("/qrcode",async(e,r)=>{let n=await le.get(`https://api.open.uc.cn/cas/ajax/getTokenForQrcodeLogin?client_id=381&v=1.2&request_id=${Date.now()}`,{headers:{"User-Agent":GC,referer:"https://drive.uc.cn"}});CJ=Zi(n.headers["set-cookie"]),KC=n.data.data.members.token;let i=`https://su.uc.cn/1_n0ZCv?uc_param_str=dsdnfrpfbivesscpgimibtbmnijblauputogpintnwktprchmt&token=${KC}&client_id=381&uc_biz_str=S%3Acustom%7CC%3Atitlebar_fix`,s=await OJ.default.toBuffer(i,{width:300,height:300});r.send(s)}),t.post("/cookie",(e,r)=>{le.get(`https://api.open.uc.cn/cas/ajax/getServiceTicketByQrcodeToken?__t=${Date.now()}&token=${KC}&client_id=381&v=1.2&request_id=${Date.now()}`).then(n=>n.data.status===2e6?{data:n.data.data,cookies:CJ}:Promise.reject(new Error(`service_ticket\u83B7\u53D6\u5931\u8D25: ${n.data.message}`))).then(async({data:n,cookies:i})=>{let s=await le.get(`https://drive.uc.cn/account/info?st=${n.members.service_ticket}&fr=pc&platform=pc`,{headers:{"User-Agent":GC,Cookie:i.join(""),referer:"https://drive.uc.cn"}});return s.headers["set-cookie"]?i.concat(Zi(s.headers["set-cookie"])):Promise.reject(new Error(`\u4E2A\u4EBAPus\u83B7\u53D6\u5931\u8D25\uFF1A${s.data.message}`))}).then(async n=>{let i=await le.post("https://pc-api.uc.cn/1/clouddrive/transfer/upload/pdir?pr=UCBrowser&fr=pc",{},{headers:{"User-Agent":GC,Cookie:n.join("")}});if(i.headers["set-cookie"])r.send({code:0,data:n.concat(Zi(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"})})}),t.get("/cookie",async(e,r)=>{r.send({code:0,data:await fFe(e.server)})}),t.put("/cookie",async(e,r)=>{await dFe(e.server,e.body.cookie),r.send({code:0})}),t.get("/ut",async(e,r)=>{r.send({code:0,data:await XC(e.server)})}),t.put("/ut",async(e,r)=>{await YC(e.server,e.body.ut),r.send({code:0})})}var Si={DeviceID:"07b48aaba8a739356ab8107b5e230ad4",RefreshToken:"",AccessToken:""},Ur={api:"https://open-api-drive.uc.cn",clientID:"5acf882d27b74502b7040b0c65519aa7",signKey:"l3srvtd7p42l0d0x1u8d7yc8ye9kki4d",appVer:"1.6.8",channel:"UCTVOFFICIALWEB",codeApi:"http://api.extscreen.com/ucdrive"};function rx(t,e){return Ws.default.MD5(t+e).toString().slice(0,16)}function ZC(t,e,r,n){let i=t+"&"+e+"&"+r+"&"+n;return Ws.default.SHA256(i).toString()}function kJ(t){let r=/https:\/\/drive\.uc\.cn\/s\/([^\\|#/?]+)/.exec(t);return r?{shareId:r[1],folderId:"0"}:null}var Gs="pr=UCBrowser&fr=pc",DJ={"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"},tx=null,ex=null,QC="https://pc-api.uc.cn/1/clouddrive/",ia="",LJ="",pFe="",sa={},IJ="CatVodOpen",Sc=null,Zv="";async function hFe(t){tx=t.server.db;let e=t.server.config.uc;ia=e.cookie,ex=Ws.default.enc.Hex.stringify(Ws.default.MD5(e.cookie)).toString(),LJ=Ws.default.enc.Hex.stringify(Ws.default.MD5(e.token)).toString(),pFe=Ws.default.enc.Hex.stringify(Ws.default.MD5(e.ut)).toString();let r=await tx.getObjectDefault("/uc",{});if(r[ex]&&(ia=r[ex]),Zv=await XC(t.server),!Zv)try{await wn.get(`${QC}/file`)}catch(n){n?.response?.data?.length&&(Zv=n.response.data,YC(t.server,Zv))}}async function is(t,e,r,n,i){r=r||{},Object.assign(r,DJ),Object.assign(r,{Cookie:ia||""}),n=n||"post";let s=n=="get"?await wn.get(`${QC}/${t}`,{headers:r}).catch(a=>(console.error(a),a?.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}}),a.response||{status:500,data:{}})):await wn.post(`${QC}/${t}`,e,{headers:r}).catch(a=>(console.error(a),a?.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}}),a.response||{status:500,data:{}})),o=i||3;if(s.headers["set-cookie"]){let a=s.headers["set-cookie"].join(";;;").match(/__puus=([^;]+)/);a&&ia.match(/__puus=([^;]+)/)[1]!=a[1]&&(ia=ia.replace(/__puus=[^;]+/,`__puus=${a[1]}`),await tx.push(`/uc/${ex}`,ia))}return s.status===429&&o>0?(await Ms(1e3),await is(t,e,r,n,o-1)):s.data||{}}async function NJ(){let t=await is(`file/sort?${Gs}&pdir_fid=${Sc}&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(t.data&&t.data.list&&t.data.list.length>0){let e=await is(`file/delete?${Gs}`,{action_type:2,filelist:t.data.list.map(r=>r.fid),exclude_fids:[]});console.log(e)}}async function mFe(t){if(Sc){t&&await NJ();return}let e=await is(`file/sort?${Gs}&pdir_fid=0&_page=1&_size=200&_sort=file_type:asc,updated_at:desc`,{},{},"get");if(e.data&&e.data.list){for(let r of e.data.list)if(r.file_name===IJ){Sc=r.fid,await NJ();break}}if(!Sc){let r=await is(`file?${Gs}`,{pdir_fid:"0",file_name:IJ,dir_path:"",dir_init_lock:!1});console.log(r),r.data&&r.data.fid&&(Sc=r.data.fid)}}async function qJ(t){if(!sa[t.shareId]){delete sa[t.shareId];let e=await is(`share/sharepage/token?${Gs}`,{pwd_id:t.shareId,passcode:t.sharePwd||""});e.data&&e.data.stoken&&(sa[t.shareId]=e.data)}}var yFe=[".srt",".ass",".scc",".stl",".ttml"];async function gFe(t){let e=typeof t=="string"?kJ(t):t;if(!e)return[];if(await qJ(e),!sa[e.shareId])return[];let r=[],n=[],i=async function(s,o,a){a=a||1;let l=await is(`share/sharepage/detail?${Gs}&pwd_id=${s}&stoken=${encodeURIComponent(sa[s].stoken)}&pdir_fid=${o}&force=0&_page=${a}&_size=100&_sort=file_type:asc,file_name:asc`,{},{},"get");if(!l.data)return[];let u=l.data.list;if(!u)return[];let f=[];for(let d of u)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=sa[e.shareId].stoken,r.push(d)}else d.type==="file"&&yFe.some(h=>d.file_name.endsWith(h))&&n.push(d);if(a0&&r.forEach(s=>{var o=yl(s,n);o.bestMatch&&(s.subtitle=o.bestMatch.target)}),r}var eh={};async function vFe(t,e,r,n,i){if(await mFe(i),i){let o=Object.keys(eh);for(let a of o)delete eh[a]}if(!Sc||!e&&(await qJ({shareId:t}),!sa[t]))return null;let s=await is(`share/sharepage/save?${Gs}`,{fid_list:[r],fid_token_list:[n],to_pdir_fid:Sc,pwd_id:t,stoken:e||sa[t].stoken,pdir_fid:"0",scene:"link"});if(s.data&&s.data.task_id){let o=0;for(;;){let a=await is(`task?${Gs}&task_id=${s.data.task_id}&retry_index=${o}`,{},{},"get");if(a.data&&a.data.save_as&&a.data.save_as.save_as_top_fids&&a.data.save_as.save_as_top_fids.length>0)return a.data.save_as.save_as_top_fids[0];if(o++,o>5)break;await Ms(1e3)}}return!1}async function xFe(t,e,r,n){if(!eh[r]){let s=await vFe(t,e,r,n,!0);if(!s)return null;eh[r]=s}let i=await is(`file/v2/play?${Gs}`,{fid:eh[r],resolutions:"normal,low,high,super,2k,4k",supports:"fmp4"});return i.data&&i.data.video_list?i.data.video_list:null}async function jJ(t){if(qp(t)){let e=kJ(t);if(e){let r=await gFe(e);return r=r.map(n=>({vod_id:[e.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})),Jn(getPanName("uc")+"-"+e.shareId,r)}else return{}}}var _Fe={};async function FJ(t,e){let r=t.body.flag,i=t.body.id.split("*");await hFe(t);let s=0;if(r.startsWith(getPanName("uc"))){let o=(await xFe(i[0],i[1],i[2],i[3])).filter(g=>g.accessable);_Fe[i[2]]=o;let a=[],c=["\u8D85\u6E05","\u84DD\u5149","\u9AD8\u6E05","\u6807\u6E05","\u666E\u753B","\u6781\u901F"],l=["4k","2k","super","high","low","normal"],u=t.server.address().url+t.server.prefix+"/proxy/uc",d=(await tx.getObjectDefault("/uc",{}))[LJ],h=["\u4EE3\u7406",`${u}/src/down/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.bin`],p=["\u539F\u753B",`${u}/src/redirect/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.bin`];d?a.push(...p,...h):a.push(...h,...p);let m={parse:0,url:a,header:Object.assign({Cookie:ia},DJ)};return d&&(m.header=void 0),i[3]&&(m.extra={subt:`${u}/src/subt/${i[0]}/${encodeURIComponent(i[1])}*${i[4]}*${i[5]}/.bin`}),o.forEach(g=>{s=l.indexOf(g.resolution),a.push(c[s]),a.push(`${u}/trans/${g.resolution.toLowerCase()}/${i[0]}/${encodeURIComponent(i[1])}*${i[2]}*${i[3]}/.mp4`)}),m}}var E2=$e(_2(),1),VQ=$e(UQ(),1),w2=$e(require("crypto"),1),S2,A2={},Cl={set(t,e){A2[t]=e,S2.push(`/tyi/${t}`,e)},get(t){return A2[t]}},zQ=(t,e={})=>{let r=e.method||"GET",n=e.headers||{};return le({method:r,url:t,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))},HQ=(0,VQ.default)({storeAsString:!0}),T2=class{publicKey=null;setPublicKey(e){this.publicKey=e}encrypt(e){let r=Buffer.from(e,"utf8");return w2.default.publicEncrypt({key:this.publicKey,padding:w2.default.constants.RSA_PKCS1_PADDING},r).toString("base64")}},WQ=async t=>{S2=t.server.db,A2=await S2.getObjectDefault("/tyi",{})},$2=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):Cl.set("cloud_cookie",await this.login(this.account,this.password))}get account(){return Cl.get("cloud_account")}get password(){return Cl.get("cloud_password")}get cookie(){return Cl.get("cloud_cookie")}async login(e,r){try{let n=await le.post("https://open.e.189.cn/api/logbox/config/encryptConf.do?appId=cloud"),i=n.data.data.pubKey;n=await le.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],a={"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},c={version:"2.0",appKey:"cloud"};n=await le.post("https://open.e.189.cn/api/logbox/oauth2/appConf.do",E2.default.stringify(c),{headers:a});let l=n.data.data.returnUrl,u=n.data.data.paramId,f=`-----BEGIN PUBLIC KEY----- -${i} ------END PUBLIC KEY-----`,d=new T2;d.setPublicKey(f);let h=Buffer.from(d.encrypt(e),"base64").toString("hex"),p=Buffer.from(d.encrypt(r),"base64").toString("hex");if(c={appKey:"cloud",version:"2.0",accountType:"01",mailSuffix:"@189.cn",validateCode:"",returnUrl:l,paramId:u,captchaToken:"",dynamicCheck:"FALSE",clientType:"1",cb_SaveName:"0",isOauth2:!1,userName:`{NRP}${h}`,password:`{NRP}${p}`},n=await le.post("https://open.e.189.cn/api/logbox/oauth2/loginSubmit.do",E2.default.stringify(c),{headers:a,validateStatus:null}),n.data.toUrl){let m=n.headers["set-cookie"].map(g=>g.split(";")[0]).join(";");n=await le.get(n.data.toUrl,{headers:{...this.headers,Cookie:m},maxRedirects:0,validateStatus:null}),m+="; "+n.headers["set-cookie"].map(g=>g.split(";")[0]).join(";"),Cl.set("cloud_cookie",m)}else console.error("Error during login:",n.data)}catch(n){console.error("Error during login:",n)}}async getShareID(e,r){let n=this.regex.exec(e);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=e.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(e,r){let n={},i=[],s=await this.getShareInfo(e,r);if(s){let o=await this.getShareList(s);o&&Array.isArray(o)?await Promise.all(o.map(async a=>{a.name in n||(n[a.name]=[]);let c=await this.getShareFile(a.id);c&&c.length>0&&n[a.name].push(...c)})):n.root=await this.getShareFile(s)}for(let o in n)n[o].length===0&&delete n[o];return Object.keys(n).length===0&&(n.root=await this.getShareFile(s),n.root&&Array.isArray(n.root)&&(n.root=n.root.filter(o=>o&&Object.keys(o).length>0))),Object.keys(n).forEach(o=>{n[o]=n[o].map(a=>({vod_id:[a.fileId,a.shareId].join("*"),vod_name:a.name,vod_size:a.size}))}),n}async getShareInfo(e,r){e.startsWith("http")?await this.getShareID(e,r):this.shareCode=e;try{if(r){let n=await le.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 le.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 le.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(e){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 zQ(`${this.api}/open/share/listShareDir.action?key=noCache&pageNum=1&pageSize=9999&fileId=${e}&shareDirFileId=${e}&isFolder=${this.isFolder}&shareId=${this.shareId}&shareMode=${this.shareMode}&iconOption=5&orderBy=lastOpTime&descending=true&accessCode=${this.accessCode}&noCache=${Math.random()}`,i),c=HQ.parse(await s.text())?.fileListAO?.folderList;if(!c)return null;let l=c.map(f=>f.name),u=c.map(f=>f.id);if(c&&c.length>0){l.forEach((d,h)=>{r.push({name:d,id:u[h],type:"folder"})});let f=await Promise.all(u.map(async d=>this.getShareList(d)));return f=f.filter(d=>d!=null),[...r,...f.flat()]}}catch(r){console.log(r)}}async getShareFile(e){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 zQ(`${this.api}/open/share/listShareDir.action?key=noCache&pageNum=1&pageSize=9999&fileId=${e}&shareDirFileId=${e}&isFolder=${this.isFolder}&shareId=${this.shareId}&shareMode=${this.shareMode}&iconOption=5&orderBy=lastOpTime&descending=true&accessCode=${this.accessCode}&noCache=${Math.random()}`,n),s=HQ.parse(await i.text()),o=[],a=s?.fileListAO,c=a.fileList;if(!c)return null;let l=c.map(d=>d.name),u=c.map(d=>d.id),f=a.fileListSize;if(f>=0)for(let d=0;d=200&&a<400}}),o="";return s.status>=300&&s.status<400&&s.headers.location?o=s.headers.location:o=i.data.normal.url,o}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"),Cl.set("cloud_cookie",""),this.index+=1,await this.getShareUrl(e,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}}))}}},R2=new $2;var pr=$e(xn(),1),P2=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=pr.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(e){let r=pr.default.lib.WordArray.random(16),n="";if(typeof e=="string"){let i=pr.default.enc.Utf8.parse(e);n=pr.default.AES.encrypt(i,this.x,{iv:r,mode:pr.default.mode.CBC,padding:pr.default.pad.Pkcs7})}else if(typeof e=="object"&&e!==null){let i=JSON.stringify(e),s=pr.default.enc.Utf8.parse(i);n=pr.default.AES.encrypt(s,this.x,{iv:r,mode:pr.default.mode.CBC,padding:pr.default.pad.Pkcs7})}return pr.default.enc.Base64.stringify(r.concat(n.ciphertext))}decrypt(e){let r=pr.default.enc.Base64.parse(e),n=r.clone(),i=n.words.splice(4);n.init(n.words),r.init(i);let s=pr.default.enc.Base64.stringify(r);return pr.default.AES.decrypt(s,this.x,{iv:n,mode:pr.default.mode.CBC,padding:pr.default.pad.Pkcs7}).toString(pr.default.enc.Utf8).toString()}async getShareID(e){this.regexs.forEach(r=>{let n=r.exec(e);n&&n[1]&&(this.linkID=n[1])})}async getShareInfo(e){if(!this.linkID)return console.error("linkID is not set. Please call getShareID first."),null;let r=`${this.linkID}-${e}`;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:e,eNum:200},commonAccountInfo:{account:"",accountType:1}})));try{let i=await le.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(e){if(!e)return{};let r=e.startsWith("http"),n=r?"root":e;r&&await this.getShareID(e);let i={},s=await this.getShareFile(n);s&&Array.isArray(s)&&await Promise.all(s.map(async o=>{o.name in i||(i[o.name]=[]);let a=await this.getShareUrl(o.path);a&&a.length>0&&i[o.name].push(...a)}));for(let o in i)i[o].length===0&&delete i[o];return Object.keys(i).length===0&&(i.root=await this.getShareFile(e),i.root&&Array.isArray(i.root)&&(i.root=i.root.filter(o=>o&&Object.keys(o).length>0))),Object.keys(i).forEach(o=>{i[o]=i[o].map(a=>({vod_name:a.name,vod_id:[a.contentId,a.linkID].join("*"),vod_size:a.size}))}),i}async getShareFile(e){if(!e)return null;try{e=e.startsWith("http")?"root":e;let n=await this.getShareInfo(e);if(!n||!n.caLst)return null;let i=n?.caLst,s=i.map(l=>l.caName),o=i.map(l=>l.path),a=/App|活动中心|免费|1T空间|免流/,c=[];if(i&&i.length>0){s.forEach((u,f)=>{a.test(u)||c.push({name:u,path:o[f]})});let l=await Promise.all(o.map(async u=>this.getShareFile(u)));return l=l.filter(u=>u!=null),[...c,...l.flat()]}}catch(r){return console.error("Error processing share data:",r),null}}async getShareUrl(e){try{let r=await this.getShareInfo(e);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(o=>o.path),s=await Promise.all(i.map(o=>this.getShareUrl(o)));return s=s.filter(o=>o&&o.length>0),s.flat()}}catch(r){return console.error("Error processing share URL:",r),null}}async getSharePlay(e,r){let n={getContentInfoFromOutLinkReq:{contentId:e,linkID:r,account:""},commonAccountInfo:{account:"",accountType:1}},i=await le.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}},C2=new P2;var O2=$e(xn(),1);function r6e(t){return Buffer.from(t,"base64").toString("utf8")}var I2,N2={},hx={set(t,e){N2[t]=e,I2.push(`/pan123/${t}`,e)},get(t){return N2[t]}},GQ=async t=>{I2=t.server.db,N2=await I2.getObjectDefault("/pan123",{})},k2=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(O2.default.enc.Base64.parse(this.auth.split(".")[1]).toString(O2.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 hx.get("pan_passport")}get password(){return hx.get("pan_password")}get auth(){return hx.get("pan_auth")}async loin(){let e=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:e},n=(await le.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}hx.set("pan_auth",n.data.token)}getShareData(e){e=decodeURIComponent(e);let r=this.regex.exec(e);return e.indexOf("?")>0&&(this.SharePwd=e.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(e){let r={},n=await this.getShareInfo(e,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(e,r,n,i){let s=[],o=await le.get(this.api+"get",{headers:{},params:{limit:"100",next:n,orderBy:"file_name",orderDirection:"asc",shareKey:e,SharePwd:r,ParentFileId:i,Page:"1"}});if(o.status===200)if(o.data.code===5103)console.log(o.data.message);else{let a=o.data.data,c=a.Next;a.InfoList.forEach(f=>{f.Category===0&&s.push({filename:f.FileName,shareKey:e,SharePwd:r,next:c,fileId:f.FileId})});let u=await Promise.all(s.map(async f=>this.getShareInfo(e,r,c,f.fileId)));return u=u.filter(f=>f!=null),[...s,...u.flat()]}}async getShareList(e,r,n,i){let s=[];return(await le.get(this.api+"get",{headers:{},params:{limit:"100",next:n,orderBy:"file_name",orderDirection:"asc",shareKey:e,SharePwd:r,ParentFileId:i,Page:"1"}})).data.data.InfoList.forEach(a=>{a.Category===2&&s.push({ShareKey:e,FileId:a.FileId,S3KeyFlag:a.S3KeyFlag,Size:a.Size,Etag:a.Etag,FileName:a.FileName})}),s}async getDownload(e,r,n,i,s){await this.init();let o=JSON.stringify({ShareKey:e,FileID:r,S3KeyFlag:n,Size:i,Etag:s}),a={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:o},c=(await le.request(a)).data.data;return r6e(new URL(c.DownloadURL).searchParams.get("params"))}async getLiveTranscoding(e,r,n,i,s){await this.init();let o={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:e}},a=(await le.request(o)).data.data.video_play_info,c=[];return a.forEach(l=>{l.url!==""&&c.push({name:l.resolution,url:l.url})}),c}},mx=new k2;var KQ=$e(Zp(),1),ch=$e(xn(),1);var D2="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",Ol={},L2=async t=>{let e=ch.default.enc.Hex.stringify(ch.default.MD5(t.config.y115.cookie)).toString();return(await t.db.getObjectDefault("/y115",{}))[e]??""},n6e=async(t,e)=>{let r=ch.default.enc.Hex.stringify(ch.default.MD5(t.config.y115.cookie)).toString();await t.db.push(`/y115/${r}`,e)};async function q2(t){t.get("/qrcode",async(e,r)=>{Ol=(await le.get("https://qrcodeapi.115.com/api/1.0/web/1.0/token",{"User-Agent":D2,referer:"https://115.com/"})).data.data;let i=await KQ.default.toBuffer(Ol.qrcode,{width:300,height:300});r.send(i)}),t.post("/cookie",(e,r)=>{le.get(`https://qrcodeapi.115.com/get/status/?_=${parseInt(Date.now()/1e3)}&sign=${Ol.sign}&time=${Ol.time}&uid=${Ol.uid}`,{"User-Agent":D2,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:Ol.uid,app:"android"}),i=await le.post("https://passportapi.115.com/app/1.0/android/1.0/login/qrcode",n,{headers:{"User-Agent":D2,referer:"https://115.com/"}});if(i.data.state===1)r.send({code:0,data:Zi(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"})})}),t.get("/cookie",async(e,r)=>{r.send({code:0,data:await L2(e.server)})}),t.put("/cookie",async(e,r)=>{await n6e(e.server,e.body.cookie),r.send({code:0})})}var JQ=require("http");function i6e(t){let r=/https:\/\/(?:115|anxia|115cdn)\.com\/s\/([a-zA-Z0-9]+)\?password=([a-zA-Z0-9]+)/.exec(t);return r?{shareCode:r[1],receiveCode:r[2]}:null}function s6e(t){return["mp4","webm","avi","wmv","flv","mov","mkv","mpeg","3gp","ts","m2ts","mp3","wav","aac","iso"].includes(t?.slice(t?.lastIndexOf(".")+1))}async function o6e(t,e="GET",r=null,n=null){let i=new URL(t);return new Promise((s,o)=>{let a={hostname:i.hostname,path:`${i.pathname}${i.search}`,method:e,headers:r},c=(0,JQ.request)(a,l=>{let u="";l.on("data",f=>{u+=f}),l.on("end",()=>{try{s(JSON.parse(u))}catch{o(u)}})});c.on("error",l=>{o(l)}),n&&c.write(n),c.end()})}var XQ=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]),QQ=0x8686980c0f5a24c4b9d43020cd2c22703ff3f450756529058b1cf88f09b8602136477198a6e2683149659bd122c33592fdb5ad47944ad1ea4d36c6b172aad6338c3bb6ac6227502d010993ac967d1aef00f0c8e038de2e4d3bc2ec368af2e9f10a6f1eda4f7262f136420c07c331b871bf139f74f3010e3c4fe57df3afb71683n,ZQ=0x10001n;function eZ(t,e){e==null&&(e=Math.ceil(t.toString(16).length/2));let r=new Uint8Array(e);for(let n=e-1;n>=0;n--)r[n]=Number(t&0xffn),t>>=8n;return r}function tZ(t){let e=0n;for(let r of t)e=e<<8n|BigInt(r);return e}function*j2(t,e,r=1){for(let n=t+r;n>1n,t=t*t%r;return n}function u6e(t){(typeof t=="string"||t instanceof String)&&(t=new TextEncoder().encode(t));let e=new Uint8Array(16+t.length);e.set(yx(yx(t,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(e.length/117)*128),n=0;for(let[i,s]of j2(0,e.length,117))r.set(eZ(rZ(c6e(e.subarray(i,s)),ZQ,QQ),128),n,n+=128);return Buffer.from(r).toString("base64")}function l6e(t){let e=new Uint8Array(Buffer.from(t,"base64")),r=[];for(let[s,o]of j2(0,e.length,128)){let a=rZ(tZ(e.subarray(s,o)),ZQ,QQ),c=eZ(a);r.push(...c.subarray(c.indexOf(0)+1))}r=new Uint8Array(r);let n=a6e(r.subarray(0,16),12),i=yx(r.subarray(16),n).reverse();return new TextDecoder("utf-8").decode(yx(i,new Uint8Array([141,165,165,141])))}async function f6e({shareCode:t,receiveCode:e,dirID:r=""}){let n=[],i=async s=>{let o=await le.get("https://webapi.115.com/share/snap",{params:{share_code:t,receive_code:e,cid:s,limit:"9999",offset:"0"}});if(!o.data.data)return[];let a=o.data.data.list.filter(l=>l.fc===1),c=o.data.data.list.filter(l=>l.fc===0);for(let l of a)s6e(l.n)&&n.push({...l,shareCode:t,receiveCode:e});for(let l of c)await i(l.cid)};return await i(t,e,r),n}async function nZ(t){let e=i6e(t);if(e){let r=await f6e(e);return r=r.map(n=>({vod_id:[e.shareCode,e.receiveCode,n.fid].join("*"),vod_name:n.n,vod_size:n.s})),Jn(getPanName("115")+"-"+e.shareCode,r)}else return{}}async function iZ(t){let e=t.body.id,r=await L2(t.server),[n,i,s]=e.split("*"),o=`data=${encodeURIComponent(u6e(`{"share_code":"${n}","receive_code":"${i}","file_id":"${s}"}`))}`,a=await o6e("http://pro.api.115.com/app/share/downurl","POST",{"Content-Type":"application/x-www-form-urlencoded","Content-Length":Buffer.byteLength(o),Cookie:r},o);return a?.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(l6e(a.data)).url.url]}}async function sZ(t){t=Array.isArray(t)?t:[t];let e=t.map(s=>{let o=p6e().find(a=>a.validator(s))?.key;return{key:o,url:s,order:globalThis.Pans.findIndex(a=>a.key===o)}}).filter(s=>s.key);e.sort((s,o)=>s.order-o.order),t=e.map(s=>s.url);let r=[],n=[];for(let s of t)if(Dp(s)){let o=await fX(s);o&&o.from&&o.url&&(r.push(o.from),n.push(o.url))}else if(Lp(s)){let o=await _X(s);o&&o.from&&o.url&&(r.push(o.from),n.push(o.url))}else if(qp(s)){let o=await jJ(s);o&&o.from&&o.url&&(r.push(o.from),n.push(o.url))}else if(XP(s)){let o=await R2.getShareData(s);if(o){let a=await getPanName("tianyi");Object.keys(o).forEach(c=>{let l=Jn(a+"-"+c,o[c]);l&&l.from&&l.url&&(r.push(l.from),n.push(l.url))})}}else if(YP(s)){let o=await C2.getShareData(s),a=await getPanName("yidong");Object.keys(o).forEach(c=>{let l=Jn(a+"-"+c,o[c]);l&&l.from&&l.url&&(r.push(l.from),n.push(l.url))})}else if(JP(s)){let o=await mx.getShareData(s),a=await mx.getFilesByShareUrl(o),c=await getPanName("123");Object.keys(a).forEach(l=>{let u=Jn(c+"-"+l,a[l]);u&&u.from&&u.url&&(r.push(u.from),n.push(u.url))})}else if(QP(s)){let o=await nZ(s);o&&o.from&&o.url&&(r.push(o.from),n.push(o.url))}let i={};return r.forEach((s,o)=>{i[s]?r[o]=`${s}-${++i[s]}`:i[s]=1}),{froms:r.join("$$$"),urls:n.join("$$$")}}async function oZ(t,e){let r=t.body.flag;if(r.startsWith(await getPanName("ali")))return await dX(t,e);if(r.startsWith(await getPanName("quark")))return await bX(t,e);if(r.startsWith(await getPanName("uc")))return await FJ(t,e);if(r.startsWith(await getPanName("tianyi"))){let n=t.body.id.split("*");return await WQ(t),{parse:0,url:["\u539F\u753B",await R2.getShareUrl(n[0],n[1])]}}else if(r.startsWith(await getPanName("yidong"))){let n=t.body.id.split("*");return{parse:0,url:["\u539F\u753B",await C2.getSharePlay(n[0],n[1])]}}else if(r.startsWith(await getPanName("123"))){await GQ(t);let n=t.body.id.split("*");return{parse:0,url:["\u539F\u753B",await mx.getDownload(...n)]}}else if(r.startsWith(await getPanName("115")))return await iZ(t,e)}var p6e=()=>[{key:"yidong",name:getPanName("yidong"),validator:YP,pic:"https://yun.139.com/w/static/img/LOGO.png"},{key:"tianyi",name:getPanName("tianyi"),validator:XP,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:QP,pic:"https://img.pcsoft.com.cn/soft/202104/093230-608b5e2ed5912.jpg"},{key:"quark",name:getPanName("quark"),validator:Lp,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:qp,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:Dp,pic:"https://inews.gtimg.com/newsapp_bt/0/13263837859/1000"},{key:"123",name:getPanName("123"),validator:JP,pic:"https://statics.123957.com/static/favicon.ico"}];async function h6e(t,e){return{}}async function m6e(t,e){return"true"}async function y6e(t,e){let r=Array.isArray(t.body.id)?t.body.id:[t.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"},o=await sZ(i);o&&(s.vod_play_from=o.froms,s.vod_play_url=o.urls),n.push(s)}return{list:n}}async function g6e(t,e){try{let r=function(o){o.statusCode&&o.statusCode==500&&console.error(o)},n=t.server.prefix,i={},s=await t.server.inject().post(`${n}/support`).payload({clip:"https://xx.xx/1.m3u8"});return i.support=s.json(),r(s.json()),s=await t.server.inject().post(`${n}/detail`).payload({id:"https://xx.xx/1.m3u8"}),i.detail=s.json(),r(s.json()),s=await t.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),e.code(500),{err:r.message,tip:"check debug console output"}}}var aZ={meta:{key:"push",name:"\u63A8\u9001",type:4},api:async t=>{t.post("/init",h6e),t.post("/support",m6e),t.post("/detail",y6e),t.post("/play",oZ),t.get("/test",g6e)}};var F2=async t=>(await t.db.getObjectDefault("/sites",{}))?.list||t.config.sites.list,v6e=async(t,e)=>{await t.db.push("/sites/list",e)},x6e=async t=>{await t.db.delete("/sites/list")};async function M2(t){t.get("/list",async(e,r)=>{r.send({code:0,data:await F2(e.server)})}),t.put("/list",async(e,r)=>{await v6e(e.server,e.body.list),r.send({code:0})}),t.delete("/list",async(e,r)=>{await x6e(e.server),r.send({code:0})})}var gx=async t=>await t.db.getObjectDefault("/danmu")||t.config.danmu,_6e=async(t,e)=>{await t.db.push("/danmu",e)},b6e=async t=>{await t.db.delete("/danmu")};async function B2(t){t.get("/setting",async(e,r)=>{r.send({code:0,data:await gx(e.server)})}),t.put("/setting",async(e,r)=>{await _6e(e.server,e.body),r.send({code:0})}),t.delete("/setting",async(e,r)=>{await b6e(e.server),r.send({code:0})}),t.post("/push",async(e,r)=>{messageToDart({action:"danmuPush",opt:{url:e.body.url}}),r.send({code:0})}),t.get("/fe",(e,r)=>{r.type("text/html").send(` - - - - - \u5F39\u5E55\u641C\u7D22 - - - -
- - - - - - - - - `)})}var U2=["\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"],E6e=["\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"],w6e=[...U2,...E6e],cZ=new RegExp(w6e.join("|"),"ig"),S6e=new RegExp(U2.join("|"),"ig");function fZ(t){if(!t||!t.trim())return"";let e=t.trim();e=e.replace(/丨/g,""),e=e.replace(/-/g," "),e=e.replace(S6e,""),e=e.replace(/\s+/g," ").trim();let r=e.match(/^[\u4e00-\u9fa5]+\d+(?=:|\s|$)/);if(r)return r[0];let n=e.match(/^[\u4e00-\u9fa5]+[\u4e00-\u9fa50-9]+\s*(?=\(\d{4}\))/);if(n)return n[0];let i=e.match(/^[\u4e00-\u9fa5]+[\u4e00-\u9fa5 ,.,。、]+\s*(?=\(|【|\s+\d{4})/),s=i?i[0].trim():"",o=!1,a=e.match(/《(.+?)》/);if(a)e=a[1],o=!0;else{let u=new RegExp(`\u3010((?!${U2.join("|")})[\u4E00-\u9FA5]{2,}[^/]+?)\u3011`,"i"),f=e.match(u);f&&(e=f[1],o=!0)}!o&&s&&(e=s);let c=[[/.*-/g,""],[/\b\d{4}\b/g,""],[/(?{if(r){let i=dZ(r);return i!==-1?String(i):e}else if(n)return String(parseInt(n,10));return e})}function A6e(t){let e=t;return e=e.replace(/[(()[\]【】{}]\s*([上中下])\s*[)()[\]【】{}]/g,"$1"),e=e.replace(/(\[|\{|\(|【).*?(\]|\}|)|】)/g," "),e=e.replace(/\d+\s*(fps|帧|frames?|hz|赫兹)/gi," "),e=e.replace(/\b(\d+(p|k|i)|4k|8k|uhd|hd|fhd|qhd|2160p|1440p|1080p|720p|480p|360p)\b/gi," "),e=e.replace(/\b(19|20)\d{2}\b/g," "),e=e.replace(/\b(?:dts|ddp|aac|ac3|eac3|truehd|atmos)\d+(?:\.\d+)?\b|\b\d+\.\d+\b/gi," "),e=e.replace(/\b(8bit|10bit|12bit)\b/gi," "),e=e.replace(/\b(hdr|hdr10|hdr10\+|dolby vision|dv|hlg)\b/gi," "),e=e.replace(/\b(x264|x265|h\.264|h\.265|h264|h265|hevc|mpeg4|av1|vp9)\b/gi," "),e=e.replace(/\b(web-dl|bluray|bdrip|hdrip|dvdrip|brrip|hdtv|dvdr|cam|ts|tc|r5|scr)\b/gi," "),e=e.replace(/\b(hq|sd|hd|fhd|uhd|imax|superbit|remux|extended|uncut|directors cut|dc|special edition|se)\b/gi," "),e=e.replace(/\b(高码|高码率|高码版|超清|高清|标清|无水印|完整版|未删减|加长版|导演剪辑版|特效字幕|内嵌字幕|双语字幕|中文字幕|英文字幕|繁体字幕|简体字幕|多音轨|杜比音效|全景声|hdr)\b/gi," "),e=e.replace(/[\-\_.,()]+/g," "),e.replace(/\s+/g," ").trim()}function T6e(t){let e=t.replace(/(\[|\{|\(|【).*?(\]|\}|)|】)/g," ");if(/s\d+e\d+/i.test(e))return"-1";let r=e.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 ca(n)}if(r=e.trim().match(/^0*\d{1,8}$/),r){let n=r[0],i=parseInt(n,10);if(i>0&&!(i>=1900&&i<=2100))return ca(n)}return"-1"}function $6e(t){let e="\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]+))((?:${e})[${r}]?[\uFF08(]?[${r}]?[)\uFF09]?)`),s=t.match(i);if(s){let a=s[1],c=s[2],l=s[4].replace(/[(())]/g,"");return c=ca(c),a+c+l}let o=Array.from(t.matchAll(/(?:s\d+.*?e|e)(\d{1,8})(?!\d)/gi));if(o.length>0)return ca(o[o.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=t.match(i),s){let a=dZ(s[1]);return a>0?String(a):"-1"}return i=new RegExp(`\u7B2C(d{1,8})[${n}]`),s=t.match(i),s||(s=t.match(/ep(\d{1,8})/i),s)||(i=new RegExp(`(d{1,8})[${n}]`),s=t.match(i),s)?ca(s[1]):"-1"}function R6e(t){let e="a-zA-Z\xC0-\u017F",r=new RegExp(`(?=1900&&s<=2100))return ca(i)}return"-1"}function z2(t){if(!t)return"-1";let e=t,r=e.lastIndexOf(".");r>0&&(e=e.substring(0,r));let n=A6e(e),i=$6e(n);if(i!=="-1")return i;let s=T6e(e);return s!=="-1"?s:R6e(n)}var H2=async t=>(await t.db.getObjectDefault("/t4",{}))?.list||t.config.t4?.list||[],P6e=async(t,e)=>{await t.db.push("/t4/list",e)},C6e=async t=>{await t.db.delete("/t4/list")};async function V2(t){t.get("/list",async(e,r)=>{r.send({code:0,data:await H2(e.server)})}),t.put("/list",async(e,r)=>{await P6e(e.server,e.body),r.send({code:0})}),t.delete("/list",async(e,r)=>{await C6e(e.server),r.send({code:0})})}function W2(t,e){let r=le.create({baseURL:e});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:u}=await r.get("",{params:{ac:"detail",t:l.body.id,pg:l.body.page||1}});return u}catch(u){console.warn(u)}}async function o(l){try{let{data:u}=await r.get("",{params:{ac:"detail",ids:l.body.id}});return u}catch(u){console.warn(u)}}async function a(l){try{let{data:u}=await r.get("",{params:{play:l.body.id,flag:l.body.flag}});return!u.url&&!u.urls&&l.body.id.startsWith("http")?{url:l.body.id}:u}catch(u){console.warn(u)}}async function c(l){try{let{data:u}=await r.get("",{params:{ac:"list",wd:l.body.wd}});return u}catch(u){console.warn(u)}}return{meta:{key:t,name:t,type:3,t4:!0},api:async l=>{l.post("/init",n),l.post("/home",i),l.post("/category",s),l.post("/detail",o),l.post("/play",a),l.post("/search",c)}}}var G2=async t=>(await t.db.getObjectDefault("/cms",{}))?.list||t.config.cms?.list||[],O6e=async(t,e)=>{await t.db.push("/cms/list",e)},I6e=async t=>{await t.db.delete("/cms/list")};async function K2(t){t.get("/list",async(e,r)=>{r.send({code:0,data:await G2(e.server)})}),t.put("/list",async(e,r)=>{await O6e(e.server,e.body),r.send({code:0})}),t.delete("/list",async(e,r)=>{await I6e(e.server),r.send({code:0})})}var X2=$e(xn(),1);function Y2(t,e){let r=le.create({baseURL:e});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:u}=await r.get("",{params:{ac:"detail",t:l.body.id,pg:l.body.page||1}});return u}catch(u){console.warn(u)}}async function o(l){try{let{data:u}=await r.get("",{params:{ac:"detail",ids:l.body.id}});return u}catch(u){console.warn(u)}}async function a(l){return{url:l.body.id}}async function c(l){try{let{data:u}=await r.get("",{params:{ac:"list",wd:l.body.wd}});return u}catch(u){console.warn(u)}}return{meta:{key:X2.default.MD5(t).toString(X2.default.enc.hex),name:t,type:3,cms:!0},api:async l=>{l.post("/init",n),l.post("/home",i),l.post("/category",s),l.post("/detail",o),l.post("/play",a),l.post("/search",c)}}}var pZ=async t=>{let e=[];return(await H2(t)).forEach(i=>{e.push(W2(i.name,i.address))}),(await G2(t)).forEach(i=>{e.push(Y2(i.name,i.address))}),e.push(MK),e.push(aZ),e},hZ="/spider",vx={};async function J2(t,{db:e,config:r}){(await pZ({db:e,config:r})).forEach(i=>{let s=hZ+"/"+i.meta.key+"/"+i.meta.type;t.register(i.api,{prefix:s}),i.check?.(t),console.log(`Register spider: ${i.meta.name} ${s}`)}),t.register(async i=>{i.get("/check",async function(o,a){a.send({run:!i.stop})});let s=async()=>{let o={video:{sites:[]},read:{sites:[]},comic:{sites:[]},music:{sites:[]},pan:{sites:[]},color:i.config.color||[]};return(await pZ({db:e,config:r})).forEach(c=>{let l=Object.assign({},c.meta);l.api=hZ+"/"+l.key+"/"+l.type,l.key="nodejs_"+l.key;let u=c.meta.type;u<10?o.video.sites.push(l):u>=10&&u<20?o.read.sites.push(l):u>=20&&u<30?o.comic.sites.push(l):u>=30&&u<40?o.music.sites.push(l):u>=40&&u<50&&o.pan.sites.push(l)}),o};i.get("/config",async function(o,a){let c=await s(),l=await F2(o.server),u=c.video.sites,f={},d={};u.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])}),u.forEach(p=>{f[p.key]||h.push(p)}),c.video.sites=h,c.video.danmuSearchUrl=`http://127.0.0.1:${o.server.address().port}/website/danmu/fe`,a.send(c)}),i.get("/full-config",s)}),t.get("/danmu-proxy",async(i,s)=>{try{let{name:o,episodeNumber:a}=i.query,c=await gx(i.server),l=!1,u=0,f=await new Promise(d=>{for(let h of c.urls)le.get(`${h.address}/api/v2/search/episodes`,{params:{anime:o}}).then(async p=>{console.log("searchResult",o,p.data);let m=p.data.animes[0],g=m.episodes.find(y=>z2(y.episodeTitle)===a)||m.episodes[0];l||(l=!0,messageToDart({action:"toast",opt:{message:`\u5339\u914D\u5F39\u5E55\uFF1A${m.animeTitle} ${g.episodeTitle}`,duration:3}}),d(`${h.address}/api/v2/comment/${g.episodeId}?format=xml`))}).finally(()=>{u++,u===c.urls.length&&!l&&d()})});if(f){let d=await le.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('')}catch(o){console.error("Danmu proxy error:",o),s.code(500).send({error:"Failed to fetch danmu content"})}}),t.addHook("onSend",async(i,s,o)=>{try{if((await gx(i.server)).autoPush){if(i.url.endsWith("/detail")){let l=JSON.parse(o).list[0];vx={};let u=l.vod_play_from.split("$$$")||[];l.vod_play_url.split("$$$").filter(Boolean).forEach((f,d)=>{f.split("#").forEach(h=>{let[p,m]=h.split("$");vx[`${u[d]}_${m}`]={name:fZ(l.vod_name),episodeNumber:z2(p)}})}),console.log("danmuInfo",vx)}if(i.url.endsWith("/play")){let c=JSON.parse(o);if((c.url||c.url?.length||c.urls?.length)&&!c?.extra?.danmaku){let l=`${i.body.flag}_${i.body.id}`,u=vx[l];if(u&&!u?.name){let f=await messageToDart({action:"getPlayInfo"});f&&(console.log("playInfo",f),u.name=f?.title)}if(u)return c.extra||(c.extra={}),c.extra.danmaku=`http://127.0.0.1:${i.server.address().port}/danmu-proxy?name=${encodeURIComponent(u.name)}&episodeNumber=${encodeURIComponent(u.episodeNumber)}`,JSON.stringify(c);messageToDart({action:"toast",opt:{message:"\u6CA1\u6709\u5339\u914D\u7684\u5F39\u5E55\uFF0C\u8BF7\u624B\u52A8\u63A8\u9001",duration:3}})}}}}catch(a){console.error(a)}return o})}var Ox=$e(OZ(),1);var NZ=$e(Zp(),1),lh=$e(xn(),1);var mO="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",IZ=[],yO=null,K6e=async t=>{let e=lh.default.enc.Hex.stringify(lh.default.MD5(t.config.quark.cookie)).toString();return(await t.db.getObjectDefault("/quark",{}))[e]??""},X6e=async(t,e)=>{let r=lh.default.enc.Hex.stringify(lh.default.MD5(t.config.quark.cookie)).toString();await t.db.push(`/quark/${r}`,e)};async function gO(t){t.get("/qrcode",async(e,r)=>{let n=await le.get("https://uop.quark.cn/cas/ajax/getTokenForQrcodeLogin?client_id=532&v=1.2",{headers:{"User-Agent":mO}});IZ=Zi(n.headers["set-cookie"]),yO=n.data.data.members.token;let i="https://su.quark.cn/4_eMHBJ?token="+yO+"&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 NZ.default.toBuffer(i,{width:300,height:300});r.send(s)}),t.post("/cookie",(e,r)=>{le.get(`https://uop.quark.cn/cas/ajax/getServiceTicketByQrcodeToken?client_id=532&v=1.2&token=${yO}`).then(n=>n.data.status===2e6?{data:n.data.data,cookies:IZ}:Promise.reject(new Error(`service_ticket\u83B7\u53D6\u5931\u8D25: ${n.data.message}`))).then(async({data:n,cookies:i})=>{let s=await le.get(`https://pan.quark.cn/account/info?st=${n.members.service_ticket}&fr=pc&platform=pc`,{headers:{"User-Agent":mO,Cookie:i.join("")}});return s.headers["set-cookie"]?i.concat(Zi(s.headers["set-cookie"])):Promise.reject(new Error(`\u4E2A\u4EBAPus\u83B7\u53D6\u5931\u8D25\uFF1A${s.data.message}`))}).then(async n=>{let i=await le.get("https://drive-pc.quark.cn/1/clouddrive/share/sharepage/dir?pr=ucpro&fr=pc&uc_param_str=&aver=1",{headers:{"User-Agent":mO,Cookie:n.join("")}});if(i.headers["set-cookie"])r.send({code:0,data:n.concat(Zi(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"})})}),t.get("/cookie",async(e,r)=>{r.send({code:0,data:await K6e(e.server)})}),t.put("/cookie",async(e,r)=>{await X6e(e.server,e.body.cookie),r.send({code:0})})}var fh=$e(xn(),1);var kZ=null,Y6e=null,J6e=async t=>{let e=fh.default.enc.Hex.stringify(fh.default.MD5(t.config.uc.token)).toString();return(await t.db.getObjectDefault("/uc",{}))[e]??""},Q6e=async(t,e)=>{let r=fh.default.enc.Hex.stringify(fh.default.MD5(t.config.uc.token)).toString();await t.db.push(`/uc/${r}`,e)};async function vO(t){t.get("/qrcode",async(e,r)=>{let n="/oauth/authorize",i=Math.floor(Date.now()/1e3).toString()+"000",s=Si.DeviceID,o=rx(s,i),a=ZC("GET",n,i,Ur.signKey),c={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":a,"x-pan-client-id":Ur.clientID,...Si.AccessToken?{Authorization:`Bearer ${Si.AccessToken}`}:{}},l=await le.get(`${Ur.api}${n}`,{params:{req_id:o,access_token:Si.AccessToken,app_ver:Ur.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:Ur.channel,auth_type:"code",client_id:Ur.clientID,scope:"netdisk",qrcode:"1",qr_width:"460",qr_height:"460"},headers:c});kZ=l.data.query_token,Y6e=o,r.send(Buffer.from(l.data.qr_data,"base64"))}),t.post("/token",async(e,r)=>{let n="/oauth/code",i=Math.floor(Date.now()/1e3).toString()+"000",s=Si.DeviceID,o=rx(s,i),a=ZC("GET",n,i,Ur.signKey),c={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":a,"x-pan-client-id":Ur.clientID,...Si.AccessToken?{Authorization:`Bearer ${Si.AccessToken}`}:{}},l=await le.get(`${Ur.api}${n}`,{params:{req_id:o,access_token:Si.AccessToken,app_ver:Ur.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:Ur.channel,client_id:Ur.clientID,scope:"netdisk",query_token:kZ},headers:c});if(l.data.status===0){let u="/token",f=Math.floor(Date.now()/1e3).toString()+"000",d=rx(Si.DeviceID,f),h=JSON.stringify({req_id:d,app_ver:Ur.appVer,device_id:Si.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:Ur.channel,code:l.data.code}),m=(await le.post(`${Ur.codeApi}${u}`,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"})}),t.get("/token",async(e,r)=>{r.send({code:0,data:await J6e(e.server)})}),t.put("/token",async(e,r)=>{await Q6e(e.server,e.body.cookie),r.send({code:0})})}var Z6e=["http://123.666291.xyz","https://mogg.5568.eu.org","https://mo.91muou.icu","https://mo.666291.xyz","https://mo.muouso.fun"],eMe=async t=>(await t.db.getObjectDefault("/muou",{}))?.urls||t.config.muou?.urls||Z6e,tMe=async(t,e)=>{await t.db.push("/muou/urls",e)},rMe=async t=>{await t.db.delete("/muou/urls")};async function xO(t){t.get("/urls",async(e,r)=>{r.send({code:0,data:await eMe(e.server)})}),t.put("/urls",async(e,r)=>{await tMe(e.server,e.body),r.send({code:0})}),t.delete("/urls",async(e,r)=>{await rMe(e.server),r.send({code:0})})}var DZ=async(t,e)=>(await t.db.getObjectDefault("/tyi",{}))?.[e]||"",LZ=async(t,e,r)=>{await t.db.push(`/tyi/${e}`,r)};async function _O(t){t.get("/account",async(e,r)=>{let n=await DZ(e.server,"cloud_account"),i=await DZ(e.server,"cloud_password");r.send({code:0,data:{username:n,password:i}})}),t.put("/account",async(e,r)=>{await LZ(e.server,"cloud_account",e.body.username),await LZ(e.server,"cloud_password",e.body.password),r.send({code:0})})}var nMe=["https://wogg.xxooo.cf","https://wogg.333232.xyz","https://woggpan.333232.xyz","https://wogg.heshiheng.top","https://www.wogg.one","https://www.wogg.lol"],iMe=async t=>(await t.db.getObjectDefault("/wogg",{}))?.urls||t.config.wogg?.urls||nMe,sMe=async(t,e)=>{await t.db.push("/wogg/urls",e)},oMe=async t=>{await t.db.delete("/wogg/urls")};async function bO(t){t.get("/urls",async(e,r)=>{r.send({code:0,data:await iMe(e.server)})}),t.put("/urls",async(e,r)=>{await sMe(e.server,e.body),r.send({code:0})}),t.delete("/urls",async(e,r)=>{await oMe(e.server),r.send({code:0})})}var aMe=["https://leijing.xyz"],cMe=async t=>(await t.db.getObjectDefault("/leijing",{}))?.urls||t.config.leijing?.urls||aMe,uMe=async(t,e)=>{await t.db.push("/leijing/urls",e)},lMe=async t=>{await t.db.delete("/leijing/urls")};async function EO(t){t.get("/urls",async(e,r)=>{r.send({code:0,data:await cMe(e.server)})}),t.put("/urls",async(e,r)=>{await uMe(e.server,e.body),r.send({code:0})}),t.delete("/urls",async(e,r)=>{await lMe(e.server),r.send({code:0})})}var Tx=async(t,e,r)=>(await t.db.getObjectDefault("/tgsou",{}))?.[e]||t.config.tgsou[e]||r,fMe=t=>Tx(t,"url","http://tgsou.fish2018.ip-ddns.com"),dMe=t=>Tx(t,"count",4),pMe=t=>Tx(t,"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"),hMe=t=>Tx(t,"pic",!1),Ax=async(t,e,r)=>{await t.db.push(`/tgsou/${e}`,r)};async function wO(t){t.get("/config",async(e,r)=>{let n=await fMe(e.server),i=await dMe(e.server),s=await pMe(e.server),o=await hMe(e.server);r.send({code:0,data:{url:n,count:Number(i),channelUsername:s.split(","),pic:o}})}),t.put("/config",async(e,r)=>{await Ax(e.server,"url",e.body.url),await Ax(e.server,"count",e.body.count),await Ax(e.server,"channelUsername",e.body.channelUsername.join(",")),await Ax(e.server,"pic",e.body.pic),r.send({code:0})})}var qZ=async(t,e)=>(await t.db.getObjectDefault("/pan123",{}))?.[e]||"",jZ=async(t,e,r)=>{await t.db.push(`/pan123/${e}`,r)};async function SO(t){t.get("/account",async(e,r)=>{let n=await qZ(e.server,"pan_passport"),i=await qZ(e.server,"pan_password");r.send({code:0,data:{username:n,password:i}})}),t.put("/account",async(e,r)=>{await jZ(e.server,"pan_passport",e.body.username),await jZ(e.server,"pan_password",e.body.password),r.send({code:0})})}var FZ=$e(Zp(),1),Xs=$e(xn(),1),MZ=$e(_2(),1),$x="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",Rx={},mMe=async t=>{let e=Xs.default.enc.Hex.stringify(Xs.default.MD5(t.config.ali.token)).toString();return(await t.db.getObjectDefault("/ali",{}))[e]??""},yMe=async(t,e)=>{let r=Xs.default.enc.Hex.stringify(Xs.default.MD5(t.config.ali.token)).toString();await t.db.push(`/ali/${r}`,e)},gMe=async t=>{let e=Xs.default.enc.Hex.stringify(Xs.default.MD5(t.config.ali.token280)).toString();return(await t.db.getObjectDefault("/ali",{}))[e]??""},vMe=async(t,e)=>{let r=Xs.default.enc.Hex.stringify(Xs.default.MD5(t.config.ali.token280)).toString();await t.db.push(`/ali/${r}`,e)};async function AO(t){t.get("/qrcode",async(e,r)=>{Rx=(await le.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":$x})).data.content.data;let i=await FZ.default.toBuffer(Rx.codeContent,{width:300,height:300});r.send(i)}),t.post("/token",(e,r)=>{let n="";le.post("https://passport.aliyundrive.com/newlogin/qrcode/query.do?appName=aliyun_drive&fromSite=52&_bx-v=2.2.3",MZ.default.stringify({t:Rx.t,appName:"aliyun_drive",ck:Rx.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 o=decodeURI(atob(s.bizExt)),a=JSON.parse(o).pds_login_result.refreshToken;return a?(n=a,Promise.resolve(a)):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 le.post("https://auth.aliyundrive.com/v2/account/token",{refresh_token:i,grant_type:"refresh_token"},{headers:{"User-Agent":$x,"Content-Type":"application/json",referer:"https://www.aliyundrive.com/"}}),{token_type:o,access_token:a}=s.data,c=`${o} ${a}`;return Promise.resolve(c)}).then(async i=>(await le.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":$x,"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 le.post("https://api.nn.ci/alist/ali_open/code",{code:i,grant_type:"authorization_code"},{headers:{"User-Agent":$x,"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"})})}),t.get("/token",async(e,r)=>{r.send({code:0,data:{token:await mMe(e.server),token280:await gMe(e.server)}})}),t.put("/token",async(e,r)=>{await yMe(e.server,e.body.data.token),await vMe(e.server,e.body.data.token280),r.send({code:0})})}var Cx=async(t,e,r)=>(await t.db.getObjectDefault("/tgchannel",{}))?.[e]||t.config.tgchannel[e]||r,xMe=t=>Cx(t,"url","https://t.me"),_Me=t=>Cx(t,"count",4),bMe=t=>Cx(t,"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"),EMe=t=>Cx(t,"homeChannelUsername","alyp_TV,ucquark,tianyirigeng,ydypzyfx"),Px=async(t,e,r)=>{await t.db.push(`/tgchannel/${e}`,r)};async function TO(t){t.get("/config",async(e,r)=>{let n=await xMe(e.server),i=await _Me(e.server),s=await bMe(e.server),o=await EMe(e.server);r.send({code:0,data:{url:n,count:Number(i),channelUsername:s.split(","),homeChannelUsername:o.split(",")}})}),t.put("/config",async(e,r)=>{await Px(e.server,"url",e.body.url),await Px(e.server,"count",e.body.count),await Px(e.server,"channelUsername",e.body.channelUsername.join(",")),await Px(e.server,"homeChannelUsername",e.body.homeChannelUsername.join(",")),r.send({code:0})})}var $O=[{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:"ali",name:"\u963F\u72F8",enable:!0}],RO=async t=>{let r=(await t.db.getObjectDefault("/pans",{}))?.list||t.config.pans.list;return r.filter(n=>$O.some(i=>i.key===n.key)).concat($O.filter(n=>!r.some(i=>i.key===n.key)))},wMe=async(t,e)=>{await t.db.push("/pans/list",e),globalThis.Pans=e},SMe=async t=>{await t.db.delete("/pans/list"),globalThis.Pans=$O};async function PO(t){t.get("/list",async(e,r)=>{r.send({code:0,data:await RO(e.server)})}),t.put("/list",async(e,r)=>{await wMe(e.server,e.body.list),r.send({code:0})}),t.delete("/list",async(e,r)=>{await SMe(e.server),r.send({code:0})})}var BZ=$e(CP(),1);async function CO(t){t.get("/",async(e,r)=>{r.header("Content-Disposition",`attachment; filename="config.${(0,BZ.default)().format("YYYY-MM-DD")}.json"`);let n=await e.server.db.getData("/");r.send(JSON.stringify(n,null,4))}),t.put("/",async(e,r)=>{await e.server.db.push("/",e.body),r.send({code:0})})}var AMe=["https://mihdr.top","http://xiaomi666.fun","http://www.miqk.cc","https://xiaomiai.site"],TMe=async t=>(await t.db.getObjectDefault("/zhizhen",{}))?.urls||t.config.zhizhen?.urls||AMe,$Me=async(t,e)=>{await t.db.push("/zhizhen/urls",e)},RMe=async t=>{await t.db.delete("/zhizhen/urls")};async function OO(t){t.get("/urls",async(e,r)=>{r.send({code:0,data:await TMe(e.server)})}),t.put("/urls",async(e,r)=>{await $Me(e.server,e.body),r.send({code:0})}),t.delete("/urls",async(e,r)=>{await RMe(e.server),r.send({code:0})})}async function IO(t){t.get("/",(e,r)=>{r.type("text/html").send(` - - - - - \u9996\u9875 - - -
- - - - - - - - - - `)}),t.register(gO,{prefix:"/quark"}),t.register(JC,{prefix:"/uc"}),t.register(vO,{prefix:"/uc-tv"}),t.register(q2,{prefix:"/115"}),t.register(xO,{prefix:"/muou"}),t.register(_O,{prefix:"/tianyi"}),t.register(bO,{prefix:"/wogg"}),t.register(EO,{prefix:"/leijing"}),t.register(OO,{prefix:"/zhizhen"}),t.register(wO,{prefix:"/tgsou"}),t.register(SO,{prefix:"/pan123"}),t.register(AO,{prefix:"/ali"}),t.register(TO,{prefix:"/tgchannel"}),t.register(M2,{prefix:"/sites"}),t.register(PO,{prefix:"/pans"}),t.register(CO,{prefix:"/backup"}),t.register(B2,{prefix:"/danmu"}),t.register(V2,{prefix:"/t4"}),t.register(K2,{prefix:"/cms"})}var UZ=$e(require("os"),1),NO=t=>t?.find(e=>e.family==="IPv4")?.address,zZ=function(){let t=UZ.default.networkInterfaces();return NO(t.en0)||NO(t.en1)||NO(t.en2)||"127.0.0.1"};var bt=null;async function PMe(t){bt=(0,HZ.default)({serverFactory:catServerFactory,forceCloseConnections:!0,logger:process.env.NODE_ENV!=="development",maxParamLength:10240}),globalThis.messageToDart=bt.messageToDart=async i=>{try{console.log("messageToDart",i);let s=catDartServerPort();return s==0?null:(await le.post(`http://127.0.0.1:${s}/msg`,i)).data}catch(s){return console.error(s),null}},bt.address=function(){let i=this.server.address();return i.url=`http://${zZ()}:${i.port}`,i.dynamic="js2p://_WEB_",i},bt.addHook("onError",async(i,s,o)=>(console.error(o),o.statusCode||(o.statusCode=500),o)),bt.stop=!1,bt.config=t,bt.db=new Ox.JsonDB(new Ox.Config((process.env.NODE_PATH||".")+"/default.db.json",!0,!0,"/",!0));let e=bt.db.push.bind(bt.db);bt.db.push=async(...i)=>{let s=await e(...i);return bt.db.getData("/").then(o=>{bt.messageToDart({action:"saveProfile",opt:o})}),s};let r=bt.db.delete.bind(bt.db);bt.db.delete=async(...i)=>{let s=await r(...i);return bt.db.getData("/").then(o=>{bt.messageToDart({action:"saveProfile",opt:o})}),s},bt.messageToDart({action:"queryProfile"}).then(i=>{i&&Object.keys(i).length>0&&e("/",i||{})}),bt.register(J2,{db:bt.db,config:t}),bt.register(IO,{prefix:"/website"}),globalThis.Pans=await RO(bt),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=>{bt.listen({port:process.env.DEV_HTTP_PORT||i,host:"0.0.0.0"},(s,o)=>{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 ${o}`)})};n(9988)}async function CMe(){bt&&(bt.close(),bt.stop=!0),bt=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 - * @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 *) - -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 - *) - -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 - *) - -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 (https://github.com/71104) - * Released under the MIT license - * Copyright (c) 2015 Alberto La Rocca *) -*/