← Back
Editing: twofactor_totp-main-login-setup.js
(()=>{var e={816:function(t){t.exports=function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var e=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(e,n){var r;r=function(){return function e(n,r,o){function i(a,u){if(!r[a]){if(!n[a]){if(!u&&t)return t();if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[a]={exports:{}};n[a][0].call(f.exports,(function(t){return i(n[a][1][t]||t)}),f,f.exports,e,n,r,o)}return r[a].exports}for(var s=t,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},{}],2:[function(t,e,n){var r=t("./utils").getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=r(t),o=145===n?26:2*Math.ceil((n-13)/(2*e-2)),i=[n-7],s=1;s<e-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()},n.getPositions=function(t){for(var e=[],r=n.getRowColCoords(t),o=r.length,i=0;i<o;i++)for(var s=0;s<o;s++)0===i&&0===s||0===i&&s===o-1||i===o-1&&0===s||e.push([r[i],r[s]]);return e}},{"./utils":21}],3:[function(t,e,n){var r=t("./mode"),o=["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 i(t){this.mode=r.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var n=45*o.indexOf(this.data[e]);n+=o.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},e.exports=i},{"./mode":14}],4:[function(t,e,n){function r(){this.buffer=[],this.length=0}r.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},e.exports=r},{}],5:[function(t,e,n){var r=t("../utils/buffer");function o(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=r.alloc(t*t),this.reservedBit=r.alloc(t*t)}o.prototype.set=function(t,e,n,r){var o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},o.prototype.get=function(t,e){return this.data[t*this.size+e]},o.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},o.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},e.exports=o},{"../utils/buffer":28}],6:[function(t,e,n){var r=t("../utils/buffer"),o=t("./mode");function i(t){this.mode=o.BYTE,this.data=r.from(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},e.exports=i},{"../utils/buffer":28,"./mode":14}],7:[function(t,e,n){var r=t("./error-correction-level"),o=[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],i=[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];n.getBlocksCount=function(t,e){switch(e){case r.L:return o[4*(t-1)+0];case r.M:return o[4*(t-1)+1];case r.Q:return o[4*(t-1)+2];case r.H:return o[4*(t-1)+3];default:return}},n.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return i[4*(t-1)+0];case r.M:return i[4*(t-1)+1];case r.Q:return i[4*(t-1)+2];case r.H:return i[4*(t-1)+3];default:return}}},{"./error-correction-level":8}],8:[function(t,e,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}},{}],9:[function(t,e,n){var r=t("./utils").getSymbolSize;n.getPositions=function(t){var e=r(t);return[[0,0],[e-7,0],[0,e-7]]}},{"./utils":21}],10:[function(t,e,n){var r=t("./utils"),o=r.getBCHDigit(1335);n.getEncodedBits=function(t,e){for(var n=t.bit<<3|e,i=n<<10;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},{"./utils":21}],11:[function(t,e,n){var r=t("../utils/buffer"),o=r.alloc(512),i=r.alloc(256);!function(){for(var t=1,e=0;e<255;e++)o[e]=t,i[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)o[e]=o[e-255]}(),n.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},n.exp=function(t){return o[t]},n.mul=function(t,e){return 0===t||0===e?0:o[i[t]+i[e]]}},{"../utils/buffer":28}],12:[function(t,e,n){var r=t("./mode"),o=t("./utils");function i(t){this.mode=r.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var n=o.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},e.exports=i},{"./mode":14,"./utils":21}],13:[function(t,e,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,o=3,i=40,s=10;function a(t,e,r){switch(t){case n.Patterns.PATTERN000:return(e+r)%2==0;case n.Patterns.PATTERN001:return e%2==0;case n.Patterns.PATTERN010:return r%3==0;case n.Patterns.PATTERN011:return(e+r)%3==0;case n.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case n.Patterns.PATTERN101:return e*r%2+e*r%3==0;case n.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case n.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}n.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){for(var e=t.size,n=0,o=0,i=0,s=null,a=null,u=0;u<e;u++){o=i=0,s=a=null;for(var c=0;c<e;c++){var f=t.get(u,c);f===s?o++:(o>=5&&(n+=r+(o-5)),s=f,o=1),(f=t.get(c,u))===a?i++:(i>=5&&(n+=r+(i-5)),a=f,i=1)}o>=5&&(n+=r+(o-5)),i>=5&&(n+=r+(i-5))}return n},n.getPenaltyN2=function(t){for(var e=t.size,n=0,r=0;r<e-1;r++)for(var i=0;i<e-1;i++){var s=t.get(r,i)+t.get(r,i+1)+t.get(r+1,i)+t.get(r+1,i+1);4!==s&&0!==s||n++}return n*o},n.getPenaltyN3=function(t){for(var e=t.size,n=0,r=0,o=0,s=0;s<e;s++){r=o=0;for(var a=0;a<e;a++)r=r<<1&2047|t.get(s,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(1488===o||93===o)&&n++}return n*i},n.getPenaltyN4=function(t){for(var e=0,n=t.data.length,r=0;r<n;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/n/5)-10)*s},n.applyMask=function(t,e){for(var n=e.size,r=0;r<n;r++)for(var o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,a(t,o,r))},n.getBestMask=function(t,e){for(var r=Object.keys(n.Patterns).length,o=0,i=1/0,s=0;s<r;s++){e(s),n.applyMask(s,t);var a=n.getPenaltyN1(t)+n.getPenaltyN2(t)+n.getPenaltyN3(t)+n.getPenaltyN4(t);n.applyMask(s,t),a<i&&(i=a,o=s)}return o}},{}],14:[function(t,e,n){var r=t("./version-check"),o=t("./regex");n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!r.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return o.testNumeric(t)?n.NUMERIC:o.testAlphanumeric(t)?n.ALPHANUMERIC:o.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}},{"./regex":19,"./version-check":22}],15:[function(t,e,n){var r=t("./mode");function o(t){this.mode=r.NUMERIC,this.data=t.toString()}o.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);var o=this.data.length-e;o>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))},e.exports=o},{"./mode":14}],16:[function(t,e,n){var r=t("../utils/buffer"),o=t("./galois-field");n.mul=function(t,e){for(var n=r.alloc(t.length+e.length-1),i=0;i<t.length;i++)for(var s=0;s<e.length;s++)n[i+s]^=o.mul(t[i],e[s]);return n},n.mod=function(t,e){for(var n=r.from(t);n.length-e.length>=0;){for(var i=n[0],s=0;s<e.length;s++)n[s]^=o.mul(e[s],i);for(var a=0;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},n.generateECPolynomial=function(t){for(var e=r.from([1]),i=0;i<t;i++)e=n.mul(e,[1,o.exp(i)]);return e}},{"../utils/buffer":28,"./galois-field":11}],17:[function(t,e,n){var r=t("../utils/buffer"),o=t("./utils"),i=t("./error-correction-level"),s=t("./bit-buffer"),a=t("./bit-matrix"),u=t("./alignment-pattern"),c=t("./finder-pattern"),f=t("./mask-pattern"),l=t("./error-correction-code"),h=t("./reed-solomon-encoder"),p=t("./version"),d=t("./format-info"),g=t("./mode"),v=t("./segments"),m=t("isarray");function y(t,e,n){var r,o,i=t.size,s=d.getEncodedBits(e,n);for(r=0;r<15;r++)o=1==(s>>r&1),r<6?t.set(r,8,o,!0):r<8?t.set(r+1,8,o,!0):t.set(i-15+r,8,o,!0),r<8?t.set(8,i-r-1,o,!0):r<9?t.set(8,15-r-1+1,o,!0):t.set(8,15-r-1,o,!0);t.set(i-8,8,1,!0)}function b(t,e,n){var i=new s;n.forEach((function(e){i.put(e.mode.bit,4),i.put(e.getLength(),g.getCharCountIndicator(e.mode,t)),e.write(i)}));var a=8*(o.getSymbolTotalCodewords(t)-l.getTotalCodewordsCount(t,e));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var u=(a-i.getLengthInBits())/8,c=0;c<u;c++)i.put(c%2?17:236,8);return function(t,e,n){for(var i=o.getSymbolTotalCodewords(e),s=i-l.getTotalCodewordsCount(e,n),a=l.getBlocksCount(e,n),u=a-i%a,c=Math.floor(i/a),f=Math.floor(s/a),p=f+1,d=c-f,g=new h(d),v=0,m=new Array(a),y=new Array(a),b=0,w=r.from(t.buffer),E=0;E<a;E++){var _=E<u?f:p;m[E]=w.slice(v,v+_),y[E]=g.encode(m[E]),v+=_,b=Math.max(b,_)}var A,O,T=r.alloc(i),R=0;for(A=0;A<b;A++)for(O=0;O<a;O++)A<m[O].length&&(T[R++]=m[O][A]);for(A=0;A<d;A++)for(O=0;O<a;O++)T[R++]=y[O][A];return T}(i,t,e)}function w(t,e,n,r){var i;if(m(t))i=v.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var s=e;if(!s){var l=v.rawSplit(t);s=p.getBestVersionForData(l,n)}i=v.fromString(t,s||40)}var h=p.getBestVersionForData(i,n);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else e=h;var d=b(e,n,i),g=o.getSymbolSize(e),w=new a(g);return function(t,e){for(var n=t.size,r=c.getPositions(e),o=0;o<r.length;o++)for(var i=r[o][0],s=r[o][1],a=-1;a<=7;a++)if(!(i+a<=-1||n<=i+a))for(var u=-1;u<=7;u++)s+u<=-1||n<=s+u||(a>=0&&a<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===a||6===a)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}(w,e),function(t){for(var e=t.size,n=8;n<e-8;n++){var r=n%2==0;t.set(n,6,r,!0),t.set(6,n,r,!0)}}(w),function(t,e){for(var n=u.getPositions(e),r=0;r<n.length;r++)for(var o=n[r][0],i=n[r][1],s=-2;s<=2;s++)for(var a=-2;a<=2;a++)-2===s||2===s||-2===a||2===a||0===s&&0===a?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}(w,e),y(w,n,0),e>=7&&function(t,e){for(var n,r,o,i=t.size,s=p.getEncodedBits(e),a=0;a<18;a++)n=Math.floor(a/3),r=a%3+i-8-3,o=1==(s>>a&1),t.set(n,r,o,!0),t.set(r,n,o,!0)}(w,e),function(t,e){for(var n=t.size,r=-1,o=n-1,i=7,s=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var u=0;u<2;u++)if(!t.isReserved(o,a-u)){var c=!1;s<e.length&&(c=1==(e[s]>>>i&1)),t.set(o,a-u,c),-1==--i&&(s++,i=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(w,d),isNaN(r)&&(r=f.getBestMask(w,y.bind(null,w,n))),f.applyMask(r,w),y(w,n,r),{modules:w,version:e,errorCorrectionLevel:n,maskPattern:r,segments:i}}n.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var n,r,s=i.M;return void 0!==e&&(s=i.from(e.errorCorrectionLevel,i.M),n=p.from(e.version),r=f.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),w(t,n,s,r)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(t,e,n){var r=t("../utils/buffer"),o=t("./polynomial"),i=t("buffer").Buffer;function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=r.alloc(this.degree),n=i.concat([t,e],t.length+this.degree),s=o.mod(n,this.genPoly),a=this.degree-s.length;if(a>0){var u=r.alloc(this.degree);return s.copy(u,a),u}return s},e.exports=s},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(t,e,n){var r="[0-9]+",o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(o=o.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=new RegExp(o,"g"),n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=new RegExp(i,"g"),n.NUMERIC=new RegExp(r,"g"),n.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var s=new RegExp("^"+o+"$"),a=new RegExp("^"+r+"$"),u=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(t){return s.test(t)},n.testNumeric=function(t){return a.test(t)},n.testAlphanumeric=function(t){return u.test(t)}},{}],20:[function(t,e,n){var r=t("./mode"),o=t("./numeric-data"),i=t("./alphanumeric-data"),s=t("./byte-data"),a=t("./kanji-data"),u=t("./regex"),c=t("./utils"),f=t("dijkstrajs");function l(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){for(var r,o=[];null!==(r=t.exec(n));)o.push({data:r[0],index:r.index,mode:e,length:r[0].length});return o}function p(t){var e,n,o=h(u.NUMERIC,r.NUMERIC,t),i=h(u.ALPHANUMERIC,r.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=h(u.BYTE,r.BYTE,t),n=h(u.KANJI,r.KANJI,t)):(e=h(u.BYTE_KANJI,r.BYTE,t),n=[]),o.concat(i,e,n).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function d(t,e){switch(e){case r.NUMERIC:return o.getBitsLength(t);case r.ALPHANUMERIC:return i.getBitsLength(t);case r.KANJI:return a.getBitsLength(t);case r.BYTE:return s.getBitsLength(t)}}function g(t,e){var n,u=r.getBestModeForData(t);if((n=r.from(e,u))!==r.BYTE&&n.bit<u.bit)throw new Error('"'+t+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(u));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(t);case r.ALPHANUMERIC:return new i(t);case r.KANJI:return new a(t);case r.BYTE:return new s(t)}}n.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t}),[])},n.fromString=function(t,e){for(var o=function(t,e){for(var n={},o={start:{}},i=["start"],s=0;s<t.length;s++){for(var a=t[s],u=[],c=0;c<a.length;c++){var f=a[c],l=""+s+c;u.push(l),n[l]={node:f,lastCount:0},o[l]={};for(var h=0;h<i.length;h++){var p=i[h];n[p]&&n[p].node.mode===f.mode?(o[p][l]=d(n[p].lastCount+f.length,f.mode)-d(n[p].lastCount,f.mode),n[p].lastCount+=f.length):(n[p]&&(n[p].lastCount=f.length),o[p][l]=d(f.length,f.mode)+4+r.getCharCountIndicator(f.mode,e))}}i=u}for(h=0;h<i.length;h++)o[i[h]].end=0;return{map:o,table:n}}(function(t){for(var e=[],n=0;n<t.length;n++){var o=t[n];switch(o.mode){case r.NUMERIC:e.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:e.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:e.push([o,{data:o.data,mode:r.BYTE,length:l(o.data)}]);break;case r.BYTE:e.push([{data:o.data,mode:r.BYTE,length:l(o.data)}])}}return e}(p(t,c.isKanjiModeEnabled())),e),i=f.find_path(o.map,"start","end"),s=[],a=1;a<i.length-1;a++)s.push(o.table[i[a]].node);return n.fromArray(s.reduce((function(t,e){var n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[]))},n.rawSplit=function(t){return n.fromArray(p(t,c.isKanjiModeEnabled()))}},{"./alphanumeric-data":3,"./byte-data":6,"./kanji-data":12,"./mode":14,"./numeric-data":15,"./regex":19,"./utils":21,dijkstrajs:31}],21:[function(t,e,n){var r,o=[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];n.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 4*t+17},n.getSymbolTotalCodewords=function(t){return o[t]},n.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},n.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},n.isKanjiModeEnabled=function(){return void 0!==r},n.toSJIS=function(t){return r(t)}},{}],22:[function(t,e,n){n.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},{}],23:[function(t,e,n){var r=t("./utils"),o=t("./error-correction-code"),i=t("./error-correction-level"),s=t("./mode"),a=t("./version-check"),u=t("isarray"),c=r.getBCHDigit(7973);function f(t,e){return s.getCharCountIndicator(t,e)+4}function l(t,e){var n=0;return t.forEach((function(t){var r=f(t.mode,e);n+=r+t.getBitsLength()})),n}n.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},n.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);var i=8*(r.getSymbolTotalCodewords(t)-o.getTotalCodewordsCount(t,e));if(n===s.MIXED)return i;var u=i-f(n,t);switch(n){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)}},n.getBestVersionForData=function(t,e){var r,o=i.from(e,i.M);if(u(t)){if(t.length>1)return function(t,e){for(var r=1;r<=40;r++)if(l(t,r)<=n.getCapacity(r,e,s.MIXED))return r}(t,o);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,e,r){for(var o=1;o<=40;o++)if(e<=n.getCapacity(o,r,t))return o}(r.mode,r.getLength(),o)},n.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;r.getBCHDigit(e)-c>=0;)e^=7973<<r.getBCHDigit(e)-c;return t<<12|e}},{"./error-correction-code":7,"./error-correction-level":8,"./mode":14,"./utils":21,"./version-check":22,isarray:33}],24:[function(t,e,n){var r=t("./can-promise"),o=t("./core/qrcode"),i=t("./renderer/canvas"),s=t("./renderer/svg-tag.js");function a(t,e,n,i,s){var a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(n=e,e=i=void 0):2!==u||e.getContext||(i=n,n=e,e=void 0),new Promise((function(r,s){try{var a=o.create(n,i);r(t(a,e,i))}catch(t){s(t)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(s=n,n=e,e=i=void 0):3===u&&(e.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=e,e=void 0));try{var f=o.create(n,i);s(null,t(f,e,i))}catch(t){s(t)}}n.create=o.create,n.toCanvas=a.bind(null,i.render),n.toDataURL=a.bind(null,i.renderToDataURL),n.toString=a.bind(null,(function(t,e,n){return s.render(t,n)}))},{"./can-promise":1,"./core/qrcode":17,"./renderer/canvas":25,"./renderer/svg-tag.js":26}],25:[function(t,e,n){var r=t("./utils");n.render=function(t,e,n){var o=n,i=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);var s=r.getImageWidth(t.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return r.qrToImageData(u.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,i,s),a.putImageData(u,0,0),i},n.renderToDataURL=function(t,e,r){var o=r;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});var i=n.render(t,e,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}},{"./utils":27}],26:[function(t,e,n){var r=t("./utils");function o(t,e){var n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(t,e,n){var r=t+e;return void 0!==n&&(r+=" "+n),r}n.render=function(t,e,n){var s=r.getOptions(e),a=t.modules.size,u=t.modules.data,c=a+2*s.margin,f=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",l="<path "+o(s.color.dark,"stroke")+' d="'+function(t,e,n){for(var r="",o=0,s=!1,a=0,u=0;u<t.length;u++){var c=Math.floor(u%e),f=Math.floor(u/e);c||s||(s=!0),t[u]?(a++,u>0&&c>0&&t[u-1]||(r+=s?i("M",c+n,.5+f+n):i("m",o,0),o=0,s=!1),c+1<e&&t[u+1]||(r+=i("h",a),a=0)):o++}return r}(u,a,s.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+h+' shape-rendering="crispEdges">'+f+l+"</svg>\n";return"function"==typeof n&&n(null,p),p}},{"./utils":27}],27:[function(t,e,n){function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}n.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},n.getImageWidth=function(t,e){var r=n.getScale(t,e);return Math.floor((t+2*e.margin)*r)},n.qrToImageData=function(t,e,r){for(var o=e.modules.size,i=e.modules.data,s=n.getScale(o,r),a=Math.floor((o+2*r.margin)*s),u=r.margin*s,c=[r.color.light,r.color.dark],f=0;f<a;f++)for(var l=0;l<a;l++){var h=4*(f*a+l),p=r.color.light;f>=u&&l>=u&&f<a-u&&l<a-u&&(p=c[i[Math.floor((f-u)/s)*o+Math.floor((l-u)/s)]?1:0]),t[h++]=p.r,t[h++]=p.g,t[h++]=p.b,t[h]=p.a}}},{}],28:[function(t,e,n){var r=t("isarray");i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}();var o=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(t,e,n){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof t?u(this,t):function(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),i.TYPED_ARRAY_SUPPORT?o.__proto__=i.prototype:o=c(t,o),o}(t,e,n,r):"string"==typeof e?function(t,e){var n=0|l(e),r=a(t,n),o=r.write(e);return o!==n&&(r=r.slice(0,o)),r}(t,e):function(t,e){if(i.isBuffer(e)){var n=0|s(e.length),r=a(t,n);return 0===r.length||e.copy(r,0,0,n),r}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(o=e.length)!=o?a(t,0):c(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return c(t,e.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,n):new i(t,e,n)}function s(t){if(t>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function a(t,e){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=i.prototype:(null===(n=t)&&(n=new i(e)),n.length=e),n}function u(t,e){var n=a(t,e<0?0:0|s(e));if(!i.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)n[r]=0;return n}function c(t,e){for(var n=e.length<0?0:0|s(e.length),r=a(t,n),o=0;o<n;o+=1)r[o]=255&e[o];return r}function f(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function l(t){return i.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:f(t).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,n,r){return function(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}(f(e,t.length-n),t,n,r)}(this,t,e,n)},i.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),i.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=i.prototype;else{var o=e-t;n=new i(o,void 0);for(var s=0;s<o;++s)n[s]=this[s+t]}return n},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,s=r-n;if(this===t&&n<e&&e<r)for(o=s-1;o>=0;--o)t[o+e]=this[o+n];else if(s<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},i.prototype.fill=function(t,e,n){if("string"==typeof t){if("string"==typeof e?(e=0,n=this.length):"string"==typeof n&&(n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var s=i.isBuffer(t)?t:new i(t),a=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%a]}return this},i.concat=function(t,e){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a(null,0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var o=u(null,e),s=0;for(n=0;n<t.length;++n){var c=t[n];if(!i.isBuffer(c))throw new TypeError('"list" argument must be an Array of Buffers');c.copy(o,s),s+=c.length}return o},i.byteLength=l,i.prototype._isBuffer=!0,i.isBuffer=function(t){return!(null==t||!t._isBuffer)},e.exports.alloc=function(t){var e=new i(t);return e.fill(0),e},e.exports.from=function(t){return new i(t)}},{isarray:33}],29:[function(t,e,n){n.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},n.toByteArray=function(t){var e,n,r=u(t),s=r[0],a=r[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),f=0,l=a>0?s-4:s;for(n=0;n<l;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===a&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[f++]=255&e),1===a&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},n.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(c(t,a,a+s>u?u:a+s));return 1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var o,i=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),i.push(r[(a=o)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);var a;return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],30:[function(t,e,n){var r=t("base64-js"),o=t("ieee754"),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},n.INSPECT_MAX_BYTES=50;var s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|d(t,e),r=a(n),o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return h(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer))return function(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,u.prototype),r}(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);var o=function(t){if(u.isBuffer(t)){var e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||q(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),a(t<0?0:0|p(t))}function h(t){for(var e=t.length<0?0:0|p(t.length),n=a(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function d(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return M(t).length;default:if(o)return r?-1:j(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,o){var i,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var f=-1;for(i=n;i<a;i++)if(c(t,i)===c(e,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===u)return f*s}else-1!==f&&(i-=i-f),f=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var l=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){l=!1;break}if(l)return i}return-1}function b(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(q(a))return s;t[n+s]=a}return s}function w(t,e,n,r){return D(j(e,t.length-n),t,n,r)}function E(t,e,n,r){return D(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function _(t,e,n,r){return E(t,e,n,r)}function A(t,e,n,r){return D(M(e),t,n,r)}function O(t,e,n,r){return D(function(t,e){for(var n,r,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function R(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,s,a,u,c=t[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&c)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),o+=l}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=S));return n}(r)}n.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),u.poolSize=8192,u.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),F(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var i=t[n];if(F(i,Uint8Array)&&(i=u.from(i)),!u.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?R(this,0,t):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,o){if(F(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(i,s),c=this.slice(r,o),f=t.slice(e,n),l=0;l<a;++l)if(c[l]!==f[l]){i=c[l],s=f[l];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function C(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function x(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=z[t[i]];return o}function L(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function N(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,i){return e=+e,n>>>=0,i||P(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},u.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<n&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var o=Math.pow(2,8*n-1);B(this,t,e,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s|0)-a&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,n){return $(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return $(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o=r-n;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,n,r);else if(this===t&&n<e&&e<r)for(var i=o-1;i>=0;--i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var o=t.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var s=u.isBuffer(t)?t:u.from(t,r),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=s[i%a]}return this};var k=/[^+/0-9A-Za-z-_]/g;function j(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function M(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function q(t){return t!=t}var z=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)e[r+o]=t[n]+t[o];return e}()},{"base64-js":29,ieee754:32}],31:[function(t,e,n){var r={single_source_shortest_paths:function(t,e,n){var o={},i={};i[e]=0;var s,a,u,c,f,l,h,p=r.PriorityQueue.make();for(p.push(e,0);!p.empty();)for(u in a=(s=p.pop()).value,c=s.cost,f=t[a]||{})f.hasOwnProperty(u)&&(l=c+f[u],h=i[u],(void 0===i[u]||h>l)&&(i[u]=l,p.push(u,l),o[u]=a));if(void 0!==n&&void 0===i[n]){var d=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(d)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,e,n){var o=r.single_source_shortest_paths(t,e,n);return r.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(t){var e,n=r.PriorityQueue,o={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(o[e]=n[e]);return o.queue=[],o.sorter=t.sorter||n.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==e&&(e.exports=r)},{}],32:[function(t,e,n){n.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,f=-7,l=n?o-1:0,h=n?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},{}],33:[function(t,e,n){var r={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}]},{},[24])(24)},e.exports=r()}));return{name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(t){return t(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var t=this,n=this.options,r=this.tag,o=String(this.value);"canvas"===r?e.toCanvas(this.$el,o,n,(function(t){if(t)throw t})):"img"===r?e.toDataURL(o,n,(function(e,n){if(e)throw e;t.$el.src=n})):e.toString(o,n,(function(e,n){if(e)throw e;t.$el.innerHTML=n}))}},mounted:function(){this.generate()}}}()},950:(t,e,n)=>{"use strict";const r=n(322),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=n(692),{safeRe:s,t:a}=n(208),u=n(901),{compareIdentifiers:c}=n(229);class f{constructor(t,e){if(e=u(e),t instanceof f){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const n=t.trim().match(e.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<i)return e}return t})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(r("SemVer.compare",this.version,this.options,t),!(t instanceof f)){if("string"==typeof t&&t===this.version)return 0;t=new f(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof f||(t=new f(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof f||(t=new f(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const n=this.prerelease[e],o=t.prerelease[e];if(r("prerelease compare",e,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++e)}compareBuild(t){t instanceof f||(t=new f(t,this.options));let e=0;do{const n=this.build[e],o=t.build[e];if(r("build compare",e,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return c(n,o)}while(++e)}inc(t,e,n){if(t.startsWith("pre")){if(!e&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let r=[e,t];!1===n&&(r=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=f},64:(t,e,n)=>{"use strict";const r=n(950);t.exports=(t,e)=>new r(t,e).major},690:(t,e,n)=>{"use strict";const r=n(950);t.exports=(t,e,n=!1)=>{if(t instanceof r)return t;try{return new r(t,e)}catch(t){if(!n)return null;throw t}}},711:(t,e,n)=>{"use strict";const r=n(690);t.exports=(t,e)=>{const n=r(t,e);return n?n.version:null}},692:t=>{"use strict";const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},322:(t,e,n)=>{"use strict";var r=n(606);const o="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=o},229:t=>{"use strict";const e=/^[0-9]+$/,n=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};t.exports={compareIdentifiers:n,rcompareIdentifiers:(t,e)=>n(e,t)}},901:t=>{"use strict";const e=Object.freeze({loose:!0}),n=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:n},208:(t,e,n)=>{"use strict";const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:i}=n(692),s=n(322),a=(e=t.exports={}).re=[],u=e.safeRe=[],c=e.src=[],f=e.safeSrc=[],l=e.t={};let h=0;const p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[p,o]],g=(t,e,n)=>{const r=(t=>{for(const[e,n]of d)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t})(e),o=h++;s(t,o,e),l[t]=o,c[o]=e,f[o]=r,a[o]=new RegExp(e,n?"g":void 0),u[o]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),g("FULL",`^${c[l.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),g("LOOSE",`^${c[l.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),g("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?`+`(?:${c[l.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[l.COERCE],!0),g("COERCERTLFULL",c[l.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",g("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",g("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=a(t),s=i[0],u=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,u)),f=0,l=u>0?s-4:s;for(n=0;n<l;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[f++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(u(t,a,a+s>c?c:a+s));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},287:(t,e,n)=>{"use strict";const r=n(526),o=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=u,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let r=a(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return p(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);const o=function(t){if(u.isBuffer(t)){const e=0|d(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||J(t.length)?a(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),a(t<0?0:0|d(t))}function h(t){const e=t.length<0?0:0|d(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function p(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,u.prototype),r}function d(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(t).length;default:if(o)return r?-1:G(t).length;e=(""+e).toLowerCase(),o=!0}}function v(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,o){let i,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let r=-1;for(i=n;i<a;i++)if(c(t,i)===c(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){let n=!0;for(let r=0;r<u;r++)if(c(t,i+r)!==c(e,r)){n=!1;break}if(n)return i}return-1}function w(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(J(r))return s;t[n+s]=r}return s}function E(t,e,n,r){return X(G(e,t.length-n),t,n,r)}function _(t,e,n,r){return X(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function A(t,e,n,r){return X(Y(e),t,n,r)}function O(t,e,n,r){return X(function(t,e){let n,r,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function R(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,r,a,u;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(i=u));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:n=t[o+1],r=t[o+2],a=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(t){const e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=S));return n}(r)}u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,n){return function(t,e,n){return f(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=u.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(K(e,Uint8Array))o+e.length>r.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?R(this,0,t):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,o){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(i,s),c=this.slice(r,o),f=t.slice(e,n);for(let t=0;t<a;++t)if(c[t]!==f[t]){i=c[t],s=f[t];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":case"latin1":case"binary":return _(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const S=4096;function C(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function I(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function x(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r<n;++r)o+=W[t[r]];return o}function L(t,e,n){const r=t.slice(e,n);let o="";for(let t=0;t<r.length-1;t+=2)o+=String.fromCharCode(r[t]+256*r[t+1]);return o}function N(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r,o){q(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function $(t,e,n,r,o){q(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function U(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,i){return e=+e,n>>>=0,i||U(t,0,n,8),o.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),u.prototype.readBigUInt64BE=Q((function(t){z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),u.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Q((function(t){z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Q((function(t){z(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||H(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Q((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Q((function(t,e=0){return $(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let o=0,i=1,s=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Q((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Q((function(t,e=0){return $(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=u.isBuffer(t)?t:u.from(t,r),s=i.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%s]}return this};const M={};function D(t,e,n){M[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function F(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function q(t,e,n,r,o,i){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){z(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||H(e,t.length-(n+1))}(r,o,i)}function z(t,e){if("number"!=typeof t)throw new M.ERR_INVALID_ARG_TYPE(e,"number",t)}function H(t,e,n){if(Math.floor(t)!==t)throw z(t,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}D("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),D("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),D("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=F(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=F(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function G(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function Y(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function J(t){return t!=t}const W=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function Q(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},468:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(354),o=n.n(r),i=n(314),s=n.n(i)()(o());s.push([t.id,".setup-confirmation__secret[data-v-7568a08a]{word-break:break-all}","",{version:3,sources:["webpack://./src/components/SetupConfirmation.vue"],names:[],mappings:"AAEC,6CACC,oBAAA",sourceRoot:""}]);const a=s},477:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(354),o=n.n(r),i=n(314),s=n.n(i)()(o());s.push([t.id,"\n.loading[data-v-2c398401] {\n\tmin-height: 50px;\n}\n","",{version:3,sources:["webpack://./src/components/LoginSetup.vue"],names:[],mappings:";AAiFA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t<div>\n\t\t<div v-if=\"loading\" class=\"loading\" />\n\t\t<SetupConfirmation v-else\n\t\t\t:loading=\"confirmationLoading\"\n\t\t\t:secret=\"secret\"\n\t\t\t:qr-url=\"qrUrl\"\n\t\t\t:confirmation.sync=\"confirmation\"\n\t\t\t@confirm=\"confirm\" />\n\t\t<form ref=\"confirmForm\" method=\"POST\" />\n\t</div>\n</template>\n\n<script>\nimport Logger from '../logger.js'\nimport { saveState } from '../services/StateService.js'\nimport SetupConfirmation from './SetupConfirmation.vue'\nimport STATE from '../state.js'\n\nexport default {\n\tname: 'LoginSetup',\n\tcomponents: {\n\t\tSetupConfirmation,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tloading: true,\n\t\t\tconfirmationLoading: false,\n\t\t\tsecret: '',\n\t\t\tqrUrl: '',\n\t\t\tconfirmation: '',\n\t\t}\n\t},\n\tmounted() {\n\t\tthis.load()\n\t},\n\tmethods: {\n\t\tload() {\n\t\t\tthis.loading = true\n\t\t\tLogger.info('starting TOTP setup')\n\n\t\t\tsaveState({ state: STATE.STATE_CREATED }).then(\n\t\t\t\t({ secret, qrUrl }) => {\n\t\t\t\t\tLogger.info('TOTP secret received')\n\n\t\t\t\t\tthis.secret = secret\n\t\t\t\t\tthis.qrUrl = qrUrl\n\n\t\t\t\t\tthis.loading = false\n\t\t\t\t},\n\t\t\t)\n\t\t},\n\t\tconfirm() {\n\t\t\tthis.loading = true\n\n\t\t\tsaveState({\n\t\t\t\tstate: STATE.STATE_ENABLED,\n\t\t\t\tcode: this.confirmation,\n\t\t\t}).then(({ state }) => {\n\t\t\t\tif (state === STATE.STATE_ENABLED) {\n\t\t\t\t\tLogger.info('TOTP secret confirmed')\n\n\t\t\t\t\tLogger.info('todo: submit')\n\t\t\t\t\tthis.$refs.confirmForm.submit()\n\t\t\t\t} else {\n\t\t\t\t\tLogger.warn('TOTP confirmation failed')\n\n\t\t\t\t\tthis.loading = false\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n.loading {\n\tmin-height: 50px;\n}\n</style>\n"],sourceRoot:""}]);const a=s},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<t.length;c++){var f=[].concat(t[c]);r&&s[f[0]]||(void 0!==i&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=i),n&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=n):f[2]=n),o&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=o):f[4]="".concat(o)),e.push(f))}},e}},354:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},251:(t,e)=>{e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,f=-7,l=n?o-1:0,h=n?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},606:t=>{var e,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var a,u=[],c=!1,f=-1;function l(){c&&a&&(c=!1,a.length?u=a.concat(u):f=-1,u.length&&h())}function h(){if(!c){var t=s(l);c=!0;for(var e=u.length;e;){for(a=u,u=[];++f<e;)a&&a[f].run();f=-1,e=u.length}a=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var i={},s=[],a=0;a<t.length;a++){var u=t[a],c=r.base?u[0]+r.base:u[0],f=i[c]||0,l="".concat(c," ").concat(f);i[c]=f+1;var h=n(l),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==h)e[h].references++,e[h].updater(p);else{var d=o(p,r);r.byIndex=a,e.splice(a,0,{identifier:l,updater:d,references:1})}s.push(l)}return s}function o(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,o){var i=r(t=t||[],o=o||{});return function(t){t=t||[];for(var s=0;s<i.length;s++){var a=n(i[s]);e[a].references--}for(var u=r(t,o),c=0;c<i.length;c++){var f=n(i[c]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}i=u}}},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nc=void 0,(()=>{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Bs,hasStandardBrowserEnv:()=>$s,hasStandardBrowserWebWorkerEnv:()=>Us,navigator:()=>Ps,origin:()=>ks});var n=Object.freeze({}),o=Array.isArray;function i(t){return null==t}function s(t){return null!=t}function a(t){return!0===t}function u(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return"function"==typeof t}function f(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function h(t){return"[object Object]"===l.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return s(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function g(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===l?JSON.stringify(t,v,2):String(t)}function v(t,e){return e&&e.__v_isRef?e.value:e}function m(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}y("slot,component",!0);var b=y("key,ref,slot,slot-scope,is");function w(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var E=Object.prototype.hasOwnProperty;function _(t,e){return E.call(t,e)}function A(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var O=/-(\w)/g,T=A((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),R=A((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,C=A((function(t){return t.replace(S,"-$1").toLowerCase()})),I=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function x(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function L(t,e){for(var n in e)t[n]=e[n];return t}function N(t){for(var e={},n=0;n<t.length;n++)t[n]&&L(e,t[n]);return e}function B(t,e,n){}var P=function(t,e,n){return!1},$=function(t){return t};function U(t,e){if(t===e)return!0;var n=f(t),r=f(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var o=Array.isArray(t),i=Array.isArray(e);if(o&&i)return t.length===e.length&&t.every((function(t,n){return U(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(o||i)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return U(t[n],e[n])}))}catch(t){return!1}}function k(t,e){for(var n=0;n<t.length;n++)if(U(t[n],e))return n;return-1}function j(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var M="data-server-rendered",D=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:B,parsePlatformTagName:$,mustUseProp:P,async:!0,_lifecycleHooks:F};function z(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function H(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^".concat(/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source,".$_\\d]")),G="__proto__"in{},Y="undefined"!=typeof window,X=Y&&window.navigator.userAgent.toLowerCase(),K=X&&/msie|trident/.test(X),J=X&&X.indexOf("msie 9.0")>0,W=X&&X.indexOf("edge/")>0;X&&X.indexOf("android");var Q=X&&/iphone|ipad|ipod|ios/.test(X);X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X);var Z,tt=X&&X.match(/firefox\/(\d+)/),et={}.watch,nt=!1;if(Y)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var ot=function(){return void 0===Z&&(Z=!Y&&void 0!==r.g&&r.g.process&&"server"===r.g.process.env.VUE_ENV),Z},it=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ut="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=null;function ft(t){void 0===t&&(t=null),t||ct&&ct._scope.off(),ct=t,t&&t._scope.on()}var lt=function(){function t(t,e,n,r,o,i,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),ht=function(t){void 0===t&&(t="");var e=new lt;return e.text=t,e.isComment=!0,e};function pt(t){return new lt(void 0,void 0,void 0,String(t))}function dt(t){var e=new lt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"==typeof SuppressedError&&SuppressedError;var gt=0,vt=[],mt=function(){function t(){this._pending=!1,this.id=gt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,vt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){for(var e=this.subs.filter((function(t){return t})),n=0,r=e.length;n<r;n++)e[n].update()},t}();mt.target=null;var yt=[];function bt(t){yt.push(t),mt.target=t}function wt(){yt.pop(),mt.target=yt[yt.length-1]}var Et=Array.prototype,_t=Object.create(Et);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=Et[t];H(_t,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o,i=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&s.observeArray(o),s.dep.notify(),i}))}));var At=Object.getOwnPropertyNames(_t),Ot={},Tt=!0;function Rt(t){Tt=t}var St={notify:B,depend:B,addSub:B,removeSub:B},Ct=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?St:new mt,this.vmCount=0,H(t,"__ob__",this),o(t)){if(!n)if(G)t.__proto__=_t;else for(var r=0,i=At.length;r<i;r++)H(t,a=At[r],_t[a]);e||this.observeArray(t)}else{var s=Object.keys(t);for(r=0;r<s.length;r++){var a;xt(t,a=s[r],Ot,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)It(t[e],!1,this.mock)},t}();function It(t,e,n){return t&&_(t,"__ob__")&&t.__ob__ instanceof Ct?t.__ob__:!Tt||!n&&ot()||!o(t)&&!h(t)||!Object.isExtensible(t)||t.__v_skip||Ut(t)||t instanceof lt?void 0:new Ct(t,e,n)}function xt(t,e,n,r,i,s,a){void 0===a&&(a=!1);var u=new mt,c=Object.getOwnPropertyDescriptor(t,e);if(!c||!1!==c.configurable){var f=c&&c.get,l=c&&c.set;f&&!l||n!==Ot&&2!==arguments.length||(n=t[e]);var h=i?n&&n.__ob__:It(n,!1,s);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=f?f.call(t):n;return mt.target&&(u.depend(),h&&(h.dep.depend(),o(e)&&Bt(e))),Ut(e)&&!i?e.value:e},set:function(e){var r,o,a=f?f.call(t):n;if((r=a)===(o=e)?0===r&&1/r!=1/o:r==r||o==o){if(l)l.call(t,e);else{if(f)return;if(!i&&Ut(a)&&!Ut(e))return void(a.value=e);n=e}h=i?e&&e.__ob__:It(e,!1,s),u.notify()}}}),u}}function Lt(t,e,n){if(!$t(t)){var r=t.__ob__;return o(t)&&p(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&It(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(xt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function Nt(t,e){if(o(t)&&p(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||$t(t)||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function Bt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),o(e)&&Bt(e)}function Pt(t){return function(t,e){$t(t)||It(t,e,ot())}(t,!0),H(t,"__v_isShallow",!0),t}function $t(t){return!(!t||!t.__v_isReadonly)}function Ut(t){return!(!t||!0!==t.__v_isRef)}function kt(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(Ut(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];Ut(r)&&!Ut(t)?r.value=t:e[n]=t}})}var jt,Mt="watcher";"".concat(Mt," callback"),"".concat(Mt," getter"),"".concat(Mt," cleanup");var Dt=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=jt,!t&&jt&&(this.index=(jt.scopes||(jt.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=jt;try{return jt=this,t()}finally{jt=e}}},t.prototype.on=function(){jt=this},t.prototype.off=function(){jt=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();var Ft=A((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function qt(t,e){function n(){var t=n.fns;if(!o(t))return Te(t,null,arguments,e,"v-on handler");for(var r=t.slice(),i=0;i<r.length;i++)Te(r[i],null,arguments,e,"v-on handler")}return n.fns=t,n}function zt(t,e,n,r,o,s){var u,c,f,l;for(u in t)c=t[u],f=e[u],l=Ft(u),i(c)||(i(f)?(i(c.fns)&&(c=t[u]=qt(c,s)),a(l.once)&&(c=t[u]=o(l.name,c,l.capture)),n(l.name,c,l.capture,l.passive,l.params)):c!==f&&(f.fns=c,t[u]=f));for(u in e)i(t[u])&&r((l=Ft(u)).name,e[u],l.capture)}function Ht(t,e,n){var r;t instanceof lt&&(t=t.data.hook||(t.data.hook={}));var o=t[e];function u(){n.apply(this,arguments),w(r.fns,u)}i(o)?r=qt([u]):s(o.fns)&&a(o.merged)?(r=o).fns.push(u):r=qt([o,u]),r.merged=!0,t[e]=r}function Vt(t,e,n,r,o){if(s(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Gt(t){return u(t)?[pt(t)]:o(t)?Xt(t):void 0}function Yt(t){return s(t)&&s(t.text)&&!1===t.isComment}function Xt(t,e){var n,r,c,f,l=[];for(n=0;n<t.length;n++)i(r=t[n])||"boolean"==typeof r||(f=l[c=l.length-1],o(r)?r.length>0&&(Yt((r=Xt(r,"".concat(e||"","_").concat(n)))[0])&&Yt(f)&&(l[c]=pt(f.text+r[0].text),r.shift()),l.push.apply(l,r)):u(r)?Yt(f)?l[c]=pt(f.text+r):""!==r&&l.push(pt(r)):Yt(r)&&Yt(f)?l[c]=pt(f.text+r.text):(a(t._isVList)&&s(r.tag)&&i(r.key)&&s(e)&&(r.key="__vlist".concat(e,"_").concat(n,"__")),l.push(r)));return l}function Kt(t,e){var n,r,i,a,u=null;if(o(t)||"string"==typeof t)for(u=new Array(t.length),n=0,r=t.length;n<r;n++)u[n]=e(t[n],n);else if("number"==typeof t)for(u=new Array(t),n=0;n<t;n++)u[n]=e(n+1,n);else if(f(t))if(ut&&t[Symbol.iterator]){u=[];for(var c=t[Symbol.iterator](),l=c.next();!l.done;)u.push(e(l.value,u.length)),l=c.next()}else for(i=Object.keys(t),u=new Array(i.length),n=0,r=i.length;n<r;n++)a=i[n],u[n]=e(t[a],a,n);return s(u)||(u=[]),u._isVList=!0,u}function Jt(t,e,n,r){var o,i=this.$scopedSlots[t];i?(n=n||{},r&&(n=L(L({},r),n)),o=i(n)||(c(e)?e():e)):o=this.$slots[t]||(c(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},o):o}function Wt(t){return xn(this.$options,"filters",t)||$}function Qt(t,e){return o(t)?-1===t.indexOf(e):t!==e}function Zt(t,e,n,r,o){var i=q.keyCodes[e]||n;return o&&r&&!q.keyCodes[e]?Qt(o,r):i?Qt(i,t):r?C(r)!==e:void 0===t}function te(t,e,n,r,i){if(n&&f(n)){o(n)&&(n=N(n));var s=void 0,a=function(o){if("class"===o||"style"===o||b(o))s=t;else{var a=t.attrs&&t.attrs.type;s=r||q.mustUseProp(e,a,o)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=T(o),c=C(o);u in s||c in s||(s[o]=n[o],i&&((t.on||(t.on={}))["update:".concat(o)]=function(t){n[o]=t}))};for(var u in n)a(u)}return t}function ee(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||re(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function ne(t,e,n){return re(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function re(t,e,n){if(o(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&oe(t[r],"".concat(e,"_").concat(r),n);else oe(t,e,n)}function oe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ie(t,e){if(e&&h(e)){var n=t.on=t.on?L({},t.on):{};for(var r in e){var o=n[r],i=e[r];n[r]=o?[].concat(o,i):i}}return t}function se(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var s=t[i];o(s)?se(s,e,n):s&&(s.proxy&&(s.fn.proxy=!0),e[s.key]=s.fn)}return r&&(e.$key=r),e}function ae(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function ue(t,e){return"string"==typeof t?e+t:t}function ce(t){t._o=ne,t._n=m,t._s=g,t._l=Kt,t._t=Jt,t._q=U,t._i=k,t._m=ee,t._f=Wt,t._k=Zt,t._b=te,t._v=pt,t._e=ht,t._u=se,t._g=ie,t._d=ae,t._p=ue}function fe(t,e){if(!t||!t.length)return{};for(var n={},r=0,o=t.length;r<o;r++){var i=t[r],s=i.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,i.context!==e&&i.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(i);else{var a=s.slot,u=n[a]||(n[a]=[]);"template"===i.tag?u.push.apply(u,i.children||[]):u.push(i)}}for(var c in n)n[c].every(le)&&delete n[c];return n}function le(t){return t.isComment&&!t.asyncFactory||" "===t.text}function he(t){return t.isComment&&t.asyncFactory}function pe(t,e,r,o){var i,s=Object.keys(r).length>0,a=e?!!e.$stable:!s,u=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&o&&o!==n&&u===o.$key&&!s&&!o.$hasNormal)return o;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=de(t,r,c,e[c]))}else i={};for(var f in r)f in i||(i[f]=ge(r,f));return e&&Object.isExtensible(e)&&(e._normalized=i),H(i,"$stable",a),H(i,"$key",u),H(i,"$hasNormal",s),i}function de(t,e,n,r){var i=function(){var e=ct;ft(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!o(n)?[n]:Gt(n))&&n[0];return ft(e),n&&(!i||1===n.length&&i.isComment&&!he(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function ge(t,e){return function(){return t[e]}}function ve(t,e,n,r,o){var i=!1;for(var s in e)s in t?e[s]!==n[s]&&(i=!0):(i=!0,me(t,s,r,o));for(var s in t)s in e||(i=!0,delete t[s]);return i}function me(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function ye(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var be=null;function we(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),f(t)?e.extend(t):t}function Ee(t){if(o(t))for(var e=0;e<t.length;e++){var n=t[e];if(s(n)&&(s(n.componentOptions)||he(n)))return n}}function _e(t,e,n,r,i,l){return(o(n)||u(n))&&(i=r,r=n,n=void 0),a(l)&&(i=2),function(t,e,n,r,i){if(s(n)&&s(n.__ob__))return ht();if(s(n)&&s(n.is)&&(e=n.is),!e)return ht();var a,u;if(o(r)&&c(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=Gt(r):1===i&&(r=function(t){for(var e=0;e<t.length;e++)if(o(t[e]))return Array.prototype.concat.apply([],t);return t}(r)),"string"==typeof e){var l=void 0;u=t.$vnode&&t.$vnode.ns||q.getTagNamespace(e),a=q.isReservedTag(e)?new lt(q.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!s(l=xn(t.$options,"components",e))?new lt(e,n,r,void 0,void 0,t):wn(l,n,t,r,e)}else a=wn(e,n,t,r);return o(a)?a:s(a)?(s(u)&&Ae(a,u),s(n)&&function(t){f(t.style)&&De(t.style),f(t.class)&&De(t.class)}(n),a):ht()}(t,e,n,r,i)}function Ae(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),s(t.children))for(var r=0,o=t.children.length;r<o;r++){var u=t.children[r];s(u.tag)&&(i(u.ns)||a(n)&&"svg"!==u.tag)&&Ae(u,e,n)}}function Oe(t,e,n){bt();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,t,e,n))return}catch(t){Re(t,r,"errorCaptured hook")}}Re(t,e,n)}finally{wt()}}function Te(t,e,n,r,o){var i;try{(i=n?t.apply(e,n):t.call(e))&&!i._isVue&&d(i)&&!i._handled&&(i.catch((function(t){return Oe(t,r,o+" (Promise/async)")})),i._handled=!0)}catch(t){Oe(t,r,o)}return i}function Re(t,e,n){if(q.errorHandler)try{return q.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Se(e)}Se(t)}function Se(t,e,n){if(!Y||"undefined"==typeof console)throw t;console.error(t)}var Ce,Ie=!1,xe=[],Le=!1;function Ne(){Le=!1;var t=xe.slice(0);xe.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&st(Promise)){var Be=Promise.resolve();Ce=function(){Be.then(Ne),Q&&setTimeout(B)},Ie=!0}else if(K||"undefined"==typeof MutationObserver||!st(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ce="undefined"!=typeof setImmediate&&st(setImmediate)?function(){setImmediate(Ne)}:function(){setTimeout(Ne,0)};else{var Pe=1,$e=new MutationObserver(Ne),Ue=document.createTextNode(String(Pe));$e.observe(Ue,{characterData:!0}),Ce=function(){Pe=(Pe+1)%2,Ue.data=String(Pe)},Ie=!0}function ke(t,e){var n;if(xe.push((function(){if(t)try{t.call(e)}catch(t){Oe(t,e,"nextTick")}else n&&n(e)})),Le||(Le=!0,Ce()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function je(t){return function(e,n){if(void 0===n&&(n=ct),n)return function(t,e,n){var r=t.$options;r[e]=Rn(r[e],n)}(n,t,e)}}je("beforeMount"),je("mounted"),je("beforeUpdate"),je("updated"),je("beforeDestroy"),je("destroyed"),je("activated"),je("deactivated"),je("serverPrefetch"),je("renderTracked"),je("renderTriggered"),je("errorCaptured");var Me=new at;function De(t){return Fe(t,Me),Me.clear(),t}function Fe(t,e){var n,r,i=o(t);if(!(!i&&!f(t)||t.__v_skip||Object.isFrozen(t)||t instanceof lt)){if(t.__ob__){var s=t.__ob__.dep.id;if(e.has(s))return;e.add(s)}if(i)for(n=t.length;n--;)Fe(t[n],e);else if(Ut(t))Fe(t.value,e);else for(n=(r=Object.keys(t)).length;n--;)Fe(t[r[n]],e)}}var qe,ze=0,He=function(){function t(t,e,n,r,o){var i;void 0===(i=jt&&!jt._vm?jt:t?t._scope:void 0)&&(i=jt),i&&i.active&&i.effects.push(this),(this.vm=t)&&o&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ze,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new at,this.newDepIds=new at,this.expression="",c(e)?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=B)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;bt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Oe(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&De(t),wt(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==rn[e]&&(t!==mt.target||!t.noRecurse)){if(rn[e]=!0,sn){for(var n=en.length-1;n>an&&en[n].id>t.id;)n--;en.splice(n+1,0,t)}else en.push(t);on||(on=!0,ke(hn))}}(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||f(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');Te(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function Ve(t,e){qe.$on(t,e)}function Ge(t,e){qe.$off(t,e)}function Ye(t,e){var n=qe;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function Xe(t,e,n){qe=t,zt(e,n||{},Ve,Ge,Ye,t),qe=void 0}var Ke=null;function Je(t){var e=Ke;return Ke=t,function(){Ke=e}}function We(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Qe(t,e){if(e){if(t._directInactive=!1,We(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Qe(t.$children[n]);tn(t,"activated")}}function Ze(t,e){if(!(e&&(t._directInactive=!0,We(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Ze(t.$children[n]);tn(t,"deactivated")}}function tn(t,e,n,r){void 0===r&&(r=!0),bt();var o=ct,i=jt;r&&ft(t);var s=t.$options[e],a="".concat(e," hook");if(s)for(var u=0,c=s.length;u<c;u++)Te(s[u],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&(ft(o),i&&i.on()),wt()}var en=[],nn=[],rn={},on=!1,sn=!1,an=0,un=0,cn=Date.now;if(Y&&!K){var fn=window.performance;fn&&"function"==typeof fn.now&&cn()>document.createEvent("Event").timeStamp&&(cn=function(){return fn.now()})}var ln=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function hn(){var t,e;for(un=cn(),sn=!0,en.sort(ln),an=0;an<en.length;an++)(t=en[an]).before&&t.before(),e=t.id,rn[e]=null,t.run();var n=nn.slice(),r=en.slice();an=en.length=nn.length=0,rn={},on=sn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Qe(t[e],!0)}(n),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&tn(r,"updated")}}(r),function(){for(var t=0;t<vt.length;t++){var e=vt[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}vt.length=0}(),it&&q.devtools&&it.emit("flush")}function pn(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),o=0;o<r.length;o++){var i=r[o];if("__ob__"!==i){var s=t[i].from;if(s in e._provided)n[i]=e._provided[s];else if("default"in t[i]){var a=t[i].default;n[i]=c(a)?a.call(e):a}}}return n}}function dn(t,e,r,i,s){var u,c=this,f=s.options;_(i,"_uid")?(u=Object.create(i))._original=i:(u=i,i=i._original);var l=a(f._compiled),h=!l;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=pn(f.inject,i),this.slots=function(){return c.$slots||pe(i,t.scopedSlots,c.$slots=fe(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(i,t.scopedSlots,this.slots())}}),l&&(this.$options=f,this.$slots=this.slots(),this.$scopedSlots=pe(i,t.scopedSlots,this.$slots)),f._scopeId?this._c=function(t,e,n,r){var s=_e(u,t,e,n,r,h);return s&&!o(s)&&(s.fnScopeId=f._scopeId,s.fnContext=i),s}:this._c=function(t,e,n,r){return _e(u,t,e,n,r,h)}}function gn(t,e,n,r,o){var i=dt(t);return i.fnContext=n,i.fnOptions=r,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function vn(t,e){for(var n in e)t[T(n)]=e[n]}function mn(t){return t.name||t.__name||t._componentTag}ce(dn.prototype);var yn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;yn.prepatch(n,n)}else{var r=t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}(t,Ke);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var r=e.componentOptions;!function(t,e,r,o,i){var s=o.data.scopedSlots,a=t.$scopedSlots,u=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key||!s&&t.$scopedSlots.$key),c=!!(i||t.$options._renderChildren||u),f=t.$vnode;t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o),t.$options._renderChildren=i;var l=o.data.attrs||n;t._attrsProxy&&ve(t._attrsProxy,l,f.data&&f.data.attrs||n,t,"$attrs")&&(c=!0),t.$attrs=l,r=r||n;var h=t.$options._parentListeners;if(t._listenersProxy&&ve(t._listenersProxy,r,h||n,t,"$listeners"),t.$listeners=t.$options._parentListeners=r,Xe(t,r,h),e&&t.$options.props){Rt(!1);for(var p=t._props,d=t.$options._propKeys||[],g=0;g<d.length;g++){var v=d[g],m=t.$options.props;p[v]=Ln(v,m,e,t)}Rt(!0),t.$options.propsData=e}c&&(t.$slots=fe(i,o.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,r.propsData,r.listeners,e,r.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,tn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,nn.push(e)):Qe(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Ze(e,!0):e.$destroy())}},bn=Object.keys(yn);function wn(t,e,r,u,c){if(!i(t)){var l=r.$options._base;if(f(t)&&(t=l.extend(t)),"function"==typeof t){var h;if(i(t.cid)&&(t=function(t,e){if(a(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var n=be;if(n&&s(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),a(t.loading)&&s(t.loadingComp))return t.loadingComp;if(n&&!s(t.owners)){var r=t.owners=[n],o=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return w(r,n)}));var l=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},h=j((function(n){t.resolved=we(n,e),o?r.length=0:l(!0)})),p=j((function(e){s(t.errorComp)&&(t.error=!0,l(!0))})),g=t(h,p);return f(g)&&(d(g)?i(t.resolved)&&g.then(h,p):d(g.component)&&(g.component.then(h,p),s(g.error)&&(t.errorComp=we(g.error,e)),s(g.loading)&&(t.loadingComp=we(g.loading,e),0===g.delay?t.loading=!0:u=setTimeout((function(){u=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,l(!1))}),g.delay||200)),s(g.timeout)&&(c=setTimeout((function(){c=null,i(t.resolved)&&p(null)}),g.timeout)))),o=!1,t.loading?t.loadingComp:t.resolved}}(h=t,l),void 0===t))return function(t,e,n,r,o){var i=ht();return i.asyncFactory=t,i.asyncMeta={data:e,context:n,children:r,tag:o},i}(h,e,r,u,c);e=e||{},Vn(t),s(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),a=i[r],u=e.model.callback;s(a)?(o(a)?-1===a.indexOf(u):a!==u)&&(i[r]=[u].concat(a)):i[r]=u}(t.options,e);var p=function(t,e){var n=e.options.props;if(!i(n)){var r={},o=t.attrs,a=t.props;if(s(o)||s(a))for(var u in n){var c=C(u);Vt(r,a,u,c,!0)||Vt(r,o,u,c,!1)}return r}}(e,t);if(a(t.options.functional))return function(t,e,r,i,a){var u=t.options,c={},f=u.props;if(s(f))for(var l in f)c[l]=Ln(l,f,e||n);else s(r.attrs)&&vn(c,r.attrs),s(r.props)&&vn(c,r.props);var h=new dn(r,c,a,i,t),p=u.render.call(null,h._c,h);if(p instanceof lt)return gn(p,r,h.parent,u);if(o(p)){for(var d=Gt(p)||[],g=new Array(d.length),v=0;v<d.length;v++)g[v]=gn(d[v],r,h.parent,u);return g}}(t,p,e,r,u);var g=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<bn.length;n++){var r=bn[n],o=e[r],i=yn[r];o===i||o&&o._merged||(e[r]=o?En(i,o):i)}}(e);var m=mn(t.options)||c;return new lt("vue-component-".concat(t.cid).concat(m?"-".concat(m):""),e,void 0,void 0,void 0,r,{Ctor:t,propsData:p,listeners:g,tag:c,children:u},h)}}}function En(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var _n=B,An=q.optionMergeStrategies;function On(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,o,i,s=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(r=s[a])&&(o=t[r],i=e[r],n&&_(t,r)?o!==i&&h(o)&&h(i)&&On(o,i):Lt(t,r,i));return t}function Tn(t,e,n){return n?function(){var r=c(e)?e.call(n,n):e,o=c(t)?t.call(n,n):t;return r?On(r,o):o}:e?t?function(){return On(c(e)?e.call(this,this):e,c(t)?t.call(this,this):t)}:e:t}function Rn(t,e){var n=e?t?t.concat(e):o(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Sn(t,e,n,r){var o=Object.create(t||null);return e?L(o,e):o}An.data=function(t,e,n){return n?Tn(t,e,n):e&&"function"!=typeof e?t:Tn(t,e)},F.forEach((function(t){An[t]=Rn})),D.forEach((function(t){An[t+"s"]=Sn})),An.watch=function(t,e,n,r){if(t===et&&(t=void 0),e===et&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var s in L(i,t),e){var a=i[s],u=e[s];a&&!o(a)&&(a=[a]),i[s]=a?a.concat(u):o(u)?u:[u]}return i},An.props=An.methods=An.inject=An.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return L(o,t),e&&L(o,e),o},An.provide=function(t,e){return t?function(){var n=Object.create(null);return On(n,c(t)?t.call(this):t),e&&On(n,c(e)?e.call(this):e,!1),n}:e};var Cn=function(t,e){return void 0===e?t:e};function In(t,e,n){if(c(e)&&(e=e.options),function(t){var e=t.props;if(e){var n,r,i={};if(o(e))for(n=e.length;n--;)"string"==typeof(r=e[n])&&(i[T(r)]={type:null});else if(h(e))for(var s in e)r=e[s],i[T(s)]=h(r)?r:{type:r};t.props=i}}(e),function(t){var e=t.inject;if(e){var n=t.inject={};if(o(e))for(var r=0;r<e.length;r++)n[e[r]]={from:e[r]};else if(h(e))for(var i in e){var s=e[i];n[i]=h(s)?L({from:i},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];c(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=In(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=In(t,e.mixins[r],n);var s,a={};for(s in t)u(s);for(s in e)_(t,s)||u(s);function u(r){var o=An[r]||Cn;a[r]=o(t[r],e[r],n,r)}return a}function xn(t,e,n,r){if("string"==typeof n){var o=t[e];if(_(o,n))return o[n];var i=T(n);if(_(o,i))return o[i];var s=R(i);return _(o,s)?o[s]:o[n]||o[i]||o[s]}}function Ln(t,e,n,r){var o=e[t],i=!_(n,t),s=n[t],a=$n(Boolean,o.type);if(a>-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===C(t)){var u=$n(String,o.type);(u<0||a<u)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(_(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:c(r)&&"Function"!==Bn(e.type)?r.call(t):r}}(r,o,t);var f=Tt;Rt(!0),It(s),Rt(f)}return s}var Nn=/^\s*function (\w+)/;function Bn(t){var e=t&&t.toString().match(Nn);return e?e[1]:""}function Pn(t,e){return Bn(t)===Bn(e)}function $n(t,e){if(!o(e))return Pn(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Pn(e[n],t))return n;return-1}var Un={enumerable:!0,configurable:!0,get:B,set:B};function kn(t,e,n){Un.get=function(){return this[e][n]},Un.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Un)}function jn(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Pt({}),o=t.$options._propKeys=[];!t.$parent||Rt(!1);var i=function(i){o.push(i);var s=Ln(i,e,n,t);xt(r,i,s,void 0,!0),i in t||kn(t,"_props",i)};for(var s in e)i(s);Rt(!0)}(t,e.props),function(t){var e=t.$options,r=e.setup;if(r){var o=t._setupContext=function(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};H(e,"_v_attr_proxy",!0),ve(e,t.$attrs,n,t,"$attrs")}return t._attrsProxy},get listeners(){return t._listenersProxy||ve(t._listenersProxy={},t.$listeners,n,t,"$listeners"),t._listenersProxy},get slots(){return function(t){return t._slotsProxy||ye(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}(t)},emit:I(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return kt(t,e,n)}))}}}(t);ft(t),bt();var i=Te(r,null,[t._props||Pt({}),o],t,"setup");if(wt(),ft(),c(i))e.render=i;else if(f(i))if(t._setupState=i,i.__sfc){var s=t._setupProxy={};for(var a in i)"__sfc"!==a&&kt(s,i,a)}else for(var a in i)z(a)||kt(t,i,a)}}(t),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?B:I(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;h(e=t._data=c(e)?function(t,e){bt();try{return t.call(e,e)}catch(t){return Oe(t,e,"data()"),{}}finally{wt()}}(e,t):e||{})||(e={});for(var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var i=n[o];r&&_(r,i)||z(i)||kn(t,"_data",i)}var s=It(e);s&&s.vmCount++}(t);else{var r=It(t._data={});r&&r.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var o in e){var i=e[o],s=c(i)?i:i.get;r||(n[o]=new He(t,s||B,B,Mn)),o in t||Dn(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(o(r))for(var i=0;i<r.length;i++)zn(t,n,r[i]);else zn(t,n,r)}}(t,e.watch)}var Mn={lazy:!0};function Dn(t,e,n){var r=!ot();c(n)?(Un.get=r?Fn(e):qn(n),Un.set=B):(Un.get=n.get?r&&!1!==n.cache?Fn(e):qn(n.get):B,Un.set=n.set||B),Object.defineProperty(t,e,Un)}function Fn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),mt.target&&e.depend(),e.value}}function qn(t){return function(){return t.call(this,this)}}function zn(t,e,n,r){return h(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Hn=0;function Vn(t){var e=t.options;if(t.super){var n=Vn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&L(t.extendOptions,r),(e=t.options=In(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Gn(t){this._init(t)}function Yn(t){return t&&(mn(t.Ctor.options)||t.tag)}function Xn(t,e){return o(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,!("[object RegExp]"!==l.call(n))&&t.test(e));var n}function Kn(t,e){var n=t.cache,r=t.keys,o=t._vnode,i=t.$vnode;for(var s in n){var a=n[s];if(a){var u=a.name;u&&!e(u)&&Jn(n,s,r,o)}}i.componentOptions.children=void 0}function Jn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,w(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Hn++,e._isVue=!0,e.__v_skip=!0,e._scope=new Dt(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=In(Vn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=fe(e._renderChildren,o),t.$scopedSlots=r?pe(t.$parent,r.data.scopedSlots,t.$slots):n,t._c=function(e,n,r,o){return _e(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return _e(t,e,n,r,o,!0)};var i=r&&r.data;xt(t,"$attrs",i&&i.attrs||n,null,!0),xt(t,"$listeners",e._parentListeners||n,null,!0)}(e),tn(e,"beforeCreate",void 0,!1),function(t){var e=pn(t.$options.inject,t);e&&(Rt(!1),Object.keys(e).forEach((function(n){xt(t,n,e[n])})),Rt(!0))}(e),jn(e),function(t){var e=t.$options.provide;if(e){var n=c(e)?e.call(t):e;if(!f(n))return;for(var r=function(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}(t),o=ut?Reflect.ownKeys(n):Object.keys(n),i=0;i<o.length;i++){var s=o[i];Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(n,s))}}}(e),tn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Gn),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=Lt,t.prototype.$delete=Nt,t.prototype.$watch=function(t,e,n){var r=this;if(h(e))return zn(r,t,e,n);(n=n||{}).user=!0;var o=new He(r,t,e,n);if(n.immediate){var i='callback for immediate watcher "'.concat(o.expression,'"');bt(),Te(e,r,[o.value],r,i),wt()}return function(){o.teardown()}}}(Gn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(o(t))for(var i=0,s=t.length;i<s;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var s,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var u=a.length;u--;)if((s=a[u])===e||s.fn===e){a.splice(u,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?x(n):n;for(var r=x(arguments,1),o='event handler for "'.concat(t,'"'),i=0,s=n.length;i<s;i++)Te(n[i],e,r,e,o)}return e}}(Gn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,i=Je(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var s=n;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){tn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||w(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),tn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Gn),function(t){ce(t.prototype),t.prototype.$nextTick=function(t){return ke(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e._parentVnode;r&&t._isMounted&&(t.$scopedSlots=pe(t.$parent,r.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&ye(t._slotsProxy,t.$scopedSlots)),t.$vnode=r;var i,s=ct,a=be;try{ft(t),be=t,i=n.call(t._renderProxy,t.$createElement)}catch(e){Oe(e,t,"render"),i=t._vnode}finally{be=a,ft(s)}return o(i)&&1===i.length&&(i=i[0]),i instanceof lt||(i=ht()),i.parent=r,i}}(Gn);var Wn=[String,RegExp,Array],Qn={name:"keep-alive",abstract:!0,props:{include:Wn,exclude:Wn,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,o=t.keyToCache;if(r){var i=r.tag,s=r.componentInstance,a=r.componentOptions;e[o]={name:Yn(a),tag:i,componentInstance:s},n.push(o),this.max&&n.length>parseInt(this.max)&&Jn(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Jn(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Kn(t,(function(t){return Xn(e,t)}))})),this.$watch("exclude",(function(e){Kn(t,(function(t){return!Xn(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ee(t),n=e&&e.componentOptions;if(n){var r=Yn(n),o=this.include,i=this.exclude;if(o&&(!r||!Xn(o,r))||i&&r&&Xn(i,r))return e;var s=this.cache,a=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;s[u]?(e.componentInstance=s[u].componentInstance,w(a,u),a.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||t&&t[0]}},Zn={KeepAlive:Qn};!function(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:_n,extend:L,mergeOptions:In,defineReactive:xt},t.set=Lt,t.delete=Nt,t.nextTick=ke,t.observable=function(t){return It(t),t},t.options=Object.create(null),D.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,Zn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=x(arguments,1);return n.unshift(this),c(t.install)?t.install.apply(t,n):c(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=In(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=mn(t)||mn(n.options),s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=In(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)kn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)Dn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,D.forEach((function(t){s[t]=n[t]})),i&&(s.options.components[i]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=L({},s.options),o[r]=s,s}}(t),function(t){D.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&h(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&c(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(Gn),Object.defineProperty(Gn.prototype,"$isServer",{get:ot}),Object.defineProperty(Gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Gn,"FunctionalRenderContext",{value:dn}),Gn.version="2.7.16";var tr=y("style,class"),er=y("input,textarea,option,select,progress"),nr=y("contenteditable,draggable,spellcheck"),rr=y("events,caret,typing,plaintext-only"),or=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ir="http://www.w3.org/1999/xlink",sr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ar=function(t){return sr(t)?t.slice(6,t.length):""},ur=function(t){return null==t||!1===t};function cr(t,e){return{staticClass:fr(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function fr(t,e){return t?e?t+" "+e:t:e||""}function lr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r<o;r++)s(e=lr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):f(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var hr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},pr=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),dr=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),gr=function(t){return pr(t)||dr(t)},vr=Object.create(null),mr=y("text,number,password,search,email,tel,url"),yr=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(hr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),br={create:function(t,e){wr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(wr(t,!0),wr(e))},destroy:function(t){wr(t,!0)}};function wr(t,e){var n=t.data.ref;if(s(n)){var r=t.context,i=t.componentInstance||t.elm,a=e?null:i,u=e?void 0:i;if(c(n))Te(n,r,[a],r,"template ref function");else{var f=t.data.refInFor,l="string"==typeof n||"number"==typeof n,h=Ut(n),p=r.$refs;if(l||h)if(f){var d=l?p[n]:n.value;e?o(d)&&w(d,i):o(d)?d.includes(i)||d.push(i):l?(p[n]=[i],Er(r,n,p[n])):n.value=[i]}else if(l){if(e&&p[n]!==i)return;p[n]=u,Er(r,n,a)}else if(h){if(e&&n.value!==i)return;n.value=a}}}}function Er(t,e,n){var r=t._setupState;r&&_(r,e)&&(Ut(r[e])?r[e].value=n:r[e]=n)}var _r=new lt("",{},[]),Ar=["create","activate","update","remove","destroy"];function Or(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=s(n=t.data)&&s(n=n.attrs)&&n.type,o=s(n=e.data)&&s(n=n.attrs)&&n.type;return r===o||mr(r)&&mr(o)}(t,e)||a(t.isAsyncPlaceholder)&&i(e.asyncFactory.error))}function Tr(t,e,n){var r,o,i={};for(r=e;r<=n;++r)s(o=t[r].key)&&(i[o]=r);return i}var Rr={create:Sr,update:Sr,destroy:function(t){Sr(t,_r)}};function Sr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,o,i=t===_r,s=e===_r,a=Ir(t.data.directives,t.context),u=Ir(e.data.directives,e.context),c=[],f=[];for(n in u)r=a[n],o=u[n],r?(o.oldValue=r.value,o.oldArg=r.arg,Lr(o,"update",e,t),o.def&&o.def.componentUpdated&&f.push(o)):(Lr(o,"bind",e,t),o.def&&o.def.inserted&&c.push(o));if(c.length){var l=function(){for(var n=0;n<c.length;n++)Lr(c[n],"inserted",e,t)};i?Ht(e,"insert",l):l()}if(f.length&&Ht(e,"postpatch",(function(){for(var n=0;n<f.length;n++)Lr(f[n],"componentUpdated",e,t)})),!i)for(n in a)u[n]||Lr(a[n],"unbind",t,t,s)}(t,e)}var Cr=Object.create(null);function Ir(t,e){var n,r,o=Object.create(null);if(!t)return o;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=Cr),o[xr(r)]=r,e._setupState&&e._setupState.__sfc){var i=r.def||xn(e,"_setupState","v-"+r.name);r.def="function"==typeof i?{bind:i,update:i}:i}r.def=r.def||xn(e.$options,"directives",r.name)}return o}function xr(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function Lr(t,e,n,r,o){var i=t.def&&t.def[e];if(i)try{i(n.elm,t,n,r,o)}catch(r){Oe(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var Nr=[br,Rr];function Br(t,e){var n=e.componentOptions;if(!(s(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var r,o,u=e.elm,c=t.data.attrs||{},f=e.data.attrs||{};for(r in(s(f.__ob__)||a(f._v_attr_proxy))&&(f=e.data.attrs=L({},f)),f)o=f[r],c[r]!==o&&Pr(u,r,o,e.data.pre);for(r in(K||W)&&f.value!==c.value&&Pr(u,"value",f.value),c)i(f[r])&&(sr(r)?u.removeAttributeNS(ir,ar(r)):nr(r)||u.removeAttribute(r))}}function Pr(t,e,n,r){r||t.tagName.indexOf("-")>-1?$r(t,e,n):or(e)?ur(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):nr(e)?t.setAttribute(e,function(t,e){return ur(e)||"false"===e?"false":"contenteditable"===t&&rr(e)?e:"true"}(e,n)):sr(e)?ur(n)?t.removeAttributeNS(ir,ar(e)):t.setAttributeNS(ir,e,n):$r(t,e,n)}function $r(t,e,n){if(ur(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Ur={create:Br,update:Br};function kr(t,e){var n=e.elm,r=e.data,o=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var a=function(t){for(var e=t.data,n=t,r=t;s(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=cr(r.data,e));for(;s(n=n.parent);)n&&n.data&&(e=cr(e,n.data));return o=e.staticClass,i=e.class,s(o)||s(i)?fr(o,lr(i)):"";var o,i}(e),u=n._transitionClasses;s(u)&&(a=fr(a,lr(u))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var jr,Mr={create:kr,update:kr},Dr="__r",Fr="__c";function qr(t,e,n){var r=jr;return function o(){null!==e.apply(null,arguments)&&Vr(t,o,n,r)}}var zr=Ie&&!(tt&&Number(tt[1])<=53);function Hr(t,e,n,r){if(zr){var o=un,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}jr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Vr(t,e,n,r){(r||jr).removeEventListener(t,e._wrapper||e,n)}function Gr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};jr=e.elm||t.elm,function(t){if(s(t[Dr])){var e=K?"change":"input";t[e]=[].concat(t[Dr],t[e]||[]),delete t[Dr]}s(t[Fr])&&(t.change=[].concat(t[Fr],t.change||[]),delete t[Fr])}(n),zt(n,r,Hr,Vr,qr,e.context),jr=void 0}}var Yr,Xr={create:Gr,update:Gr,destroy:function(t){return Gr(t,_r)}};function Kr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,o=e.elm,u=t.data.domProps||{},c=e.data.domProps||{};for(n in(s(c.__ob__)||a(c._v_attr_proxy))&&(c=e.data.domProps=L({},c)),u)n in c||(o[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===u[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var f=i(r)?"":String(r);Jr(o,f)&&(o.value=f)}else if("innerHTML"===n&&dr(o.tagName)&&i(o.innerHTML)){(Yr=Yr||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var l=Yr.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}else if(r!==u[n])try{o[n]=r}catch(t){}}}}function Jr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(s(r)){if(r.number)return m(n)!==m(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Wr={create:Kr,update:Kr},Qr=A((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Zr(t){var e=to(t.style);return t.staticStyle?L(t.staticStyle,e):e}function to(t){return Array.isArray(t)?N(t):"string"==typeof t?Qr(t):t}var eo,no=/^--/,ro=/\s*!important$/,oo=function(t,e,n){if(no.test(e))t.style.setProperty(e,n);else if(ro.test(n))t.style.setProperty(C(e),n.replace(ro,""),"important");else{var r=so(e);if(Array.isArray(n))for(var o=0,i=n.length;o<i;o++)t.style[r]=n[o];else t.style[r]=n}},io=["Webkit","Moz","ms"],so=A((function(t){if(eo=eo||document.createElement("div").style,"filter"!==(t=T(t))&&t in eo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<io.length;n++){var r=io[n]+e;if(r in eo)return r}}));function ao(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var o,a,u=e.elm,c=r.staticStyle,f=r.normalizedStyle||r.style||{},l=c||f,h=to(e.data.style)||{};e.data.normalizedStyle=s(h.__ob__)?L({},h):h;var p=function(t){for(var e,n={},r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(e=Zr(r.data))&&L(n,e);(e=Zr(t.data))&&L(n,e);for(var o=t;o=o.parent;)o.data&&(e=Zr(o.data))&&L(n,e);return n}(e);for(a in l)i(p[a])&&oo(u,a,"");for(a in p)o=p[a],oo(u,a,null==o?"":o)}}var uo={create:ao,update:ao},co=/\s+/;function fo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(co).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function lo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(co).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ho(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&L(e,po(t.name||"v")),L(e,t),e}return"string"==typeof t?po(t):void 0}}var po=A((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),go=Y&&!J,vo="transition",mo="animation",yo="transition",bo="transitionend",wo="animation",Eo="animationend";go&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(yo="WebkitTransition",bo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(wo="WebkitAnimation",Eo="webkitAnimationEnd"));var _o=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ao(t){_o((function(){_o(t)}))}function Oo(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),fo(t,e))}function To(t,e){t._transitionClasses&&w(t._transitionClasses,e),lo(t,e)}function Ro(t,e,n){var r=Co(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var a=o===vo?bo:Eo,u=0,c=function(){t.removeEventListener(a,f),n()},f=function(e){e.target===t&&++u>=s&&c()};setTimeout((function(){u<s&&c()}),i+1),t.addEventListener(a,f)}var So=/\b(transform|all)(,|$)/;function Co(t,e){var n,r=window.getComputedStyle(t),o=(r[yo+"Delay"]||"").split(", "),i=(r[yo+"Duration"]||"").split(", "),s=Io(o,i),a=(r[wo+"Delay"]||"").split(", "),u=(r[wo+"Duration"]||"").split(", "),c=Io(a,u),f=0,l=0;return e===vo?s>0&&(n=vo,f=s,l=i.length):e===mo?c>0&&(n=mo,f=c,l=u.length):l=(n=(f=Math.max(s,c))>0?s>c?vo:mo:null)?n===vo?i.length:u.length:0,{type:n,timeout:f,propCount:l,hasTransform:n===vo&&So.test(r[yo+"Property"])}}function Io(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return xo(e)+xo(t[n])})))}function xo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Lo(t,e){var n=t.elm;s(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=ho(t.data.transition);if(!i(r)&&!s(n._enterCb)&&1===n.nodeType){for(var o=r.css,a=r.type,u=r.enterClass,l=r.enterToClass,h=r.enterActiveClass,p=r.appearClass,d=r.appearToClass,g=r.appearActiveClass,v=r.beforeEnter,y=r.enter,b=r.afterEnter,w=r.enterCancelled,E=r.beforeAppear,_=r.appear,A=r.afterAppear,O=r.appearCancelled,T=r.duration,R=Ke,S=Ke.$vnode;S&&S.parent;)R=S.context,S=S.parent;var C=!R._isMounted||!t.isRootInsert;if(!C||_||""===_){var I=C&&p?p:u,x=C&&g?g:h,L=C&&d?d:l,N=C&&E||v,B=C&&c(_)?_:y,P=C&&A||b,$=C&&O||w,U=m(f(T)?T.enter:T),k=!1!==o&&!J,M=Po(B),D=n._enterCb=j((function(){k&&(To(n,L),To(n,x)),D.cancelled?(k&&To(n,I),$&&$(n)):P&&P(n),n._enterCb=null}));t.data.show||Ht(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),B&&B(n,D)})),N&&N(n),k&&(Oo(n,I),Oo(n,x),Ao((function(){To(n,I),D.cancelled||(Oo(n,L),M||(Bo(U)?setTimeout(D,U):Ro(n,a,D)))}))),t.data.show&&(e&&e(),B&&B(n,D)),k||M||D()}}}function No(t,e){var n=t.elm;s(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=ho(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!s(n._leaveCb)){var o=r.css,a=r.type,u=r.leaveClass,c=r.leaveToClass,l=r.leaveActiveClass,h=r.beforeLeave,p=r.leave,d=r.afterLeave,g=r.leaveCancelled,v=r.delayLeave,y=r.duration,b=!1!==o&&!J,w=Po(p),E=m(f(y)?y.leave:y),_=n._leaveCb=j((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(To(n,c),To(n,l)),_.cancelled?(b&&To(n,u),g&&g(n)):(e(),d&&d(n)),n._leaveCb=null}));v?v(A):A()}function A(){_.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),b&&(Oo(n,u),Oo(n,l),Ao((function(){To(n,u),_.cancelled||(Oo(n,c),w||(Bo(E)?setTimeout(_,E):Ro(n,a,_)))}))),p&&p(n,_),b||w||_())}}function Bo(t){return"number"==typeof t&&!isNaN(t)}function Po(t){if(i(t))return!1;var e=t.fns;return s(e)?Po(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function $o(t,e){!0!==e.data.show&&Lo(e)}var Uo=function(t){var e,n,r={},c=t.modules,f=t.nodeOps;for(e=0;e<Ar.length;++e)for(r[Ar[e]]=[],n=0;n<c.length;++n)s(c[n][Ar[e]])&&r[Ar[e]].push(c[n][Ar[e]]);function l(t){var e=f.parentNode(t);s(e)&&f.removeChild(e,t)}function h(t,e,n,o,i,u,c){if(s(t.elm)&&s(u)&&(t=u[c]=dt(t)),t.isRootInsert=!i,!function(t,e,n,o){var i=t.data;if(s(i)){var u=s(t.componentInstance)&&i.keepAlive;if(s(i=i.hook)&&s(i=i.init)&&i(t,!1),s(t.componentInstance))return p(t,e),d(n,t.elm,o),a(u)&&function(t,e,n,o){for(var i,a=t;a.componentInstance;)if(s(i=(a=a.componentInstance._vnode).data)&&s(i=i.transition)){for(i=0;i<r.activate.length;++i)r.activate[i](_r,a);e.push(a);break}d(n,t.elm,o)}(t,e,n,o),!0}}(t,e,n,o)){var l=t.data,h=t.children,v=t.tag;s(v)?(t.elm=t.ns?f.createElementNS(t.ns,v):f.createElement(v,t),b(t),g(t,h,e),s(l)&&m(t,e),d(n,t.elm,o)):a(t.isComment)?(t.elm=f.createComment(t.text),d(n,t.elm,o)):(t.elm=f.createTextNode(t.text),d(n,t.elm,o))}}function p(t,e){s(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),b(t)):(wr(t),e.push(t))}function d(t,e,n){s(t)&&(s(n)?f.parentNode(n)===t&&f.insertBefore(t,e,n):f.appendChild(t,e))}function g(t,e,n){if(o(e))for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r);else u(t.text)&&f.appendChild(t.elm,f.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return s(t.tag)}function m(t,n){for(var o=0;o<r.create.length;++o)r.create[o](_r,t);s(e=t.data.hook)&&(s(e.create)&&e.create(_r,t),s(e.insert)&&n.push(t))}function b(t){var e;if(s(e=t.fnScopeId))f.setStyleScope(t.elm,e);else for(var n=t;n;)s(e=n.context)&&s(e=e.$options._scopeId)&&f.setStyleScope(t.elm,e),n=n.parent;s(e=Ke)&&e!==t.context&&e!==t.fnContext&&s(e=e.$options._scopeId)&&f.setStyleScope(t.elm,e)}function w(t,e,n,r,o,i){for(;r<=o;++r)h(n[r],i,t,e,!1,n,r)}function E(t){var e,n,o=t.data;if(s(o))for(s(e=o.hook)&&s(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(s(e=t.children))for(n=0;n<t.children.length;++n)E(t.children[n])}function _(t,e,n){for(;e<=n;++e){var r=t[e];s(r)&&(s(r.tag)?(A(r),E(r)):l(r.elm))}}function A(t,e){if(s(e)||s(t.data)){var n,o=r.remove.length+1;for(s(e)?e.listeners+=o:e=function(t,e){function n(){0==--n.listeners&&l(t)}return n.listeners=e,n}(t.elm,o),s(n=t.componentInstance)&&s(n=n._vnode)&&s(n.data)&&A(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);s(n=t.data.hook)&&s(n=n.remove)?n(t,e):e()}else l(t.elm)}function O(t,e,n,r){for(var o=n;o<r;o++){var i=e[o];if(s(i)&&Or(t,i))return o}}function T(t,e,n,o,u,c){if(t!==e){s(e.elm)&&s(o)&&(e=o[u]=dt(e));var l=e.elm=t.elm;if(a(t.isAsyncPlaceholder))s(e.asyncFactory.resolved)?C(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var p,d=e.data;s(d)&&s(p=d.hook)&&s(p=p.prepatch)&&p(t,e);var g=t.children,m=e.children;if(s(d)&&v(e)){for(p=0;p<r.update.length;++p)r.update[p](t,e);s(p=d.hook)&&s(p=p.update)&&p(t,e)}i(e.text)?s(g)&&s(m)?g!==m&&function(t,e,n,r,o){for(var a,u,c,l=0,p=0,d=e.length-1,g=e[0],v=e[d],m=n.length-1,y=n[0],b=n[m],E=!o;l<=d&&p<=m;)i(g)?g=e[++l]:i(v)?v=e[--d]:Or(g,y)?(T(g,y,r,n,p),g=e[++l],y=n[++p]):Or(v,b)?(T(v,b,r,n,m),v=e[--d],b=n[--m]):Or(g,b)?(T(g,b,r,n,m),E&&f.insertBefore(t,g.elm,f.nextSibling(v.elm)),g=e[++l],b=n[--m]):Or(v,y)?(T(v,y,r,n,p),E&&f.insertBefore(t,v.elm,g.elm),v=e[--d],y=n[++p]):(i(a)&&(a=Tr(e,l,d)),i(u=s(y.key)?a[y.key]:O(y,e,l,d))?h(y,r,t,g.elm,!1,n,p):Or(c=e[u],y)?(T(c,y,r,n,p),e[u]=void 0,E&&f.insertBefore(t,c.elm,g.elm)):h(y,r,t,g.elm,!1,n,p),y=n[++p]);l>d?w(t,i(n[m+1])?null:n[m+1].elm,n,p,m,r):p>m&&_(e,l,d)}(l,g,m,n,c):s(m)?(s(t.text)&&f.setTextContent(l,""),w(l,null,m,0,m.length-1,n)):s(g)?_(g,0,g.length-1):s(t.text)&&f.setTextContent(l,""):t.text!==e.text&&f.setTextContent(l,e.text),s(d)&&s(p=d.hook)&&s(p=p.postpatch)&&p(t,e)}}}function R(t,e,n){if(a(n)&&s(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var S=y("attrs,class,staticClass,staticStyle,key");function C(t,e,n,r){var o,i=e.tag,u=e.data,c=e.children;if(r=r||u&&u.pre,e.elm=t,a(e.isComment)&&s(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(s(u)&&(s(o=u.hook)&&s(o=o.init)&&o(e,!0),s(o=e.componentInstance)))return p(e,n),!0;if(s(i)){if(s(c))if(t.hasChildNodes())if(s(o=u)&&s(o=o.domProps)&&s(o=o.innerHTML)){if(o!==t.innerHTML)return!1}else{for(var f=!0,l=t.firstChild,h=0;h<c.length;h++){if(!l||!C(l,c[h],n,r)){f=!1;break}l=l.nextSibling}if(!f||l)return!1}else g(e,c,n);if(s(u)){var d=!1;for(var v in u)if(!S(v)){d=!0,m(e,n);break}!d&&u.class&&De(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,o){if(!i(e)){var u,c=!1,l=[];if(i(t))c=!0,h(e,l);else{var p=s(t.nodeType);if(!p&&Or(t,e))T(t,e,l,null,null,o);else{if(p){if(1===t.nodeType&&t.hasAttribute(M)&&(t.removeAttribute(M),n=!0),a(n)&&C(t,e,l))return R(e,l,!0),t;u=t,t=new lt(f.tagName(u).toLowerCase(),{},[],void 0,u)}var d=t.elm,g=f.parentNode(d);if(h(e,l,d._leaveCb?null:g,f.nextSibling(d)),s(e.parent))for(var m=e.parent,y=v(e);m;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](m);if(m.elm=e.elm,y){for(var w=0;w<r.create.length;++w)r.create[w](_r,m);var A=m.data.hook.insert;if(A.merged)for(var O=A.fns.slice(1),S=0;S<O.length;S++)O[S]()}else wr(m);m=m.parent}s(g)?_([t],0,0):s(t.tag)&&E(t)}}return R(e,l,c),e.elm}s(t)&&E(t)}}({nodeOps:yr,modules:[Ur,Mr,Xr,Wr,uo,Y?{create:$o,activate:$o,remove:function(t,e){!0!==t.data.show?No(t,e):e()}}:{}].concat(Nr)});J&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ho(t,"input")}));var ko={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ht(n,"postpatch",(function(){ko.componentUpdated(t,e,n)})):jo(t,e,n.context),t._vOptions=[].map.call(t.options,Fo)):("textarea"===n.tag||mr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",qo),t.addEventListener("compositionend",zo),t.addEventListener("change",zo),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){jo(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,Fo);o.some((function(t,e){return!U(t,r[e])}))&&(t.multiple?e.value.some((function(t){return Do(t,o)})):e.value!==e.oldValue&&Do(e.value,o))&&Ho(t,"change")}}};function jo(t,e,n){Mo(t,e),(K||W)&&setTimeout((function(){Mo(t,e)}),0)}function Mo(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,s,a=0,u=t.options.length;a<u;a++)if(s=t.options[a],o)i=k(r,Fo(s))>-1,s.selected!==i&&(s.selected=i);else if(U(Fo(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function Do(t,e){return e.every((function(e){return!U(e,t)}))}function Fo(t){return"_value"in t?t._value:t.value}function qo(t){t.target.composing=!0}function zo(t){t.target.composing&&(t.target.composing=!1,Ho(t.target,"input"))}function Ho(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Vo(t){return!t.componentInstance||t.data&&t.data.transition?t:Vo(t.componentInstance._vnode)}var Go={model:ko,show:{bind:function(t,e,n){var r=e.value,o=(n=Vo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Lo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Vo(n)).data&&n.data.transition?(n.data.show=!0,r?Lo(n,(function(){t.style.display=t.__vOriginalDisplay})):No(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Yo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(Ee(e.children)):t}function Ko(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var r in o)e[T(r)]=o[r];return e}function Jo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Wo=function(t){return t.tag||he(t)},Qo=function(t){return"show"===t.name},Zo={name:"transition",props:Yo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Wo)).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return Jo(t,o);var s="__transition-".concat(this._uid,"-");i.key=null==i.key?i.isComment?s+"comment":s+i.tag:u(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var a=(i.data||(i.data={})).transition=Ko(this),c=this._vnode,f=Xo(c);if(i.data.directives&&i.data.directives.some(Qo)&&(i.data.show=!0),f&&f.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,f)&&!he(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var l=f.data.transition=L({},a);if("out-in"===r)return this._leaving=!0,Ht(l,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Jo(t,o);if("in-out"===r){if(he(i))return c;var h,p=function(){h()};Ht(a,"afterEnter",p),Ht(a,"enterCancelled",p),Ht(l,"delayLeave",(function(t){h=t}))}}return o}}},ti=L({tag:String,moveClass:String},Yo);function ei(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ni(t){t.data.newPos=t.elm.getBoundingClientRect()}function ri(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate(".concat(r,"px,").concat(o,"px)"),i.transitionDuration="0s"}}delete ti.mode;var oi={Transition:Zo,TransitionGroup:{props:ti,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Ko(this),a=0;a<o.length;a++)(f=o[a]).tag&&null!=f.key&&0!==String(f.key).indexOf("__vlist")&&(i.push(f),n[f.key]=f,(f.data||(f.data={})).transition=s);if(r){var u=[],c=[];for(a=0;a<r.length;a++){var f;(f=r[a]).data.transition=s,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?u.push(f):c.push(f)}this.kept=t(e,null,u),this.removed=c}return t(e,null,i)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ei),t.forEach(ni),t.forEach(ri),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Oo(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(bo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(bo,t),n._moveCb=null,To(n,e))})}})))},methods:{hasMove:function(t,e){if(!go)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){lo(n,t)})),fo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Co(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};Gn.config.mustUseProp=function(t,e,n){return"value"===n&&er(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Gn.config.isReservedTag=gr,Gn.config.isReservedAttr=tr,Gn.config.getTagNamespace=function(t){return dr(t)?"svg":"math"===t?"math":void 0},Gn.config.isUnknownElement=function(t){if(!Y)return!0;if(gr(t))return!1;if(t=t.toLowerCase(),null!=vr[t])return vr[t];var e=document.createElement(t);return t.indexOf("-")>-1?vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:vr[t]=/HTMLUnknownElement/.test(e.toString())},L(Gn.options.directives,Go),L(Gn.options.components,oi),Gn.prototype.__patch__=Y?Uo:B,Gn.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=ht),tn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new He(t,r,B,{before:function(){t._isMounted&&!t._isDestroyed&&tn(t,"beforeUpdate")}},!0),n=!1;var o=t._preWatchers;if(o)for(var i=0;i<o.length;i++)o[i].run();return null==t.$vnode&&(t._isMounted=!0,tn(t,"mounted")),t}(this,t=t&&Y?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},Y&&setTimeout((function(){q.devtools&&it&&it.emit("init",Gn)}),0);var ii=r(64),si=r(711);class ai{bus;constructor(t){"function"==typeof t.getVersion&&si(t.getVersion())?ii(t.getVersion())!==ii(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}getVersion(){return"3.3.3"}subscribe(t,e){this.bus.subscribe(t,e)}unsubscribe(t,e){this.bus.unsubscribe(t,e)}emit(t,...e){this.bus.emit(t,...e)}}class ui{handlers=new Map;getVersion(){return"3.3.3"}subscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))}unsubscribe(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((t=>t!==e)))}emit(t,...e){(this.handlers.get(t)||[]).forEach((t=>{try{t(e[0])}catch(t){console.error("could not invoke event listener",t)}}))}}let ci,fi=null;class li{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(t,e,n){this.scope=`${n?li.GLOBAL_SCOPE_PERSISTENT:li.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=e}scopeKey(t){return`${this.scope}${t}`}setItem(t,e){this.wrapped.setItem(this.scopeKey(t),e)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter((t=>t.startsWith(this.scope))).map(this.wrapped.removeItem.bind(this.wrapped))}}const hi=[];var pi;let di;function gi(t,e){return t?t.getAttribute(e):null}function vi(){if(void 0!==di)return di;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=gi(t,"data-user");return null===e?(di=null,di):(di={uid:e,displayName:gi(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},di)}pi=t=>{ci=t.token,hi.forEach((t=>{try{t(ci)}catch(t){console.error("Error updating CSRF token observer",t)}}))},(null!==fi?fi:"undefined"==typeof window?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),fi=void 0!==window?._nc_event_bus?new ai(window._nc_event_bus):window._nc_event_bus=new ui,fi)).subscribe("csrf-token-update",pi),new class{appId;persisted=!1;clearedOnLogout=!1;constructor(t){this.appId=t}persist(t=!0){return this.persisted=t,this}clearOnLogout(t=!0){return this.clearedOnLogout=t,this}build(){return new li(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}("public").persist().build();var mi=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(mi||{});class yi{context;constructor(t){this.context=t||{}}formatMessage(t,e,n){let r="["+mi[e].toUpperCase()+"] ";return n&&n.app&&(r+=n.app+": "),"string"==typeof t?r+t:(r+=`Unexpected ${t.name}`,t.message&&(r+=` "${t.message}"`),e===mi.Debug&&t.stack&&(r+=`\n\nStack trace:\n${t.stack}`),r)}log(t,e,n){if(!("number"==typeof this.context?.level&&t<this.context?.level))switch("object"==typeof e&&void 0===n?.error&&(n.error=e),t){case mi.Debug:console.debug(this.formatMessage(e,mi.Debug,n),n);break;case mi.Info:console.info(this.formatMessage(e,mi.Info,n),n);break;case mi.Warn:console.warn(this.formatMessage(e,mi.Warn,n),n);break;case mi.Error:console.error(this.formatMessage(e,mi.Error,n),n);break;case mi.Fatal:default:console.error(this.formatMessage(e,mi.Fatal,n),n)}}debug(t,e){this.log(mi.Debug,t,Object.assign({},this.context,e))}info(t,e){this.log(mi.Info,t,Object.assign({},this.context,e))}warn(t,e){this.log(mi.Warn,t,Object.assign({},this.context,e))}error(t,e){this.log(mi.Error,t,Object.assign({},this.context,e))}fatal(t,e){this.log(mi.Fatal,t,Object.assign({},this.context,e))}}function bi(t){return new yi(t)}class wi{context;factory;constructor(t){this.context={},this.factory=t}setApp(t){return this.context.app=t,this}setLogLevel(t){return this.context.level=t,this}setUid(t){return this.context.uid=t,this}detectUser(){const t=vi();return null!==t&&(this.context.uid=t.uid),this}detectLogLevel(){const t=this,e=()=>{"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=window._oc_config?.loglevel??mi.Warn,window._oc_debug&&(t.context.level=mi.Debug),document.removeEventListener("readystatechange",e)):document.addEventListener("readystatechange",e)};return e(),this}build(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}const Ei=new wi(bi).setApp("twofactor_totp"),_i=vi();null!==_i&&Ei.setUid(_i.uid);const Ai=Ei.build();function Oi(t,e){return function(){return t.apply(e,arguments)}}var Ti=r(606);const{toString:Ri}=Object.prototype,{getPrototypeOf:Si}=Object,{iterator:Ci,toStringTag:Ii}=Symbol,xi=(Li=Object.create(null),t=>{const e=Ri.call(t);return Li[e]||(Li[e]=e.slice(8,-1).toLowerCase())});var Li;const Ni=t=>(t=t.toLowerCase(),e=>xi(e)===t),Bi=t=>e=>typeof e===t,{isArray:Pi}=Array,$i=Bi("undefined");function Ui(t){return null!==t&&!$i(t)&&null!==t.constructor&&!$i(t.constructor)&&Mi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ki=Ni("ArrayBuffer"),ji=Bi("string"),Mi=Bi("function"),Di=Bi("number"),Fi=t=>null!==t&&"object"==typeof t,qi=t=>{if("object"!==xi(t))return!1;const e=Si(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Ii in t||Ci in t)},zi=Ni("Date"),Hi=Ni("File"),Vi=Ni("Blob"),Gi=Ni("FileList"),Yi=Ni("URLSearchParams"),[Xi,Ki,Ji,Wi]=["ReadableStream","Request","Response","Headers"].map(Ni);function Qi(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),Pi(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(Ui(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function Zi(t,e){if(Ui(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const ts="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,es=t=>!$i(t)&&t!==ts,ns=(rs="undefined"!=typeof Uint8Array&&Si(Uint8Array),t=>rs&&t instanceof rs);var rs;const os=Ni("HTMLFormElement"),is=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ss=Ni("RegExp"),as=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Qi(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},us=Ni("AsyncFunction"),cs=(fs="function"==typeof setImmediate,ls=Mi(ts.postMessage),fs?setImmediate:ls?((t,e)=>(ts.addEventListener("message",(({source:n,data:r})=>{n===ts&&r===t&&e.length&&e.shift()()}),!1),n=>{e.push(n),ts.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t));var fs,ls;const hs="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ts):void 0!==Ti&&Ti.nextTick||cs,ps={isArray:Pi,isArrayBuffer:ki,isBuffer:Ui,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||Mi(t.append)&&("formdata"===(e=xi(t))||"object"===e&&Mi(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ki(t.buffer),e},isString:ji,isNumber:Di,isBoolean:t=>!0===t||!1===t,isObject:Fi,isPlainObject:qi,isEmptyObject:t=>{if(!Fi(t)||Ui(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:Xi,isRequest:Ki,isResponse:Ji,isHeaders:Wi,isUndefined:$i,isDate:zi,isFile:Hi,isBlob:Vi,isRegExp:ss,isFunction:Mi,isStream:t=>Fi(t)&&Mi(t.pipe),isURLSearchParams:Yi,isTypedArray:ns,isFileList:Gi,forEach:Qi,merge:function t(){const{caseless:e,skipUndefined:n}=es(this)&&this||{},r={},o=(o,i)=>{const s=e&&Zi(r,i)||i;qi(r[s])&&qi(o)?r[s]=t(r[s],o):qi(o)?r[s]=t({},o):Pi(o)?r[s]=o.slice():n&&$i(o)||(r[s]=o)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Qi(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:r}={})=>(Qi(e,((e,r)=>{n&&Mi(e)?t[r]=Oi(e,n):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&Si(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:xi,kindOfTest:Ni,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(Pi(t))return t;let e=t.length;if(!Di(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Ci]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:os,hasOwnProperty:is,hasOwnProp:is,reduceDescriptors:as,freezeMethods:t=>{as(t,((e,n)=>{if(Mi(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];Mi(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return Pi(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:Zi,global:ts,isContextDefined:es,isSpecCompliantForm:function(t){return!!(t&&Mi(t.append)&&"FormData"===t[Ii]&&t[Ci])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(Fi(t)){if(e.indexOf(t)>=0)return;if(Ui(t))return t;if(!("toJSON"in t)){e[r]=t;const o=Pi(t)?[]:{};return Qi(t,((t,e)=>{const i=n(t,r+1);!$i(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:us,isThenable:t=>t&&(Fi(t)||Mi(t))&&Mi(t.then)&&Mi(t.catch),setImmediate:cs,asap:hs,isIterable:t=>null!=t&&Mi(t[Ci])};function ds(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ps.inherits(ds,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ps.toJSONObject(this.config),code:this.code,status:this.status}}});const gs=ds.prototype,vs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{vs[t]={value:t}})),Object.defineProperties(ds,vs),Object.defineProperty(gs,"isAxiosError",{value:!0}),ds.from=(t,e,n,r,o,i)=>{const s=Object.create(gs);ps.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t));const a=t&&t.message?t.message:"Error",u=null==e&&t?t.code:e;return ds.call(s,a,u,n,r,o),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",i&&Object.assign(s,i),s};const ms=ds;var ys=r(287).hp;function bs(t){return ps.isPlainObject(t)||ps.isArray(t)}function ws(t){return ps.endsWith(t,"[]")?t.slice(0,-2):t}function Es(t,e,n){return t?t.concat(e).map((function(t,e){return t=ws(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const _s=ps.toFlatObject(ps,{},null,(function(t){return/^is[A-Z]/.test(t)})),As=function(t,e,n){if(!ps.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=ps.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!ps.isUndefined(e[t])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ps.isSpecCompliantForm(e);if(!ps.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(ps.isDate(t))return t.toISOString();if(ps.isBoolean(t))return t.toString();if(!a&&ps.isBlob(t))throw new ms("Blob is not supported. Use a Buffer instead.");return ps.isArrayBuffer(t)||ps.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):ys.from(t):t}function c(t,n,o){let a=t;if(t&&!o&&"object"==typeof t)if(ps.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(ps.isArray(t)&&function(t){return ps.isArray(t)&&!t.some(bs)}(t)||(ps.isFileList(t)||ps.endsWith(n,"[]"))&&(a=ps.toArray(t)))return n=ws(n),a.forEach((function(t,r){!ps.isUndefined(t)&&null!==t&&e.append(!0===s?Es([n],r,i):null===s?n:n+"[]",u(t))})),!1;return!!bs(t)||(e.append(Es(o,n,i),u(t)),!1)}const f=[],l=Object.assign(_s,{defaultVisitor:c,convertValue:u,isVisitable:bs});if(!ps.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!ps.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),ps.forEach(n,(function(n,i){!0===(!(ps.isUndefined(n)||null===n)&&o.call(e,n,ps.isString(i)?i.trim():i,r,l))&&t(n,r?r.concat(i):[i])})),f.pop()}}(t),e};function Os(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Ts(t,e){this._pairs=[],t&&As(t,this,e)}const Rs=Ts.prototype;Rs.append=function(t,e){this._pairs.push([t,e])},Rs.toString=function(t){const e=t?function(e){return t.call(this,e,Os)}:Os;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const Ss=Ts;function Cs(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Is(t,e,n){if(!e)return t;const r=n&&n.encode||Cs;ps.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):ps.isURLSearchParams(e)?e.toString():new Ss(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const xs=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ps.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ns={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ss,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Bs="undefined"!=typeof window&&"undefined"!=typeof document,Ps="object"==typeof navigator&&navigator||void 0,$s=Bs&&(!Ps||["ReactNative","NativeScript","NS"].indexOf(Ps.product)<0),Us="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ks=Bs&&window.location.href||"http://localhost",js={...e,...Ns},Ms=function(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.length;return i=!i&&ps.isArray(r)?r.length:i,a?(ps.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&ps.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&ps.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(ps.isFormData(t)&&ps.isFunction(t.entries)){const n={};return ps.forEachEntry(t,((t,r)=>{e(function(t){return ps.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null},Ds={transitional:Ls,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=ps.isObject(t);if(o&&ps.isHTMLForm(t)&&(t=new FormData(t)),ps.isFormData(t))return r?JSON.stringify(Ms(t)):t;if(ps.isArrayBuffer(t)||ps.isBuffer(t)||ps.isStream(t)||ps.isFile(t)||ps.isBlob(t)||ps.isReadableStream(t))return t;if(ps.isArrayBufferView(t))return t.buffer;if(ps.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return As(t,new js.classes.URLSearchParams,{visitor:function(t,e,n,r){return js.isNode&&ps.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=ps.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return As(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t){if(ps.isString(t))try{return(0,JSON.parse)(t),ps.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Ds.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(ps.isResponse(t)||ps.isReadableStream(t))return t;if(t&&ps.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw ms.from(t,ms.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:js.classes.FormData,Blob:js.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ps.forEach(["delete","get","head","post","put","patch"],(t=>{Ds.headers[t]={}}));const Fs=Ds,qs=ps.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zs=Symbol("internals");function Hs(t){return t&&String(t).trim().toLowerCase()}function Vs(t){return!1===t||null==t?t:ps.isArray(t)?t.map(Vs):String(t)}function Gs(t,e,n,r,o){return ps.isFunction(r)?r.call(this,e,n):(o&&(e=n),ps.isString(e)?ps.isString(r)?-1!==e.indexOf(r):ps.isRegExp(r)?r.test(e):void 0:void 0)}class Ys{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Hs(e);if(!o)throw new Error("header name must be a non-empty string");const i=ps.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Vs(t))}const i=(t,e)=>ps.forEach(t,((t,n)=>o(t,n,e)));if(ps.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(ps.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&qs[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e);else if(ps.isObject(t)&&ps.isIterable(t)){let n,r,o={};for(const e of t){if(!ps.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?ps.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=Hs(t)){const n=ps.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(ps.isFunction(e))return e.call(this,t,n);if(ps.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Hs(t)){const n=ps.findKey(this,t);return!(!n||void 0===this[n]||e&&!Gs(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Hs(t)){const o=ps.findKey(n,t);!o||e&&!Gs(0,n[o],o,e)||(delete n[o],r=!0)}}return ps.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!Gs(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return ps.forEach(this,((r,o)=>{const i=ps.findKey(n,o);if(i)return e[i]=Vs(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Vs(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ps.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&ps.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[zs]=this[zs]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Hs(t);e[r]||(function(t,e){const n=ps.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return ps.isArray(t)?t.forEach(r):r(t),this}}Ys.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ps.reduceDescriptors(Ys.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),ps.freezeMethods(Ys);const Xs=Ys;function Ks(t,e){const n=this||Fs,r=e||n,o=Xs.from(r.headers);let i=r.data;return ps.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Js(t){return!(!t||!t.__CANCEL__)}function Ws(t,e,n){ms.call(this,null==t?"canceled":t,ms.ERR_CANCELED,e,n),this.name="CanceledError"}ps.inherits(Ws,ms,{__CANCEL__:!0});const Qs=Ws;function Zs(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new ms("Request failed with status code "+n.status,[ms.ERR_BAD_REQUEST,ms.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const ta=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[s];o||(o=u),n[i]=a,r[i]=u;let f=s,l=0;for(;f!==i;)l+=n[f++],f%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-o<e)return;const h=c&&u-c;return h?Math.round(1e3*l/h):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const s=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),a=e-o;a>=i?s(t,e):(n=t,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}((n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,a=i-r,u=o(a);r=i,t({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&i<=s?(s-i)/u:void 0,event:n,lengthComputable:null!=s,[e?"download":"upload"]:!0})}),n)},ea=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},na=t=>(...e)=>ps.asap((()=>t(...e))),ra=js.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,js.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(js.origin),js.navigator&&/(msie|trident)/i.test(js.navigator.userAgent)):()=>!0,oa=js.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];ps.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ps.isString(r)&&s.push("path="+r),ps.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ia(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const sa=t=>t instanceof Xs?{...t}:t;function aa(t,e){e=e||{};const n={};function r(t,e,n,r){return ps.isPlainObject(t)&&ps.isPlainObject(e)?ps.merge.call({caseless:r},t,e):ps.isPlainObject(e)?ps.merge({},e):ps.isArray(e)?e.slice():e}function o(t,e,n,o){return ps.isUndefined(e)?ps.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!ps.isUndefined(e))return r(void 0,e)}function s(t,e){return ps.isUndefined(e)?ps.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function a(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,n)=>o(sa(t),sa(e),0,!0)};return ps.forEach(Object.keys({...t,...e}),(function(r){const i=u[r]||o,s=i(t[r],e[r],r);ps.isUndefined(s)&&i!==a||(n[r]=s)})),n}const ua=t=>{const e=aa({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;if(e.headers=s=Xs.from(s),e.url=Is(ia(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),ps.isFormData(n))if(js.hasStandardBrowserEnv||js.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ps.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach((([t,n])=>{e.includes(t.toLowerCase())&&s.set(t,n)}))}if(js.hasStandardBrowserEnv&&(r&&ps.isFunction(r)&&(r=r(e)),r||!1!==r&&ra(e.url))){const t=o&&i&&oa.read(i);t&&s.set(o,t)}return e},ca="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const r=ua(t);let o=r.data;const i=Xs.from(r.headers).normalize();let s,a,u,c,f,{responseType:l,onUploadProgress:h,onDownloadProgress:p}=r;function d(){c&&c(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let g=new XMLHttpRequest;function v(){if(!g)return;const r=Xs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Zs((function(t){e(t),d()}),(function(t){n(t),d()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:t,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new ms("Request aborted",ms.ECONNABORTED,t,g)),g=null)},g.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new ms(r,ms.ERR_NETWORK,t,g);o.event=e||null,n(o),g=null},g.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ls;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new ms(e,o.clarifyTimeoutError?ms.ETIMEDOUT:ms.ECONNABORTED,t,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&ps.forEach(i.toJSON(),(function(t,e){g.setRequestHeader(e,t)})),ps.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),l&&"json"!==l&&(g.responseType=r.responseType),p&&([u,f]=ta(p,!0),g.addEventListener("progress",u)),h&&g.upload&&([a,c]=ta(h),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=e=>{g&&(n(!e||e.type?new Qs(null,t,g):e),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);m&&-1===js.protocols.indexOf(m)?n(new ms("Unsupported protocol "+m+":",ms.ERR_BAD_REQUEST,t)):g.send(o||null)}))},fa=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,s();const e=t instanceof Error?t:this.reason;r.abort(e instanceof ms?e:new Qs(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,o(new ms(`timeout ${e} of ms exceeded`,ms.ETIMEDOUT))}),e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)})),t=null)};t.forEach((t=>t.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>ps.asap(s),a}},la=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},ha=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}}(t))yield*la(n,e)}(t,e);let i,s=0,a=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return a(),void t.close();let i=r.byteLength;if(n){let t=s+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw a(t),t}},cancel:t=>(a(t),o.return())},{highWaterMark:2})},{isFunction:pa}=ps,da=(({Request:t,Response:e})=>({Request:t,Response:e}))(ps.global),{ReadableStream:ga,TextEncoder:va}=ps.global,ma=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},ya=t=>{t=ps.merge.call({skipUndefined:!0},da,t);const{fetch:e,Request:n,Response:r}=t,o=e?pa(e):"function"==typeof fetch,i=pa(n),s=pa(r);if(!o)return!1;const a=o&&pa(ga),u=o&&("function"==typeof va?(c=new va,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const f=i&&a&&ma((()=>{let t=!1;const e=new n(js.origin,{body:new ga,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),l=s&&a&&ma((()=>ps.isReadableStream(new r("").body))),h={stream:l&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!h[t]&&(h[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new ms(`Response type '${t}' is not supported`,ms.ERR_NOT_SUPPORT,n)})}));return async t=>{let{url:o,method:s,data:a,signal:c,cancelToken:p,timeout:d,onDownloadProgress:g,onUploadProgress:v,responseType:m,headers:y,withCredentials:b="same-origin",fetchOptions:w}=ua(t),E=e||fetch;m=m?(m+"").toLowerCase():"text";let _=fa([c,p&&p.toAbortSignal()],d),A=null;const O=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let T;try{if(v&&f&&"get"!==s&&"head"!==s&&0!==(T=await(async(t,e)=>{const r=ps.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(ps.isBlob(t))return t.size;if(ps.isSpecCompliantForm(t)){const e=new n(js.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return ps.isArrayBufferView(t)||ps.isArrayBuffer(t)?t.byteLength:(ps.isURLSearchParams(t)&&(t+=""),ps.isString(t)?(await u(t)).byteLength:void 0)})(e):r})(y,a))){let t,e=new n(o,{method:"POST",body:a,duplex:"half"});if(ps.isFormData(a)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=ea(T,ta(na(v)));a=ha(e.body,65536,t,n)}}ps.isString(b)||(b=b?"include":"omit");const e=i&&"credentials"in n.prototype,c={...w,signal:_,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:e?b:void 0};A=i&&new n(o,c);let p=await(i?E(A,w):E(o,c));const d=l&&("stream"===m||"response"===m);if(l&&(g||d&&O)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=p[e]}));const e=ps.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&ea(e,ta(na(g),!0))||[];p=new r(ha(p.body,65536,n,(()=>{o&&o(),O&&O()})),t)}m=m||"text";let R=await h[ps.findKey(h,m)||"text"](p,t);return!d&&O&&O(),await new Promise(((e,n)=>{Zs(e,n,{data:R,headers:Xs.from(p.headers),status:p.status,statusText:p.statusText,config:t,request:A})}))}catch(e){if(O&&O(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new ms("Network Error",ms.ERR_NETWORK,t,A),{cause:e.cause||e});throw ms.from(e,e&&e.code,t,A)}}},ba=new Map,wa=t=>{let e=t?t.env:{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let s,a,u=i.length,c=ba;for(;u--;)s=i[u],a=c.get(s),void 0===a&&c.set(s,a=u?new Map:ya(e)),c=a;return a},Ea=(wa(),{http:null,xhr:ca,fetch:{get:wa}});ps.forEach(Ea,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const _a=t=>`- ${t}`,Aa=t=>ps.isFunction(t)||null===t||!1===t,Oa=(t,e)=>{t=ps.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let s=0;s<n;s++){let n;if(r=t[s],o=r,!Aa(r)&&(o=Ea[(n=String(r)).toLowerCase()],void 0===o))throw new ms(`Unknown adapter '${n}'`);if(o&&(ps.isFunction(o)||(o=o.get(e))))break;i[n||"#"+s]=o}if(!o){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let e=n?t.length>1?"since :\n"+t.map(_a).join("\n"):" "+_a(t[0]):"as no adapter specified";throw new ms("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return o};function Ta(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Qs(null,t)}function Ra(t){return Ta(t),t.headers=Xs.from(t.headers),t.data=Ks.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Oa(t.adapter||Fs.adapter,t)(t).then((function(e){return Ta(t),e.data=Ks.call(t,t.transformResponse,e),e.headers=Xs.from(e.headers),e}),(function(e){return Js(e)||(Ta(t),e&&e.response&&(e.response.data=Ks.call(t,t.transformResponse,e.response),e.response.headers=Xs.from(e.response.headers))),Promise.reject(e)}))}const Sa="1.12.2",Ca={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ca[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Ia={};Ca.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Sa+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new ms(r(o," has been removed"+(e?" in "+e:"")),ms.ERR_DEPRECATED);return e&&!Ia[o]&&(Ia[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},Ca.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const xa={assertOptions:function(t,e,n){if("object"!=typeof t)throw new ms("options must be an object",ms.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new ms("option "+i+" must be "+n,ms.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ms("Unknown option "+i,ms.ERR_BAD_OPTION)}},validators:Ca},La=xa.validators;class Na{constructor(t){this.defaults=t||{},this.interceptors={request:new xs,response:new xs}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=aa(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&xa.assertOptions(n,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean)},!1),null!=r&&(ps.isFunction(r)?e.paramsSerializer={serialize:r}:xa.assertOptions(r,{encode:La.function,serialize:La.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),xa.assertOptions(e,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&ps.merge(o.common,o[e.method]);o&&ps.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Xs.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let f,l=0;if(!a){const t=[Ra.bind(this),void 0];for(t.unshift(...s),t.push(...u),f=t.length,c=Promise.resolve(e);l<f;)c=c.then(t[l++],t[l++]);return c}f=s.length;let h=e;for(;l<f;){const t=s[l++],e=s[l++];try{h=t(h)}catch(t){e.call(this,t);break}}try{c=Ra.call(this,h)}catch(t){return Promise.reject(t)}for(l=0,f=u.length;l<f;)c=c.then(u[l++],u[l++]);return c}getUri(t){return Is(ia((t=aa(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}ps.forEach(["delete","get","head","options"],(function(t){Na.prototype[t]=function(e,n){return this.request(aa(n||{},{method:t,url:e,data:(n||{}).data}))}})),ps.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(aa(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Na.prototype[t]=e(),Na.prototype[t+"Form"]=e(!0)}));const Ba=Na;class Pa{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Qs(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new Pa((function(e){t=e})),cancel:t}}}const $a=Pa,Ua={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ua).forEach((([t,e])=>{Ua[e]=t}));const ka=Ua,ja=function t(e){const n=new Ba(e),r=Oi(Ba.prototype.request,n);return ps.extend(r,Ba.prototype,n,{allOwnKeys:!0}),ps.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(aa(e,n))},r}(Fs);ja.Axios=Ba,ja.CanceledError=Qs,ja.CancelToken=$a,ja.isCancel=Js,ja.VERSION=Sa,ja.toFormData=As,ja.AxiosError=ms,ja.Cancel=ja.CanceledError,ja.all=function(t){return Promise.all(t)},ja.spread=function(t){return function(e){return t.apply(null,e)}},ja.isAxiosError=function(t){return ps.isObject(t)&&!0===t.isAxiosError},ja.mergeConfig=aa,ja.AxiosHeaders=Xs,ja.formToJSON=t=>Ms(ps.isHTMLForm(t)?new FormData(t):t),ja.getAdapter=Oa,ja.HttpStatusCode=ka,ja.default=ja;const Ma=ja,{Axios:Da,AxiosError:Fa,CanceledError:qa,isCancel:za,CancelToken:Ha,VERSION:Va,all:Ga,Cancel:Ya,isAxiosError:Xa,spread:Ka,toFormData:Ja,AxiosHeaders:Wa,HttpStatusCode:Qa,formToJSON:Za,getAdapter:tu,mergeConfig:eu}=Ma,nu=(t,e,n)=>{const r=Object.assign({escape:!0},n||{});return"/"!==t.charAt(0)&&(t="/"+t),o=(o=e||{})||{},t.replace(/{([^{}]*)}/g,(function(t,e){const n=o[e];return r.escape?"string"==typeof n||"number"==typeof n?encodeURIComponent(n.toString()):encodeURIComponent(t):"string"==typeof n||"number"==typeof n?n.toString():t}));var o},ru=(t,e,n)=>{const r=Object.assign({noRewrite:!1},n||{}),o=n?.baseURL??function(){let t=window._oc_webroot;if(void 0===t){t=location.pathname;const e=t.indexOf("/index.php/");if(-1!==e)t=t.slice(0,e);else{const e=t.indexOf("/",1);t=t.slice(0,e>0?e:void 0)}}return t}();return!0!==window?.OC?.config?.modRewriteWorking||r.noRewrite?o+"/index.php"+nu(t,e,n):o+nu(t,e,n)};const ou=Ma.create({headers:{requesttoken:(void 0===ci&&(ci=document.head.dataset.requesttoken??null),ci??""),"X-Requested-With":"XMLHttpRequest"}});hi.push((t=>{ou.defaults.headers.requesttoken=t}));const iu=Object.assign(ou,{CancelToken:Ma.CancelToken,isCancel:Ma.isCancel}),su=Symbol("csrf-retry"),au=Symbol("retryDelay");iu.interceptors.response.use((t=>t),function(t){return async e=>{if(!Xa(e))throw e;const{config:n,response:r,request:o}=e,i=o?.responseURL;if(n&&!n[su]&&412===r?.status&&"CSRF check failed"===r?.data?.message){console.warn(`Request to ${i} failed because of a CSRF mismatch. Fetching a new token`);const{data:{token:e}}=await t.get(ru("/csrftoken"));return console.debug(`New request token ${e} fetched`),t.defaults.headers.requesttoken=e,t({...n,headers:{...n.headers,requesttoken:e},[su]:!0})}throw e}}(iu)),iu.interceptors.response.use((t=>t),function(t){return async e=>{if(!Xa(e))throw e;const{config:n,response:r,request:o}=e,i=o?.responseURL,s=r?.status,a=r?.headers;let u="number"==typeof n?.[au]?n?.[au]:1;if(503===s&&"1"===a?.["x-nextcloud-maintenance-mode"]&&n?.retryIfMaintenanceMode){if(u*=2,u>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:i}),e;return console.warn(`Request to ${i} failed because of maintenance mode. Retrying in ${u}s`),await new Promise((t=>{setTimeout(t,1e3*u)})),t({...n,[au]:u})}throw e}}(iu)),iu.interceptors.response.use((t=>t),(async function(t){if(Xa(t)){const{config:e,response:n,request:r}=t,o=r?.responseURL,i=n?.status;401===i&&"Current user is not logged in"===n?.data?.message&&e?.reloadExpiredSession&&window?.location&&(console.error(`Request to ${o} failed because the user session expired. Reloading the page …`),window.location.reload())}throw t}));const uu=async t=>{const e=ru("/apps/twofactor_totp/settings/enable");return(await iu.post(e,t)).data};var cu=r(816);const fu={name:"SetupConfirmation",components:{QR:r.n(cu)()},props:{loading:{type:Boolean,default:!1},secret:{type:String,required:!0},qrUrl:{type:String,required:!0},confirmation:{type:String,default:""}},data(){return{confirmationCode:this.confirmation}},watch:{confirmation(t){this.confirmationCode=t}},methods:{confirm(){this.$emit("update:confirmation",this.confirmationCode),this.$emit("confirm")},onConfirmKeyDown(t){13===t.which&&this.confirm()}}};var lu=r(72),hu=r.n(lu),pu=r(825),du=r.n(pu),gu=r(659),vu=r.n(gu),mu=r(56),yu=r.n(mu),bu=r(540),wu=r.n(bu),Eu=r(113),_u=r.n(Eu),Au=r(468),Ou={};function Tu(t,e,n,r,o,i,s,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(t,e){return u.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}Ou.styleTagTransform=_u(),Ou.setAttributes=yu(),Ou.insert=vu().bind(null,"head"),Ou.domAPI=du(),Ou.insertStyleElement=wu(),hu()(Au.A,Ou),Au.A&&Au.A.locals&&Au.A.locals;const Ru=Tu(fu,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"setup-confirmation"},[e("p",{staticClass:"setup-confirmation__secret"},[t._v("\n\t\t"+t._s(t.t("twofactor_totp","Your new TOTP secret is:"))+" "+t._s(t.secret)+"\n\t")]),t._v(" "),e("p",[t._v("\n\t\t"+t._s(t.t("twofactor_totp","For quick setup, scan this QR code with your TOTP app:"))+"\n\t")]),t._v(" "),e("QR",{attrs:{value:t.qrUrl,options:{width:150}}}),t._v(" "),e("p",[t._v("\n\t\t"+t._s(t.t("twofactor_totp","After you configured your app, enter a test code below to ensure everything works correctly:"))+"\n\t")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmationCode,expression:"confirmationCode"}],attrs:{id:"totp-confirmation",type:"text",minlength:"6",maxlength:"10",autocomplete:"one-time-code",inputmode:"numeric",autocapitalize:"off",disabled:t.loading,placeholder:t.t("twofactor_totp","Authentication code")},domProps:{value:t.confirmationCode},on:{keydown:t.onConfirmKeyDown,input:function(e){e.target.composing||(t.confirmationCode=e.target.value)}}}),t._v(" "),e("input",{attrs:{id:"totp-confirmation-submit",type:"button",disabled:t.loading,value:t.t("twofactor_totp","Verify")},on:{click:t.confirm}})],1)}),[],!1,null,"7568a08a",null).exports,Su=Object.freeze({STATE_DISABLED:0,STATE_CREATED:1,STATE_ENABLED:2}),Cu={name:"LoginSetup",components:{SetupConfirmation:Ru},data:()=>({loading:!0,confirmationLoading:!1,secret:"",qrUrl:"",confirmation:""}),mounted(){this.load()},methods:{load(){this.loading=!0,Ai.info("starting TOTP setup"),uu({state:Su.STATE_CREATED}).then((({secret:t,qrUrl:e})=>{Ai.info("TOTP secret received"),this.secret=t,this.qrUrl=e,this.loading=!1}))},confirm(){this.loading=!0,uu({state:Su.STATE_ENABLED,code:this.confirmation}).then((({state:t})=>{t===Su.STATE_ENABLED?(Ai.info("TOTP secret confirmed"),Ai.info("todo: submit"),this.$refs.confirmForm.submit()):(Ai.warn("TOTP confirmation failed"),this.loading=!1)}))}}};var Iu=r(477),xu={};xu.styleTagTransform=_u(),xu.setAttributes=yu(),xu.insert=vu().bind(null,"head"),xu.domAPI=du(),xu.insertStyleElement=wu(),hu()(Iu.A,xu),Iu.A&&Iu.A.locals&&Iu.A.locals;const Lu=Tu(Cu,(function(){var t=this,e=t._self._c;return e("div",[t.loading?e("div",{staticClass:"loading"}):e("SetupConfirmation",{attrs:{loading:t.confirmationLoading,secret:t.secret,"qr-url":t.qrUrl,confirmation:t.confirmation},on:{"update:confirmation":function(e){t.confirmation=e},confirm:t.confirm}}),t._v(" "),e("form",{ref:"confirmForm",attrs:{method:"POST"}})],1)}),[],!1,null,"2c398401",null).exports;Gn.mixin({methods:{t}}),Ai.debug("rendering login setup view"),(new(Gn.extend(Lu))).$mount("#twofactor-totp-login-setup"),Ai.debug("login setup view rendered")})()})(); //# sourceMappingURL=twofactor_totp-main-login-setup.js.map?v=62d4c86059c650bb568a
Save File
Cancel