homebridge-config-ui-x 5.0.0-beta.53 → 5.0.0-beta.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -3
- package/dist/core/config/config.service.js +4 -1
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/package.json +15 -15
- package/public/chunk-2DTLVEZT.js +1 -0
- package/public/chunk-2FUKJXA2.js +1 -0
- package/public/{chunk-MJJZV2ZZ.js → chunk-3JTVYTOV.js} +1 -1
- package/public/chunk-3R46QOCE.js +1 -0
- package/public/chunk-3TOJYAHV.js +1 -0
- package/public/chunk-4IP5DDXE.js +1 -0
- package/public/{chunk-XBIY2EKP.js → chunk-5BZGZWPU.js} +1 -1
- package/public/chunk-5CDZD4QO.js +1 -0
- package/public/{chunk-ESRGAJUF.js → chunk-5NJQH2A3.js} +1 -1
- package/public/{chunk-JMXJZ2Q7.js → chunk-6GWRWBF2.js} +1 -1
- package/public/{chunk-CPYAFTPH.js → chunk-6MIOQ7Y5.js} +1 -1
- package/public/chunk-6MX25OCF.js +1 -0
- package/public/chunk-7EVWOJST.js +1 -0
- package/public/{chunk-C7B7J3YU.js → chunk-7HGOM4YX.js} +1 -1
- package/public/{chunk-XHTRCMG4.js → chunk-AKQE7OWM.js} +1 -1
- package/public/{chunk-MNIEFP5R.js → chunk-BEBVDUK5.js} +1 -1
- package/public/chunk-CEHKV4IM.js +1 -0
- package/public/{chunk-2OUYQIDT.js → chunk-D5WEMCFU.js} +2 -2
- package/public/{chunk-ZJTXU2GZ.js → chunk-D6PHTILW.js} +1 -1
- package/public/{chunk-ATZCPOHY.js → chunk-DFISUNQT.js} +1 -1
- package/public/{chunk-JN4WEHM3.js → chunk-F2WFV5GW.js} +1 -1
- package/public/{chunk-RP6EJVPS.js → chunk-GDNT2HPK.js} +1 -1
- package/public/{chunk-SD472BD2.js → chunk-GHPAEKNM.js} +1 -1
- package/public/{chunk-2TXKGWMR.js → chunk-GZMSZZVX.js} +1 -1
- package/public/{chunk-X3WLRBIN.js → chunk-HMDNUXTY.js} +1 -1
- package/public/{chunk-I5QQRRPS.js → chunk-HQDY2QYB.js} +1 -1
- package/public/{chunk-XSZWYGN5.js → chunk-IEBQX6HS.js} +1 -1
- package/public/{chunk-H3B6SNLD.js → chunk-IRTFX6CU.js} +1 -1
- package/public/{chunk-YYVRF4AL.js → chunk-JE3LI7IZ.js} +1 -1
- package/public/chunk-JGMDXNMZ.js +1 -0
- package/public/chunk-KAI32HWM.js +1 -0
- package/public/chunk-KD5YLOUW.js +2 -0
- package/public/{chunk-NSTYUUFS.js → chunk-KIPITWHI.js} +1 -1
- package/public/{chunk-ADLO54TI.js → chunk-KJCIKCUI.js} +1 -1
- package/public/{chunk-6KTIHC4T.js → chunk-KLDACGOZ.js} +1 -1
- package/public/chunk-KPIML2SI.js +1 -0
- package/public/{chunk-FASTOCS5.js → chunk-L4PJSJOC.js} +1 -1
- package/public/{chunk-GZSXNYQC.js → chunk-LRGJFKOV.js} +1 -1
- package/public/{chunk-GKSJJJEG.js → chunk-LSEE5MJ5.js} +1 -1
- package/public/chunk-LTRMT3PM.js +1 -0
- package/public/{chunk-ZREFVRCJ.js → chunk-M5LTG544.js} +1 -1
- package/public/{chunk-A6T442AC.js → chunk-M5YMSV5J.js} +1 -1
- package/public/{chunk-ON2E7LVH.js → chunk-MJUBX7V2.js} +1 -1
- package/public/chunk-MKXFRTHP.js +1 -0
- package/public/{chunk-WCXU6QPE.js → chunk-MS2EQS6S.js} +1 -1
- package/public/{chunk-X7R5UQDS.js → chunk-NBOGF5S7.js} +1 -1
- package/public/chunk-NCJAIFQO.js +1 -0
- package/public/{chunk-HATWVP5C.js → chunk-NG3SOGCM.js} +1 -1
- package/public/{chunk-YCKXYAPE.js → chunk-NSDMDB7X.js} +1 -1
- package/public/chunk-O7E5GSDU.js +1 -0
- package/public/chunk-OAUVJEII.js +1 -0
- package/public/chunk-OIAU3DDH.js +1 -0
- package/public/{chunk-3QZ375B7.js → chunk-OKJ2T4EM.js} +1 -1
- package/public/chunk-OZD3PKS7.js +1 -0
- package/public/{chunk-2WNK6SOS.js → chunk-P5BH5BCJ.js} +1 -1
- package/public/chunk-PTKIJR4Y.js +1 -0
- package/public/{chunk-V65HN5SX.js → chunk-PVRKV6LM.js} +1 -1
- package/public/{chunk-7V7FVNQR.js → chunk-Q7NLVQF3.js} +1 -1
- package/public/{chunk-FNBFKTZI.js → chunk-QGC43YCF.js} +1 -1
- package/public/{chunk-6ILQEJNG.js → chunk-QGDGNYSY.js} +1 -1
- package/public/chunk-QNQ6DXDY.js +1 -0
- package/public/{chunk-BSQTJCCZ.js → chunk-R2MEYLU6.js} +1 -1
- package/public/chunk-R5HVCC65.js +1 -0
- package/public/{chunk-XEJ57GXO.js → chunk-RWT5SL6D.js} +1 -1
- package/public/chunk-SQV4HVMS.js +1 -0
- package/public/{chunk-MR2YBKPP.js → chunk-TQSZOE62.js} +1 -1
- package/public/{chunk-IFJS5HBB.js → chunk-TWFE7WAV.js} +1 -1
- package/public/chunk-UIW5IZLL.js +1 -0
- package/public/{chunk-MRUJHSFO.js → chunk-UQFNUGQM.js} +1 -1
- package/public/{chunk-WPESHLCE.js → chunk-UXXGHFQU.js} +1 -1
- package/public/{chunk-IC7Y4XQH.js → chunk-V233CDAY.js} +1 -1
- package/public/chunk-V7KKBEKT.js +7 -0
- package/public/chunk-V7N6TZL2.js +1 -0
- package/public/{chunk-R5JL6NY3.js → chunk-W6CTMNAG.js} +1 -1
- package/public/{chunk-6WEQLPNK.js → chunk-W7CPCAPT.js} +1 -1
- package/public/chunk-W7IALUEC.js +1 -0
- package/public/{chunk-OE7J5OFK.js → chunk-WNBSA3C7.js} +1 -1
- package/public/{chunk-CHKLSRJ3.js → chunk-X2NTV4U7.js} +1 -1
- package/public/{chunk-H22PVD4I.js → chunk-X7HV5PS7.js} +1 -1
- package/public/{chunk-JKRWJSXD.js → chunk-XCZREHWX.js} +1 -1
- package/public/{chunk-WSXVUEYM.js → chunk-YIYI7U2L.js} +1 -1
- package/public/chunk-YJ3F3IFM.js +1 -0
- package/public/chunk-ZSRQVLRE.js +1 -0
- package/public/index.html +2 -2
- package/public/main-WAIZFTFV.js +1 -0
- package/public/polyfills-IVGADV35.js +2 -0
- package/public/styles-GAKWEL7A.css +1 -0
- package/public/chunk-2SKV4EZG.js +0 -1
- package/public/chunk-3MX5DOL7.js +0 -1
- package/public/chunk-5YCO5TXF.js +0 -1
- package/public/chunk-7NJFL3V5.js +0 -1
- package/public/chunk-ASPLXDLK.js +0 -1
- package/public/chunk-BVKEUYDD.js +0 -1
- package/public/chunk-DNCUP6B7.js +0 -2
- package/public/chunk-ECYEAXRB.js +0 -1
- package/public/chunk-IU42UO7J.js +0 -1
- package/public/chunk-JUFP3U6F.js +0 -1
- package/public/chunk-JXE2EDWO.js +0 -1
- package/public/chunk-KUMEH2DS.js +0 -1
- package/public/chunk-KW4MJOSS.js +0 -1
- package/public/chunk-KXTEHFOE.js +0 -1
- package/public/chunk-LFQIH47S.js +0 -1
- package/public/chunk-LU42XXER.js +0 -1
- package/public/chunk-MF5APUVW.js +0 -1
- package/public/chunk-N23UCYUG.js +0 -1
- package/public/chunk-NTKR7QBR.js +0 -1
- package/public/chunk-NVNBNEFN.js +0 -7
- package/public/chunk-PNVUM7VV.js +0 -1
- package/public/chunk-PWQDJSBN.js +0 -1
- package/public/chunk-QTMHY65L.js +0 -1
- package/public/chunk-RDPAVLAZ.js +0 -1
- package/public/chunk-RK2BHUS3.js +0 -1
- package/public/chunk-SRUQ34W2.js +0 -1
- package/public/chunk-THWGBC4V.js +0 -1
- package/public/chunk-UL2YWIGQ.js +0 -1
- package/public/chunk-UTIL4E7P.js +0 -1
- package/public/chunk-ZS7TMHAN.js +0 -1
- package/public/main-BETLO3TF.js +0 -1
- package/public/polyfills-JNAS3VFQ.js +0 -2
- package/public/styles-CJ5TSDXW.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Wb as Ut,e as d,g as He,h as Lt,jc as Dt,kc as Ft,pb as _t,ta as qt,tb as xt}from"./chunk-
|
|
1
|
+
import{Wb as Ut,e as d,g as He,h as Lt,jc as Dt,kc as Ft,pb as _t,ta as qt,tb as xt}from"./chunk-V7KKBEKT.js";var zt=d((Dn,kt)=>{kt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=d(P=>{var st,Ve=[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];P.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};P.getSymbolTotalCodewords=function(t){return Ve[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var Q=d(w=>{w.L={bit:1};w.M={bit:0};w.Q={bit:3};w.H={bit:2};function Ke(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return w.L;case"m":case"medium":return w.M;case"q":case"quartile":return w.Q;case"h":case"high":return w.H;default:throw new Error("Unknown EC Level: "+n)}}w.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};w.from=function(t,e){if(w.isValid(t))return t;try{return Ke(t)}catch{return e}}});var Kt=d((zn,Vt)=>{function Ht(){this.buffer=[],this.length=0}Ht.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Vt.exports=Ht});var Ot=d((Hn,Jt)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Jt.exports=k});var Yt=d(j=>{var Je=I().getSymbolSize;j.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=Je(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s<e-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};j.getPositions=function(t){let e=[],r=j.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||e.push([r[i],r[s]]);return e}});var vt=d(jt=>{var Oe=I().getSymbolSize,Qt=7;jt.getPositions=function(t){let e=Oe(t);return[[0,0],[e-Qt,0],[0,e-Qt]]}});var Gt=d(g=>{g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};g.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};g.from=function(t){return g.isValid(t)?parseInt(t,10):void 0};g.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c<e;c++){o=i=0,s=u=null;for(let l=0;l<e;l++){let a=t.get(c,l);a===s?o++:(o>=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};g.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&r++}return r*b.N2};g.getPenaltyN3=function(t){let e=t.size,r=0,o=0,i=0;for(let s=0;s<e;s++){o=i=0;for(let u=0;u<e;u++)o=o<<1&2047|t.get(s,u),u>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};g.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i<r;i++)e+=t.data[i];return Math.abs(Math.ceil(e*100/r/5)-10)*b.N4};function Ye(n,t,e){switch(n){case g.Patterns.PATTERN000:return(t+e)%2===0;case g.Patterns.PATTERN001:return t%2===0;case g.Patterns.PATTERN010:return e%3===0;case g.Patterns.PATTERN011:return(t+e)%3===0;case g.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case g.Patterns.PATTERN101:return t*e%2+t*e%3===0;case g.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case g.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}g.applyMask=function(t,e){let r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,Ye(t,i,o))};g.getBestMask=function(t,e){let r=Object.keys(g.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){e(s),g.applyMask(s,t);let u=g.getPenaltyN1(t)+g.getPenaltyN2(t)+g.getPenaltyN3(t)+g.getPenaltyN4(t);g.applyMask(s,t),u<i&&(i=u,o=s)}return o}});var ct=d(ut=>{var N=Q(),v=[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],G=[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];ut.getBlocksCount=function(t,e){switch(e){case N.L:return v[(t-1)*4+0];case N.M:return v[(t-1)*4+1];case N.Q:return v[(t-1)*4+2];case N.H:return v[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return G[(t-1)*4+0];case N.M:return G[(t-1)*4+1];case N.Q:return G[(t-1)*4+2];case N.H:return G[(t-1)*4+3];default:return}}});var $t=d(W=>{var z=new Uint8Array(512),$=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,$[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return $[t]};W.exp=function(t){return z[t]};W.mul=function(t,e){return t===0||e===0?0:z[$[t]+$[e]]}});var Wt=d(H=>{var lt=$t();H.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=lt.mul(t[o],e[i]);return r};H.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let o=r[0];for(let s=0;s<e.length;s++)r[s]^=lt.mul(e[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};H.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let r=0;r<t;r++)e=H.mul(e,new Uint8Array([1,lt.exp(r)]));return e}});var te=d((jn,Xt)=>{var Zt=Wt();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=Zt.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Zt.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};Xt.exports=at});var ft=d(ee=>{ee.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var dt=d(B=>{var ne="[0-9]+",Qe="[A-Z $%*+\\-./:]+",V="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";V=V.replace(/u/g,"\\u");var je="(?:(?![A-Z0-9 $%*+\\-./:]|"+V+`)(?:.|[\r
|
|
2
2
|
]))+`;B.KANJI=new RegExp(V,"g");B.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");B.BYTE=new RegExp(je,"g");B.NUMERIC=new RegExp(ne,"g");B.ALPHANUMERIC=new RegExp(Qe,"g");var ve=new RegExp("^"+V+"$"),Ge=new RegExp("^"+ne+"$"),$e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");B.testKanji=function(t){return ve.test(t)};B.testNumeric=function(t){return Ge.test(t)};B.testAlphanumeric=function(t){return $e.test(t)}});var M=d(p=>{var We=ft(),gt=dt();p.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};p.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};p.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};p.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};p.MIXED={bit:-1};p.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!We.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};p.getBestModeForData=function(t){return gt.testNumeric(t)?p.NUMERIC:gt.testAlphanumeric(t)?p.ALPHANUMERIC:gt.testKanji(t)?p.KANJI:p.BYTE};p.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};p.isValid=function(t){return t&&t.bit&&t.ccBits};function Ze(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return p.NUMERIC;case"alphanumeric":return p.ALPHANUMERIC;case"kanji":return p.KANJI;case"byte":return p.BYTE;default:throw new Error("Unknown mode: "+n)}}p.from=function(t,e){if(p.isValid(t))return t;try{return Ze(t)}catch{return e}}});var ue=d(R=>{var Z=I(),Xe=ct(),re=Q(),S=M(),ht=ft(),ie=7973,oe=Z.getBCHDigit(ie);function tn(n,t,e){for(let r=1;r<=40;r++)if(t<=R.getCapacity(r,e,n))return r}function se(n,t){return S.getCharCountIndicator(n,t)+4}function en(n,t){let e=0;return n.forEach(function(r){let o=se(r.mode,t);e+=o+r.getBitsLength()}),e}function nn(n,t){for(let e=1;e<=40;e++)if(en(n,e)<=R.getCapacity(e,t,S.MIXED))return e}R.from=function(t,e){return ht.isValid(t)?parseInt(t,10):e};R.getCapacity=function(t,e,r){if(!ht.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=S.BYTE);let o=Z.getSymbolTotalCodewords(t),i=Xe.getTotalCodewordsCount(t,e),s=(o-i)*8;if(r===S.MIXED)return s;let u=s-se(r,t);switch(r){case S.NUMERIC:return Math.floor(u/10*3);case S.ALPHANUMERIC:return Math.floor(u/11*2);case S.KANJI:return Math.floor(u/13);case S.BYTE:default:return Math.floor(u/8)}};R.getBestVersionForData=function(t,e){let r,o=re.from(e,re.M);if(Array.isArray(t)){if(t.length>1)return nn(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return tn(r.mode,r.getLength(),o)};R.getEncodedBits=function(t){if(!ht.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;Z.getBCHDigit(e)-oe>=0;)e^=ie<<Z.getBCHDigit(e)-oe;return t<<12|e}});var fe=d(ae=>{var pt=I(),le=1335,rn=21522,ce=pt.getBCHDigit(le);ae.getEncodedBits=function(t,e){let r=t.bit<<3|e,o=r<<10;for(;pt.getBCHDigit(o)-ce>=0;)o^=le<<pt.getBCHDigit(o)-ce;return(r<<10|o)^rn}});var ge=d((Xn,de)=>{var on=M();function _(n){this.mode=on.NUMERIC,this.data=n.toString()}_.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};_.prototype.getLength=function(){return this.data.length};_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)};_.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-e;i>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,i*3+1))};de.exports=_});var pe=d((tr,he)=>{var sn=M(),mt=["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 x(n){this.mode=sn.ALPHANUMERIC,this.data=n}x.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=mt.indexOf(this.data[e])*45;r+=mt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(mt.indexOf(this.data[e]),6)};he.exports=x});var we=d((er,me)=>{var un=M();function U(n){this.mode=un.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};me.exports=U});var Ee=d((nr,ye)=>{var cn=M(),ln=I();function D(n){this.mode=cn.KANJI,this.data=n}D.getBitsLength=function(t){return t*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=ln.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
3
|
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};ye.exports=D});var Ce=d((rr,wt)=>{"use strict";var K={single_source_shortest_paths:function(n,t,e){var r={},o={};o[t]=0;var i=K.PriorityQueue.make();i.push(t,0);for(var s,u,c,l,a,m,h,y,A;!i.empty();){s=i.pop(),u=s.value,l=s.cost,a=n[u]||{};for(c in a)a.hasOwnProperty(c)&&(m=a[c],h=l+m,y=o[c],A=typeof o[c]>"u",(A||y>h)&&(o[c]=h,i.push(c,h),r[c]=u))}if(typeof e<"u"&&typeof o[e]>"u"){var T=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(T)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,o;r;)e.push(r),o=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=K.single_source_shortest_paths(n,t,e);return K.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=K.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof wt<"u"&&(wt.exports=K)});var Pe=d(F=>{var f=M(),Te=ge(),Ie=pe(),Ne=we(),Me=Ee(),J=dt(),X=I(),an=Ce();function Be(n){return unescape(encodeURIComponent(n)).length}function O(n,t,e){let r=[],o;for(;(o=n.exec(e))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function Se(n){let t=O(J.NUMERIC,f.NUMERIC,n),e=O(J.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return X.isKanjiModeEnabled()?(r=O(J.BYTE,f.BYTE,n),o=O(J.KANJI,f.KANJI,n)):(r=O(J.BYTE_KANJI,f.BYTE,n),o=[]),t.concat(e,r,o).sort(function(s,u){return s.index-u.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function yt(n,t){switch(t){case f.NUMERIC:return Te.getBitsLength(n);case f.ALPHANUMERIC:return Ie.getBitsLength(n);case f.KANJI:return Me.getBitsLength(n);case f.BYTE:return Ne.getBitsLength(n)}}function fn(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function dn(n){let t=[];for(let e=0;e<n.length;e++){let r=n[e];switch(r.mode){case f.NUMERIC:t.push([r,{data:r.data,mode:f.ALPHANUMERIC,length:r.length},{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.ALPHANUMERIC:t.push([r,{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.KANJI:t.push([r,{data:r.data,mode:f.BYTE,length:Be(r.data)}]);break;case f.BYTE:t.push([{data:r.data,mode:f.BYTE,length:Be(r.data)}])}}return t}function gn(n,t){let e={},r={start:{}},o=["start"];for(let i=0;i<n.length;i++){let s=n[i],u=[];for(let c=0;c<s.length;c++){let l=s[c],a=""+i+c;u.push(a),e[a]={node:l,lastCount:0},r[a]={};for(let m=0;m<o.length;m++){let h=o[m];e[h]&&e[h].node.mode===l.mode?(r[h][a]=yt(e[h].lastCount+l.length,l.mode)-yt(e[h].lastCount,l.mode),e[h].lastCount+=l.length):(e[h]&&(e[h].lastCount=l.length),r[h][a]=yt(l.length,l.mode)+4+f.getCharCountIndicator(l.mode,t))}}o=u}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:e}}function Ae(n,t){let e,r=f.getBestModeForData(n);if(e=f.from(t,r),e!==f.BYTE&&e.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(e)+`.
|
|
4
4
|
Suggested mode is: `+f.toString(r));switch(e===f.KANJI&&!X.isKanjiModeEnabled()&&(e=f.BYTE),e){case f.NUMERIC:return new Te(n);case f.ALPHANUMERIC:return new Ie(n);case f.KANJI:return new Me(n);case f.BYTE:return new Ne(n)}}F.fromArray=function(t){return t.reduce(function(e,r){return typeof r=="string"?e.push(Ae(r,null)):r.data&&e.push(Ae(r.data,r.mode)),e},[])};F.fromString=function(t,e){let r=Se(t,X.isKanjiModeEnabled()),o=dn(r),i=gn(o,e),s=an.find_path(i.map,"start","end"),u=[];for(let c=1;c<s.length-1;c++)u.push(i.table[s[c]].node);return F.fromArray(fn(u))};F.rawSplit=function(t){return F.fromArray(Se(t,X.isKanjiModeEnabled()))}});var Re=d(be=>{var et=I(),Et=Q(),hn=Kt(),pn=Ot(),mn=Yt(),wn=vt(),At=Gt(),Tt=ct(),yn=te(),tt=ue(),En=fe(),Cn=M(),Ct=Pe();function Bn(n,t){let e=n.size,r=wn.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],s=r[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||e<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||e<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?n.set(i+u,s+c,!0,!0):n.set(i+u,s+c,!1,!0))}}function An(n){let t=n.size;for(let e=8;e<t-8;e++){let r=e%2===0;n.set(e,6,r,!0),n.set(6,e,r,!0)}}function Tn(n,t){let e=mn.getPositions(t);for(let r=0;r<e.length;r++){let o=e[r][0],i=e[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?n.set(o+s,i+u,!0,!0):n.set(o+s,i+u,!1,!0)}}function In(n,t){let e=n.size,r=tt.getEncodedBits(t),o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+e-8-3,s=(r>>u&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Bt(n,t,e){let r=n.size,o=En.getEncodedBits(t,e),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function Nn(n,t){let e=n.size,r=-1,o=e-1,i=7,s=0;for(let u=e-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!n.isReserved(o,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),n.set(o,u-c,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}function Mn(n,t,e){let r=new hn;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Cn.getCharCountIndicator(c.mode,n)),c.write(r)});let o=et.getSymbolTotalCodewords(n),i=Tt.getTotalCodewordsCount(n,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return Sn(r,n,t)}function Sn(n,t,e){let r=et.getSymbolTotalCodewords(t),o=Tt.getTotalCodewordsCount(t,e),i=r-o,s=Tt.getBlocksCount(t,e),u=r%s,c=s-u,l=Math.floor(r/s),a=Math.floor(i/s),m=a+1,h=l-a,y=new yn(h),A=0,T=new Array(s),bt=new Array(s),rt=0,ze=new Uint8Array(n.buffer);for(let q=0;q<s;q++){let it=q<c?a:m;T[q]=ze.slice(A,A+it),bt[q]=y.encode(T[q]),A+=it,rt=Math.max(rt,it)}let ot=new Uint8Array(r),Rt=0,E,C;for(E=0;E<rt;E++)for(C=0;C<s;C++)E<T[C].length&&(ot[Rt++]=T[C][E]);for(E=0;E<h;E++)for(C=0;C<s;C++)ot[Rt++]=bt[C][E];return ot}function Pn(n,t,e,r){let o;if(Array.isArray(n))o=Ct.fromArray(n);else if(typeof n=="string"){let l=t;if(!l){let a=Ct.rawSplit(n);l=tt.getBestVersionForData(a,e)}o=Ct.fromString(n,l||40)}else throw new Error("Invalid data");let i=tt.getBestVersionForData(o,e);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as cn}from"./chunk-KD5YLOUW.js";import{$ as j,A as De,Aa as jr,Ab as Wr,B as Mr,Ba as kr,C as kt,Ca as ie,Da as et,Ec as rt,Fb as Gr,Ga as Lr,Gb as Ht,Gc as nt,H as Z,Ha as Bt,Hb as Qr,Ib as Zr,Jb as Kr,Jc as it,K as re,L as ne,N as Lt,Nc as rn,O as de,Oc as nn,S as Je,Sa as $r,T as K,Tc as sn,U as $t,Uc as Ne,V as Dr,W as Er,Wb as Yr,Wc as on,Xc as fe,Yc as an,_ as Ur,a as h,aa as Nr,b as P,ba as w,bc as Xr,da as b,eb as zr,fc as Jr,ga as C,ha as Pr,hc as en,i as Ir,ia as xr,ic as tn,j as Ar,ja as O,ka as zt,l as _t,la as G,lb as Vt,m as jt,ma as p,mb as k,n as H,nb as Fr,nd as un,o as x,ob as qr,p as W,q as I,qa as pe,r as d,ra as $,rb as Br,s as Me,sb as tt,t as Tr,ta as Ee,tb as Vr,u as Or,ub as Hr,vb as Ue,x as m,xa as Ft,y as Xe,ya as _r,z as T,za as qt}from"./chunk-V7KKBEKT.js";var f="primary",He=Symbol("RouteTitle"),Kt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Kt(t)}function mn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function ci(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Yt(t):void 0,r=n?Yt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Rn(t[i],n[i]))return!1;return!0}function Yt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Rn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Sn(t){return t.length>0?t[t.length-1]:null}function te(t){return Tr(t)?t:Gr(t)?I(Promise.resolve(t)):d(t)}var li={exact:Cn,subset:wn},yn={exact:hi,subset:di,ignored:()=>!0};function ln(t,n,e){return li[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function hi(t,n){return z(t,n)}function Cn(t,n,e){if(!se(t.segments,n.segments)||!at(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Cn(t.children[r],n.children[r],e))return!1;return!0}function di(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Rn(t[e],n[e]))}function wn(t,n,e){return bn(t,n,n.segments,e)}function bn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!se(i,e)||n.hasChildren()||!at(i,e,r))}else if(t.segments.length===e.length){if(!se(t.segments,e)||!at(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!wn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!se(t.segments,i)||!at(t.segments,i,r)||!t.children[f]?!1:bn(t.children[f],n,o,r)}}function at(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var q=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){return gi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ut(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){var n;return(n=this._parameterMap)!=null||(this._parameterMap=ae(this.parameters)),this._parameterMap}toString(){return An(this)}};function pi(t,n){return se(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function se(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function fi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ue=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new X,providedIn:"root"})}return t})(),X=class{parse(n){let e=new Jt(n);return new q(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Pe(n.root,!0)}`,r=Ri(n.queryParams),i=typeof n.fragment=="string"?`#${vi(n.fragment)}`:"";return`${e}${r}${i}`}},gi=new X;function ut(t){return t.segments.map(n=>An(n)).join("/")}function Pe(t,n){if(!t.hasChildren())return ut(t);if(n){let e=t.children[f]?Pe(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Pe(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=fi(t,(r,i)=>i===f?[Pe(t.children[f],!1)]:[`${i}:${Pe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ut(t)}/${e[0]}`:`${ut(t)}/(${e.join("//")})`}}function In(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(t){return In(t).replace(/%3B/gi,";")}function vi(t){return encodeURI(t)}function Xt(t){return In(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(t){return decodeURIComponent(t)}function hn(t){return ct(t.replace(/\+/g,"%20"))}function An(t){return`${Xt(t.path)}${mi(t.parameters)}`}function mi(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function Ri(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${st(e)}=${st(i)}`).join("&"):`${st(e)}=${st(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Si=/^[^\/()?;#]+/;function Wt(t){let n=t.match(Si);return n?n[0]:""}var yi=/^[^\/()?;=#]+/;function Ci(t){let n=t.match(yi);return n?n[0]:""}var wi=/^[^=?&#]+/;function bi(t){let n=t.match(wi);return n?n[0]:""}var Ii=/^[^&#]+/;function Ai(t){let n=t.match(Ii);return n?n[0]:""}var Jt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new v(n,e)),r}parseSegment(){let n=Wt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Y(ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Wt(this.remaining);i&&(r=i,this.capture(r))}n[ct(e)]=ct(r)}parseQueryParam(n){let e=bi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Ai(this.remaining);s&&(r=s,this.capture(r))}let i=hn(e),o=hn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Wt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[f]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function Tn(t){return t.segments.length>0?new v([],{[f]:t}):t}function On(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=On(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return Ti(e)}function Ti(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof q}function Mn(t,n,e=null,r=null){let i=Dn(t);return En(i,n,e,r)}function Dn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=Tn(r);return n!=null?n:i}function En(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Gt(i,i,i,e,r);let o=Oi(n);if(o.toRoot())return Gt(i,i,new v([],{}),e,r);let s=Mi(o,i,t),a=s.processChildren?_e(s.segmentGroup,s.index,o.commands):Nn(s.segmentGroup,s.index,o.commands);return Gt(i,s.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Gt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===n?s=e:s=Un(t,n,e);let a=Tn(On(s));return new q(a,o,i)}function Un(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Un(o,n,e)}),new v(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new b(4003,!1);let i=r.find(ke);if(i&&i!==Sn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Oi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Mi(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return Di(e,i,t.numberOfDoubleDots)}function Di(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new me(r,!1,i-o)}function Ei(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Nn(t,n,e){if(t!=null||(t=new v([],{})),t.segments.length===0&&t.hasChildren())return _e(t,n,e);let r=Ui(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(t.segments.slice(r.pathIndex),t.children),_e(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?_e(t,0,i):er(t,n,e)}function _e(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ei(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=_e(t.children[f],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Nn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function Ui(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!pn(u,c,s))return o;r+=2}else{if(!pn(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let u=Ni(o.outlets);return new v(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Y(u.path,dn(e[0]))),i++;continue}let s=ke(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ht(a)?(r.push(new Y(s,dn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function Ni(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new v([],{}),0,r))}),n}function dn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function pn(t,n,e){return t==e.path&&z(n,e.parameters)}var lt="imperative",y=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(y||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends U{type=y.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},N=class extends U{urlAfterRedirects;type=y.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(M||{}),Se=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Se||{}),F=class extends U{reason;code;type=y.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=y.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ye=class extends U{error;target;type=y.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Le=class extends U{urlAfterRedirects;state;type=y.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends U{urlAfterRedirects;state;type=y.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends U{urlAfterRedirects;state;shouldActivate;type=y.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends U{urlAfterRedirects;state;type=y.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends U{urlAfterRedirects;state;type=y.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=y.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=y.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},St=class{snapshot;type=y.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=y.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=y.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=y.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ce=class{routerEvent;position;anchor;type=y.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},$e=class{},we=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Pi(t,n){var e;return t.providers&&!t._injector&&(t._injector=tt(t.providers,n,`Route: ${t.path}`)),(e=t._injector)!=null?e:n}function L(t){return t.outlet||f}function xi(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function We(t){var n;if(!t)return null;if((n=t.routeConfig)!=null&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var n,e;return(e=We((n=this.route)==null?void 0:n.snapshot))!=null?e:this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ce(this.rootInjector)}},ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(G(pe))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var E=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ze=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function Pn(t){let n=_i(t),e=new x([new Y("",{})]),r=new x({}),i=new x({}),o=new x({}),s=new x(""),a=new Q(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new ze(new E(a,[]),n)}function _i(t){let n={},e={},r={},i="",o=new oe([],n,r,i,e,f,t,null,{});return new Fe("",new E(o,[]))}var Q=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){var c,l;this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(m(g=>g[He])))!=null?l:d(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var n;return(n=this._paramMap)!=null||(this._paramMap=this.params.pipe(m(e=>ae(e)))),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(m(e=>ae(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){var o,s;let r,{routeConfig:i}=t;return n!==null&&(e==="always"||(i==null?void 0:i.path)===""||!n.component&&!((o=n.routeConfig)!=null&&o.loadComponent))?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i==null?void 0:i.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(s=t._resolvedData)!=null?s:{})},i&&_n(i)&&(r.resolve[He]=i.title),r}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var n;return(n=this.data)==null?void 0:n[He]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var n;return(n=this._paramMap)!=null||(this._paramMap=ae(this.params)),this._paramMap}get queryParamMap(){var n;return(n=this._queryParamMap)!=null||(this._queryParamMap=ae(this.queryParams)),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Fe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return xn(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function xn(t){let n=t.children.length>0?` { ${t.children.map(xn).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),ci(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=z(t.params,n.params)&&pi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var jn=new O(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Lr(void 0);parentContexts=p(ce);location=p(qr);changeDetector=p(nt);inputBinder=p(Ge,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var r;return((r=this.parentContexts.getContext(e))==null?void 0:r.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){var i;this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){var c;if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ee]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Q?this.route:n===ce?this.childContexts:n===jn?this.outletData:this.parent.get(n,e)}},Ge=new O(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var r;(r=this.outletDataSubscriptions.get(e))==null||r.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Xe([r.queryParams,r.params,r.data]).pipe(j(([o,s,a],u)=>(a=h(h(h({},o),s),a),u===0?d(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=rn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function ji(t,n,e){let r=qe(t,n._root,e?e._root:void 0);return new ze(r,n)}function qe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=ki(t,n,e);return new E(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>qe(t,a)),s}}let r=Li(n.value),i=n.children.map(o=>qe(t,o));return new E(r,i)}}function ki(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return qe(t,r,i);return qe(t,r)})}function Li(t){return new Q(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},kn="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Ln(!1,M.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Ln(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[kn]=!0,e.cancellationCode=n,e}function $i(t){return $n(t)&&J(t.url)}function $n(t){return!!t&&t[kn]}var zi=(t,n,e,r)=>m(i=>(new sr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),sr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new wt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new yt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Qt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Ot=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Fi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ae(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!xr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(n);return t.children.forEach(s=>{Bi(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Bi(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Vi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ot(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new Ot(r)),o.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Vi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!se(t.url,n.url);case"pathParamsOrQueryParamsChange":return!se(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Re(n.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Qe(t){return typeof t=="function"}function Hi(t){return typeof t=="boolean"}function Wi(t){return t&&Qe(t.canLoad)}function Gi(t){return t&&Qe(t.canActivate)}function Qi(t){return t&&Qe(t.canActivateChild)}function Zi(t){return t&&Qe(t.canDeactivate)}function Ki(t){return t&&Qe(t.canMatch)}function zn(t){return t instanceof Or||(t==null?void 0:t.name)==="EmptyError"}var ot=Symbol("INITIAL_VALUE");function Ie(){return j(t=>Xe(t.map(n=>n.pipe(de(1),Ur(ot)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===ot)return ot;if(e===!1||Yi(e))return e}return!0}),Z(n=>n!==ot),de(1)))}function Yi(t){return J(t)||t instanceof be}function Xi(t,n){return T(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(P(h({},e),{guardsResult:!0})):Ji(s,r,i,t).pipe(T(a=>a&&Hi(a)?es(r,o,t,n):d(a)),m(a=>P(h({},e),{guardsResult:a})))})}function Ji(t,n,e,r){return I(t).pipe(T(i=>ss(i.component,i.route,e,n,r)),K(i=>i!==!0,!0))}function es(t,n,e,r){return I(n).pipe(ne(i=>Mr(rs(i.route.parent,r),ts(i.route,r),is(t,i.path,e),ns(t,i.route,e))),K(i=>i!==!0,!0))}function ts(t,n){return t!==null&&n&&n(new Ct(t)),d(!0)}function rs(t,n){return t!==null&&n&&n(new St(t)),d(!0)}function ns(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let i=r.map(o=>kt(()=>{var c;let s=(c=We(n))!=null?c:e,a=Ae(o,s),u=Gi(a)?a.canActivate(n,t):$(s,()=>a(n,t));return te(u).pipe(K())}));return d(i).pipe(Ie())}function is(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>qi(s)).filter(s=>s!==null).map(s=>kt(()=>{let a=s.guards.map(u=>{var R;let c=(R=We(s.node))!=null?R:e,l=Ae(u,c),g=Qi(l)?l.canActivateChild(r,t):$(c,()=>l(r,t));return te(g).pipe(K())});return d(a).pipe(Ie())}));return d(o).pipe(Ie())}function ss(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(a=>{var g;let u=(g=We(n))!=null?g:i,c=Ae(a,u),l=Zi(c)?c.canDeactivate(t,n,e,r):$(u,()=>c(t,n,e,r));return te(l).pipe(K())});return d(s).pipe(Ie())}function os(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let a=Ae(s,t),u=Wi(a)?a.canLoad(n,e):$(t,()=>a(n,e));return te(u)});return d(o).pipe(Ie(),Fn(r))}function Fn(t){return Ar(w(n=>{if(typeof n!="boolean")throw Tt(t,n)}),m(n=>n===!0))}function as(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let a=Ae(s,t),u=Ki(a)?a.canMatch(n,e):$(t,()=>a(n,e));return te(u)});return d(o).pipe(Ie(),Fn(r))}var Be=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new Be(t))}function us(t){return Me(new b(4e3,!1))}function cs(t){return Me(Ln(!1,M.GuardRejected))}var or=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return d(r);if(i.numberOfChildren>1||!i.children[f])return us(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let a=e,{queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,params:S,data:D,title:A}=i,_=$(o,()=>a({params:S,data:D,queryParams:u,fragment:c,routeConfig:l,url:g,outlet:R,title:A}));if(_ instanceof q)throw new Ve(_);e=_}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new Ve(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new q(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ls(t,n,e,r,i){let o=qn(t,n,e);return o.matched?(r=Pi(n,r),as(r,n,e,i).pipe(m(s=>s===!0?o:h({},ar)))):d(o)}function qn(t,n,e){var a,u;if(n.path==="**")return hs(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||mn)(e,t,n);if(!i)return h({},ar);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([c,l])=>{o[c]=l.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:(u=i.posParams)!=null?u:{}}}function hs(t){return{matched:!0,parameters:t.length>0?Sn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function fn(t,n,e,r){return e.length>0&&fs(t,e,r)?{segmentGroup:new v(n,ps(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&gs(t,e,r)?{segmentGroup:new v(t.segments,ds(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function ds(t,n,e,r){let i={};for(let o of e)if(Dt(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return h(h({},r),i)}function ps(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new v([],{});e[L(r)]=i}return e}function fs(t,n,e){return e.some(r=>Dt(t,n,r)&&L(r)!==f)}function gs(t,n,e){return e.some(r=>Dt(t,n,r))}function Dt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function vs(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function ms(t,n,e,r,i,o,s="emptyOnly"){return new cr(t,n,e,r,i,s,o).recognize()}var Rs=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new or(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=fn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new E(r,e),o=new Fe("",i),s=Mn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new oe([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(m(r=>({children:r,rootSnapshot:e})),re(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Be?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof E?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let a=r.children[s],u=xi(e,s);return this.processSegmentGroup(n,u,a,s,i)}),Er((s,a)=>(s.push(...a),s)),Lt(null),Dr(),T(s=>{if(s===null)return ge(r);let a=Bn(s);return Ss(a),d(a)}))}processSegment(n,e,r,i,o,s,a){return I(e).pipe(ne(u=>{var c;return this.processSegmentAgainstRoute((c=u._injector)!=null?c:n,e,u,r,i,o,s,a).pipe(re(l=>{if(l instanceof Be)return d(null);throw l}))}),K(u=>!!u),re(u=>{if(zn(u))return vs(r,i,o)?d(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return L(r)!==s&&(s===f||!Dt(i,o,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){var _,he;let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:g,remainingSegments:R}=qn(e,i,o);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Rs&&(this.allowRedirects=!1));let S=new oe(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,gn(i),L(i),(he=(_=i.component)!=null?_:i._loadedComponent)!=null?he:null,i,vn(i)),D=At(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(D.params),S.data=Object.freeze(D.data);let A=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,g,S,n);return this.applyRedirects.lineralizeSegments(i,A).pipe(T(Oe=>this.processSegment(n,r,e,Oe.concat(R),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=ls(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(j(u=>{var c;return u.matched?(n=(c=r._injector)!=null?c:n,this.getChildConfig(n,r,i).pipe(j(({routes:l})=>{var Cr,wr,br;let g=(Cr=r._loadedInjector)!=null?Cr:n,{parameters:R,consumedSegments:S,remainingSegments:D}=u,A=new oe(S,R,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,gn(r),L(r),(br=(wr=r.component)!=null?wr:r._loadedComponent)!=null?br:null,r,vn(r)),_=At(A,s,this.paramsInheritanceStrategy);A.params=Object.freeze(_.params),A.data=Object.freeze(_.data);let{segmentGroup:he,slicedSegments:Oe}=fn(e,S,D,l);if(Oe.length===0&&he.hasChildren())return this.processChildren(g,l,he,A).pipe(m(Ye=>new E(A,Ye)));if(l.length===0&&Oe.length===0)return d(new E(A,[]));let ai=L(r)===o;return this.processSegment(g,l,he,Oe,ai?f:o,!0,A).pipe(m(Ye=>new E(A,Ye instanceof E?[Ye]:[])))}))):ge(e)}))}getChildConfig(n,e,r){return e.children?d({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):os(n,e,r,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(n,e).pipe(w(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):cs(e))):d({routes:[],injector:n})}};function Ss(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function ys(t){let n=t.value.routeConfig;return n&&n.path===""}function Bn(t){let n=[],e=new Set;for(let r of t){if(!ys(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Bn(r.children);n.push(new E(r.value,i))}return n.filter(r=>!e.has(r))}function gn(t){return t.data||{}}function vn(t){return t.resolve||{}}function Cs(t,n,e,r,i,o){return T(s=>ms(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:a,tree:u})=>P(h({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function ws(t,n){return T(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Vn(u))s.add(c);let a=0;return I(s).pipe(ne(u=>o.has(u)?bs(u,r,t,n):(u.data=At(u,u.parent,t).resolve,d(void 0))),w(()=>a++),$t(1),T(u=>a===s.size?d(e):W))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function bs(t,n,e,r){let i=t.routeConfig,o=t._resolve;return(i==null?void 0:i.title)!==void 0&&!_n(i)&&(o[He]=i.title),Is(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=At(t,t.parent,e).resolve,null)))}function Is(t,n,e,r){let i=Yt(t);if(i.length===0)return d({});let o={};return I(i).pipe(T(s=>As(t[s],n,e,r).pipe(K(),w(a=>{if(a instanceof be)throw Tt(new X,a);o[s]=a}))),$t(1),m(()=>o),re(s=>zn(s)?W:Me(s)))}function As(t,n,e,r){var a;let i=(a=We(n))!=null?a:r,o=Ae(t,i),s=o.resolve?o.resolve(n,e):$(i,()=>o(n,e));return te(s)}function Zt(t){return j(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):d(n)})}var pr=(()=>{class t{buildTitle(e){var o;let r,i=e.root;for(;i!==void 0;)r=(o=this.getResolvedTitleForRoute(i))!=null?o:r,i=i.children.find(s=>s.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[He]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Hn),providedIn:"root"})}return t})(),Hn=(()=>{class t extends pr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(G(cn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),le=new O("",{providedIn:"root",factory:()=>({})}),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Vr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?P(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}var Te=new O(""),Et=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(m(Gn),w(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Je(()=>{this.componentLoaders.delete(e)})),i=new jt(r,()=>new H).pipe(_t());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Wn(r,this.compiler,e,this.onLoadEndListener).pipe(Je(()=>{this.childrenLoaders.delete(r)})),s=new jt(o,()=>new H).pipe(_t());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return te(t.loadChildren()).pipe(m(Gn),T(i=>i instanceof Br||Array.isArray(i)?d(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Te,[],{optional:!0,self:!0}).flat()),{routes:s.map(gr),injector:o}}))}function Ts(t){return t&&typeof t=="object"&&"default"in t}function Gn(t){return Ts(t)?t.default:t}var Ut=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Os),providedIn:"root"})}return t})(),Os=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new O(""),mr=new O("");function Qn(t,n,e){let r=t.get(mr),i=t.get(nn);return t.get(et).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),Ms(t))),{onViewTransitionCreated:u}=r;return u&&$(t,()=>u({transition:a,from:n,to:e})),s})}function Ms(t){return new Promise(n=>{$r({read:()=>setTimeout(n)},{injector:t})})}var Rr=new O(""),Nt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(Et);environmentInjector=p(pe);destroyRef=p(jr);urlSerializer=p(ue);rootContexts=p(ce);location=p(fe);inputBindingEnabled=p(Ge,{optional:!0})!==null;titleStrategy=p(pr);options=p(le,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Ut);createViewTransition=p(vr,{optional:!0});navigationErrorHandler=p(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let r=++this.navigationId;(i=this.transitions)==null||i.next(P(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(e){return this.transitions=new x(null),this.transitions.pipe(Z(r=>r!==null),j(r=>{let i=!1,o=!1;return d(r).pipe(j(s=>{var c;if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),W;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?P(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=(c=s.extras.onSameUrlNavigation)!=null?c:e.onSameUrlNavigation;if(!a&&u!=="reload"){let l="";return this.events.next(new B(s.id,this.urlSerializer.serialize(s.rawUrl),l,Se.IgnoredSameUrlNavigation)),s.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return d(s).pipe(j(l=>(this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?W:Promise.resolve(l))),Cs(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),w(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=P(h({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let g=new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:l,extractedUrl:g,source:R,restoredState:S,extras:D}=s,A=new ee(l,this.urlSerializer.serialize(g),R,S);this.events.next(A);let _=Pn(this.rootComponentType).snapshot;return this.currentTransition=r=P(h({},s),{targetSnapshot:_,urlAfterRedirects:g,extras:P(h({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,d(r)}else{let l="";return this.events.next(new B(s.id,this.urlSerializer.serialize(s.extractedUrl),l,Se.IgnoredByUrlHandlingStrategy)),s.resolve(!1),W}}),w(s=>{let a=new pt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),m(s=>(this.currentTransition=r=P(h({},s),{guards:Fi(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Xi(this.environmentInjector,s=>this.events.next(s)),w(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Tt(this.urlSerializer,s.guardsResult);let a=new ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Z(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",M.GuardRejected),!1)),Zt(s=>{if(s.guards.canActivateChecks.length!==0)return d(s).pipe(w(a=>{let u=new gt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),j(a=>{let u=!1;return d(a).pipe(ws(this.paramsInheritanceStrategy,this.environmentInjector),w({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(a,"",M.NoDataFromResolver)}}))}),w(a=>{let u=new vt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}))}),Zt(s=>{let a=u=>{var l;let c=[];(l=u.routeConfig)!=null&&l.loadComponent&&!u.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(u.routeConfig).pipe(w(g=>{u.component=g}),m(()=>{})));for(let g of u.children)c.push(...a(g));return c};return Xe(a(s.targetSnapshot.root)).pipe(Lt(null),de(1))}),Zt(()=>this.afterPreactivation()),j(()=>{var c;let{currentSnapshot:s,targetSnapshot:a}=r,u=(c=this.createViewTransition)==null?void 0:c.call(this,this.environmentInjector,s.root,a.root);return u?I(u).pipe(m(()=>r)):d(r)}),m(s=>{let a=ji(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=P(h({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),w(()=>{this.events.next(new $e)}),zi(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),de(1),w({next:s=>{var a;i=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new N(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),(a=this.titleStrategy)==null||a.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{i=!0}}),Nr(this.transitionAbortSubject.pipe(w(s=>{throw s}))),Je(()=>{var s;!i&&!o&&this.cancelNavigationTransition(r,"",M.SupersededByNewNavigation),((s=this.currentTransition)==null?void 0:s.id)===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),re(s=>{var a;if(this.destroyed)return r.resolve(!1),W;if(o=!0,$n(s))this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),$i(s)?this.events.next(new we(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let u=new ye(r.id,this.urlSerializer.serialize(r.extractedUrl),s,(a=r.targetSnapshot)!=null?a:void 0);try{let c=$(this.environmentInjector,()=>{var l;return(l=this.navigationErrorHandler)==null?void 0:l.call(this,u)});if(c instanceof be){let{message:l,cancellationCode:g}=Tt(this.urlSerializer,c);this.events.next(new F(r.id,this.urlSerializer.serialize(r.extractedUrl),l,g)),this.events.next(new we(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(u),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return W}))}))}cancelNavigationTransition(e,r,i){let o=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){var e,r;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((r=this.currentTransition)==null?void 0:r.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o,s,a;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=(s=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?s:(o=this.currentNavigation)==null?void 0:o.extractedUrl;return e.toString()!==(r==null?void 0:r.toString())&&!((a=this.currentNavigation)!=null&&a.extras.skipLocationChange)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ds(t){return t!==lt}var Zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Es),providedIn:"root"})}return t})(),Mt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Es=(()=>{class t extends Mt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kn=(()=>{class t{urlSerializer=p(ue);options=p(le,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(fe);urlHandlingStrategy=p(Ut);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new q;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i!=null?i:o;return s instanceof q?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Pn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e!=null?e:this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>p(Us),providedIn:"root"})}return t})(),Us=(()=>{class t extends Kn{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(r=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?r:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof B?this.commitTransition(r):e instanceof Le?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $e?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof F&&(e.code===M.GuardRejected||e.code===M.NoDataFromResolver)?this.restoreHistory(r):e instanceof ye?this.restoreHistory(r,!0):e instanceof N&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ft(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(Z(e=>e instanceof N||e instanceof F||e instanceof ye||e instanceof B),m(e=>e instanceof N||e instanceof B?0:(e instanceof F?e.code===M.Redirect||e.code===M.SupersededByNewNavigation:!1)?2:1),Z(e=>e!==2),de(1)).subscribe(()=>{n()})}var Ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ps={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},V=(()=>{var n,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Wr);stateManager=p(Kn);options=p(le,{optional:!0})||{};pendingTasks=p(kr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Nt);urlSerializer=p(ue);location=p(fe);urlHandlingStrategy=p(Ut);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Zn);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(n=p(Te,{optional:!0}))==null?void 0:n.flat())!=null?e:[];componentInputBindingEnabled=!!p(Ge,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ir;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(o=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(o,a),o instanceof F&&o.code!==M.Redirect&&o.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof N)this.navigated=!0;else if(o instanceof we){let u=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,s.currentRawUrl),l=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ds(s.source)},u);this.scheduleNavigation(c,lt,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}_s(o)&&this._events.next(o)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lt,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((o,s,a)=>{this.navigateToSyncWithBrowser(o,a,s)}))}navigateToSyncWithBrowser(i,o,s){let a={replaceUrl:!0},u=s!=null&&s.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,o,u,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,o={}){let{relativeTo:s,queryParams:a,fragment:u,queryParamsHandling:c,preserveFragment:l}=o,g=l?this.currentUrlTree.fragment:u,R=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":R=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":R=this.currentUrlTree.queryParams;break;default:R=a||null}R!==null&&(R=this.removeEmptyProps(R));let S;try{let D=s?s.snapshot:this.routerState.snapshot.root;S=Dn(D)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),S=this.currentUrlTree.root}return En(S,i,R,g!=null?g:null)}navigateByUrl(i,o={skipLocationChange:!1}){let s=J(i)?i:this.parseUrl(i),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,lt,null,o)}navigate(i,o={skipLocationChange:!1}){return xs(i),this.navigateByUrl(this.createUrlTree(i,o),o)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,o){let s;if(o===!0?s=h({},Ns):o===!1?s=h({},Ps):s=o,J(i))return ln(this.currentUrlTree,i,s);let a=this.parseUrl(i);return ln(this.currentUrlTree,a,s)}removeEmptyProps(i){return Object.entries(i).reduce((o,[s,a])=>(a!=null&&(o[s]=a),o),{})}scheduleNavigation(i,o,s,a,u){if(this.disposed)return Promise.resolve(!1);let c,l,g;u?(c=u.resolve,l=u.reject,g=u.promise):g=new Promise((S,D)=>{c=S,l=D});let R=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(R))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:a,resolve:c,reject:l,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(S=>Promise.reject(S))}static \u0275fac=function(o){return new(o||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xs(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function _s(t){return!(t instanceof $e)&&!(t instanceof we)}var xt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,r,i,o,s,a){var c;this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let u=(c=s.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof N&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:zr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(k(V),k(Q),_r("tabindex"),k(Vt),k(Bt),k(Ne))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Xr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Kr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",it],skipLocationChange:[2,"skipLocationChange","skipLocationChange",it],replaceUrl:[2,"replaceUrl","replaceUrl",it],routerLink:"routerLink"},features:[Ee]})}return t})(),js=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ie;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof N&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var r;(r=this.linkInputChangesSubscription)==null||r.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=I(e).pipe(De()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=ks(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(k(V),k(Bt),k(Vt),k(nt),k(xt,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Jr(o,xt,5),r&2){let s;en(s=tn())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ee]})}return t})();function ks(t){return!!t.paths}var Ze=class{};var Yn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Z(e=>e instanceof N),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){var o,s,a;let i=[];for(let u of r){u.providers&&!u._injector&&(u._injector=tt(u.providers,e,`Route: ${u.path}`));let c=(o=u._injector)!=null?o:e,l=(s=u._loadedInjector)!=null?s:c;(u.loadChildren&&!u._loadedRoutes&&u.canLoad===void 0||u.loadComponent&&!u._loadedComponent)&&i.push(this.preloadConfig(c,u)),(u.children||u._loadedRoutes)&&i.push(this.processRoutes(l,(a=u.children)!=null?a:u._loadedRoutes))}return I(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=d(null);let o=i.pipe(T(s=>{var a;return s===null?d(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes((a=s.injector)!=null?a:e,s.routes))}));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(De())}else return o})}static \u0275fac=function(r){return new(r||t)(G(V),G(rt),G(pe),G(Ze),G(Et))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Xn=new O(""),Ls=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||(s.scrollPositionRestoration="disabled"),s.anchorScrolling||(s.anchorScrolling="disabled")}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof B&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ce&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ce(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){var e,r;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(r=this.scrollEventsSubscription)==null||r.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function $s(t){return t.routerState.root}function Ke(t,n){return{\u0275kind:t,\u0275providers:n}}function zs(){let t=p(qt);return n=>{var o,s;let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(V),i=t.get(Jn);t.get(yr)===1&&r.initialNavigation(),(o=t.get(ri,null,zt.Optional))==null||o.setUpPreloading(),(s=t.get(Xn,null,zt.Optional))==null||s.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Jn=new O("",{factory:()=>new H}),yr=new O("",{providedIn:"root",factory:()=>1});function ei(){return Ke(2,[{provide:yr,useValue:0},{provide:Ht,multi:!0,deps:[qt],useFactory:n=>{let e=n.get(sn,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(V),o=n.get(Jn);Pt(i,()=>{r(!0)}),n.get(Nt).afterPreactivation=()=>(r(!0),o.closed?d(void 0):o),i.initialNavigation()}))}}])}function ti(){return Ke(3,[{provide:Ht,multi:!0,useFactory:()=>{let n=p(V);return()=>{n.setUpLocationChangeListener()}}},{provide:yr,useValue:2}])}var ri=new O("");function ni(t){return Ke(0,[{provide:ri,useExisting:Yn},{provide:Ze,useExisting:t}])}function ii(){return Ke(8,[dr,{provide:Ge,useExisting:dr}])}function si(t){let n=[{provide:vr,useValue:Qn},{provide:mr,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Ke(9,n)}var oi=[fe,{provide:ue,useClass:X},V,ce,{provide:Q,useFactory:$s,deps:[V]},Et,[]],Fs=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[oi,[],{provide:Te,multi:!0,useValue:e},[],r!=null&&r.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:le,useValue:r||{}},r!=null&&r.useHash?Bs():Vs(),qs(),r!=null&&r.preloadingStrategy?ni(r.preloadingStrategy).\u0275providers:[],r!=null&&r.initialNavigation?Hs(r):[],r!=null&&r.bindToComponentInputs?ii().\u0275providers:[],r!=null&&r.enableViewTransitions?si().\u0275providers:[],Ws()]}}static forChild(e){return{ngModule:t,providers:[{provide:Te,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Hr({type:t});static \u0275inj=Pr({})}return t})();function qs(){return{provide:Xn,useFactory:()=>{let t=p(un),n=p(et),e=p(le),r=p(Nt),i=p(ue);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ls(i,r,t,n,e)}}}function Bs(){return{provide:Ne,useClass:an}}function Vs(){return{provide:Ne,useClass:on}}function Hs(t){return[t.initialNavigation==="disabled"?ti().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ei().\u0275providers:[]]}var Sr=new O("");function Ws(){return[{provide:Sr,useFactory:zs},{provide:Qr,multi:!0,useExisting:Sr}]}export{N as a,Q as b,hr as c,V as d,xt as e,js as f,Fs as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as D}from"./chunk-
|
|
1
|
+
import{a as _,b as D}from"./chunk-MJUBX7V2.js";import{j as c,k as S}from"./chunk-NCJAIFQO.js";import{f as x}from"./chunk-KD5YLOUW.js";import{C as v,Oc as I,g as O,ga as h,h as a,ha as E,ja as y,la as l,ma as f,r as p,ub as j,w as d,x as T,z as w}from"./chunk-V7KKBEKT.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(I))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=j({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{m as a,F as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as E}from"./chunk-
|
|
1
|
+
import{a as E}from"./chunk-X2NTV4U7.js";import{d as w}from"./chunk-5CDZD4QO.js";import{b}from"./chunk-MJUBX7V2.js";import{h as k,k as S}from"./chunk-NCJAIFQO.js";import{a as $,b as T}from"./chunk-P5BH5BCJ.js";import{Ac as c,Bc as p,Cc as C,Kb as g,Pb as m,Ub as r,Vb as n,Wb as f,cb as v,cc as h,gb as i,ma as a,mc as o,nc as s,tb as _,wc as y,zb as x}from"./chunk-V7KKBEKT.js";var I=t=>({command:t});function R(t,u){t&1&&(r(0,"p",7),o(1),c(2,"translate"),n()),t&2&&(i(),s(p(2,1,"restart.please_wait_while_server_restarts")))}function D(t,u){if(t&1&&(r(0,"div",8),o(1),n()),t&2){let e=h();i(),s(e.error)}}function B(t,u){t&1&&(r(0,"div",9)(1,"div",11),f(2,"i",12),n()())}function M(t,u){if(t&1&&(r(0,"div",10)(1,"p"),o(2),c(3,"translate"),n(),f(4,"p",13),c(5,"translate"),n()),t&2){let e=h();i(2),s(p(3,2,"platform.docker.server_long_time")),i(2),g("innerHTML",C(5,4,"platform.docker.run_with_restart",y(7,I,e.command)),v)}}var N=(()=>{class t{$api=a(S);$router=a(w);$settings=a(b);$toastr=a(k);$translate=a($);$ws=a(E);checkTimeout;checkDelay;resp={};timeout=!1;error=!1;command='<span class="font-monospace">--restart=always</span>';io;constructor(){}ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/docker/restart-container",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{this.error=this.$translate.instant("restart.toast_server_restart_error"),console.error(e),this.$toastr.error(this.$translate.instant("restart.toast_server_restart_error"),this.$translate.instant("toast.title_error"))}})}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.docker.container_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},1e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("restart.toast_server_restart_timeout"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},6e4)}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}static \u0275fac=function(l){return new(l||t)};static \u0275cmp=_({type:t,selectors:[["ng-component"]],decls:15,vars:10,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fab","fa-fw","fa-docker",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"grey-text"],[1,"alert","alert-error","my-4"],[1,"justify-content-center","my-4"],[1,"alert","alert-warning","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"],[1,"grey-text","mb-0",3,"innerHTML"]],template:function(l,d){l&1&&(r(0,"div",0)(1,"h3",1),o(2),c(3,"translate"),n()(),r(4,"div",2)(5,"div",3),f(6,"i",4),n(),r(7,"div",5)(8,"h4",6),o(9),c(10,"translate"),n(),x(11,R,3,3,"p",7)(12,D,2,1,"div",8)(13,B,3,0,"div",9)(14,M,6,9,"div",10),n()()),l&2&&(i(2),s(p(3,6,"menu.restart.title")),i(7),s(p(10,8,"platform.docker.title_restarting")),i(2),m(d.error?-1:11),i(),m(d.error?12:-1),i(),m(d.error?-1:13),i(),m(d.timeout?14:-1))},dependencies:[T],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{N as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as St,b as jC}from"./chunk-ZREFVRCJ.js";import{a as Rs}from"./chunk-R5JL6NY3.js";import{a as Di,b as si}from"./chunk-JN4WEHM3.js";import{a as Ws}from"./chunk-6WEQLPNK.js";import{a as Ks}from"./chunk-NSTYUUFS.js";import{a as Gs}from"./chunk-XBIY2EKP.js";import{a as on}from"./chunk-FNBFKTZI.js";import{a as zs,b as Us}from"./chunk-YCKXYAPE.js";import{a as no}from"./chunk-2TXKGWMR.js";import{a as Hs}from"./chunk-V65HN5SX.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-WCXU6QPE.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-JKRWJSXD.js";import{a as ai}from"./chunk-CHKLSRJ3.js";import{d as qt}from"./chunk-ZS7TMHAN.js";import{a as Ls}from"./chunk-ESRGAJUF.js";import{b as $e}from"./chunk-ON2E7LVH.js";import{h as pe,j as su,k as se}from"./chunk-UL2YWIGQ.js";import{e as Ts}from"./chunk-DNCUP6B7.js";import{a as ce,b as he}from"./chunk-2WNK6SOS.js";import{$c as ht,Ac as _,Bc as B,Cc as qe,D as hs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as h,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,_b as z,a as Q,aa as rn,ad as Pu,b as Ee,bc as P,bd as nt,cb as oe,cc as C,e as F,ed as $s,fa as gs,fb as ys,g as Oe,ga as xt,gb as s,h as W,ha as rf,id as Df,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-NVNBNEFN.js";var Zs=F((dV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((cV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((pV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((mV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((FV,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((CV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((hV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((gV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((EV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((bV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((_V,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((yV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((vV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((BV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F((xV,h0)=>{var c4=kt(),p4=c4.Symbol;h0.exports=p4});var _0=F((wV,b0)=>{var g0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=g0?g0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((IV,y0)=>{var h4=Object.prototype,g4=h4.toString;function E4(e){return g4.call(e)}y0.exports=E4});var ju=F((AV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((SV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((kV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F(($V,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((TV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((PV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((OV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((MV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((jV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((NV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((qV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((VV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((RV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((LV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((zV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((UV,X0)=>{var h5=ln(),g5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=h5&&u===void 0?g5:u,this}X0.exports=E5});var t1=F((HV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((WV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((GV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((KV,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((JV,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((ZV,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((QV,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((XV,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var hf=F((YV,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var h1=F((eR,C1)=>{var H5=Dn(),W5=Cf(),G5=hf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var gf=F((tR,g1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eh=m0(),th=h1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eh;Fi.prototype.set=th;g1.exports=Fi});var b1=F((uR,E1)=>{function uh(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=uh});var y1=F((iR,_1)=>{var ih=lu(),nh=function(){try{var e=ih(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=nh});var Do=F((nR,B1)=>{var v1=y1();function fh(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fh});var so=F((fR,x1)=>{var rh=Do(),oh=Ff(),ah=Object.prototype,Dh=ah.hasOwnProperty;function sh(e,u,t){var i=e[u];(!(Dh.call(e,u)&&oh(i,t))||t===void 0&&!(u in e))&&rh(e,u,t)}x1.exports=sh});var cn=F((rR,w1)=>{var lh=so(),dh=Do();function ch(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dh(t,o,a):lh(t,o,a)}return t}w1.exports=ch});var A1=F((oR,I1)=>{function ph(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=ph});var Kt=F((aR,S1)=>{function mh(e){return e!=null&&typeof e=="object"}S1.exports=mh});var $1=F((DR,k1)=>{var Fh=ju(),Ch=Kt(),hh="[object Arguments]";function gh(e){return Ch(e)&&Fh(e)==hh}k1.exports=gh});var lo=F((sR,O1)=>{var T1=$1(),Eh=Kt(),P1=Object.prototype,bh=P1.hasOwnProperty,_h=P1.propertyIsEnumerable,yh=T1(function(){return arguments}())?T1:function(e){return Eh(e)&&bh.call(e,"callee")&&!_h.call(e,"callee")};O1.exports=yh});var mt=F((lR,M1)=>{var vh=Array.isArray;M1.exports=vh});var N1=F((dR,j1)=>{function Bh(){return!1}j1.exports=Bh});var Ef=F((pn,Ci)=>{var xh=kt(),wh=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ih=q1&&q1.exports===R1,V1=Ih?xh.Buffer:void 0,Ah=V1?V1.isBuffer:void 0,Sh=Ah||wh;Ci.exports=Sh});var co=F((cR,L1)=>{var kh=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Th(e,u){var t=typeof e;return u=u==null?kh:u,!!u&&(t=="number"||t!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Th});var bf=F((pR,z1)=>{var Ph=9007199254740991;function Oh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}z1.exports=Oh});var H1=F((mR,U1)=>{var Mh=ju(),jh=bf(),Nh=Kt(),qh="[object Arguments]",Vh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",zh="[object Error]",Uh="[object Function]",Hh="[object Map]",Wh="[object Number]",Gh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Zh="[object String]",Qh="[object WeakMap]",Xh="[object ArrayBuffer]",Yh="[object DataView]",eg="[object Float32Array]",tg="[object Float64Array]",ug="[object Int8Array]",ig="[object Int16Array]",ng="[object Int32Array]",fg="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ag="[object Uint32Array]",Ie={};Ie[eg]=Ie[tg]=Ie[ug]=Ie[ig]=Ie[ng]=Ie[fg]=Ie[rg]=Ie[og]=Ie[ag]=!0;Ie[qh]=Ie[Vh]=Ie[Xh]=Ie[Rh]=Ie[Yh]=Ie[Lh]=Ie[zh]=Ie[Uh]=Ie[Hh]=Ie[Wh]=Ie[Gh]=Ie[Kh]=Ie[Jh]=Ie[Zh]=Ie[Qh]=!1;function Dg(e){return Nh(e)&&jh(e.length)&&!!Ie[Mh(e)]}U1.exports=Dg});var _f=F((FR,W1)=>{function sg(e){return function(u){return e(u)}}W1.exports=sg});var yf=F((mn,hi)=>{var lg=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,dg=Fn&&Fn.exports===G1,po=dg&&lg.process,cg=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();hi.exports=cg});var mo=F((CR,Z1)=>{var pg=H1(),mg=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fg=J1?mg(J1):pg;Z1.exports=Fg});var Fo=F((hR,Q1)=>{var Cg=A1(),hg=lo(),gg=mt(),Eg=Ef(),bg=co(),_g=mo(),yg=Object.prototype,vg=yg.hasOwnProperty;function Bg(e,u){var t=gg(e),i=!t&&hg(e),n=!t&&!i&&Eg(e),f=!t&&!i&&!n&&_g(e),r=t||i||n||f,o=r?Cg(e.length,String):[],a=o.length;for(var D in e)(u||vg.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bg(D,a)))&&o.push(D);return o}Q1.exports=Bg});var vf=F((gR,X1)=>{var xg=Object.prototype;function wg(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xg;return e===t}X1.exports=wg});var Co=F((ER,Y1)=>{function Ig(e,u){return function(t){return e(u(t))}}Y1.exports=Ig});var tl=F((bR,el)=>{var Ag=Co(),Sg=Ag(Object.keys,Object);el.exports=Sg});var il=F((_R,ul)=>{var kg=vf(),$g=tl(),Tg=Object.prototype,Pg=Tg.hasOwnProperty;function Og(e){if(!kg(e))return $g(e);var u=[];for(var t in Object(e))Pg.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Og});var Cn=F((yR,nl)=>{var Mg=ro(),jg=bf();function Ng(e){return e!=null&&jg(e.length)&&!Mg(e)}nl.exports=Ng});var gi=F((vR,fl)=>{var qg=Fo(),Vg=il(),Rg=Cn();function Lg(e){return Rg(e)?qg(e):Vg(e)}fl.exports=Lg});var ol=F((BR,rl)=>{var zg=cn(),Ug=gi();function Hg(e,u){return e&&zg(u,Ug(u),e)}rl.exports=Hg});var Dl=F((xR,al)=>{function Wg(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wg});var ll=F((wR,sl)=>{var Gg=Nu(),Kg=vf(),Jg=Dl(),Zg=Object.prototype,Qg=Zg.hasOwnProperty;function Xg(e){if(!Gg(e))return Jg(e);var u=Kg(e),t=[];for(var i in e)i=="constructor"&&(u||!Qg.call(e,i))||t.push(i);return t}sl.exports=Xg});var Bf=F((IR,dl)=>{var Yg=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yg(e,!0):e6(e)}dl.exports=u6});var pl=F((AR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var gl=F((hn,Ei)=>{var r6=kt(),hl=typeof hn=="object"&&hn&&!hn.nodeType&&hn,ml=hl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===hl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((SR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var ho=F((kR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var go=F(($R,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((TR,Bl)=>{var d6=ho(),c6=go(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((PR,xl)=>{var C6=cn(),h6=xf();function g6(e,u){return C6(e,h6(e),u)}xl.exports=g6});var Eo=F((OR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((MR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((jR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=go(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((NR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((qR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((VR,Pl)=>{var O6=_o(),M6=xf(),j6=gi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((RR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((LR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((zR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((UR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((HR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var gn=F((WR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((GR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((KR,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((JR,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((ZR,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((QR,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((XR,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((YR,dd)=>{var hE=If();function gE(e,u){var t=u?hE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=gE});var md=F((eL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var hd=F((tL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((uL,gd)=>{var GE=hd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}gd.exports=ZE});var _d=F((iL,bd)=>{var QE=gn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((nL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((fL,wd)=>{var nb=gn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((rL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((oL,Md)=>{var lb=gf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=gl(),Cb=bl(),hb=wl(),gb=$l(),Eb=yo(),bb=Ml(),_b=gn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=gi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?gb(e,mb(r,e)):hb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var g=D?a?bb:Eb:a?$b:kb,y=l?void 0:g(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((aL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((DL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((sL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((lL,Ud)=>{var d_=hf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((dL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((cL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((pL,Zd)=>{var C_=Hd(),h_=Gd(),g_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var g=e[p],y=u[p];if(i)var v=r?i(y,g,p,u,e,f):i(g,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!h_(u,function(S,O){if(!g_(E,O)&&(g===S||n(g,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(g===y||n(g,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((mL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((FL,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((CL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((hL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),g=f.get(u);if(E&&g)return E==u&&g==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((gL,m3)=>{var $o=gf(),G_=So(),K_=f3(),J_=a3(),D3=gn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),g=p&&p3.call(u,"__wrapped__");if(E||g){var y=E?e.value():e,v=g?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((EL,g3)=>{var e9=F3(),C3=Kt();function h3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,h3,n)}g3.exports=h3});var b3=F((bL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var gt=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=gt;de.nil=new gt("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new gt(t)}de._=_3;var To=new gt("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new gt(t)}de.str=y3;function Po(e,u){u instanceof gt?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new gt(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new gt(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new gt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new gt(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
|
|
1
|
+
import{a as St,b as jC}from"./chunk-M5LTG544.js";import{a as Rs}from"./chunk-W6CTMNAG.js";import{a as Di,b as si}from"./chunk-F2WFV5GW.js";import{a as Ws}from"./chunk-W7CPCAPT.js";import{a as Ks}from"./chunk-KIPITWHI.js";import{a as Gs}from"./chunk-5BZGZWPU.js";import{a as on}from"./chunk-QGC43YCF.js";import{a as zs,b as Us}from"./chunk-NSDMDB7X.js";import{a as no}from"./chunk-GZMSZZVX.js";import{a as Hs}from"./chunk-PVRKV6LM.js";import{a as sf,b as lf,c as df,d as cf,e as pf,f as mf,g as ri,m as Ce,n as Ue,o as oi}from"./chunk-MS2EQS6S.js";import{a as Ps,b as ui,c as ii,e as ot,f as Os,h as Ms,i as js,k as Ns,l as Du,m as qs,o as ni,r as fi,s as Ou,t as Mu,x as Vs,y as At,z as io}from"./chunk-XCZREHWX.js";import{a as ai}from"./chunk-X2NTV4U7.js";import{d as qt}from"./chunk-5CDZD4QO.js";import{a as Ls}from"./chunk-5NJQH2A3.js";import{b as $e}from"./chunk-MJUBX7V2.js";import{h as pe,j as su,k as se}from"./chunk-NCJAIFQO.js";import{e as Ts}from"./chunk-KD5YLOUW.js";import{a as ce,b as he}from"./chunk-P5BH5BCJ.js";import{$c as nt,Ac as _,Bc as B,Cc as qe,D as hs,Da as _s,Fa as it,Ga as R,Gc as ks,Ha as Yu,Ia as of,Jb as G,Kb as h,Lb as wt,M as ff,Mb as ei,Nb as Z,Ob as xs,Pb as x,Rb as He,Sb as We,Tb as Ge,Ub as d,Vb as c,Wb as I,Xb as ws,Yb as Is,Z as to,Zc as ht,_b as z,_c as Pu,a as Q,aa as rn,b as Ee,bc as P,cb as oe,cc as C,cd as $s,e as F,fa as gs,fb as ys,g as Oe,ga as xt,gb as s,gd as Df,h as W,ha as rf,jc as ru,k as ps,kc as ou,la as Es,lb as vs,ma as w,mb as uo,mc as b,n as pt,nc as L,ob as $u,oc as q,pb as fu,pc as Wt,q as ms,qc as As,rc as Be,sc as xe,ta as Xu,tb as J,tc as we,ua as j,ub as af,uc as Ss,v as Fs,va as N,vb as Tu,vc as Ne,w as ne,wb as Bs,wc as It,x as Cs,xa as bs,xc as au,yc as Gt,zb as k,zc as ti}from"./chunk-V7KKBEKT.js";var Zs=F((dV,Js)=>{function qC(){this.__data__=[],this.size=0}Js.exports=qC});var Ff=F((cV,Qs)=>{function VC(e,u){return e===u||e!==e&&u!==u}Qs.exports=VC});var an=F((pV,Xs)=>{var RC=Ff();function LC(e,u){for(var t=e.length;t--;)if(RC(e[t][0],u))return t;return-1}Xs.exports=LC});var e0=F((mV,Ys)=>{var zC=an(),UC=Array.prototype,HC=UC.splice;function WC(e){var u=this.__data__,t=zC(u,e);if(t<0)return!1;var i=u.length-1;return t==i?u.pop():HC.call(u,t,1),--this.size,!0}Ys.exports=WC});var u0=F((FV,t0)=>{var GC=an();function KC(e){var u=this.__data__,t=GC(u,e);return t<0?void 0:u[t][1]}t0.exports=KC});var n0=F((CV,i0)=>{var JC=an();function ZC(e){return JC(this.__data__,e)>-1}i0.exports=ZC});var r0=F((hV,f0)=>{var QC=an();function XC(e,u){var t=this.__data__,i=QC(t,e);return i<0?(++this.size,t.push([e,u])):t[i][1]=u,this}f0.exports=XC});var Dn=F((gV,o0)=>{var YC=Zs(),e4=e0(),t4=u0(),u4=n0(),i4=r0();function di(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}di.prototype.clear=YC;di.prototype.delete=e4;di.prototype.get=t4;di.prototype.has=u4;di.prototype.set=i4;o0.exports=di});var D0=F((EV,a0)=>{var n4=Dn();function f4(){this.__data__=new n4,this.size=0}a0.exports=f4});var l0=F((bV,s0)=>{function r4(e){var u=this.__data__,t=u.delete(e);return this.size=u.size,t}s0.exports=r4});var c0=F((_V,d0)=>{function o4(e){return this.__data__.get(e)}d0.exports=o4});var m0=F((yV,p0)=>{function a4(e){return this.__data__.has(e)}p0.exports=a4});var fo=F((vV,F0)=>{var D4=typeof global=="object"&&global&&global.Object===Object&&global;F0.exports=D4});var kt=F((BV,C0)=>{var s4=fo(),l4=typeof self=="object"&&self&&self.Object===Object&&self,d4=s4||l4||Function("return this")();C0.exports=d4});var ci=F((xV,h0)=>{var c4=kt(),p4=c4.Symbol;h0.exports=p4});var _0=F((wV,b0)=>{var g0=ci(),E0=Object.prototype,m4=E0.hasOwnProperty,F4=E0.toString,sn=g0?g0.toStringTag:void 0;function C4(e){var u=m4.call(e,sn),t=e[sn];try{e[sn]=void 0;var i=!0}catch{}var n=F4.call(e);return i&&(u?e[sn]=t:delete e[sn]),n}b0.exports=C4});var v0=F((IV,y0)=>{var h4=Object.prototype,g4=h4.toString;function E4(e){return g4.call(e)}y0.exports=E4});var ju=F((AV,w0)=>{var B0=ci(),b4=_0(),_4=v0(),y4="[object Null]",v4="[object Undefined]",x0=B0?B0.toStringTag:void 0;function B4(e){return e==null?e===void 0?v4:y4:x0&&x0 in Object(e)?b4(e):_4(e)}w0.exports=B4});var Nu=F((SV,I0)=>{function x4(e){var u=typeof e;return e!=null&&(u=="object"||u=="function")}I0.exports=x4});var ro=F((kV,A0)=>{var w4=ju(),I4=Nu(),A4="[object AsyncFunction]",S4="[object Function]",k4="[object GeneratorFunction]",$4="[object Proxy]";function T4(e){if(!I4(e))return!1;var u=w4(e);return u==S4||u==k4||u==A4||u==$4}A0.exports=T4});var k0=F(($V,S0)=>{var P4=kt(),O4=P4["__core-js_shared__"];S0.exports=O4});var P0=F((TV,T0)=>{var oo=k0(),$0=function(){var e=/[^.]+$/.exec(oo&&oo.keys&&oo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function M4(e){return!!$0&&$0 in e}T0.exports=M4});var ao=F((PV,O0)=>{var j4=Function.prototype,N4=j4.toString;function q4(e){if(e!=null){try{return N4.call(e)}catch{}try{return e+""}catch{}}return""}O0.exports=q4});var j0=F((OV,M0)=>{var V4=ro(),R4=P0(),L4=Nu(),z4=ao(),U4=/[\\^$.*+?()[\]{}|]/g,H4=/^\[object .+?Constructor\]$/,W4=Function.prototype,G4=Object.prototype,K4=W4.toString,J4=G4.hasOwnProperty,Z4=RegExp("^"+K4.call(J4).replace(U4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q4(e){if(!L4(e)||R4(e))return!1;var u=V4(e)?Z4:H4;return u.test(z4(e))}M0.exports=Q4});var q0=F((MV,N0)=>{function X4(e,u){return e==null?void 0:e[u]}N0.exports=X4});var lu=F((jV,V0)=>{var Y4=j0(),e5=q0();function t5(e,u){var t=e5(e,u);return Y4(t)?t:void 0}V0.exports=t5});var Cf=F((NV,R0)=>{var u5=lu(),i5=kt(),n5=u5(i5,"Map");R0.exports=n5});var ln=F((qV,L0)=>{var f5=lu(),r5=f5(Object,"create");L0.exports=r5});var H0=F((VV,U0)=>{var z0=ln();function o5(){this.__data__=z0?z0(null):{},this.size=0}U0.exports=o5});var G0=F((RV,W0)=>{function a5(e){var u=this.has(e)&&delete this.__data__[e];return this.size-=u?1:0,u}W0.exports=a5});var J0=F((LV,K0)=>{var D5=ln(),s5="__lodash_hash_undefined__",l5=Object.prototype,d5=l5.hasOwnProperty;function c5(e){var u=this.__data__;if(D5){var t=u[e];return t===s5?void 0:t}return d5.call(u,e)?u[e]:void 0}K0.exports=c5});var Q0=F((zV,Z0)=>{var p5=ln(),m5=Object.prototype,F5=m5.hasOwnProperty;function C5(e){var u=this.__data__;return p5?u[e]!==void 0:F5.call(u,e)}Z0.exports=C5});var Y0=F((UV,X0)=>{var h5=ln(),g5="__lodash_hash_undefined__";function E5(e,u){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=h5&&u===void 0?g5:u,this}X0.exports=E5});var t1=F((HV,e1)=>{var b5=H0(),_5=G0(),y5=J0(),v5=Q0(),B5=Y0();function pi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}pi.prototype.clear=b5;pi.prototype.delete=_5;pi.prototype.get=y5;pi.prototype.has=v5;pi.prototype.set=B5;e1.exports=pi});var n1=F((WV,i1)=>{var u1=t1(),x5=Dn(),w5=Cf();function I5(){this.size=0,this.__data__={hash:new u1,map:new(w5||x5),string:new u1}}i1.exports=I5});var r1=F((GV,f1)=>{function A5(e){var u=typeof e;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?e!=="__proto__":e===null}f1.exports=A5});var dn=F((KV,o1)=>{var S5=r1();function k5(e,u){var t=e.__data__;return S5(u)?t[typeof u=="string"?"string":"hash"]:t.map}o1.exports=k5});var D1=F((JV,a1)=>{var $5=dn();function T5(e){var u=$5(this,e).delete(e);return this.size-=u?1:0,u}a1.exports=T5});var l1=F((ZV,s1)=>{var P5=dn();function O5(e){return P5(this,e).get(e)}s1.exports=O5});var c1=F((QV,d1)=>{var M5=dn();function j5(e){return M5(this,e).has(e)}d1.exports=j5});var m1=F((XV,p1)=>{var N5=dn();function q5(e,u){var t=N5(this,e),i=t.size;return t.set(e,u),this.size+=t.size==i?0:1,this}p1.exports=q5});var hf=F((YV,F1)=>{var V5=n1(),R5=D1(),L5=l1(),z5=c1(),U5=m1();function mi(e){var u=-1,t=e==null?0:e.length;for(this.clear();++u<t;){var i=e[u];this.set(i[0],i[1])}}mi.prototype.clear=V5;mi.prototype.delete=R5;mi.prototype.get=L5;mi.prototype.has=z5;mi.prototype.set=U5;F1.exports=mi});var h1=F((eR,C1)=>{var H5=Dn(),W5=Cf(),G5=hf(),K5=200;function J5(e,u){var t=this.__data__;if(t instanceof H5){var i=t.__data__;if(!W5||i.length<K5-1)return i.push([e,u]),this.size=++t.size,this;t=this.__data__=new G5(i)}return t.set(e,u),this.size=t.size,this}C1.exports=J5});var gf=F((tR,g1)=>{var Z5=Dn(),Q5=D0(),X5=l0(),Y5=c0(),eh=m0(),th=h1();function Fi(e){var u=this.__data__=new Z5(e);this.size=u.size}Fi.prototype.clear=Q5;Fi.prototype.delete=X5;Fi.prototype.get=Y5;Fi.prototype.has=eh;Fi.prototype.set=th;g1.exports=Fi});var b1=F((uR,E1)=>{function uh(e,u){for(var t=-1,i=e==null?0:e.length;++t<i&&u(e[t],t,e)!==!1;);return e}E1.exports=uh});var y1=F((iR,_1)=>{var ih=lu(),nh=function(){try{var e=ih(Object,"defineProperty");return e({},"",{}),e}catch{}}();_1.exports=nh});var Do=F((nR,B1)=>{var v1=y1();function fh(e,u,t){u=="__proto__"&&v1?v1(e,u,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[u]=t}B1.exports=fh});var so=F((fR,x1)=>{var rh=Do(),oh=Ff(),ah=Object.prototype,Dh=ah.hasOwnProperty;function sh(e,u,t){var i=e[u];(!(Dh.call(e,u)&&oh(i,t))||t===void 0&&!(u in e))&&rh(e,u,t)}x1.exports=sh});var cn=F((rR,w1)=>{var lh=so(),dh=Do();function ch(e,u,t,i){var n=!t;t||(t={});for(var f=-1,r=u.length;++f<r;){var o=u[f],a=i?i(t[o],e[o],o,t,e):void 0;a===void 0&&(a=e[o]),n?dh(t,o,a):lh(t,o,a)}return t}w1.exports=ch});var A1=F((oR,I1)=>{function ph(e,u){for(var t=-1,i=Array(e);++t<e;)i[t]=u(t);return i}I1.exports=ph});var Kt=F((aR,S1)=>{function mh(e){return e!=null&&typeof e=="object"}S1.exports=mh});var $1=F((DR,k1)=>{var Fh=ju(),Ch=Kt(),hh="[object Arguments]";function gh(e){return Ch(e)&&Fh(e)==hh}k1.exports=gh});var lo=F((sR,O1)=>{var T1=$1(),Eh=Kt(),P1=Object.prototype,bh=P1.hasOwnProperty,_h=P1.propertyIsEnumerable,yh=T1(function(){return arguments}())?T1:function(e){return Eh(e)&&bh.call(e,"callee")&&!_h.call(e,"callee")};O1.exports=yh});var mt=F((lR,M1)=>{var vh=Array.isArray;M1.exports=vh});var N1=F((dR,j1)=>{function Bh(){return!1}j1.exports=Bh});var Ef=F((pn,Ci)=>{var xh=kt(),wh=N1(),R1=typeof pn=="object"&&pn&&!pn.nodeType&&pn,q1=R1&&typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Ih=q1&&q1.exports===R1,V1=Ih?xh.Buffer:void 0,Ah=V1?V1.isBuffer:void 0,Sh=Ah||wh;Ci.exports=Sh});var co=F((cR,L1)=>{var kh=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Th(e,u){var t=typeof e;return u=u==null?kh:u,!!u&&(t=="number"||t!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<u}L1.exports=Th});var bf=F((pR,z1)=>{var Ph=9007199254740991;function Oh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}z1.exports=Oh});var H1=F((mR,U1)=>{var Mh=ju(),jh=bf(),Nh=Kt(),qh="[object Arguments]",Vh="[object Array]",Rh="[object Boolean]",Lh="[object Date]",zh="[object Error]",Uh="[object Function]",Hh="[object Map]",Wh="[object Number]",Gh="[object Object]",Kh="[object RegExp]",Jh="[object Set]",Zh="[object String]",Qh="[object WeakMap]",Xh="[object ArrayBuffer]",Yh="[object DataView]",eg="[object Float32Array]",tg="[object Float64Array]",ug="[object Int8Array]",ig="[object Int16Array]",ng="[object Int32Array]",fg="[object Uint8Array]",rg="[object Uint8ClampedArray]",og="[object Uint16Array]",ag="[object Uint32Array]",Ie={};Ie[eg]=Ie[tg]=Ie[ug]=Ie[ig]=Ie[ng]=Ie[fg]=Ie[rg]=Ie[og]=Ie[ag]=!0;Ie[qh]=Ie[Vh]=Ie[Xh]=Ie[Rh]=Ie[Yh]=Ie[Lh]=Ie[zh]=Ie[Uh]=Ie[Hh]=Ie[Wh]=Ie[Gh]=Ie[Kh]=Ie[Jh]=Ie[Zh]=Ie[Qh]=!1;function Dg(e){return Nh(e)&&jh(e.length)&&!!Ie[Mh(e)]}U1.exports=Dg});var _f=F((FR,W1)=>{function sg(e){return function(u){return e(u)}}W1.exports=sg});var yf=F((mn,hi)=>{var lg=fo(),G1=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Fn=G1&&typeof hi=="object"&&hi&&!hi.nodeType&&hi,dg=Fn&&Fn.exports===G1,po=dg&&lg.process,cg=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||po&&po.binding&&po.binding("util")}catch{}}();hi.exports=cg});var mo=F((CR,Z1)=>{var pg=H1(),mg=_f(),K1=yf(),J1=K1&&K1.isTypedArray,Fg=J1?mg(J1):pg;Z1.exports=Fg});var Fo=F((hR,Q1)=>{var Cg=A1(),hg=lo(),gg=mt(),Eg=Ef(),bg=co(),_g=mo(),yg=Object.prototype,vg=yg.hasOwnProperty;function Bg(e,u){var t=gg(e),i=!t&&hg(e),n=!t&&!i&&Eg(e),f=!t&&!i&&!n&&_g(e),r=t||i||n||f,o=r?Cg(e.length,String):[],a=o.length;for(var D in e)(u||vg.call(e,D))&&!(r&&(D=="length"||n&&(D=="offset"||D=="parent")||f&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||bg(D,a)))&&o.push(D);return o}Q1.exports=Bg});var vf=F((gR,X1)=>{var xg=Object.prototype;function wg(e){var u=e&&e.constructor,t=typeof u=="function"&&u.prototype||xg;return e===t}X1.exports=wg});var Co=F((ER,Y1)=>{function Ig(e,u){return function(t){return e(u(t))}}Y1.exports=Ig});var tl=F((bR,el)=>{var Ag=Co(),Sg=Ag(Object.keys,Object);el.exports=Sg});var il=F((_R,ul)=>{var kg=vf(),$g=tl(),Tg=Object.prototype,Pg=Tg.hasOwnProperty;function Og(e){if(!kg(e))return $g(e);var u=[];for(var t in Object(e))Pg.call(e,t)&&t!="constructor"&&u.push(t);return u}ul.exports=Og});var Cn=F((yR,nl)=>{var Mg=ro(),jg=bf();function Ng(e){return e!=null&&jg(e.length)&&!Mg(e)}nl.exports=Ng});var gi=F((vR,fl)=>{var qg=Fo(),Vg=il(),Rg=Cn();function Lg(e){return Rg(e)?qg(e):Vg(e)}fl.exports=Lg});var ol=F((BR,rl)=>{var zg=cn(),Ug=gi();function Hg(e,u){return e&&zg(u,Ug(u),e)}rl.exports=Hg});var Dl=F((xR,al)=>{function Wg(e){var u=[];if(e!=null)for(var t in Object(e))u.push(t);return u}al.exports=Wg});var ll=F((wR,sl)=>{var Gg=Nu(),Kg=vf(),Jg=Dl(),Zg=Object.prototype,Qg=Zg.hasOwnProperty;function Xg(e){if(!Gg(e))return Jg(e);var u=Kg(e),t=[];for(var i in e)i=="constructor"&&(u||!Qg.call(e,i))||t.push(i);return t}sl.exports=Xg});var Bf=F((IR,dl)=>{var Yg=Fo(),e6=ll(),t6=Cn();function u6(e){return t6(e)?Yg(e,!0):e6(e)}dl.exports=u6});var pl=F((AR,cl)=>{var i6=cn(),n6=Bf();function f6(e,u){return e&&i6(u,n6(u),e)}cl.exports=f6});var gl=F((hn,Ei)=>{var r6=kt(),hl=typeof hn=="object"&&hn&&!hn.nodeType&&hn,ml=hl&&typeof Ei=="object"&&Ei&&!Ei.nodeType&&Ei,o6=ml&&ml.exports===hl,Fl=o6?r6.Buffer:void 0,Cl=Fl?Fl.allocUnsafe:void 0;function a6(e,u){if(u)return e.slice();var t=e.length,i=Cl?Cl(t):new e.constructor(t);return e.copy(i),i}Ei.exports=a6});var bl=F((SR,El)=>{function D6(e,u){var t=-1,i=e.length;for(u||(u=Array(i));++t<i;)u[t]=e[t];return u}El.exports=D6});var ho=F((kR,_l)=>{function s6(e,u){for(var t=-1,i=e==null?0:e.length,n=0,f=[];++t<i;){var r=e[t];u(r,t,e)&&(f[n++]=r)}return f}_l.exports=s6});var go=F(($R,yl)=>{function l6(){return[]}yl.exports=l6});var xf=F((TR,Bl)=>{var d6=ho(),c6=go(),p6=Object.prototype,m6=p6.propertyIsEnumerable,vl=Object.getOwnPropertySymbols,F6=vl?function(e){return e==null?[]:(e=Object(e),d6(vl(e),function(u){return m6.call(e,u)}))}:c6;Bl.exports=F6});var wl=F((PR,xl)=>{var C6=cn(),h6=xf();function g6(e,u){return C6(e,h6(e),u)}xl.exports=g6});var Eo=F((OR,Il)=>{function E6(e,u){for(var t=-1,i=u.length,n=e.length;++t<i;)e[n+t]=u[t];return e}Il.exports=E6});var wf=F((MR,Al)=>{var b6=Co(),_6=b6(Object.getPrototypeOf,Object);Al.exports=_6});var bo=F((jR,Sl)=>{var y6=Eo(),v6=wf(),B6=xf(),x6=go(),w6=Object.getOwnPropertySymbols,I6=w6?function(e){for(var u=[];e;)y6(u,B6(e)),e=v6(e);return u}:x6;Sl.exports=I6});var $l=F((NR,kl)=>{var A6=cn(),S6=bo();function k6(e,u){return A6(e,S6(e),u)}kl.exports=k6});var _o=F((qR,Tl)=>{var $6=Eo(),T6=mt();function P6(e,u,t){var i=u(e);return T6(e)?i:$6(i,t(e))}Tl.exports=P6});var yo=F((VR,Pl)=>{var O6=_o(),M6=xf(),j6=gi();function N6(e){return O6(e,j6,M6)}Pl.exports=N6});var Ml=F((RR,Ol)=>{var q6=_o(),V6=bo(),R6=Bf();function L6(e){return q6(e,R6,V6)}Ol.exports=L6});var Nl=F((LR,jl)=>{var z6=lu(),U6=kt(),H6=z6(U6,"DataView");jl.exports=H6});var Vl=F((zR,ql)=>{var W6=lu(),G6=kt(),K6=W6(G6,"Promise");ql.exports=K6});var Ll=F((UR,Rl)=>{var J6=lu(),Z6=kt(),Q6=J6(Z6,"Set");Rl.exports=Q6});var Ul=F((HR,zl)=>{var X6=lu(),Y6=kt(),eE=X6(Y6,"WeakMap");zl.exports=eE});var gn=F((WR,Ql)=>{var vo=Nl(),Bo=Cf(),xo=Vl(),wo=Ll(),Io=Ul(),Zl=ju(),bi=ao(),Hl="[object Map]",tE="[object Object]",Wl="[object Promise]",Gl="[object Set]",Kl="[object WeakMap]",Jl="[object DataView]",uE=bi(vo),iE=bi(Bo),nE=bi(xo),fE=bi(wo),rE=bi(Io),qu=Zl;(vo&&qu(new vo(new ArrayBuffer(1)))!=Jl||Bo&&qu(new Bo)!=Hl||xo&&qu(xo.resolve())!=Wl||wo&&qu(new wo)!=Gl||Io&&qu(new Io)!=Kl)&&(qu=function(e){var u=Zl(e),t=u==tE?e.constructor:void 0,i=t?bi(t):"";if(i)switch(i){case uE:return Jl;case iE:return Hl;case nE:return Wl;case fE:return Gl;case rE:return Kl}return u});Ql.exports=qu});var Yl=F((GR,Xl)=>{var oE=Object.prototype,aE=oE.hasOwnProperty;function DE(e){var u=e.length,t=new e.constructor(u);return u&&typeof e[0]=="string"&&aE.call(e,"index")&&(t.index=e.index,t.input=e.input),t}Xl.exports=DE});var Ao=F((KR,ed)=>{var sE=kt(),lE=sE.Uint8Array;ed.exports=lE});var If=F((JR,ud)=>{var td=Ao();function dE(e){var u=new e.constructor(e.byteLength);return new td(u).set(new td(e)),u}ud.exports=dE});var nd=F((ZR,id)=>{var cE=If();function pE(e,u){var t=u?cE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}id.exports=pE});var rd=F((QR,fd)=>{var mE=/\w*$/;function FE(e){var u=new e.constructor(e.source,mE.exec(e));return u.lastIndex=e.lastIndex,u}fd.exports=FE});var ld=F((XR,sd)=>{var od=ci(),ad=od?od.prototype:void 0,Dd=ad?ad.valueOf:void 0;function CE(e){return Dd?Object(Dd.call(e)):{}}sd.exports=CE});var cd=F((YR,dd)=>{var hE=If();function gE(e,u){var t=u?hE(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}dd.exports=gE});var md=F((eL,pd)=>{var EE=If(),bE=nd(),_E=rd(),yE=ld(),vE=cd(),BE="[object Boolean]",xE="[object Date]",wE="[object Map]",IE="[object Number]",AE="[object RegExp]",SE="[object Set]",kE="[object String]",$E="[object Symbol]",TE="[object ArrayBuffer]",PE="[object DataView]",OE="[object Float32Array]",ME="[object Float64Array]",jE="[object Int8Array]",NE="[object Int16Array]",qE="[object Int32Array]",VE="[object Uint8Array]",RE="[object Uint8ClampedArray]",LE="[object Uint16Array]",zE="[object Uint32Array]";function UE(e,u,t){var i=e.constructor;switch(u){case TE:return EE(e);case BE:case xE:return new i(+e);case PE:return bE(e,t);case OE:case ME:case jE:case NE:case qE:case VE:case RE:case LE:case zE:return vE(e,t);case wE:return new i;case IE:case kE:return new i(e);case AE:return _E(e);case SE:return new i;case $E:return yE(e)}}pd.exports=UE});var hd=F((tL,Cd)=>{var HE=Nu(),Fd=Object.create,WE=function(){function e(){}return function(u){if(!HE(u))return{};if(Fd)return Fd(u);e.prototype=u;var t=new e;return e.prototype=void 0,t}}();Cd.exports=WE});var Ed=F((uL,gd)=>{var GE=hd(),KE=wf(),JE=vf();function ZE(e){return typeof e.constructor=="function"&&!JE(e)?GE(KE(e)):{}}gd.exports=ZE});var _d=F((iL,bd)=>{var QE=gn(),XE=Kt(),YE="[object Map]";function eb(e){return XE(e)&&QE(e)==YE}bd.exports=eb});var xd=F((nL,Bd)=>{var tb=_d(),ub=_f(),yd=yf(),vd=yd&&yd.isMap,ib=vd?ub(vd):tb;Bd.exports=ib});var Id=F((fL,wd)=>{var nb=gn(),fb=Kt(),rb="[object Set]";function ob(e){return fb(e)&&nb(e)==rb}wd.exports=ob});var $d=F((rL,kd)=>{var ab=Id(),Db=_f(),Ad=yf(),Sd=Ad&&Ad.isSet,sb=Sd?Db(Sd):ab;kd.exports=sb});var jd=F((oL,Md)=>{var lb=gf(),db=b1(),cb=so(),pb=ol(),mb=pl(),Fb=gl(),Cb=bl(),hb=wl(),gb=$l(),Eb=yo(),bb=Ml(),_b=gn(),yb=Yl(),vb=md(),Bb=Ed(),xb=mt(),wb=Ef(),Ib=xd(),Ab=Nu(),Sb=$d(),kb=gi(),$b=Bf(),Tb=1,Pb=2,Ob=4,Td="[object Arguments]",Mb="[object Array]",jb="[object Boolean]",Nb="[object Date]",qb="[object Error]",Pd="[object Function]",Vb="[object GeneratorFunction]",Rb="[object Map]",Lb="[object Number]",Od="[object Object]",zb="[object RegExp]",Ub="[object Set]",Hb="[object String]",Wb="[object Symbol]",Gb="[object WeakMap]",Kb="[object ArrayBuffer]",Jb="[object DataView]",Zb="[object Float32Array]",Qb="[object Float64Array]",Xb="[object Int8Array]",Yb="[object Int16Array]",e_="[object Int32Array]",t_="[object Uint8Array]",u_="[object Uint8ClampedArray]",i_="[object Uint16Array]",n_="[object Uint32Array]",ye={};ye[Td]=ye[Mb]=ye[Kb]=ye[Jb]=ye[jb]=ye[Nb]=ye[Zb]=ye[Qb]=ye[Xb]=ye[Yb]=ye[e_]=ye[Rb]=ye[Lb]=ye[Od]=ye[zb]=ye[Ub]=ye[Hb]=ye[Wb]=ye[t_]=ye[u_]=ye[i_]=ye[n_]=!0;ye[qb]=ye[Pd]=ye[Gb]=!1;function Af(e,u,t,i,n,f){var r,o=u&Tb,a=u&Pb,D=u&Ob;if(t&&(r=n?t(e,i,n,f):t(e)),r!==void 0)return r;if(!Ab(e))return e;var l=xb(e);if(l){if(r=yb(e),!o)return Cb(e,r)}else{var p=_b(e),m=p==Pd||p==Vb;if(wb(e))return Fb(e,o);if(p==Od||p==Td||m&&!n){if(r=a||m?{}:Bb(e),!o)return a?gb(e,mb(r,e)):hb(e,pb(r,e))}else{if(!ye[p])return n?e:{};r=vb(e,p,o)}}f||(f=new lb);var E=f.get(e);if(E)return E;f.set(e,r),Sb(e)?e.forEach(function(v){r.add(Af(v,u,t,v,e,f))}):Ib(e)&&e.forEach(function(v,S){r.set(S,Af(v,u,t,S,e,f))});var g=D?a?bb:Eb:a?$b:kb,y=l?void 0:g(e);return db(y||e,function(v,S){y&&(S=v,v=e[S]),cb(r,S,Af(v,u,t,S,e,f))}),r}Md.exports=Af});var qd=F((aL,Nd)=>{var f_=jd(),r_=1,o_=4;function a_(e){return f_(e,r_|o_)}Nd.exports=a_});var Rd=F((DL,Vd)=>{var D_="__lodash_hash_undefined__";function s_(e){return this.__data__.set(e,D_),this}Vd.exports=s_});var zd=F((sL,Ld)=>{function l_(e){return this.__data__.has(e)}Ld.exports=l_});var Hd=F((lL,Ud)=>{var d_=hf(),c_=Rd(),p_=zd();function Sf(e){var u=-1,t=e==null?0:e.length;for(this.__data__=new d_;++u<t;)this.add(e[u])}Sf.prototype.add=Sf.prototype.push=c_;Sf.prototype.has=p_;Ud.exports=Sf});var Gd=F((dL,Wd)=>{function m_(e,u){for(var t=-1,i=e==null?0:e.length;++t<i;)if(u(e[t],t,e))return!0;return!1}Wd.exports=m_});var Jd=F((cL,Kd)=>{function F_(e,u){return e.has(u)}Kd.exports=F_});var So=F((pL,Zd)=>{var C_=Hd(),h_=Gd(),g_=Jd(),E_=1,b_=2;function __(e,u,t,i,n,f){var r=t&E_,o=e.length,a=u.length;if(o!=a&&!(r&&a>o))return!1;var D=f.get(e),l=f.get(u);if(D&&l)return D==u&&l==e;var p=-1,m=!0,E=t&b_?new C_:void 0;for(f.set(e,u),f.set(u,e);++p<o;){var g=e[p],y=u[p];if(i)var v=r?i(y,g,p,u,e,f):i(g,y,p,e,u,f);if(v!==void 0){if(v)continue;m=!1;break}if(E){if(!h_(u,function(S,O){if(!g_(E,O)&&(g===S||n(g,S,t,i,f)))return E.push(O)})){m=!1;break}}else if(!(g===y||n(g,y,t,i,f))){m=!1;break}}return f.delete(e),f.delete(u),m}Zd.exports=__});var Xd=F((mL,Qd)=>{function y_(e){var u=-1,t=Array(e.size);return e.forEach(function(i,n){t[++u]=[n,i]}),t}Qd.exports=y_});var e3=F((FL,Yd)=>{function v_(e){var u=-1,t=Array(e.size);return e.forEach(function(i){t[++u]=i}),t}Yd.exports=v_});var f3=F((CL,n3)=>{var t3=ci(),u3=Ao(),B_=Ff(),x_=So(),w_=Xd(),I_=e3(),A_=1,S_=2,k_="[object Boolean]",$_="[object Date]",T_="[object Error]",P_="[object Map]",O_="[object Number]",M_="[object RegExp]",j_="[object Set]",N_="[object String]",q_="[object Symbol]",V_="[object ArrayBuffer]",R_="[object DataView]",i3=t3?t3.prototype:void 0,ko=i3?i3.valueOf:void 0;function L_(e,u,t,i,n,f,r){switch(t){case R_:if(e.byteLength!=u.byteLength||e.byteOffset!=u.byteOffset)return!1;e=e.buffer,u=u.buffer;case V_:return!(e.byteLength!=u.byteLength||!f(new u3(e),new u3(u)));case k_:case $_:case O_:return B_(+e,+u);case T_:return e.name==u.name&&e.message==u.message;case M_:case N_:return e==u+"";case P_:var o=w_;case j_:var a=i&A_;if(o||(o=I_),e.size!=u.size&&!a)return!1;var D=r.get(e);if(D)return D==u;i|=S_,r.set(e,u);var l=x_(o(e),o(u),i,n,f,r);return r.delete(e),l;case q_:if(ko)return ko.call(e)==ko.call(u)}return!1}n3.exports=L_});var a3=F((hL,o3)=>{var r3=yo(),z_=1,U_=Object.prototype,H_=U_.hasOwnProperty;function W_(e,u,t,i,n,f){var r=t&z_,o=r3(e),a=o.length,D=r3(u),l=D.length;if(a!=l&&!r)return!1;for(var p=a;p--;){var m=o[p];if(!(r?m in u:H_.call(u,m)))return!1}var E=f.get(e),g=f.get(u);if(E&&g)return E==u&&g==e;var y=!0;f.set(e,u),f.set(u,e);for(var v=r;++p<a;){m=o[p];var S=e[m],O=u[m];if(i)var U=r?i(O,S,m,u,e,f):i(S,O,m,e,u,f);if(!(U===void 0?S===O||n(S,O,t,i,f):U)){y=!1;break}v||(v=m=="constructor")}if(y&&!v){var H=e.constructor,M=u.constructor;H!=M&&"constructor"in e&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof M=="function"&&M instanceof M)&&(y=!1)}return f.delete(e),f.delete(u),y}o3.exports=W_});var F3=F((gL,m3)=>{var $o=gf(),G_=So(),K_=f3(),J_=a3(),D3=gn(),s3=mt(),l3=Ef(),Z_=mo(),Q_=1,d3="[object Arguments]",c3="[object Array]",kf="[object Object]",X_=Object.prototype,p3=X_.hasOwnProperty;function Y_(e,u,t,i,n,f){var r=s3(e),o=s3(u),a=r?c3:D3(e),D=o?c3:D3(u);a=a==d3?kf:a,D=D==d3?kf:D;var l=a==kf,p=D==kf,m=a==D;if(m&&l3(e)){if(!l3(u))return!1;r=!0,l=!1}if(m&&!l)return f||(f=new $o),r||Z_(e)?G_(e,u,t,i,n,f):K_(e,u,a,t,i,n,f);if(!(t&Q_)){var E=l&&p3.call(e,"__wrapped__"),g=p&&p3.call(u,"__wrapped__");if(E||g){var y=E?e.value():e,v=g?u.value():u;return f||(f=new $o),n(y,v,t,i,f)}}return m?(f||(f=new $o),J_(e,u,t,i,n,f)):!1}m3.exports=Y_});var $f=F((EL,g3)=>{var e9=F3(),C3=Kt();function h3(e,u,t,i,n){return e===u?!0:e==null||u==null||!C3(e)&&!C3(u)?e!==e&&u!==u:e9(e,u,t,i,h3,n)}g3.exports=h3});var b3=F((bL,E3)=>{var t9=$f();function u9(e,u){return t9(e,u)}E3.exports=u9});var _n=F(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.regexpCode=de.getEsmExportName=de.getProperty=de.safeStringify=de.stringify=de.strConcat=de.addCodeArg=de.str=de._=de.nil=de._Code=de.Name=de.IDENTIFIER=de._CodeOrName=void 0;var En=class{};de._CodeOrName=En;de.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Vu=class extends En{constructor(u){if(super(),!de.IDENTIFIER.test(u))throw new Error("CodeGen: name must be a valid identifier");this.str=u}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};de.Name=Vu;var gt=class extends En{constructor(u){super(),this._items=typeof u=="string"?[u]:u}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let u=this._items[0];return u===""||u==='""'}get str(){var u;return(u=this._str)!==null&&u!==void 0?u:this._str=this._items.reduce((t,i)=>`${t}${i}`,"")}get names(){var u;return(u=this._names)!==null&&u!==void 0?u:this._names=this._items.reduce((t,i)=>(i instanceof Vu&&(t[i.str]=(t[i.str]||0)+1),t),{})}};de._Code=gt;de.nil=new gt("");function _3(e,...u){let t=[e[0]],i=0;for(;i<u.length;)Po(t,u[i]),t.push(e[++i]);return new gt(t)}de._=_3;var To=new gt("+");function y3(e,...u){let t=[bn(e[0])],i=0;for(;i<u.length;)t.push(To),Po(t,u[i]),t.push(To,bn(e[++i]));return i9(t),new gt(t)}de.str=y3;function Po(e,u){u instanceof gt?e.push(...u._items):u instanceof Vu?e.push(u):e.push(r9(u))}de.addCodeArg=Po;function i9(e){let u=1;for(;u<e.length-1;){if(e[u]===To){let t=n9(e[u-1],e[u+1]);if(t!==void 0){e.splice(u-1,3,t);continue}e[u++]="+"}u++}}function n9(e,u){if(u==='""')return e;if(e==='""')return u;if(typeof e=="string")return u instanceof Vu||e[e.length-1]!=='"'?void 0:typeof u!="string"?`${e.slice(0,-1)}${u}"`:u[0]==='"'?e.slice(0,-1)+u.slice(1):void 0;if(typeof u=="string"&&u[0]==='"'&&!(e instanceof Vu))return`"${e}${u.slice(1)}`}function f9(e,u){return u.emptyStr()?e:e.emptyStr()?u:y3`${e}${u}`}de.strConcat=f9;function r9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bn(Array.isArray(e)?e.join(","):e)}function o9(e){return new gt(bn(e))}de.stringify=o9;function bn(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}de.safeStringify=bn;function a9(e){return typeof e=="string"&&de.IDENTIFIER.test(e)?new gt(`.${e}`):_3`[${e}]`}de.getProperty=a9;function D9(e){if(typeof e=="string"&&de.IDENTIFIER.test(e))return new gt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}de.getEsmExportName=D9;function s9(e){return new gt(e.toString())}de.regexpCode=s9});var jo=F(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var at=_n(),Oo=class extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}},Tf=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(Tf||(Dt.UsedValueState=Tf={}));Dt.varKinds={const:new at.Name("const"),let:new at.Name("let"),var:new at.Name("var")};var Pf=class{constructor({prefixes:u,parent:t}={}){this._names={},this._prefixes=u,this._parent=t}toName(u){return u instanceof at.Name?u:this.name(u)}name(u){return new at.Name(this._newName(u))}_newName(u){let t=this._names[u]||this._nameGroup(u);return`${u}${t.index++}`}_nameGroup(u){var t,i;if(!((i=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||i===void 0)&&i.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}};Dt.Scope=Pf;var Of=class extends at.Name{constructor(u,t){super(t),this.prefix=u}setValue(u,{property:t,itemIndex:i}){this.value=u,this.scopePath=(0,at._)`.${new at.Name(t)}[${i}]`}};Dt.ValueScopeName=Of;var l9=(0,at._)`\n`,Mo=class extends Pf{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=Ee(Q({},u),{_n:u.lines?l9:at.nil})}get(){return this._scope}name(u){return new Of(u,this._newName(u))}value(u,t){var i;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(u),{prefix:f}=n,r=(i=t.key)!==null&&i!==void 0?i:t.ref,o=this._values[f];if(o){let l=o.get(r);if(l)return l}else o=this._values[f]=new Map;o.set(r,n);let a=this._scope[f]||(this._scope[f]=[]),D=a.length;return a[D]=t.ref,n.setValue(t,{property:f,itemIndex:D}),n}getValue(u,t){let i=this._values[u];if(i)return i.get(t)}scopeRefs(u,t=this._values){return this._reduceValues(t,i=>{if(i.scopePath===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return(0,at._)`${u}${i.scopePath}`})}scopeCode(u=this._values,t,i){return this._reduceValues(u,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},t,i)}_reduceValues(u,t,i={},n){let f=at.nil;for(let r in u){let o=u[r];if(!o)continue;let a=i[r]=i[r]||new Map;o.forEach(D=>{if(a.has(D))return;a.set(D,Tf.Started);let l=t(D);if(l){let p=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;f=(0,at._)`${f}${p} ${D} = ${l};${this.opts._n}`}else if(l=n==null?void 0:n(D))f=(0,at._)`${f}${l}${this.opts._n}`;else throw new Oo(D);a.set(D,Tf.Completed)})}return f}};Dt.ValueScope=Mo});var te=F(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.or=ie.and=ie.not=ie.CodeGen=ie.operators=ie.varKinds=ie.ValueScopeName=ie.ValueScope=ie.Scope=ie.Name=ie.regexpCode=ie.stringify=ie.getProperty=ie.nil=ie.strConcat=ie.str=ie._=void 0;var De=_n(),$t=jo(),du=_n();Object.defineProperty(ie,"_",{enumerable:!0,get:function(){return du._}});Object.defineProperty(ie,"str",{enumerable:!0,get:function(){return du.str}});Object.defineProperty(ie,"strConcat",{enumerable:!0,get:function(){return du.strConcat}});Object.defineProperty(ie,"nil",{enumerable:!0,get:function(){return du.nil}});Object.defineProperty(ie,"getProperty",{enumerable:!0,get:function(){return du.getProperty}});Object.defineProperty(ie,"stringify",{enumerable:!0,get:function(){return du.stringify}});Object.defineProperty(ie,"regexpCode",{enumerable:!0,get:function(){return du.regexpCode}});Object.defineProperty(ie,"Name",{enumerable:!0,get:function(){return du.Name}});var Vf=jo();Object.defineProperty(ie,"Scope",{enumerable:!0,get:function(){return Vf.Scope}});Object.defineProperty(ie,"ValueScope",{enumerable:!0,get:function(){return Vf.ValueScope}});Object.defineProperty(ie,"ValueScopeName",{enumerable:!0,get:function(){return Vf.ValueScopeName}});Object.defineProperty(ie,"varKinds",{enumerable:!0,get:function(){return Vf.varKinds}});ie.operators={GT:new De._Code(">"),GTE:new De._Code(">="),LT:new De._Code("<"),LTE:new De._Code("<="),EQ:new De._Code("==="),NEQ:new De._Code("!=="),NOT:new De._Code("!"),OR:new De._Code("||"),AND:new De._Code("&&"),ADD:new De._Code("+")};var Jt=class{optimizeNodes(){return this}optimizeNames(u,t){return this}},No=class extends Jt{constructor(u,t,i){super(),this.varKind=u,this.name=t,this.rhs=i}render({es5:u,_n:t}){let i=u?$t.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${i} ${this.name}${n};`+t}optimizeNames(u,t){if(u[this.name.str])return this.rhs&&(this.rhs=_i(this.rhs,u,t)),this}get names(){return this.rhs instanceof De._CodeOrName?this.rhs.names:{}}},jf=class extends Jt{constructor(u,t,i){super(),this.lhs=u,this.rhs=t,this.sideEffects=i}render({_n:u}){return`${this.lhs} = ${this.rhs};`+u}optimizeNames(u,t){if(!(this.lhs instanceof De.Name&&!u[this.lhs.str]&&!this.sideEffects))return this.rhs=_i(this.rhs,u,t),this}get names(){let u=this.lhs instanceof De.Name?{}:Q({},this.lhs.names);return qf(u,this.rhs)}},qo=class extends jf{constructor(u,t,i,n){super(u,i,n),this.op=t}render({_n:u}){return`${this.lhs} ${this.op}= ${this.rhs};`+u}},Vo=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`${this.label}:`+u}},Ro=class extends Jt{constructor(u){super(),this.label=u,this.names={}}render({_n:u}){return`break${this.label?` ${this.label}`:""};`+u}},Lo=class extends Jt{constructor(u){super(),this.error=u}render({_n:u}){return`throw ${this.error};`+u}get names(){return this.error.names}},zo=class extends Jt{constructor(u){super(),this.code=u}render({_n:u}){return`${this.code};`+u}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(u,t){return this.code=_i(this.code,u,t),this}get names(){return this.code instanceof De._CodeOrName?this.code.names:{}}},yn=class extends Jt{constructor(u=[]){super(),this.nodes=u}render(u){return this.nodes.reduce((t,i)=>t+i.render(u),"")}optimizeNodes(){let{nodes:u}=this,t=u.length;for(;t--;){let i=u[t].optimizeNodes();Array.isArray(i)?u.splice(t,1,...i):i?u[t]=i:u.splice(t,1)}return u.length>0?this:void 0}optimizeNames(u,t){let{nodes:i}=this,n=i.length;for(;n--;){let f=i[n];f.optimizeNames(u,t)||(d9(u,f.names),i.splice(n,1))}return i.length>0?this:void 0}get names(){return this.nodes.reduce((u,t)=>Ru(u,t.names),{})}},Zt=class extends yn{render(u){return"{"+u._n+super.render(u)+"}"+u._n}},Uo=class extends yn{},Ho=(()=>{class e extends Zt{}return e.kind="else",e})(),Mf=(()=>{class e extends Zt{constructor(t,i){super(i),this.condition=t}render(t){let i=`if(${this.condition})`+super.render(t);return this.else&&(i+="else "+this.else.render(t)),i}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let i=this.else;if(i){let n=i.optimizeNodes();i=this.else=Array.isArray(n)?new Ho(n):n}if(i)return t===!1?i instanceof e?i:i.nodes:this.nodes.length?this:new e(I3(t),i instanceof e?[i]:i.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,i){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,i),!!(super.optimizeNames(t,i)||this.else))return this.condition=_i(this.condition,t,i),this}get names(){let t=super.names;return qf(t,this.condition),this.else&&Ru(t,this.else.names),t}}return e.kind="if",e})(),Rf=(()=>{class e extends Zt{}return e.kind="for",e})(),Wo=class extends Rf{constructor(u){super(),this.iteration=u}render(u){return`for(${this.iteration})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iteration=_i(this.iteration,u,t),this}get names(){return Ru(super.names,this.iteration.names)}},Go=class extends Rf{constructor(u,t,i,n){super(),this.varKind=u,this.name=t,this.from=i,this.to=n}render(u){let t=u.es5?$t.varKinds.var:this.varKind,{name:i,from:n,to:f}=this;return`for(${t} ${i}=${n}; ${i}<${f}; ${i}++)`+super.render(u)}get names(){let u=qf(super.names,this.from);return qf(u,this.to)}},Nf=class extends Rf{constructor(u,t,i,n){super(),this.loop=u,this.varKind=t,this.name=i,this.iterable=n}render(u){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(u)}optimizeNames(u,t){if(super.optimizeNames(u,t))return this.iterable=_i(this.iterable,u,t),this}get names(){return Ru(super.names,this.iterable.names)}},v3=(()=>{class e extends Zt{constructor(t,i,n){super(),this.name=t,this.args=i,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),B3=(()=>{class e extends yn{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),Ko=class extends Zt{render(u){let t="try"+super.render(u);return this.catch&&(t+=this.catch.render(u)),this.finally&&(t+=this.finally.render(u)),t}optimizeNodes(){var u,t;return super.optimizeNodes(),(u=this.catch)===null||u===void 0||u.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(u,t){var i,n;return super.optimizeNames(u,t),(i=this.catch)===null||i===void 0||i.optimizeNames(u,t),(n=this.finally)===null||n===void 0||n.optimizeNames(u,t),this}get names(){let u=super.names;return this.catch&&Ru(u,this.catch.names),this.finally&&Ru(u,this.finally.names),u}},x3=(()=>{class e extends Zt{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),w3=(()=>{class e extends Zt{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),Jo=class{constructor(u,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=Ee(Q({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=u,this._scope=new $t.Scope({parent:u}),this._nodes=[new Uo]}toString(){return this._root.render(this.opts)}name(u){return this._scope.name(u)}scopeName(u){return this._extScope.name(u)}scopeValue(u,t){let i=this._extScope.value(u,t);return(this._values[i.prefix]||(this._values[i.prefix]=new Set)).add(i),i}getScopeValue(u,t){return this._extScope.getValue(u,t)}scopeRefs(u){return this._extScope.scopeRefs(u,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(u,t,i,n){let f=this._scope.toName(t);return i!==void 0&&n&&(this._constants[f.str]=i),this._leafNode(new No(u,f,i)),f}const(u,t,i){return this._def($t.varKinds.const,u,t,i)}let(u,t,i){return this._def($t.varKinds.let,u,t,i)}var(u,t,i){return this._def($t.varKinds.var,u,t,i)}assign(u,t,i){return this._leafNode(new jf(u,t,i))}add(u,t){return this._leafNode(new qo(u,ie.operators.ADD,t))}code(u){return typeof u=="function"?u():u!==De.nil&&this._leafNode(new zo(u)),this}object(...u){let t=["{"];for(let[i,n]of u)t.length>1&&t.push(","),t.push(i),(i!==n||this.opts.es5)&&(t.push(":"),(0,De.addCodeArg)(t,n));return t.push("}"),new De._Code(t)}if(u,t,i){if(this._blockNode(new Mf(u)),t&&i)this.code(t).else().code(i).endIf();else if(t)this.code(t).endIf();else if(i)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(u){return this._elseNode(new Mf(u))}else(){return this._elseNode(new Ho)}endIf(){return this._endBlockNode(Mf,Ho)}_for(u,t){return this._blockNode(u),t&&this.code(t).endFor(),this}for(u,t){return this._for(new Wo(u),t)}forRange(u,t,i,n,f=this.opts.es5?$t.varKinds.var:$t.varKinds.let){let r=this._scope.toName(u);return this._for(new Go(f,r,t,i),()=>n(r))}forOf(u,t,i,n=$t.varKinds.const){let f=this._scope.toName(u);if(this.opts.es5){let r=t instanceof De.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,De._)`${r}.length`,o=>{this.var(f,(0,De._)`${r}[${o}]`),i(f)})}return this._for(new Nf("of",n,f,t),()=>i(f))}forIn(u,t,i,n=this.opts.es5?$t.varKinds.var:$t.varKinds.const){if(this.opts.ownProperties)return this.forOf(u,(0,De._)`Object.keys(${t})`,i);let f=this._scope.toName(u);return this._for(new Nf("in",n,f,t),()=>i(f))}endFor(){return this._endBlockNode(Rf)}label(u){return this._leafNode(new Vo(u))}break(u){return this._leafNode(new Ro(u))}return(u){let t=new B3;if(this._blockNode(t),this.code(u),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(B3)}try(u,t,i){if(!t&&!i)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ko;if(this._blockNode(n),this.code(u),t){let f=this.name("e");this._currNode=n.catch=new x3(f),t(f)}return i&&(this._currNode=n.finally=new w3,this.code(i)),this._endBlockNode(x3,w3)}throw(u){return this._leafNode(new Lo(u))}block(u,t){return this._blockStarts.push(this._nodes.length),u&&this.code(u).endBlock(t),this}endBlock(u){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let i=this._nodes.length-t;if(i<0||u!==void 0&&i!==u)throw new Error(`CodeGen: wrong number of nodes: ${i} vs ${u} expected`);return this._nodes.length=t,this}func(u,t=De.nil,i,n){return this._blockNode(new v3(u,t,i)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(v3)}optimize(u=1){for(;u-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(u){return this._currNode.nodes.push(u),this}_blockNode(u){this._currNode.nodes.push(u),this._nodes.push(u)}_endBlockNode(u,t){let i=this._currNode;if(i instanceof u||t&&i instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${u.kind}/${t.kind}`:u.kind}"`)}_elseNode(u){let t=this._currNode;if(!(t instanceof Mf))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=u,this}get _root(){return this._nodes[0]}get _currNode(){let u=this._nodes;return u[u.length-1]}set _currNode(u){let t=this._nodes;t[t.length-1]=u}};ie.CodeGen=Jo;function Ru(e,u){for(let t in u)e[t]=(e[t]||0)+(u[t]||0);return e}function qf(e,u){return u instanceof De._CodeOrName?Ru(e,u.names):e}function _i(e,u,t){if(e instanceof De.Name)return i(e);if(!n(e))return e;return new De._Code(e._items.reduce((f,r)=>(r instanceof De.Name&&(r=i(r)),r instanceof De._Code?f.push(...r._items):f.push(r),f),[]));function i(f){let r=t[f.str];return r===void 0||u[f.str]!==1?f:(delete u[f.str],r)}function n(f){return f instanceof De._Code&&f._items.some(r=>r instanceof De.Name&&u[r.str]===1&&t[r.str]!==void 0)}}function d9(e,u){for(let t in u)e[t]=(e[t]||0)-(u[t]||0)}function I3(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,De._)`!${Zo(e)}`}ie.not=I3;var c9=A3(ie.operators.AND);function p9(...e){return e.reduce(c9)}ie.and=p9;var m9=A3(ie.operators.OR);function F9(...e){return e.reduce(m9)}ie.or=F9;function A3(e){return(u,t)=>u===De.nil?t:t===De.nil?u:(0,De._)`${Zo(u)} ${e} ${Zo(t)}`}function Zo(e){return e instanceof De.Name?e:(0,De._)`(${e})`}});var re=F(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 be=te(),C9=_n();function h9(e){let u={};for(let t of e)u[t]=!0;return u}fe.toHash=h9;function g9(e,u){return typeof u=="boolean"?u:Object.keys(u).length===0?!0:($3(e,u),!T3(u,e.self.RULES.all))}fe.alwaysValidSchema=g9;function $3(e,u=e.schema){let{opts:t,self:i}=e;if(!t.strictSchema||typeof u=="boolean")return;let n=i.RULES.keywords;for(let f in u)n[f]||M3(e,`unknown keyword: "${f}"`)}fe.checkUnknownRules=$3;function T3(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(u[t])return!0;return!1}fe.schemaHasRules=T3;function E9(e,u){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&u.all[t])return!0;return!1}fe.schemaHasRulesButRef=E9;function b9({topSchemaRef:e,schemaPath:u},t,i,n){if(!n){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,be._)`${t}`}return(0,be._)`${e}${u}${(0,be.getProperty)(i)}`}fe.schemaRefOrVal=b9;function _9(e){return P3(decodeURIComponent(e))}fe.unescapeFragment=_9;function y9(e){return encodeURIComponent(Xo(e))}fe.escapeFragment=y9;function Xo(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}fe.escapeJsonPointer=Xo;function P3(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}fe.unescapeJsonPointer=P3;function v9(e,u){if(Array.isArray(e))for(let t of e)u(t);else u(e)}fe.eachItem=v9;function S3({mergeNames:e,mergeToName:u,mergeValues:t,resultToName:i}){return(n,f,r,o)=>{let a=r===void 0?f:r instanceof be.Name?(f instanceof be.Name?e(n,f,r):u(n,f,r),r):f instanceof be.Name?(u(n,r,f),f):t(f,r);return o===be.Name&&!(a instanceof be.Name)?i(n,a):a}}fe.mergeEvaluated={props:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>{e.if((0,be._)`${u} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,be._)`${t} || {}`).code((0,be._)`Object.assign(${t}, ${u})`))}),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>{u===!0?e.assign(t,!0):(e.assign(t,(0,be._)`${t} || {}`),Yo(e,t,u))}),mergeValues:(e,u)=>e===!0?!0:Q(Q({},e),u),resultToName:O3}),items:S3({mergeNames:(e,u,t)=>e.if((0,be._)`${t} !== true && ${u} !== undefined`,()=>e.assign(t,(0,be._)`${u} === true ? true : ${t} > ${u} ? ${t} : ${u}`)),mergeToName:(e,u,t)=>e.if((0,be._)`${t} !== true`,()=>e.assign(t,u===!0?!0:(0,be._)`${t} > ${u} ? ${t} : ${u}`)),mergeValues:(e,u)=>e===!0?!0:Math.max(e,u),resultToName:(e,u)=>e.var("items",u)})};function O3(e,u){if(u===!0)return e.var("props",!0);let t=e.var("props",(0,be._)`{}`);return u!==void 0&&Yo(e,t,u),t}fe.evaluatedPropsToName=O3;function Yo(e,u,t){Object.keys(t).forEach(i=>e.assign((0,be._)`${u}${(0,be.getProperty)(i)}`,!0))}fe.setEvaluated=Yo;var k3={};function B9(e,u){return e.scopeValue("func",{ref:u,code:k3[u.code]||(k3[u.code]=new C9._Code(u.code))})}fe.useFunc=B9;var Qo=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(Qo||(fe.Type=Qo={}));function x9(e,u,t){if(e instanceof be.Name){let i=u===Qo.Num;return t?i?(0,be._)`"[" + ${e} + "]"`:(0,be._)`"['" + ${e} + "']"`:i?(0,be._)`"/" + ${e}`:(0,be._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,be.getProperty)(e).toString():"/"+Xo(e)}fe.getErrorPath=x9;function M3(e,u,t=e.opts.strictSchema){if(t){if(u=`strict mode: ${u}`,t===!0)throw new Error(u);e.self.logger.warn(u)}}fe.checkStrictMode=M3});var Et=F(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var Qe=te(),w9={data:new Qe.Name("data"),valCxt:new Qe.Name("valCxt"),instancePath:new Qe.Name("instancePath"),parentData:new Qe.Name("parentData"),parentDataProperty:new Qe.Name("parentDataProperty"),rootData:new Qe.Name("rootData"),dynamicAnchors:new Qe.Name("dynamicAnchors"),vErrors:new Qe.Name("vErrors"),errors:new Qe.Name("errors"),this:new Qe.Name("this"),self:new Qe.Name("self"),scope:new Qe.Name("scope"),json:new Qe.Name("json"),jsonPos:new Qe.Name("jsonPos"),jsonLen:new Qe.Name("jsonLen"),jsonPart:new Qe.Name("jsonPart")};ea.default=w9});var vn=F(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.extendErrors=Xe.resetErrorsCount=Xe.reportExtraError=Xe.reportError=Xe.keyword$DataError=Xe.keywordError=void 0;var le=te(),Lf=re(),ft=Et();Xe.keywordError={message:({keyword:e})=>(0,le.str)`must pass "${e}" keyword validation`};Xe.keyword$DataError={message:({keyword:e,schemaType:u})=>u?(0,le.str)`"${e}" keyword must be ${u} ($data)`:(0,le.str)`"${e}" keyword is invalid ($data)`};function I9(e,u=Xe.keywordError,t,i){let{it:n}=e,{gen:f,compositeRule:r,allErrors:o}=n,a=q3(e,u,t);(i!=null?i:r||o)?j3(f,a):N3(n,(0,le._)`[${a}]`)}Xe.reportError=I9;function A9(e,u=Xe.keywordError,t){let{it:i}=e,{gen:n,compositeRule:f,allErrors:r}=i,o=q3(e,u,t);j3(n,o),f||r||N3(i,ft.default.vErrors)}Xe.reportExtraError=A9;function S9(e,u){e.assign(ft.default.errors,u),e.if((0,le._)`${ft.default.vErrors} !== null`,()=>e.if(u,()=>e.assign((0,le._)`${ft.default.vErrors}.length`,u),()=>e.assign(ft.default.vErrors,null)))}Xe.resetErrorsCount=S9;function k9({gen:e,keyword:u,schemaValue:t,data:i,errsCount:n,it:f}){if(n===void 0)throw new Error("ajv implementation error");let r=e.name("err");e.forRange("i",n,ft.default.errors,o=>{e.const(r,(0,le._)`${ft.default.vErrors}[${o}]`),e.if((0,le._)`${r}.instancePath === undefined`,()=>e.assign((0,le._)`${r}.instancePath`,(0,le.strConcat)(ft.default.instancePath,f.errorPath))),e.assign((0,le._)`${r}.schemaPath`,(0,le.str)`${f.errSchemaPath}/${u}`),f.opts.verbose&&(e.assign((0,le._)`${r}.schema`,t),e.assign((0,le._)`${r}.data`,i))})}Xe.extendErrors=k9;function j3(e,u){let t=e.const("err",u);e.if((0,le._)`${ft.default.vErrors} === null`,()=>e.assign(ft.default.vErrors,(0,le._)`[${t}]`),(0,le._)`${ft.default.vErrors}.push(${t})`),e.code((0,le._)`${ft.default.errors}++`)}function N3(e,u){let{gen:t,validateName:i,schemaEnv:n}=e;n.$async?t.throw((0,le._)`new ${e.ValidationError}(${u})`):(t.assign((0,le._)`${i}.errors`,u),t.return(!1))}var Lu={keyword:new le.Name("keyword"),schemaPath:new le.Name("schemaPath"),params:new le.Name("params"),propertyName:new le.Name("propertyName"),message:new le.Name("message"),schema:new le.Name("schema"),parentSchema:new le.Name("parentSchema")};function q3(e,u,t){let{createErrors:i}=e.it;return i===!1?(0,le._)`{}`:$9(e,u,t)}function $9(e,u,t={}){let{gen:i,it:n}=e,f=[T9(n,t),P9(e,t)];return O9(e,u,f),i.object(...f)}function T9({errorPath:e},{instancePath:u}){let t=u?(0,le.str)`${e}${(0,Lf.getErrorPath)(u,Lf.Type.Str)}`:e;return[ft.default.instancePath,(0,le.strConcat)(ft.default.instancePath,t)]}function P9({keyword:e,it:{errSchemaPath:u}},{schemaPath:t,parentSchema:i}){let n=i?u:(0,le.str)`${u}/${e}`;return t&&(n=(0,le.str)`${n}${(0,Lf.getErrorPath)(t,Lf.Type.Str)}`),[Lu.schemaPath,n]}function O9(e,{params:u,message:t},i){let{keyword:n,data:f,schemaValue:r,it:o}=e,{opts:a,propertyName:D,topSchemaRef:l,schemaPath:p}=o;i.push([Lu.keyword,n],[Lu.params,typeof u=="function"?u(e):u||(0,le._)`{}`]),a.messages&&i.push([Lu.message,typeof t=="function"?t(e):t]),a.verbose&&i.push([Lu.schema,r],[Lu.parentSchema,(0,le._)`${l}${p}`],[ft.default.data,f]),D&&i.push([Lu.propertyName,D])}});var R3=F(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.boolOrEmptySchema=yi.topBoolOrEmptySchema=void 0;var M9=vn(),j9=te(),N9=Et(),q9={message:"boolean schema is false"};function V9(e){let{gen:u,schema:t,validateName:i}=e;t===!1?V3(e,!1):typeof t=="object"&&t.$async===!0?u.return(N9.default.data):(u.assign((0,j9._)`${i}.errors`,null),u.return(!0))}yi.topBoolOrEmptySchema=V9;function R9(e,u){let{gen:t,schema:i}=e;i===!1?(t.var(u,!1),V3(e)):t.var(u,!0)}yi.boolOrEmptySchema=R9;function V3(e,u){let{gen:t,data:i}=e,n={gen:t,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,M9.reportError)(n,q9,void 0,u)}});var ta=F(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.getRules=vi.isJSONType=void 0;var L9=["string","number","integer","boolean","null","object","array"],z9=new Set(L9);function U9(e){return typeof e=="string"&&z9.has(e)}vi.isJSONType=U9;function H9(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:Ee(Q({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}vi.getRules=H9});var ua=F(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.shouldUseRule=cu.shouldUseGroup=cu.schemaHasRulesForType=void 0;function W9({schema:e,self:u},t){let i=u.RULES.types[t];return i&&i!==!0&&L3(e,i)}cu.schemaHasRulesForType=W9;function L3(e,u){return u.rules.some(t=>z3(e,t))}cu.shouldUseGroup=L3;function z3(e,u){var t;return e[u.keyword]!==void 0||((t=u.definition.implements)===null||t===void 0?void 0:t.some(i=>e[i]!==void 0))}cu.shouldUseRule=z3});var Bn=F(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.reportTypeError=Ye.checkDataTypes=Ye.checkDataType=Ye.coerceAndCheckDataType=Ye.getJSONTypes=Ye.getSchemaTypes=Ye.DataType=void 0;var G9=ta(),K9=ua(),J9=vn(),ue=te(),U3=re(),Bi=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(Bi||(Ye.DataType=Bi={}));function Z9(e){let u=H3(e.type);if(u.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&u.push("null")}return u}Ye.getSchemaTypes=Z9;function H3(e){let u=Array.isArray(e)?e:e?[e]:[];if(u.every(G9.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}Ye.getJSONTypes=H3;function Q9(e,u){let{gen:t,data:i,opts:n}=e,f=X9(u,n.coerceTypes),r=u.length>0&&!(f.length===0&&u.length===1&&(0,K9.schemaHasRulesForType)(e,u[0]));if(r){let o=na(u,i,n.strictNumbers,Bi.Wrong);t.if(o,()=>{f.length?Y9(e,u,f):fa(e)})}return r}Ye.coerceAndCheckDataType=Q9;var W3=new Set(["string","number","integer","boolean","null"]);function X9(e,u){return u?e.filter(t=>W3.has(t)||u==="array"&&t==="array"):[]}function Y9(e,u,t){let{gen:i,data:n,opts:f}=e,r=i.let("dataType",(0,ue._)`typeof ${n}`),o=i.let("coerced",(0,ue._)`undefined`);f.coerceTypes==="array"&&i.if((0,ue._)`${r} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>i.assign(n,(0,ue._)`${n}[0]`).assign(r,(0,ue._)`typeof ${n}`).if(na(u,n,f.strictNumbers),()=>i.assign(o,n))),i.if((0,ue._)`${o} !== undefined`);for(let D of t)(W3.has(D)||D==="array"&&f.coerceTypes==="array")&&a(D);i.else(),fa(e),i.endIf(),i.if((0,ue._)`${o} !== undefined`,()=>{i.assign(n,o),ey(e,o)});function a(D){switch(D){case"string":i.elseIf((0,ue._)`${r} == "number" || ${r} == "boolean"`).assign(o,(0,ue._)`"" + ${n}`).elseIf((0,ue._)`${n} === null`).assign(o,(0,ue._)`""`);return;case"number":i.elseIf((0,ue._)`${r} == "boolean" || ${n} === null
|
|
3
3
|
|| (${r} == "string" && ${n} && ${n} == +${n})`).assign(o,(0,ue._)`+${n}`);return;case"integer":i.elseIf((0,ue._)`${r} === "boolean" || ${n} === null
|
|
4
4
|
|| (${r} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(o,(0,ue._)`+${n}`);return;case"boolean":i.elseIf((0,ue._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(o,!1).elseIf((0,ue._)`${n} === "true" || ${n} === 1`).assign(o,!0);return;case"null":i.elseIf((0,ue._)`${n} === "" || ${n} === 0 || ${n} === false`),i.assign(o,null);return;case"array":i.elseIf((0,ue._)`${r} === "string" || ${r} === "number"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as a}from"./chunk-D5WEMCFU.js";import"./chunk-KLDACGOZ.js";import"./chunk-HMDNUXTY.js";import"./chunk-UQFNUGQM.js";import"./chunk-TWFE7WAV.js";import"./chunk-Q7NLVQF3.js";import"./chunk-6MIOQ7Y5.js";import"./chunk-M5LTG544.js";import"./chunk-W6CTMNAG.js";import"./chunk-F2WFV5GW.js";import"./chunk-W7CPCAPT.js";import"./chunk-KIPITWHI.js";import"./chunk-AKQE7OWM.js";import"./chunk-5BZGZWPU.js";import"./chunk-QGC43YCF.js";import"./chunk-NSDMDB7X.js";import"./chunk-UXXGHFQU.js";import"./chunk-GZMSZZVX.js";import"./chunk-PVRKV6LM.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-X2NTV4U7.js";import"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as StatusComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"./chunk-RWT5SL6D.js";import"./chunk-5BZGZWPU.js";import"./chunk-MS2EQS6S.js";import"./chunk-XCZREHWX.js";import"./chunk-5CDZD4QO.js";import"./chunk-5NJQH2A3.js";import"./chunk-MJUBX7V2.js";import"./chunk-NCJAIFQO.js";import"./chunk-KD5YLOUW.js";import"./chunk-P5BH5BCJ.js";import"./chunk-V7KKBEKT.js";export{a as UsersComponent};
|