!function(){"use strict";var e,t,n,r,o,i,a,u,c,s,l,f,p,d,h,g,v,m,y,b,w,_,S,O,E,x,j,A,R,I,T,C,P,k,N,M,L,D,B,U,z,$,F,W,H,V,q,Q,J,Z,G,Y,K,X,ee,te,ne,re,oe,ie,ae,ue,ce,se,le,fe,pe,de,he,ge,ve,me,ye,be,we,_e,Se,Oe,Ee,xe,je,Ae,Re,Ie,Te,Ce,Pe,ke,Ne,Me,Le,De,Be,Ue,ze,$e,Fe,We,He,Ve,qe,Qe,Je,Ze,Ge,Ye,Ke,Xe,et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nt(){if(r)return n;return r=1,n=function(e,t){return e===t||e!=e&&t!=t}}function rt(){if(i)return o;i=1;var e=nt();return o=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function ot(){if(g)return h;g=1;var n=t?e:(t=1,e=function(){this.__data__=[],this.size=0}),r=function(){if(u)return a;u=1;var e=rt(),t=Array.prototype.splice;return a=function(n){var r=this.__data__,o=e(r,n);return!(o<0||(o==r.length-1?r.pop():t.call(r,o,1),--this.size,0))},a}(),o=function(){if(s)return c;s=1;var e=rt();return c=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},c}(),i=function(){if(f)return l;f=1;var e=rt();return l=function(t){return e(this.__data__,t)>-1}}(),v=function(){if(d)return p;d=1;var e=rt();return p=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this},p}();function m(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}}function zt(){if(Lt)return Mt;return Lt=1,Mt=function(e){return function(t){return e(t)}}}var $t,Ft,Wt,Ht,Vt,qt,Qt,Jt,Zt,Gt,Yt,Kt,Xt,en,tn,nn,rn,on,an,un,cn,sn,ln,fn,pn,dn,hn,gn={exports:{}};function vn(){return $t||($t=1,function(e,t){var n=it(),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(gn,gn.exports)),gn.exports}function mn(){if(Wt)return Ft;Wt=1;var e=function(){if(Nt)return kt;Nt=1;var e=ct(),t=Ut(),n=Ot(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,kt=function(o){return n(o)&&t(o.length)&&!!r[e(o)]}}(),t=zt(),n=vn(),r=n&&n.isTypedArray,o=r?t(r):e;return Ft=o}function yn(){if(Vt)return Ht;Vt=1;var e=(Ve||(Ve=1,He=function(e,t){for(var n=-1,r=Array(e);++n-1&&t%1==0&&t0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1] * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ Xr=io,eo=io.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=16,i=32,a=64,u=128,c=256,s=1/0,l=9007199254740991,f=NaN,p=4294967295,d=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",o],["flip",512],["partial",i],["partialRight",a],["rearg",c]],h="[object Arguments]",g="[object Array]",v="[object Boolean]",m="[object Date]",y="[object Error]",b="[object Function]",w="[object GeneratorFunction]",_="[object Map]",S="[object Number]",O="[object Object]",E="[object Promise]",x="[object RegExp]",j="[object Set]",A="[object String]",R="[object Symbol]",I="[object WeakMap]",T="[object ArrayBuffer]",C="[object DataView]",P="[object Float32Array]",k="[object Float64Array]",N="[object Int8Array]",M="[object Int16Array]",L="[object Int32Array]",D="[object Uint8Array]",B="[object Uint8ClampedArray]",U="[object Uint16Array]",z="[object Uint32Array]",$=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,q=RegExp(H.source),Q=RegExp(V.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ne=/^\s+/,re=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",je="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Re="["+we+"]",Ie="["+je+"]",Te="["+_e+"]",Ce="\\d+",Pe="["+Se+"]",ke="["+Oe+"]",Ne="[^"+we+je+Ce+Se+Oe+Ee+"]",Me="\\ud83c[\\udffb-\\udfff]",Le="[^"+we+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ee+"]",ze="\\u200d",$e="(?:"+ke+"|"+Ne+")",Fe="(?:"+Ue+"|"+Ne+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ve="(?:"+Te+"|"+Me+")?",qe="["+xe+"]?",Qe=qe+Ve+"(?:"+ze+"(?:"+[Le,De,Be].join("|")+")"+qe+Ve+")*",Je="(?:"+[Pe,De,Be].join("|")+")"+Qe,Ze="(?:"+[Le+Te+"?",Te,De,Be,Re].join("|")+")",Ge=RegExp(Ae,"g"),Ye=RegExp(Te,"g"),Ke=RegExp(Me+"(?="+Me+")|"+Ze+Qe,"g"),Xe=RegExp([Ue+"?"+ke+"+"+We+"(?="+[Ie,Ue,"$"].join("|")+")",Fe+"+"+He+"(?="+[Ie,Ue+$e,"$"].join("|")+")",Ue+"?"+$e+"+"+We,Ue+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,Je].join("|"),"g"),et=RegExp("["+ze+we+_e+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[P]=ot[k]=ot[N]=ot[M]=ot[L]=ot[D]=ot[B]=ot[U]=ot[z]=!0,ot[h]=ot[g]=ot[T]=ot[v]=ot[C]=ot[m]=ot[y]=ot[b]=ot[_]=ot[S]=ot[O]=ot[x]=ot[j]=ot[A]=ot[I]=!1;var it={};it[h]=it[g]=it[T]=it[C]=it[v]=it[m]=it[P]=it[k]=it[N]=it[M]=it[L]=it[_]=it[S]=it[O]=it[x]=it[j]=it[A]=it[R]=it[D]=it[B]=it[U]=it[z]=!0,it[y]=it[b]=it[I]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,st="object"==typeof oo&&oo&&oo.Object===Object&&oo,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=st||lt||Function("return this")(),pt=eo&&!eo.nodeType&&eo,dt=pt&&Xr&&!Xr.nodeType&&Xr,ht=dt&&dt.exports===pt,gt=ht&&st.process,vt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,yt=vt&&vt.isDate,bt=vt&&vt.isMap,wt=vt&&vt.isRegExp,_t=vt&&vt.isSet,St=vt&&vt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Xt(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var en=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,o=e.length,i=0,a=[];++n",""":'"',"'":"'"}),hn=function re(we){var _e,Se=(we=null==we?ft:hn.defaults(ft.Object(),we,hn.pick(ft,nt))).Array,Oe=we.Date,Ee=we.Error,xe=we.Function,je=we.Math,Ae=we.Object,Re=we.RegExp,Ie=we.String,Te=we.TypeError,Ce=Se.prototype,Pe=xe.prototype,ke=Ae.prototype,Ne=we["__core-js_shared__"],Me=Pe.toString,Le=ke.hasOwnProperty,De=0,Be=(_e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+_e:"",Ue=ke.toString,ze=Me.call(Ae),$e=ft._,Fe=Re("^"+Me.call(Le).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ht?we.Buffer:e,He=we.Symbol,Ve=we.Uint8Array,qe=We?We.allocUnsafe:e,Qe=an(Ae.getPrototypeOf,Ae),Je=Ae.create,Ze=ke.propertyIsEnumerable,Ke=Ce.splice,et=He?He.isConcatSpreadable:e,at=He?He.iterator:e,st=He?He.toStringTag:e,lt=function(){try{var e=di(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),pt=we.clearTimeout!==ft.clearTimeout&&we.clearTimeout,dt=Oe&&Oe.now!==ft.Date.now&&Oe.now,gt=we.setTimeout!==ft.setTimeout&&we.setTimeout,vt=je.ceil,Lt=je.floor,Ht=Ae.getOwnPropertySymbols,gn=We?We.isBuffer:e,vn=we.isFinite,mn=Ce.join,yn=an(Ae.keys,Ae),bn=je.max,wn=je.min,_n=Oe.now,Sn=we.parseInt,On=je.random,En=Ce.reverse,xn=di(we,"DataView"),jn=di(we,"Map"),An=di(we,"Promise"),Rn=di(we,"Set"),In=di(we,"WeakMap"),Tn=di(Ae,"create"),Cn=In&&new In,Pn={},kn=Ui(xn),Nn=Ui(jn),Mn=Ui(An),Ln=Ui(Rn),Dn=Ui(In),Bn=He?He.prototype:e,Un=Bn?Bn.valueOf:e,zn=Bn?Bn.toString:e;function $n(e){if(nu(e)&&!Va(e)&&!(e instanceof Vn)){if(e instanceof Hn)return e;if(Le.call(e,"__wrapped__"))return zi(e)}return new Hn(e)}var Fn=function(){function t(){}return function(n){if(!tu(n))return{};if(Je)return Je(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function Wn(){}function Hn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=n?t:n)),t}function sr(t,n,r,o,i,a){var u,c=1&n,s=2&n,l=4&n;if(r&&(u=i?r(t,o,i,a):r(t)),u!==e)return u;if(!tu(t))return t;var f=Va(t);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Co(t,u)}else{var p=vi(t),d=p==b||p==w;if(Za(t))return xo(t,c);if(p==O||p==h||d&&!i){if(u=s||d?{}:yi(t),!c)return s?function(e,t){return Po(e,gi(e),t)}(t,function(e,t){return e&&Po(t,ku(t),e)}(u,t)):function(e,t){return Po(e,hi(e),t)}(t,ir(u,t))}else{if(!it[p])return i?t:{};u=function(e,t,n){var r,o=e.constructor;switch(t){case T:return jo(e);case v:case m:return new o(+e);case C:return function(e,t){var n=t?jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case k:case N:case M:case L:case D:case B:case U:case z:return Ao(e,n);case _:return new o;case S:case A:return new o(e);case x:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case j:return new o;case R:return r=e,Un?Ae(Un.call(r)):{}}}(t,p,c)}}a||(a=new Gn);var g=a.get(t);if(g)return g;a.set(t,u),uu(t)?t.forEach(function(e){u.add(sr(e,n,r,e,t,a))}):ru(t)&&t.forEach(function(e,o){u.set(o,sr(e,n,r,o,t,a))});var y=f?e:(l?s?ai:ii:s?ku:Pu)(t);return xt(y||t,function(e,o){y&&(e=t[o=e]),nr(u,o,sr(e,n,r,o,t,a))}),u}function lr(t,n,r){var o=r.length;if(null==t)return!o;for(t=Ae(t);o--;){var i=r[o],a=n[i],u=t[i];if(u===e&&!(i in t)||!a(u))return!1}return!0}function fr(n,r,o){if("function"!=typeof n)throw new Te(t);return Pi(function(){n.apply(e,o)},r)}function pr(e,t,n,r){var o=-1,i=It,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=Ct(t,Zt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=Yt,a=!1,t=new Zn(t));e:for(;++o-1},Qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(jn||Qn),string:new qn}},Jn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return fi(this,e).get(e)},Jn.prototype.has=function(e){return fi(this,e).has(e)},Jn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,n),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var r=n.__data__;if(!jn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var dr=Mo(_r),hr=Mo(Sr,!0);function gr(e,t){var n=!0;return dr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function vr(t,n,r){for(var o=-1,i=t.length;++o0&&n(u)?t>1?yr(u,t-1,n,r,o):Pt(o,u):r||(o[o.length]=u)}return o}var br=Lo(),wr=Lo(!0);function _r(e,t){return e&&br(e,t,Pu)}function Sr(e,t){return e&&wr(e,t,Pu)}function Or(e,t){return Rt(t,function(t){return Ka(e[t])})}function Er(t,n){for(var r=0,o=(n=_o(n,t)).length;null!=t&&rt}function Rr(e,t){return null!=e&&Le.call(e,t)}function Ir(e,t){return null!=e&&t in Ae(e)}function Tr(t,n,r){for(var o=r?Tt:It,i=t[0].length,a=t.length,u=a,c=Se(a),s=1/0,l=[];u--;){var f=t[u];u&&n&&(f=Ct(f,Zt(n))),s=wn(f.length,s),c[u]=!r&&(n||i>=120&&f.length>=120)?new Zn(u&&f):e}f=t[0];var p=-1,d=c[0];e:for(;++p=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&Ke.call(u,c,1),Ke.call(e,c,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Ke.call(e,o,1):po(e,o)}}return e}function Zr(e,t){return e+Lt(On()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=Lt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return ki(Ri(e,t,oc),e+"")}function Kr(e){return Kn($u(e))}function Xr(e,t){var n=$u(e);return Li(n,cr(t,0,n.length))}function eo(t,n,r,o){if(!tu(t))return t;for(var i=-1,a=(n=_o(n,t)).length,u=a-1,c=t;null!=c&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Se(o);++r>>1,a=e[i];null!==a&&!su(a)&&(n?a<=t:a=200){var s=t?null:Yo(e);if(s)return cn(s);a=!1,o=Yt,c=new Zn}else c=t?[]:u;e:for(;++r=o?t:oo(t,n,r)}var Eo=pt||function(e){return ft.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function jo(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Ao(e,t){var n=t?jo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ro(t,n){if(t!==n){var r=t!==e,o=null===t,i=t==t,a=su(t),u=n!==e,c=null===n,s=n==n,l=su(n);if(!c&&!l&&!a&&t>n||a&&u&&s&&!c&&!l||o&&u&&s||!r&&s||!i)return 1;if(!o&&!a&&!l&&t1?r[i-1]:e,u=i>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(i--,a):e,u&&_i(r[0],r[1],u)&&(a=i<3?e:a,i=1),n=Ae(n);++o-1?i[a?n[u]:u]:e}}function $o(n){return oi(function(r){var o=r.length,i=o,a=Hn.prototype.thru;for(n&&r.reverse();i--;){var u=r[i];if("function"!=typeof u)throw new Te(t);if(a&&!c&&"wrapper"==ci(u))var c=new Hn([],!0)}for(i=c?i:o;++i1&&b.reverse(),p&&lc))return!1;var l=a.get(t),f=a.get(n);if(l&&f)return l==n&&f==t;var p=-1,d=!0,h=2&r?new Zn:e;for(a.set(t,n),a.set(n,t);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return xt(d,function(n){var r="_."+n[0];t&n[1]&&!It(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(ae):[]}(r),n)))}function Mi(t){var n=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Li(t,n){var r=-1,o=t.length,i=o-1;for(n=n===e?o:n;++r1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,aa(t,r)});function da(e){var t=$n(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ga=oi(function(t){var n=t.length,r=n?t[0]:0,o=this.__wrapped__,i=function(e){return ur(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Vn&&wi(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:ha,args:[i],thisArg:e}),new Hn(o,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(i)}),va=ko(function(e,t,n){Le.call(e,n)?++e[n]:ar(e,n,1)}),ma=zo(Hi),ya=zo(Vi);function ba(e,t){return(Va(e)?xt:dr)(e,li(t,3))}function wa(e,t){return(Va(e)?jt:hr)(e,li(t,3))}var _a=ko(function(e,t,n){Le.call(e,n)?e[n].push(t):ar(e,n,[t])}),Sa=Yr(function(e,t,n){var r=-1,o="function"==typeof t,i=Qa(e)?Se(e.length):[];return dr(e,function(e){i[++r]=o?Ot(t,e,n):Cr(e,t,n)}),i}),Oa=ko(function(e,t,n){ar(e,n,t)});function Ea(e,t){return(Va(e)?Ct:zr)(e,li(t,3))}var xa=ko(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ja=Yr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,yr(t,1),[])}),Aa=dt||function(){return ft.Date.now()};function Ra(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Xo(t,u,e,e,e,e,n)}function Ia(n,r){var o;if("function"!=typeof r)throw new Te(t);return n=gu(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=e),o}}var Ta=Yr(function(e,t,n){var r=1;if(n.length){var o=un(n,si(Ta));r|=i}return Xo(e,r,t,n,o)}),Ca=Yr(function(e,t,n){var r=3;if(n.length){var o=un(n,si(Ca));r|=i}return Xo(t,r,e,n,o)});function Pa(n,r,o){var i,a,u,c,s,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof n)throw new Te(t);function g(t){var r=i,o=a;return i=a=e,f=t,c=n.apply(o,r)}function v(t){var n=t-l;return l===e||n>=r||n<0||d&&t-f>=u}function m(){var e=Aa();if(v(e))return y(e);s=Pi(m,function(e){var t=r-(e-l);return d?wn(t,u-(e-f)):t}(e))}function y(t){return s=e,h&&i?g(t):(i=a=e,c)}function b(){var t=Aa(),n=v(t);if(i=arguments,a=this,l=t,n){if(s===e)return function(e){return f=e,s=Pi(m,r),p?g(e):c}(l);if(d)return Eo(s),s=Pi(m,r),g(l)}return s===e&&(s=Pi(m,r)),c}return r=mu(r)||0,tu(o)&&(p=!!o.leading,u=(d="maxWait"in o)?bn(mu(o.maxWait)||0,r):u,h="trailing"in o?!!o.trailing:h),b.cancel=function(){s!==e&&Eo(s),f=0,i=l=a=s=e},b.flush=function(){return s===e?c:y(Aa())},b}var ka=Yr(function(e,t){return fr(e,1,t)}),Na=Yr(function(e,t,n){return fr(e,mu(t)||0,n)});function Ma(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Te(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ma.Cache||Jn),r}function La(e){if("function"!=typeof e)throw new Te(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Jn;var Da=So(function(e,t){var n=(t=1==t.length&&Va(t[0])?Ct(t[0],Zt(li())):Ct(yr(t,1),Zt(li()))).length;return Yr(function(r){for(var o=-1,i=wn(r.length,n);++o=t}),Ha=Pr(function(){return arguments}())?Pr:function(e){return nu(e)&&Le.call(e,"callee")&&!Ze.call(e,"callee")},Va=Se.isArray,qa=mt?Zt(mt):function(e){return nu(e)&&jr(e)==T};function Qa(e){return null!=e&&eu(e.length)&&!Ka(e)}function Ja(e){return nu(e)&&Qa(e)}var Za=gn||mc,Ga=yt?Zt(yt):function(e){return nu(e)&&jr(e)==m};function Ya(e){if(!nu(e))return!1;var t=jr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!iu(e)}function Ka(e){if(!tu(e))return!1;var t=jr(e);return t==b||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==gu(e)}function eu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function tu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nu(e){return null!=e&&"object"==typeof e}var ru=bt?Zt(bt):function(e){return nu(e)&&vi(e)==_};function ou(e){return"number"==typeof e||nu(e)&&jr(e)==S}function iu(e){if(!nu(e)||jr(e)!=O)return!1;var t=Qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==ze}var au=wt?Zt(wt):function(e){return nu(e)&&jr(e)==x},uu=_t?Zt(_t):function(e){return nu(e)&&vi(e)==j};function cu(e){return"string"==typeof e||!Va(e)&&nu(e)&&jr(e)==A}function su(e){return"symbol"==typeof e||nu(e)&&jr(e)==R}var lu=St?Zt(St):function(e){return nu(e)&&eu(e.length)&&!!ot[jr(e)]},fu=Jo(Ur),pu=Jo(function(e,t){return e<=t});function du(e){if(!e)return[];if(Qa(e))return cu(e)?fn(e):Co(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=vi(e);return(t==_?on:t==j?cn:$u)(e)}function hu(e){return e?(e=mu(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gu(e){var t=hu(e),n=t%1;return t==t?n?t-n:t:0}function vu(e){return e?cr(gu(e),0,p):0}function mu(e){if("number"==typeof e)return e;if(su(e))return f;if(tu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=de.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):pe.test(e)?f:+e}function yu(e){return Po(e,ku(e))}function bu(e){return null==e?"":lo(e)}var wu=No(function(e,t){if(xi(t)||Qa(t))Po(t,Pu(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])}),_u=No(function(e,t){Po(t,ku(t),e)}),Su=No(function(e,t,n,r){Po(t,ku(t),e,r)}),Ou=No(function(e,t,n,r){Po(t,Pu(t),e,r)}),Eu=oi(ur),xu=Yr(function(t,n){t=Ae(t);var r=-1,o=n.length,i=o>2?n[2]:e;for(i&&_i(n[0],n[1],i)&&(o=1);++r1),t}),Po(e,ai(e),n),r&&(n=sr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}),Du=oi(function(e,t){return null==e?{}:function(e,t){return qr(e,t,function(t,n){return Ru(e,n)})}(e,t)});function Bu(e,t){if(null==e)return{};var n=Ct(ai(e),function(e){return[e]});return t=li(t),qr(e,n,function(e,n){return t(e,n[0])})}var Uu=Ko(Pu),zu=Ko(ku);function $u(e){return null==e?[]:Gt(e,Pu(e))}var Fu=Bo(function(e,t,n){return t=t.toLowerCase(),e+(n?Wu(t):t)});function Wu(e){return Yu(bu(e).toLowerCase())}function Hu(e){return(e=bu(e))&&e.replace(me,en).replace(Ye,"")}var Vu=Bo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qu=Bo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qu=Do("toLowerCase"),Ju=Bo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Zu=Bo(function(e,t,n){return e+(n?" ":"")+Yu(t)}),Gu=Bo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Yu=Do("toUpperCase");function Ku(t,n,r){return t=bu(t),(n=r?e:n)===e?function(e){return tt.test(e)}(t)?function(e){return e.match(Xe)||[]}(t):function(e){return e.match(ue)||[]}(t):t.match(n)||[]}var Xu=Yr(function(t,n){try{return Ot(t,e,n)}catch(e){return Ya(e)?e:new Ee(e)}}),ec=oi(function(e,t){return xt(t,function(t){t=Bi(t),ar(e,t,Ta(e[t],e))}),e});function tc(e){return function(){return e}}var nc=$o(),rc=$o(!0);function oc(e){return e}function ic(e){return Lr("function"==typeof e?e:sr(e,1))}var ac=Yr(function(e,t){return function(n){return Cr(n,e,t)}}),uc=Yr(function(e,t){return function(n){return Cr(e,n,t)}});function cc(e,t,n){var r=Pu(t),o=Or(t,r);null!=n||tu(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Or(t,Pu(t)));var i=!(tu(n)&&"chain"in n&&!n.chain),a=Ka(e);return xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Co(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})}),e}function sc(){}var lc=Vo(Ct),fc=Vo(At),pc=Vo(Mt);function dc(e){return Si(e)?Wt(Bi(e)):function(e){return function(t){return Er(t,e)}}(e)}var hc=Qo(),gc=Qo(!0);function vc(){return[]}function mc(){return!1}var yc,bc=Ho(function(e,t){return e+t},0),wc=Go("ceil"),_c=Ho(function(e,t){return e/t},1),Sc=Go("floor"),Oc=Ho(function(e,t){return e*t},1),Ec=Go("round"),xc=Ho(function(e,t){return e-t},0);return $n.after=function(e,n){if("function"!=typeof n)throw new Te(t);return e=gu(e),function(){if(--e<1)return n.apply(this,arguments)}},$n.ary=Ra,$n.assign=wu,$n.assignIn=_u,$n.assignInWith=Su,$n.assignWith=Ou,$n.at=Eu,$n.before=Ia,$n.bind=Ta,$n.bindAll=ec,$n.bindKey=Ca,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},$n.chain=da,$n.chunk=function(t,n,r){n=(r?_i(t,n,r):n===e)?1:bn(gu(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,a=0,u=Se(vt(o/n));ii?0:i+r),(o=o===e||o>i?i:gu(o))<0&&(o+=i),o=r>o?0:vu(o);r>>0)?(t=bu(t))&&("string"==typeof n||null!=n&&!au(n))&&!(n=lo(n))&&rn(t)?Oo(fn(t),0,r):t.split(n,r):[]},$n.spread=function(e,n){if("function"!=typeof e)throw new Te(t);return n=null==n?0:bn(gu(n),0),Yr(function(t){var r=t[n],o=Oo(t,0,n);return r&&Pt(o,r),Ot(e,this,o)})},$n.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},$n.take=function(t,n,r){return t&&t.length?oo(t,0,(n=r||n===e?1:gu(n))<0?0:n):[]},$n.takeRight=function(t,n,r){var o=null==t?0:t.length;return o?oo(t,(n=o-(n=r||n===e?1:gu(n)))<0?0:n,o):[]},$n.takeRightWhile=function(e,t){return e&&e.length?go(e,li(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?go(e,li(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new Te(t);return tu(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Pa(e,n,{leading:o,maxWait:n,trailing:i})},$n.thru=ha,$n.toArray=du,$n.toPairs=Uu,$n.toPairsIn=zu,$n.toPath=function(e){return Va(e)?Ct(e,Bi):su(e)?[e]:Co(Di(bu(e)))},$n.toPlainObject=yu,$n.transform=function(e,t,n){var r=Va(e),o=r||Za(e)||lu(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tu(e)&&Ka(i)?Fn(Qe(e)):{}}return(o?xt:_r)(e,function(e,r,o){return t(n,e,r,o)}),n},$n.unary=function(e){return Ra(e,1)},$n.union=na,$n.unionBy=ra,$n.unionWith=oa,$n.uniq=function(e){return e&&e.length?fo(e):[]},$n.uniqBy=function(e,t){return e&&e.length?fo(e,li(t,2)):[]},$n.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?fo(t,e,n):[]},$n.unset=function(e,t){return null==e||po(e,t)},$n.unzip=ia,$n.unzipWith=aa,$n.update=function(e,t,n){return null==e?e:ho(e,t,wo(n))},$n.updateWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:ho(t,n,wo(r),o)},$n.values=$u,$n.valuesIn=function(e){return null==e?[]:Gt(e,ku(e))},$n.without=ua,$n.words=Ku,$n.wrap=function(e,t){return Ba(wo(t),e)},$n.xor=ca,$n.xorBy=sa,$n.xorWith=la,$n.zip=fa,$n.zipObject=function(e,t){return yo(e||[],t||[],nr)},$n.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},$n.zipWith=pa,$n.entries=Uu,$n.entriesIn=zu,$n.extend=_u,$n.extendWith=Su,cc($n,$n),$n.add=bc,$n.attempt=Xu,$n.camelCase=Fu,$n.capitalize=Wu,$n.ceil=wc,$n.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=mu(r))==r?r:0),n!==e&&(n=(n=mu(n))==n?n:0),cr(mu(t),n,r)},$n.clone=function(e){return sr(e,4)},$n.cloneDeep=function(e){return sr(e,5)},$n.cloneDeepWith=function(t,n){return sr(t,5,n="function"==typeof n?n:e)},$n.cloneWith=function(t,n){return sr(t,4,n="function"==typeof n?n:e)},$n.conformsTo=function(e,t){return null==t||lr(e,t,Pu(t))},$n.deburr=Hu,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=_c,$n.endsWith=function(t,n,r){t=bu(t),n=lo(n);var o=t.length,i=r=r===e?o:cr(gu(r),0,o);return(r-=n.length)>=0&&t.slice(r,i)==n},$n.eq=$a,$n.escape=function(e){return(e=bu(e))&&Q.test(e)?e.replace(V,tn):e},$n.escapeRegExp=function(e){return(e=bu(e))&&te.test(e)?e.replace(ee,"\\$&"):e},$n.every=function(t,n,r){var o=Va(t)?At:gr;return r&&_i(t,n,r)&&(n=e),o(t,li(n,3))},$n.find=ma,$n.findIndex=Hi,$n.findKey=function(e,t){return Dt(e,li(t,3),_r)},$n.findLast=ya,$n.findLastIndex=Vi,$n.findLastKey=function(e,t){return Dt(e,li(t,3),Sr)},$n.floor=Sc,$n.forEach=ba,$n.forEachRight=wa,$n.forIn=function(e,t){return null==e?e:br(e,li(t,3),ku)},$n.forInRight=function(e,t){return null==e?e:wr(e,li(t,3),ku)},$n.forOwn=function(e,t){return e&&_r(e,li(t,3))},$n.forOwnRight=function(e,t){return e&&Sr(e,li(t,3))},$n.get=Au,$n.gt=Fa,$n.gte=Wa,$n.has=function(e,t){return null!=e&&mi(e,t,Rr)},$n.hasIn=Ru,$n.head=Qi,$n.identity=oc,$n.includes=function(e,t,n,r){e=Qa(e)?e:$u(e),n=n&&!r?gu(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),cu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ut(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gu(n);return o<0&&(o=bn(r+o,0)),Ut(e,t,o)},$n.inRange=function(t,n,r){return n=hu(n),r===e?(r=n,n=0):r=hu(r),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=l},$n.isSet=uu,$n.isString=cu,$n.isSymbol=su,$n.isTypedArray=lu,$n.isUndefined=function(t){return t===e},$n.isWeakMap=function(e){return nu(e)&&vi(e)==I},$n.isWeakSet=function(e){return nu(e)&&"[object WeakSet]"==jr(e)},$n.join=function(e,t){return null==e?"":mn.call(e,t)},$n.kebabCase=Vu,$n.last=Yi,$n.lastIndexOf=function(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o;return r!==e&&(i=(i=gu(r))<0?bn(o+i,0):wn(i,o-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,i):Bt(t,$t,i,!0)},$n.lowerCase=qu,$n.lowerFirst=Qu,$n.lt=fu,$n.lte=pu,$n.max=function(t){return t&&t.length?vr(t,oc,Ar):e},$n.maxBy=function(t,n){return t&&t.length?vr(t,li(n,2),Ar):e},$n.mean=function(e){return Ft(e,oc)},$n.meanBy=function(e,t){return Ft(e,li(t,2))},$n.min=function(t){return t&&t.length?vr(t,oc,Ur):e},$n.minBy=function(t,n){return t&&t.length?vr(t,li(n,2),Ur):e},$n.stubArray=vc,$n.stubFalse=mc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=Oc,$n.nth=function(t,n){return t&&t.length?Hr(t,gu(n)):e},$n.noConflict=function(){return ft._===this&&(ft._=$e),this},$n.noop=sc,$n.now=Aa,$n.pad=function(e,t,n){e=bu(e);var r=(t=gu(t))?ln(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(Lt(o),n)+e+qo(vt(o),n)},$n.padEnd=function(e,t,n){e=bu(e);var r=(t=gu(t))?ln(e):0;return t&&rn){var o=t;t=n,n=o}if(r||t%1||n%1){var i=On();return wn(t+i*(n-t+ut("1e-"+((i+"").length-1))),n)}return Zr(t,n)},$n.reduce=function(e,t,n){var r=Va(e)?kt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},$n.reduceRight=function(e,t,n){var r=Va(e)?Nt:Vt,o=arguments.length<3;return r(e,li(t,4),n,o,hr)},$n.repeat=function(t,n,r){return n=(r?_i(t,n,r):n===e)?1:gu(n),Gr(bu(t),n)},$n.replace=function(){var e=arguments,t=bu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(t,n,r){var o=-1,i=(n=_o(n,t)).length;for(i||(i=1,t=e);++ol)return[];var n=p,r=wn(e,p);t=li(t),e-=p;for(var o=Qt(r,t);++n=a)return t;var c=r-ln(o);if(c<1)return o;var s=u?Oo(u,0,c).join(""):t.slice(0,c);if(i===e)return s+o;if(u&&(c+=s.length-c),au(i)){if(t.slice(c).search(i)){var l,f=s;for(i.global||(i=Re(i.source,bu(fe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;s=s.slice(0,p===e?c:p)}}else if(t.indexOf(lo(i),c)!=c){var d=s.lastIndexOf(i);d>-1&&(s=s.slice(0,d))}return s+o},$n.unescape=function(e){return(e=bu(e))&&q.test(e)?e.replace(H,dn):e},$n.uniqueId=function(e){var t=++De;return bu(e)+t},$n.upperCase=Gu,$n.upperFirst=Yu,$n.each=ba,$n.eachRight=wa,$n.first=Qi,cc($n,(yc={},_r($n,function(e,t){Le.call($n.prototype,t)||(yc[t]=e)}),yc),{chain:!1}),$n.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$n[e].placeholder=$n}),xt(["drop","take"],function(t,n){Vn.prototype[t]=function(r){r=r===e?1:bn(gu(r),0);var o=this.__filtered__&&!n?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(r,o.__takeCount__):o.__views__.push({size:wn(r,p),type:t+(o.__dir__<0?"Right":"")}),o},Vn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}}),xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}}),Vn.prototype.compact=function(){return this.filter(oc)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Yr(function(e,t){return"function"==typeof e?new Vn(this):this.map(function(n){return Cr(n,e,t)})}),Vn.prototype.reject=function(e){return this.filter(La(li(e)))},Vn.prototype.slice=function(t,n){t=gu(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Vn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=gu(n))<0?r.dropRight(-n):r.take(n-t)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(p)},_r(Vn.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=$n[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);i&&($n.prototype[n]=function(){var n=this.__wrapped__,u=o?[1]:arguments,c=n instanceof Vn,s=u[0],l=c||Va(n),f=function(e){var t=i.apply($n,Pt([e],u));return o&&p?t[0]:t};l&&r&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=c&&!d;if(!a&&l){n=g?n:new Vn(this);var v=t.apply(n,u);return v.__actions__.push({func:ha,args:[f],thisArg:e}),new Hn(v,p)}return h&&g?t.apply(this,u):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})}),xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n](function(n){return t.apply(Va(n)?n:[],e)})}}),_r(Vn.prototype,function(e,t){var n=$n[t];if(n){var r=n.name+"";Le.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}}),Pn[Fo(e,2).name]=[{name:"wrapper",func:e}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},$n.prototype.plant=function(t){for(var n,r=this;r instanceof Wn;){var o=zi(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},$n.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Vn){var n=t;return this.__actions__.length&&(n=new Vn(this)),(n=n.reverse()).__actions__.push({func:ha,args:[ta],thisArg:e}),new Hn(n,this.__chain__)}return this.thru(ta)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,at&&($n.prototype[at]=function(){return this}),$n}();dt?((dt.exports=hn)._=hn,pt._=hn):ft._=hn}.call(oo),"function"==typeof SuppressedError&&SuppressedError;var lo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},fo={exports:{}};var po,ho={exports:{}};function go(){return po||(po=1,function(e){var t;e.exports=(t=t||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==lo&&lo.crypto&&(n=lo.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},u=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var u=0;u>>2]=n[u>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,u=i/(4*a),s=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*a,l=e.min(4*s,i);if(s){for(var f=0;f>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],v=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],S=e[t+11],O=e[t+12],E=e[t+13],x=e[t+14],j=e[t+15],A=i[0],R=i[1],I=i[2],T=i[3];A=s(A,R,I,T,a,7,u[0]),T=s(T,A,R,I,c,12,u[1]),I=s(I,T,A,R,d,17,u[2]),R=s(R,I,T,A,h,22,u[3]),A=s(A,R,I,T,g,7,u[4]),T=s(T,A,R,I,v,12,u[5]),I=s(I,T,A,R,m,17,u[6]),R=s(R,I,T,A,y,22,u[7]),A=s(A,R,I,T,b,7,u[8]),T=s(T,A,R,I,w,12,u[9]),I=s(I,T,A,R,_,17,u[10]),R=s(R,I,T,A,S,22,u[11]),A=s(A,R,I,T,O,7,u[12]),T=s(T,A,R,I,E,12,u[13]),I=s(I,T,A,R,x,17,u[14]),A=l(A,R=s(R,I,T,A,j,22,u[15]),I,T,c,5,u[16]),T=l(T,A,R,I,m,9,u[17]),I=l(I,T,A,R,S,14,u[18]),R=l(R,I,T,A,a,20,u[19]),A=l(A,R,I,T,v,5,u[20]),T=l(T,A,R,I,_,9,u[21]),I=l(I,T,A,R,j,14,u[22]),R=l(R,I,T,A,g,20,u[23]),A=l(A,R,I,T,w,5,u[24]),T=l(T,A,R,I,x,9,u[25]),I=l(I,T,A,R,h,14,u[26]),R=l(R,I,T,A,b,20,u[27]),A=l(A,R,I,T,E,5,u[28]),T=l(T,A,R,I,d,9,u[29]),I=l(I,T,A,R,y,14,u[30]),A=f(A,R=l(R,I,T,A,O,20,u[31]),I,T,v,4,u[32]),T=f(T,A,R,I,b,11,u[33]),I=f(I,T,A,R,S,16,u[34]),R=f(R,I,T,A,x,23,u[35]),A=f(A,R,I,T,c,4,u[36]),T=f(T,A,R,I,g,11,u[37]),I=f(I,T,A,R,y,16,u[38]),R=f(R,I,T,A,_,23,u[39]),A=f(A,R,I,T,E,4,u[40]),T=f(T,A,R,I,a,11,u[41]),I=f(I,T,A,R,h,16,u[42]),R=f(R,I,T,A,m,23,u[43]),A=f(A,R,I,T,w,4,u[44]),T=f(T,A,R,I,O,11,u[45]),I=f(I,T,A,R,j,16,u[46]),A=p(A,R=f(R,I,T,A,d,23,u[47]),I,T,a,6,u[48]),T=p(T,A,R,I,y,10,u[49]),I=p(I,T,A,R,x,15,u[50]),R=p(R,I,T,A,v,21,u[51]),A=p(A,R,I,T,O,6,u[52]),T=p(T,A,R,I,h,10,u[53]),I=p(I,T,A,R,_,15,u[54]),R=p(R,I,T,A,c,21,u[55]),A=p(A,R,I,T,b,6,u[56]),T=p(T,A,R,I,j,10,u[57]),I=p(I,T,A,R,m,15,u[58]),R=p(R,I,T,A,E,21,u[59]),A=p(A,R,I,T,g,6,u[60]),T=p(T,A,R,I,S,10,u[61]),I=p(I,T,A,R,d,15,u[62]),R=p(R,I,T,A,w,21,u[63]),i[0]=i[0]+A|0,i[1]=i[1]+R|0,i[2]=i[2]+I|0,i[3]=i[3]+T|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var l=c[s];c[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return u},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,o,i,a){var u=e+(t&n|~t&r)+o+a;return(u<>>32-i)+t}function l(e,t,n,r,o,i,a){var u=e+(t&r|n&~r)+o+a;return(u<>>32-i)+t}function f(e,t,n,r,o,i,a){var u=e+(t^n^r)+o+a;return(u<>>32-i)+t}function p(e,t,n,r,o,i,a){var u=e+(n^(t|~r))+o+a;return(u<>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),t.MD5)}(fo);var vo=fo.exports;window.resource=[];var mo=function(){function e(e){this.plugins=[],this.data={},this.timeid=null,this.busy=!1,this.waiteReportData=[],this._oldUrl=location.host+location.pathname+location.hash,this.oldUrl=location.href,this.config=e,window.signature||(window.signature=ro()),this.plugins=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0&&this.reporter(e)}catch(e){}},e.prototype.pageCycler=function(){var e,t=this;document.addEventListener("readystatechange",function(e){"complete"===document.readyState&&t.plugins.forEach(function(n){n.pageComplete&&(t.data=n.pageComplete(t.data,e,t.pluginReporter(t))||t.data)})}),window.addEventListener("load",function(e){t.plugins.forEach(function(n){n.pageOnload&&(t.data=n.pageOnload(t.data,e,t.pluginReporter(t))||t.data)}),t.reportData()}),window.addEventListener("hashchange",function(e){t.plugins.forEach(function(n){n.pageHashChange&&(t.data=n.pageHashChange(t.data,e,t.pluginReporter(t),{_oldUrl:t._oldUrl,oldUrl:t.oldUrl})||t.data)}),t._oldUrl=location.host+location.pathname+location.hash,t.oldUrl=location.href,t.reportData()}),e=function(e){t.plugins.forEach(function(n){n.pageHistoryChange&&(t.data=n.pageHistoryChange(t.data,e,t.pluginReporter(t),{_oldUrl:t._oldUrl,oldUrl:t.oldUrl})||t.data)}),t._oldUrl=location.host+location.pathname+location.hash,t.oldUrl=location.href,t.reportData()},window.history.pushState=so("pushState"),window.history.replaceState=so("replaceState"),window.addEventListener("pushState",e),window.addEventListener("replaceState",e),window.addEventListener("popstate",e),window.addEventListener("unload",function(e){t.plugins.forEach(function(n){n.pageUnload&&(t.data=n.pageUnload(t.data,e,t.pluginReporter(t))||t.data)}),t.reportData()})},e.prototype.collector=function(e){var t=this;return function(n){t.data[e]?t.data[e].push(n):t.data[e]=[n];for(var r=to(t.data),o=0,i=t.plugins;o0?(a=to(this.waiteReportData),this.waiteReportData=[],u={},a.forEach(function(e){var t;for(var n in e)u[n]?Array.isArray(e[n])?(t=u[n]).push.apply(t,e[n]):Object.assign(u[n],e[n]):u[n]=e[n]}),[4,this.reporter(u)]):[3,6];case 5:c.sent(),c.label=6;case 6:return[2]}})})},e.prototype.ajax=function(e){var t=this;return new Promise(function(n,r){var o=new XMLHttpRequest;o.open("POST",e.url),o.withCredentials=!0,t.config.headers&&Object.keys(t.config.headers).forEach(function(e){o.setRequestHeader(e,t.config.headers[e])}),t.config.contentType&&o.setRequestHeader("content-type",t.config.contentType),o.setRequestHeader("IS_BCE_MONITOR","1"),o.send(JSON.stringify(e.data)),o.onload=function(){n(o)}})},e.prototype.pluginReporter=function(e){var t=this;return function(n){for(var r=n,o=0,i=e.plugins;o>>0).toString(16)).substr(-8)}var So="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Oo=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Eo="object"==typeof So&&So&&So.Object===Object&&So,xo="object"==typeof self&&self&&self.Object===Object&&self,jo=Eo||xo||Function("return this")(),Ao=jo,Ro=function(){return Ao.Date.now()},Io=/\s/;var To=function(e){for(var t=e.length;t--&&Io.test(e.charAt(t)););return t},Co=To,Po=/^\s+/;var ko=function(e){return e?e.slice(0,Co(e)+1).replace(Po,""):e},No=jo.Symbol,Mo=No,Lo=Object.prototype,Do=Lo.hasOwnProperty,Bo=Lo.toString,Uo=Mo?Mo.toStringTag:void 0;var zo=function(e){var t=Do.call(e,Uo),n=e[Uo];try{e[Uo]=void 0;var r=!0}catch(e){}var o=Bo.call(e);return r&&(t?e[Uo]=n:delete e[Uo]),o},$o=Object.prototype.toString;var Fo=zo,Wo=function(e){return $o.call(e)},Ho=No?No.toStringTag:void 0;var Vo=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ho&&Ho in Object(e)?Fo(e):Wo(e)},qo=function(e){return null!=e&&"object"==typeof e};var Qo=ko,Jo=Oo,Zo=function(e){return"symbol"==typeof e||qo(e)&&"[object Symbol]"==Vo(e)},Go=/^[-+]0x[0-9a-f]+$/i,Yo=/^0b[01]+$/i,Ko=/^0o[0-7]+$/i,Xo=parseInt;var ei=Oo,ti=Ro,ni=function(e){if("number"==typeof e)return e;if(Zo(e))return NaN;if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qo(e);var n=Yo.test(e);return n||Ko.test(e)?Xo(e.slice(2),n?2:8):Go.test(e)?NaN:+e},ri=Math.max,oi=Math.min;var ii=function(e,t,n){var r,o,i,a,u,c,s=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function h(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-s>=i}function g(){var e=ti();if(h(e))return v(e);u=setTimeout(g,function(e){var n=t-(e-c);return f?oi(n,i-(e-s)):n}(e))}function v(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function m(){var e=ti(),n=h(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(g,t),l?d(e):a}(c);if(f)return clearTimeout(u),u=setTimeout(g,t),d(c)}return void 0===u&&(u=setTimeout(g,t)),a}return t=ni(t)||0,ei(n)&&(l=!!n.leading,i=(f="maxWait"in n)?ri(ni(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},m.flush=function(){return void 0===u?a:v(ti())},m};var ai=function(){return ai=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]r+1e3){var c=Math.round(1e3*o/(t-r));c3&&(e({pfs:c,time:t}),i=0),r=t,o=0}a||wo(u)};return{name:"bce-monitor-page-fps",install:function(e,t){a=!1,u(t)},uninstall:function(){a=!0}}},pageError:function(e){var t,n,r,o=["#main",".app-view"].concat(e||[]),i=[];function a(){for(var e=0,t=o;e=5?(function(){i.push(o),n={id:ro(),page:o};var e={type:"monitor-page-error",error:c,timestamp:Date.now(),errorId:n.id};window.snapshotEvent?window.snapshotEvent().then(function(n){e.snapshotEvent=n,t({"monitor-page-error":e})}):t({"monitor-page-error":e})}(),r=null):(u++,r=setTimeout(s,1e3)):r=null}}return{name:"bce-monitor-page-error",install:function(e,n){t=n,window.addEventListener("error",u,!0),window.monitorCatcher=function(e,t){u({message:t,error:{stack:e}})}},uninstall:function(){window.removeEventListener("error",u)},pageHashChange:function(){r&&clearTimeout(r),r=null},pageOnload:function(e,t,r){setTimeout(function(){var e=location.href;if(!a()&&(null==n?void 0:n.page)===e){r({"monitor-page-error-cancel":{type:"monitor-page-error-cancel",errorId:n.id}});var t=i.indexOf(e);i.splice(t,1),n=null}},2e3)}}},pageView:function(e){var t,n,r,o=Date.now(),i=0;function a(){"visible"===document.visibilityState?o=Date.now():i+=Date.now()-o}function u(e){return e?e.replace(/\?[^#]*/g,""):""}var c=ii(function(e){var r=i+(Date.now()-o)||0;r<200||(t&&t({"monitor-pv":{type:"monitor-pv",href:u(e.oldURL),from:u(n),timestamp:Date.now(),stayTime:r}}),o=Date.now(),i=0,n=e.oldURL)},200);return{name:"bce-monitor-pv",install:function(e,n){t=n,document.addEventListener("visibilitychange",a)},uninstall:function(){window.removeEventListener("visibilitychange",a)},preReport:function(e){return e["monitor-pv"]&&r&&(e["monitor-base-info"].href=r,e["monitor-base-info"]._href=u(r)),e},pageOnload:function(e){return n=document.referrer,o=Date.now(),i=0,e},pageHashChange:function(e,t){r=t.oldURL,c(t)},pageHistoryChange:function(e,t,n,o){r=o.oldUrl,c({oldURL:o.oldUrl})},pageUnload:function(e,a){r=location.href,t({"monitor-pv":{type:"monitor-pv",href:u(location.href),from:u(n||document.referrer),timestamp:Date.now(),stayTime:i+(Date.now()-o)||0}})}}},pageEvent:function(e){var t=e||{},n=t.click;function r(e,t){var n=new Set,r=[];function o(t){var n=t.e,o=t.xpath,i=t.trackId,a=t.trackName,u=t.innerText,c=t.eventData;r.find(function(e){return e.timeStamp===n.timeStamp})?r.push({timeStamp:n.timeStamp,xpath:o,trackId:i,trackName:a,innerText:u,eventData:c}):(r.push({timeStamp:n.timeStamp,xpath:o,trackId:i,trackName:a,innerText:u,eventData:c}),setTimeout(function(){!function(t){var n,r,o,i=t.map(function(e){return e.xpath}).join("+"),a=t.map(function(e){return e.innerText}).filter(function(e){return e}).join("+"),u=null===(n=t.find(function(e){return e.trackId}))||void 0===n?void 0:n.trackId,c=null===(r=t.find(function(e){return e.trackName}))||void 0===r?void 0:r.trackName,s=null===(o=t.find(function(e){return e.eventData}))||void 0===o?void 0:o.eventData,l={type:"monitor-event",eventType:"click",trackId:u,trackName:c,xpath:_o(i),innerText:a,timeStamp:Date.now(),eventData:ai({timestamp:Date.now()},s)};e(l)}(r),r=[]},10))}function i(e){var t=function(e){return!(!e||!e.tagName)&&!["HTML","BODY"].includes(e.tagName)&&"main"!==e.id&&e}(e.currentTarget)||bo(e);if(t){var n=e.pageX,r=e.pageY,i=window.innerWidth,a=window.innerHeight,u=Number((n/i).toFixed(3)),c=Number((r/a).toFixed(3)),s=e.composedPath(),l=s.findIndex(function(e){return e==t}),f=s.slice(l),p=t.innerHTML+"/"+f.map(function(e){return e.tagName}).filter(function(e){return e}).join("/"),d=t.dataset.trackId?{trackId:t.dataset.trackId,trackName:t.dataset.trackName}:void 0,h=t.innerText;"svg"===t.tagName&&(h=t.outerHTML),o({e:e,xpath:p,trackId:null==d?void 0:d.trackId,trackName:null==d?void 0:d.trackName,innerText:h,eventData:{xPer:u,yPer:c,pageX:n,pageY:r}})}}Element.prototype.__addEventListener=Element.prototype.addEventListener,Element.prototype.addEventListener=function(e,t,r){void 0===r&&(r=!1),this.__addEventListener(e,t,r),"click"!==e||n.has(this)||(n.add(this),this.__addEventListener(e,i,r))},Element.prototype.__removeEventListener=Element.prototype.removeEventListener,Element.prototype.removeEventListener=function(e,t){this.__removeEventListener(e,t),"click"===e&&(n.delete(this),this.__removeEventListener(e,i))}}return(t.config||{}).workOrder&&(n||(n=[]),n=n.concat(si,li)),{name:"monitor-event",install:function(e,t){n&&n.length>0&&window.document.addEventListener("click",function(r){null==n||n.forEach(function(n){return n(r,e,t)})}),r(e),window.monitorEventReport=function(n,r){var o=n.eventType,i=n.trackId,a=n.trackName,u=n.xpath,c=n.innerText,s=n.eventData;void 0===r&&(r=!1);var l={type:"monitor-event",eventType:o||"click",trackId:i,trackName:a,xpath:_o(u||i),innerText:c,timeStamp:Date.now(),eventData:ai({timestamp:Date.now()},s)};r?t({"monitor-event":[l]}):e(l)}}}},pagePerformance:function(e){var t,n;function r(e){return ui(this,void 0,void 0,function(){var r,o,i,a,u,c,s,l,f,p;return ci(this,function(d){switch(d.label){case 0:return(n=new PerformanceObserver(function(e){var n=e.getEntries(),r=n[n.length-1];r&&(t=r.startTime)})).observe({type:"largest-contentful-paint",buffered:!0}),[4,Promise.all([new Promise(function(e,t){var n=new MutationObserver(function(t){for(var r=0,o=t;r0)return void((i.addedNodes[0].childNodes.length>0||"#text"===i.addedNodes[0].nodeName)&&(n.disconnect(),e({fmpIdentifier:"main",fmp:performance.now()})))}});n.observe(document,{childList:!0,subtree:!0})}),new Promise(function(e,t){window.addEventListener("load",function(){e(performance.now())})})])];case 1:return r=d.sent(),o=r[0],i=r[1],u=(a=o).fmp,c=a.fmpIdentifier,s=function(){var e,t,n=performance.getEntries("paint"),r=null===(e=n.find(function(e){return"first-paint"==e.name}))||void 0===e?void 0:e.startTime,o=null===(t=n.find(function(e){return"first-contentful-paint"==e.name}))||void 0===t?void 0:t.startTime;return{fp:r,fcp:o}}(),l=s.fp,f=s.fcp,p=function(){var e=window.resource.concat(performance.getEntriesByType("resource")).map(function(e){return{name:e.name,initiatorType:e.initiatorType,startTime:e.startTime,duration:e.duration}});return e}(),e({"monitor-page-performance":{type:"page-performance",timeStamp:Date.now(),fp:l,fcp:f,fmpIdentifier:c,fmp:u,lcp:t,onload:i,resourceTiming:p}}),[2]}})})}return{name:"monitor-performance",install:function(e,o){r(o),function(e){var r=new PerformanceObserver(function(o){o.getEntries().forEach(function(n){e({"monitor-page-performance":{type:"page-performance-fid",timeStamp:Date.now(),fid:n.startTime,lcp:t}})}),n.disconnect(),r.disconnect()});r.observe({type:"first-input",buffered:!0})}(o)}}}};const pi=window.__MIAODA_ENV__||"miaoda";pi.split("-")[0],~location.host.indexOf("baidu-int")||location.host.indexOf("qasandbox.bce");const di=()=>{const e=location.pathname,t=new RegExp(`(/${pi}/preview)/([^/]+)`),[,n,r]=t.exec(e)||[];if(r&&n)return[r,!!n,!1];const o=new RegExp(`(/${pi}/square)/([^/]+)`),[,i,a]=o.exec(e)||[];return a&&i?[a,!1,!0]:[location.host.split(".")[0],!1,!1]};let hi=null;function gi(e){hi=e}function vi(e,t="name"){const n=document.querySelector(`meta[${t}="${e}"]`);return n?n.getAttribute("content"):null}const mi=()=>location.href.includes("?_miaoda_spmt");const yi=(window.__MIAODA_ENV__||"miaoda").split("-")[0];function bi(e,t){return function(){return e.apply(t,arguments)}}~location.host.indexOf("baidu-int")||location.host.indexOf("qasandbox.bce");const{toString:wi}=Object.prototype,{getPrototypeOf:_i}=Object,{iterator:Si,toStringTag:Oi}=Symbol,Ei=(xi=Object.create(null),e=>{const t=wi.call(e);return xi[t]||(xi[t]=t.slice(8,-1).toLowerCase())});var xi;const ji=e=>(e=e.toLowerCase(),t=>Ei(t)===e),Ai=e=>t=>typeof t===e,{isArray:Ri}=Array,Ii=Ai("undefined");function Ti(e){return null!==e&&!Ii(e)&&null!==e.constructor&&!Ii(e.constructor)&&ki(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ci=ji("ArrayBuffer");const Pi=Ai("string"),ki=Ai("function"),Ni=Ai("number"),Mi=e=>null!==e&&"object"==typeof e,Li=e=>{if("object"!==Ei(e))return!1;const t=_i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Oi in e||Si in e)},Di=ji("Date"),Bi=ji("File"),Ui=ji("Blob"),zi=ji("FileList");const $i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Fi=void 0!==$i.FormData?$i.FormData:void 0,Wi=ji("URLSearchParams"),[Hi,Vi,qi,Qi]=["ReadableStream","Request","Response","Headers"].map(ji);function Ji(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Ri(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Gi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Yi=e=>!Ii(e)&&e!==Gi;const Ki=(Xi="undefined"!=typeof Uint8Array&&_i(Uint8Array),e=>Xi&&e instanceof Xi);var Xi;const ea=ji("HTMLFormElement"),ta=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),na=ji("RegExp"),ra=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ji(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const oa=ji("AsyncFunction"),ia=(aa="function"==typeof setImmediate,ua=ki(Gi.postMessage),aa?setImmediate:ua?(ca=`axios@${Math.random()}`,sa=[],Gi.addEventListener("message",({source:e,data:t})=>{e===Gi&&t===ca&&sa.length&&sa.shift()()},!1),e=>{sa.push(e),Gi.postMessage(ca,"*")}):e=>setTimeout(e));var aa,ua,ca,sa;const la="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Gi):"undefined"!=typeof process&&process.nextTick||ia;var fa={isArray:Ri,isArrayBuffer:Ci,isBuffer:Ti,isFormData:e=>{let t;return e&&(Fi&&e instanceof Fi||ki(e.append)&&("formdata"===(t=Ei(e))||"object"===t&&ki(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ci(e.buffer),t},isString:Pi,isNumber:Ni,isBoolean:e=>!0===e||!1===e,isObject:Mi,isPlainObject:Li,isEmptyObject:e=>{if(!Mi(e)||Ti(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Hi,isRequest:Vi,isResponse:qi,isHeaders:Qi,isUndefined:Ii,isDate:Di,isFile:Bi,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Ui,isRegExp:na,isFunction:ki,isStream:e=>Mi(e)&&ki(e.pipe),isURLSearchParams:Wi,isTypedArray:Ki,isFileList:zi,forEach:Ji,merge:function e(){const{caseless:t,skipUndefined:n}=Yi(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=t&&Zi(r,i)||i;Li(r[a])&&Li(o)?r[a]=e(r[a],o):Li(o)?r[a]=e({},o):Ri(o)?r[a]=o.slice():n&&Ii(o)||(r[a]=o)};for(let e=0,t=arguments.length;e(Ji(t,(t,r)=>{n&&ki(t)?Object.defineProperty(e,r,{value:bi(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==n&&_i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ei,kindOfTest:ji,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ri(e))return e;let t=e.length;if(!Ni(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Si]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ea,hasOwnProperty:ta,hasOwnProp:ta,reduceDescriptors:ra,freezeMethods:e=>{ra(e,(t,n)=>{if(ki(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ki(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ri(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Zi,global:Gi,isContextDefined:Yi,isSpecCompliantForm:function(e){return!!(e&&ki(e.append)&&"FormData"===e[Oi]&&e[Si])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Mi(e)){if(t.indexOf(e)>=0)return;if(Ti(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Ri(e)?[]:{};return Ji(e,(e,t)=>{const i=n(e,r+1);!Ii(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:oa,isThenable:e=>e&&(Mi(e)||ki(e))&&ki(e.then)&&ki(e.catch),setImmediate:ia,asap:la,isIterable:e=>null!=e&&ki(e[Si])};class pa extends Error{static from(e,t,n,r,o,i){const a=new pa(e.message,t||e.code,n,r,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){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:fa.toJSONObject(this.config),code:this.code,status:this.status}}}pa.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",pa.ERR_BAD_OPTION="ERR_BAD_OPTION",pa.ECONNABORTED="ECONNABORTED",pa.ETIMEDOUT="ETIMEDOUT",pa.ERR_NETWORK="ERR_NETWORK",pa.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",pa.ERR_DEPRECATED="ERR_DEPRECATED",pa.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",pa.ERR_BAD_REQUEST="ERR_BAD_REQUEST",pa.ERR_CANCELED="ERR_CANCELED",pa.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",pa.ERR_INVALID_URL="ERR_INVALID_URL";var da=pa;function ha(e){return fa.isPlainObject(e)||fa.isArray(e)}function ga(e){return fa.endsWith(e,"[]")?e.slice(0,-2):e}function va(e,t,n){return e?e.concat(t).map(function(e,t){return e=ga(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ma=fa.toFlatObject(fa,{},null,function(e){return/^is[A-Z]/.test(e)});function ya(e,t,n){if(!fa.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=fa.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!fa.isUndefined(t[e])})).metaTokens,o=n.visitor||s,i=n.dots,a=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&fa.isSpecCompliantForm(t);if(!fa.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(fa.isDate(e))return e.toISOString();if(fa.isBoolean(e))return e.toString();if(!u&&fa.isBlob(e))throw new da("Blob is not supported. Use a Buffer instead.");return fa.isArrayBuffer(e)||fa.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,n,o){let u=e;if(fa.isReactNative(t)&&fa.isReactNativeBlob(e))return t.append(va(o,n,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(fa.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(fa.isArray(e)&&function(e){return fa.isArray(e)&&!e.some(ha)}(e)||(fa.isFileList(e)||fa.endsWith(n,"[]"))&&(u=fa.toArray(e)))return n=ga(n),u.forEach(function(e,r){!fa.isUndefined(e)&&null!==e&&t.append(!0===a?va([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!ha(e)||(t.append(va(o,n,i),c(e)),!1)}const l=[],f=Object.assign(ma,{defaultVisitor:s,convertValue:c,isVisitable:ha});if(!fa.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!fa.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),fa.forEach(n,function(n,i){!0===(!(fa.isUndefined(n)||null===n)&&o.call(t,n,fa.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])}),l.pop()}}(e),t}function ba(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function wa(e,t){this._pairs=[],e&&ya(e,this,t)}const _a=wa.prototype;function Sa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oa(e,t,n){if(!t)return e;const r=n&&n.encode||Sa,o=fa.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):fa.isURLSearchParams(t)?t.toString():new wa(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}_a.append=function(e,t){this._pairs.push([e,t])},_a.toString=function(e){const t=e?function(t){return e.call(this,t,ba)}:ba;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ea=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fa.forEach(this.handlers,function(t){null!==t&&e(t)})}},xa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ja={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:wa,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Aa="undefined"!=typeof window&&"undefined"!=typeof document,Ra="object"==typeof navigator&&navigator||void 0,Ia=Aa&&(!Ra||["ReactNative","NativeScript","NS"].indexOf(Ra.product)<0),Ta="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ca=Aa&&window.location.href||"http://localhost";var Pa={...Object.freeze({__proto__:null,hasBrowserEnv:Aa,hasStandardBrowserWebWorkerEnv:Ta,hasStandardBrowserEnv:Ia,navigator:Ra,origin:Ca}),...ja};function ka(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),u=o>=e.length;if(i=!i&&fa.isArray(r)?r.length:i,u)return fa.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&fa.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&fa.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return fa.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Na={transitional:xa,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=fa.isObject(e);o&&fa.isHTMLForm(e)&&(e=new FormData(e));if(fa.isFormData(e))return r?JSON.stringify(ka(e)):e;if(fa.isArrayBuffer(e)||fa.isBuffer(e)||fa.isStream(e)||fa.isFile(e)||fa.isBlob(e)||fa.isReadableStream(e))return e;if(fa.isArrayBufferView(e))return e.buffer;if(fa.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ya(e,new Pa.classes.URLSearchParams,{visitor:function(e,t,n,r){return Pa.isNode&&fa.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=fa.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ya(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(fa.isString(e))try{return(t||JSON.parse)(e),fa.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Na.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(fa.isResponse(e)||fa.isReadableStream(e))return e;if(e&&fa.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw da.from(e,da.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pa.classes.FormData,Blob:Pa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fa.forEach(["delete","get","head","post","put","patch"],e=>{Na.headers[e]={}});var Ma=Na;const La=fa.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"]);const Da=Symbol("internals");function Ba(e){return e&&String(e).trim().toLowerCase()}function Ua(e){return!1===e||null==e?e:fa.isArray(e)?e.map(Ua):String(e)}function za(e,t,n,r,o){return fa.isFunction(r)?r.call(this,t,n):(o&&(t=n),fa.isString(t)?fa.isString(r)?-1!==t.indexOf(r):fa.isRegExp(r)?r.test(t):void 0:void 0)}class $a{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ba(t);if(!o)throw new Error("header name must be a non-empty string");const i=fa.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ua(e))}const i=(e,t)=>fa.forEach(e,(e,n)=>o(e,n,t));if(fa.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(fa.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&La[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(fa.isObject(e)&&fa.isIterable(e)){let n,r,o={};for(const t of e){if(!fa.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?fa.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ba(e)){const n=fa.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(fa.isFunction(t))return t.call(this,e,n);if(fa.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ba(e)){const n=fa.findKey(this,e);return!(!n||void 0===this[n]||t&&!za(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ba(e)){const o=fa.findKey(n,e);!o||t&&!za(0,n[o],o,t)||(delete n[o],r=!0)}}return fa.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!za(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return fa.forEach(this,(r,o)=>{const i=fa.findKey(n,o);if(i)return t[i]=Ua(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ua(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fa.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&fa.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Da]=this[Da]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ba(e);t[r]||(!function(e,t){const n=fa.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return fa.isArray(e)?e.forEach(r):r(e),this}}$a.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fa.reduceDescriptors($a.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),fa.freezeMethods($a);var Fa=$a;function Wa(e,t){const n=this||Ma,r=t||n,o=Fa.from(r.headers);let i=r.data;return fa.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ha(e){return!(!e||!e.__CANCEL__)}var Va=class extends da{constructor(e,t,n){super(null==e?"canceled":e,da.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function qa(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new da("Request failed with status code "+n.status,[da.ERR_BAD_REQUEST,da.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Qa=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(u){const c=Date.now(),s=r[a];o||(o=c),n[i]=u,r[i]=c;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),u=t-o;u>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-u)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,u=i-r,c=o(u);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ja=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Za=e=>(...t)=>fa.asap(()=>e(...t));var Ga=Pa.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pa.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pa.origin),Pa.navigator&&/(msie|trident)/i.test(Pa.navigator.userAgent)):()=>!0,Ya=Pa.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const u=[`${e}=${encodeURIComponent(t)}`];fa.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),fa.isString(r)&&u.push(`path=${r}`),fa.isString(o)&&u.push(`domain=${o}`),!0===i&&u.push("secure"),fa.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ka(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Xa=e=>e instanceof Fa?{...e}:e;function eu(e,t){t=t||{};const n={};function r(e,t,n,r){return fa.isPlainObject(e)&&fa.isPlainObject(t)?fa.merge.call({caseless:r},e,t):fa.isPlainObject(t)?fa.merge({},t):fa.isArray(t)?t.slice():t}function o(e,t,n,o){return fa.isUndefined(t)?fa.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!fa.isUndefined(t))return r(void 0,t)}function a(e,t){return fa.isUndefined(t)?fa.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(e,t,n)=>o(Xa(e),Xa(t),0,!0)};return fa.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=fa.hasOwnProp(c,r)?c[r]:o,a=i(e[r],t[r],r);fa.isUndefined(a)&&i!==u||(n[r]=a)}),n}var tu=e=>{const t=eu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=Fa.from(a),t.url=Oa(Ka(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),fa.isFormData(n))if(Pa.hasStandardBrowserEnv||Pa.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(fa.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(Pa.hasStandardBrowserEnv&&(r&&fa.isFunction(r)&&(r=r(t)),r||!1!==r&&Ga(t.url))){const e=o&&i&&Ya.read(i);e&&a.set(o,e)}return t};var nu="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=tu(e);let o=r.data;const i=Fa.from(r.headers).normalize();let a,u,c,s,l,{responseType:f,onUploadProgress:p,onDownloadProgress:d}=r;function h(){s&&s(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function v(){if(!g)return;const r=Fa.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());qa(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,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 da("Request aborted",da.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new da(r,da.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||xa;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new da(t,o.clarifyTimeoutError?da.ETIMEDOUT:da.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&fa.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),fa.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),f&&"json"!==f&&(g.responseType=r.responseType),d&&([c,l]=Qa(d,!0),g.addEventListener("progress",c)),p&&g.upload&&([u,s]=Qa(p),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",s)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new Va(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===Pa.protocols.indexOf(m)?n(new da("Unsupported protocol "+m+":",da.ERR_BAD_REQUEST,e)):g.send(o||null)})};var ru=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof da?t:new Va(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new da(`timeout of ${t}ms exceeded`,da.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>fa.asap(a),u}};const ou=function*(e,t){let n=e.byteLength;if(!t||n{const o=async function*(e,t){for await(const n of iu(e))yield*ou(n,t)}(e,t);let i,a=0,u=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return u(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw u(e),e}},cancel:e=>(u(e),o.return())},{highWaterMark:2})},{isFunction:uu}=fa,cu=(({Request:e,Response:t})=>({Request:e,Response:t}))(fa.global),{ReadableStream:su,TextEncoder:lu}=fa.global,fu=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},pu=e=>{e=fa.merge.call({skipUndefined:!0},cu,e);const{fetch:t,Request:n,Response:r}=e,o=t?uu(t):"function"==typeof fetch,i=uu(n),a=uu(r);if(!o)return!1;const u=o&&uu(su),c=o&&("function"==typeof lu?(s=new lu,e=>s.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var s;const l=i&&u&&fu(()=>{let e=!1;const t=new n(Pa.origin,{body:new su,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=a&&u&&fu(()=>fa.isReadableStream(new r("").body)),p={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new da(`Response type '${e}' is not supported`,da.ERR_NOT_SUPPORT,n)})});const d=async(e,t)=>{const r=fa.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(fa.isBlob(e))return e.size;if(fa.isSpecCompliantForm(e)){const t=new n(Pa.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return fa.isArrayBufferView(e)||fa.isArrayBuffer(e)?e.byteLength:(fa.isURLSearchParams(e)&&(e+=""),fa.isString(e)?(await c(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:u,signal:c,cancelToken:s,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:m,headers:y,withCredentials:b="same-origin",fetchOptions:w}=tu(e),_=t||fetch;m=m?(m+"").toLowerCase():"text";let S=ru([c,s&&s.toAbortSignal()],h),O=null;const E=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let x;try{if(v&&l&&"get"!==a&&"head"!==a&&0!==(x=await d(y,u))){let e,t=new n(o,{method:"POST",body:u,duplex:"half"});if(fa.isFormData(u)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Ja(x,Qa(Za(v)));u=au(t.body,65536,e,n)}}fa.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,c={...w,signal:S,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:u,duplex:"half",credentials:t?b:void 0};O=i&&new n(o,c);let s=await(i?_(O,w):_(o,c));const h=f&&("stream"===m||"response"===m);if(f&&(g||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=fa.toFiniteNumber(s.headers.get("content-length")),[n,o]=g&&Ja(t,Qa(Za(g),!0))||[];s=new r(au(s.body,65536,n,()=>{o&&o(),E&&E()}),e)}m=m||"text";let j=await p[fa.findKey(p,m)||"text"](s,e);return!h&&E&&E(),await new Promise((t,n)=>{qa(t,n,{data:j,headers:Fa.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:O})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new da("Network Error",da.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw da.from(t,t&&t.code,e,O,t&&t.response)}}},du=new Map,hu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,u,c=i.length,s=du;for(;c--;)a=i[c],u=s.get(a),void 0===u&&s.set(a,u=c?new Map:pu(t)),s=u;return u};hu();const gu={http:null,xhr:nu,fetch:{get:hu}};fa.forEach(gu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const vu=e=>`- ${e}`,mu=e=>fa.isFunction(e)||null===e||!1===e;var yu={getAdapter:function(e,t){e=fa.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(vu).join("\n"):" "+vu(e[0]):"as no adapter specified";throw new da("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:gu};function bu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Va(null,e)}function wu(e){bu(e),e.headers=Fa.from(e.headers),e.data=Wa.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return yu.getAdapter(e.adapter||Ma.adapter,e)(e).then(function(t){return bu(e),t.data=Wa.call(e,e.transformResponse,t),t.headers=Fa.from(t.headers),t},function(t){return Ha(t)||(bu(e),t&&t.response&&(t.response.data=Wa.call(e,e.transformResponse,t.response),t.response.headers=Fa.from(t.response.headers))),Promise.reject(t)})}const _u="1.13.6",Su={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Su[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ou={};Su.transitional=function(e,t,n){function r(e,t){return"[Axios v"+_u+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new da(r(o," has been removed"+(t?" in "+t:"")),da.ERR_DEPRECATED);return t&&!Ou[o]&&(Ou[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Su.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Eu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new da("options must be an object",da.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new da("option "+i+" must be "+n,da.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new da("Unknown option "+i,da.ERR_BAD_OPTION)}},validators:Su};const xu=Eu.validators;class ju{constructor(e){this.defaults=e||{},this.interceptors={request:new Ea,response:new Ea}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eu(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Eu.assertOptions(n,{silentJSONParsing:xu.transitional(xu.boolean),forcedJSONParsing:xu.transitional(xu.boolean),clarifyTimeoutError:xu.transitional(xu.boolean),legacyInterceptorReqResOrdering:xu.transitional(xu.boolean)},!1),null!=r&&(fa.isFunction(r)?t.paramsSerializer={serialize:r}:Eu.assertOptions(r,{encode:xu.function,serialize:xu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Eu.assertOptions(t,{baseUrl:xu.spelling("baseURL"),withXsrfToken:xu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&fa.merge(o.common,o[t.method]);o&&fa.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Fa.concat(i,o);const a=[];let u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;const n=t.transitional||xa;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const c=[];let s;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,f=0;if(!u){const e=[wu.bind(this),void 0];for(e.unshift(...a),e.push(...c),l=e.length,s=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Va(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Ru(function(t){e=t}),cancel:e}}}var Iu=Ru;const Tu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Tu).forEach(([e,t])=>{Tu[t]=e});var Cu=Tu;const Pu=function e(t){const n=new Au(t),r=bi(Au.prototype.request,n);return fa.extend(r,Au.prototype,n,{allOwnKeys:!0}),fa.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eu(t,n))},r}(Ma);Pu.Axios=Au,Pu.CanceledError=Va,Pu.CancelToken=Iu,Pu.isCancel=Ha,Pu.VERSION=_u,Pu.toFormData=ya,Pu.AxiosError=da,Pu.Cancel=Pu.CanceledError,Pu.all=function(e){return Promise.all(e)},Pu.spread=function(e){return function(t){return e.apply(null,t)}},Pu.isAxiosError=function(e){return fa.isObject(e)&&!0===e.isAxiosError},Pu.mergeConfig=eu,Pu.AxiosHeaders=Fa,Pu.formToJSON=e=>ka(fa.isHTMLForm(e)?new FormData(e):e),Pu.getAdapter=yu.getAdapter,Pu.HttpStatusCode=Cu,Pu.default=Pu;var ku,Nu,Mu,Lu,Du,Bu,Uu,zu,$u,Fu,Wu=Pu;function Hu(){if(Nu)return ku;Nu=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return ku={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function Vu(){if(Lu)return Mu;Lu=1;var e=Hu(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||a===e.RFC1738&&(40===l||41===l)?c+=u.charAt(s):l<128?c+=r[l]:l<2048?c+=r[192|l>>6]+r[128|63&l]:l<55296||l>=57344?c+=r[224|l>>12]+r[128|l>>6&63]+r[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&u.charCodeAt(s)),c+=r[240|l>>18]+r[128|l>>12&63]+r[128|l>>6&63]+r[128|63&l])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],o=0;o0?_.join(",")||null:void 0}];else if(o(p))j=p;else{var R=Object.keys(_);j=d?R.sort(d):R}for(var I=0;I0?y+m:""}}function Qu(){if(zu)return Uu;zu=1;var e=Vu(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:e.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},i=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},a=function(e,n,r,o){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(a),s=c?a.slice(0,c.index):a,l=[];if(s){if(!r.plainObjects&&t.call(Object.prototype,s)&&!r.allowPrototypes)return;l.push(s)}for(var f=0;r.depth>0&&null!==(c=u.exec(a))&&f=0;--a){var u,c=e[a];if("[]"===c&&n.parseArrays)u=[].concat(o);else{u=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(u=[])[l]=o:"__proto__"!==s&&(u[s]=o):u={0:o}}o=u}return o}(l,n,r,o)}};return Uu=function(u,c){var s=function(t){if(!t)return r;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=void 0===t.charset?r.charset:t.charset;return{allowDots:void 0===t.allowDots?r.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:r.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:r.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:r.comma,decoder:"function"==typeof t.decoder?t.decoder:r.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:r.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:r.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:r.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:r.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:r.strictNullHandling}}(c);if(""===u||null==u)return s.plainObjects?Object.create(null):{};for(var l="string"==typeof u?function(a,u){var c,s={},l=u.ignoreQueryPrefix?a.replace(/^\?/,""):a,f=u.parameterLimit===1/0?void 0:u.parameterLimit,p=l.split(u.delimiter,f),d=-1,h=u.charset;if(u.charsetSentinel)for(c=0;c-1&&(v=n(v)?[v]:v),t.call(s,g)?s[g]=e.combine(s[g],v):s[g]=v}return s}(u,s):u,f=s.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d{const[t,n,r]=di();(n||r)&&(e.headers["x-app-id"]=t),r&&(e.headers["X-App-Env"]="APP_SQUARE"),e.headers["X-Is-Preview"]=n?"true":"false",e.headers["X-Request-By"]="MIAODA";try{e.headers["x-top-referer"]=window?.top?.location.href}catch(t){e.headers["x-top-referer"]=window.location.href}if(e.headers["x-login-token"]=function(e){const t=document.cookie.split("; ");for(const n of t){const[t,r]=n.split("=");if(t===e)return decodeURIComponent(r)}return null}("app_token"),"miniprogram"===window.__wxjs_environment){const t=location.search?.split("?")[1],n=t&&Zu.parse(t).w_ot;n&&(e.headers["x-openid-token"]=`${n}`)}const o=function(e){const t=localStorage.getItem(e);if(!t)return null;try{const e=JSON.parse(t);return e?.access_token||null}catch(e){return console.warn("无法解析 token",e),null}}(`${t}-auth-token`);return o&&(e.headers.Authorization=`Bearer ${o}`),e},e=>Promise.reject(e)),Gu.interceptors.response.use(e=>{if(200===e.status){const t=e.data;return 0===t.status||(t.success||!t.message?.redirect||mi()||(window.location.href=t.message.redirect),!1===t.success&&mi()),e}return 403===e.status?Promise.reject(new Error("密码错误")):Promise.reject(e.data)},e=>Promise.reject(e));var Yu,Ku=new class{constructor(){Object.defineProperty(this,"fetcher",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isPreview",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"appId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fetcher=hi,this.isPreview=!1,this.appId="",this.prefix=""}getSupabaseAccessToken(e){try{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t);return n?.access_token||null}catch(e){return console.warn("无法解析 token",e),null}}initFetcher(e){const t=async({url:t,method:n,data:r,responseType:o,config:i,headers:a={}})=>{(i=i||{}).withCredentials=!0,o&&(i.responseType=o),i.cancelExecutor&&(i.cancelToken=new Wu.CancelToken(i.cancelExecutor));const u=this.getSupabaseAccessToken(`${e}-auth-token`);u&&(a.Authorization=`Bearer ${u}`),i.headers=a,i.method=n,i.data=r,i.url=t,i.beforeSend?.(i),i.validateStatus=function(){return!0};return await Gu(i)};gi(t),this.fetcher=t,this.isPreview=!1,this.appId=e,this.prefix=`/api/${yi}/runtime`}async getUserInfo(){const e=await this.fetcher({method:"get",url:`${this.prefix}/access/userinfo`});return e.data?.data}async getAppInfo(){const{isPreview:e,appId:t}=this;let n="";try{n=JSON.parse(sessionStorage.getItem("limit_token")||"")}catch(e){n=""}const{data:r}=await this.fetcher({method:"get",url:`${this.prefix}${e?"/app":""}/bootstrap${e?`/${t}`:""}`,headers:{"x-app-token":n}}),{data:o}=await this.fetcher({method:"post",url:`${this.prefix}/page/bootstrap`,data:{appId:e?t:r.data.appId},headers:{"x-app-token":n}}),{pages:i=[],themes:a=[],layouts:u=[],navigation:c=[]}=o.data,s=a.find(e=>e.isDefault);return{...Object.fromEntries(Object.entries(r.data).filter(([e,t])=>null!==t)),isPreview:e,pages:i,themes:a,themeCssUrl:s?.diffCssUrl||"",layouts:u,navigation:c}}async anonymousLogin(){try{const e=await this.fetcher({method:"get",url:`${this.prefix}/access/touch`});return e.data?.data}catch(e){return console.error("匿名登录失败",e),null}}async getPage(e){const t=await this.fetcher({method:"get",url:`${this.prefix}/page/${e}`});return t.data?.data}async updateUserInfo(e){return(await this.fetcher({method:"patch",url:`${this.prefix}/access/userinfo`,data:{name:e}})).data}async getWeChatConfig(){return(await this.fetcher({method:"post",url:`${this.prefix}/share/sign`,data:{type:"wechat",url:window.location.href}})).data.data}async getDesignAgentDetail(e){return(await this.fetcher({url:`${this.prefix}/apicenter/proxy/agentdetail`,method:"post",data:{id:e}})).data}async getRuntimeAgentDetail(e){return(await this.fetcher({url:`${this.prefix}/apicenter/proxy/agentdetail`,method:"post",headers:{"x-app-id":e}})).data}async submitAccessPassword(e){return await this.fetcher({url:`/?password=${e}`,method:"get"})}},Xu={exports:{}};var ec,tc=tt((Yu||(Yu=1,ec="object"==typeof window&&window,Xu.exports=function(e,t){var n,r,o,i,a,u,c,s,l,f,p,d,h,g,v,m,y,b,w,_,S,O;if(e)return e.jWeixin?e.jWeixin:(n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},r=function(){var e,t={};for(e in n)t[n[e]]=e;return t}(),o=e.document,i=o.title,a=navigator.userAgent.toLowerCase(),d=navigator.platform.toLowerCase(),u=!(!d.match("mac")&&!d.match("win")),c=-1!=a.indexOf("wxdebugger"),s=-1!=a.indexOf("micromessenger"),l=-1!=a.indexOf("android"),f=-1!=a.indexOf("iphone")||-1!=a.indexOf("ipad"),p=(d=a.match(/micromessenger\/(\d+\.\d+\.\d+)/)||a.match(/micromessenger\/(\d+\.\d+)/))?d[1]:"",h={initStartTime:P(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},g={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:l?2:-1,clientVersion:p,url:encodeURIComponent(location.href)},v={},m={_completes:[]},y={state:0,data:{}},k(function(){h.initEndTime=P()}),b=!1,w=[],_={config:function(t){T("config",v=t);var r=!1!==v.check;k(function(){if(r)E(n.config,{verifyJsApiList:I(v.jsApiList),verifyOpenTagList:I(v.openTagList)},(m._complete=function(e){h.preVerifyEndTime=P(),y.state=1,y.data=e},m.success=function(e){g.isPreVerifyOk=0},m.fail=function(e){m._fail?m._fail(e):y.state=-1},(i=m._completes).push(function(){C()}),m.complete=function(e){for(var t=0,n=i.length;t{const e={title:this.title,desc:this.desc,link:window.location.href,imgUrl:this.image,success:()=>{}};tc.updateAppMessageShareData(e),tc.updateTimelineShareData(e)}),tc.error(e=>{console.error("wx error",e)})}}const rc={default:function(e){const{size:t,dotSize:n,borderSize:r,x:o,y:i}=e;return{eyeBorder:function(e,t,n,r){e=pc(e),t=pc(t);const o=pc(e+r),i=pc(t+r),a=pc(e+n-r),u=pc(t+n-r),c=pc(e+n),s=pc(t+n);return`M${o} ${t}L${c} ${t}L${c} ${s}L${e} ${s}L${e} ${t}L${o} ${t}L${o} ${u}L${a} ${u}L${a} ${i}L${o} ${i}Z `}(o,i,t,n*r),eyeInner:dc(o+2*n,i+2*n,t-4*n)}},rounded:function(e){const{size:t,dotSize:n,borderSize:r,x:o,y:i}=e;return{eyeBorder:function(e,t,n,r,o){e=pc(e),t=pc(t),o=pc(o);const i=pc(e+o),a=pc(e+n-o),u=pc(t+o),c=pc(t+n-o),s=pc(e+r),l=pc(t+r),f=pc(e+n-r),p=pc(t+n-r),d=pc(e+n),h=pc(t+n),g=pc(o-r/2),v=pc(s+g),m=pc(l+g),y=pc(f-g),b=pc(p-g),w=pc(i+g);return`M${i} ${t}L${a} ${t}A${o} ${o} 0 0 1 ${d} ${u}L${d} ${c}A${o} ${o} 0 0 1 ${a} ${h}L${i} ${h}A${o} ${o} 0 0 1 ${e} ${c}L${e} ${u}A${o} ${o} 0 0 1 ${i} ${t}L${i} ${t}L${w} ${p}L${y} ${p}A${g} ${g} 0 0 0 ${f} ${b}L${f} ${m}A${g} ${g} 0 0 0 ${y} ${l}L${v} ${l}A${g} ${g} 0 0 0 ${s} ${m}L${s} ${b}A${g} ${g} 0 0 0 ${v} ${p}L${w} ${p}Z`}(o,i,t,n*r,2*n),eyeInner:hc(o+t/2,i+t/2,t/2-2*n)}},circle:function(e){const{size:t,dotSize:n,borderSize:r,x:o,y:i}=e;return{eyeBorder:function(e,t,n,r){const o=pc(n),i=pc(n-r);t=pc(t),e=pc(e);const a=pc(t-o),u=pc(t-i),c=pc(t+o),s=pc(t+i);return`M${e},${a} A${o},${o} 0 1,1 ${e},${c} A${o},${o} 0 1,1 ${e},${a} M${e},${u} A${i},${i} 0 1,0 ${e},${s} A${i},${i} 0 1,0 ${e},${u} Z`}(o+t/2,i+t/2,t/2,n*r),eyeInner:hc(o+t/2,i+t/2,t/2-2*n)}}};const oc={default:function(e){const{x:t,y:n,dotSize:r,dotScale:o,margin:i}=e;let a="";const u=r*o;return a+=dc(t*r+(r-u)/2+i,n*r+(r-u)/2+i,u),a},circle:function(e){const{x:t,y:n,dotSize:r,dotScale:o,margin:i}=e;let a="",u=r/2*o;return a+=hc(t*r+(r-2*u)/2+u+i,n*r+(r-2*u)/2+u+i,u),a}};function ic(e){return function(e){const t={default:1,sm:.8,xs:.5};return n=>{const{modules:r,dotSize:o,pointSize:i,customSize:a,margin:u}=n;let c="";for(let n=0;n7)throw new RangeError("Invalid value");let l,f;for(l=a;;l++){const n=8*t.getNumDataCodewords(l,r),o=i.getTotalBits(e,l);if(o<=n){f=o;break}if(l>=u)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])s&&f<=8*t.getNumDataCodewords(l,e)&&(r=e);let p=[];for(const t of e){n(t.mode.modeBits,4,p),n(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}o(p.length==f);const d=8*t.getNumDataCodewords(l,r);o(p.length<=d),n(0,Math.min(4,d-p.length),p),n(0,(8-p.length%8)%8,p),o(p.length%8==0);for(let e=236;p.lengthh[t>>>3]|=e<<7-(7&t)),new t(l,r,h,c)}constructor(e,n,r,i){if(Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"errorCorrectionLevel",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"modules",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"isFunction",{enumerable:!0,configurable:!0,writable:!0,value:[]}),et.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e>>9);const i=21522^(t<<10|n);o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){const n=r(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i{(e!=s-a||n>=c)&&p.push(t[e])});return o(p.length==u),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o>>3],7-(7&n)),n++)}}o(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;ne+(t?1:0),n);const r=this.size*this.size,i=Math.ceil(Math.abs(20*n-10*r)/r)-1;return o(0<=i&&i<=9),e+=i*t.PENALTY_N4,o(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=2*Math.floor((8*this.version+3*e+5)/(4*e-4));let n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return o(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t0);for(const o of e){const e=o^r.shift();r.push(0),n.forEach((n,o)=>r[o]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return o(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];o(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function n(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function o(e){if(!e)throw new Error("Assertion error")}Object.defineProperty(t,"MIN_VERSION",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(t,"MAX_VERSION",{enumerable:!0,configurable:!0,writable:!0,value:40}),Object.defineProperty(t,"PENALTY_N1",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(t,"PENALTY_N2",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(t,"PENALTY_N3",{enumerable:!0,configurable:!0,writable:!0,value:40}),Object.defineProperty(t,"PENALTY_N4",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(t,"ECC_CODEWORDS_PER_BLOCK",{enumerable:!0,configurable:!0,writable:!0,value:[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]}),Object.defineProperty(t,"NUM_ERROR_CORRECTION_BLOCKS",{enumerable:!0,configurable:!0,writable:!0,value:[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]}),e.QrCode=t;class i{static makeBytes(e){let t=[];for(const r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let r=0;r=1<r-8||t>r-8&&n<8}function fc(e){const{modules:t,size:n=100,dotSize:r,margin:o=0,eyeType:i="default",eyeBorderSize:a="default",pointType:u="default",customSize:c,pointSize:s="default"}=e,l=ic(u)({margin:o,modules:t,dotSize:r,pointSize:s,customSize:c}),{eyeBorder:f,eyeInner:p}=function(e){const t={default:1,sm:.8,xs:.5};return n=>{const{size:r,dotSize:o,borderSize:i,margin:a}=n,{eyeSize:u,positions:c}=function(e,t,n){const r=7*t;return{eyeSize:r,positions:[{x:n,y:n},{x:n,y:e-r-n},{x:e-r-n,y:n}]}}(r,o,a);let s="",l="";for(const n of c){const{eyeBorder:r,eyeInner:a}=e({size:u,dotSize:o,borderSize:t[i],x:n.x,y:n.y});s+=r,l+=a}return{eyeBorder:s,eyeInner:l}}}(rc[i])({margin:o,dotSize:r,borderSize:a,size:n});return{points:l,eyeBorder:f,eyeInner:p}}function pc(e,t=2){return Number(e.toFixed(t))}function dc(e,t,n){e=pc(e),t=pc(t);const r=pc(e+n),o=pc(t+n);return`M ${e}, ${t} L ${r}, ${t} L ${r}, ${o} L ${e}, ${o} Z `}function hc(e,t,n){return n=pc(n),`M ${pc(e-n)}, ${pc(t)} a ${n},${n} 0 1,0 ${2*n},0 a ${n},${n} 0 1,0 ${-2*n},0`}function gc(e,t){return function(e,t){const{level:n="L",minVersion:r=2,maxVersion:o,mask:i,boostLevel:a}=t||{},u=uc.QrSegment.makeSegments(e),c=cc.encodeSegments(u,sc[n],r,o,i,a),s=[];for(let e=0;e{this.initH5()})},initFetcher(){Ku.initFetcher(this.options.appId)},renderQrcode(){const e=new URL(window.location.href);if(!document.getElementById("md-qrcode")){const t=document.createElement("div");let n=e.searchParams.get("miniAppQrcodeLink");n&&(n=decodeURIComponent(n)),t.className="WebPage-Mobile-Scan-QrCode-Container-Runtime-Inject-JS";const r='\n
\n
\n
\n 手机扫码预览\n
\n
\n\n
\n \n
\n\n '+(n?`
\n \n
`:"");t.innerHTML=r,document.body.appendChild(t)}const t=document.getElementById("md-qrcode");if(t){e.searchParams.delete("miniAppQrcodeLink");vc({value:e.toString(),styleConfig:{size:110,color:"#000",eyeType:"rounded",pointType:"circle"},canvas:t})}},renderIframe(){if(document.getElementById("md-h5-iframe"))return;const e=document.createElement("iframe");e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups"),e.setAttribute("id","if-preview"),e.setAttribute("referrerpolicy","no-referrer-when-downgrade"),e.src=window.location.href;const t=document.createElement("div");t.id="md-h5-iframe",t.appendChild(e),document.body.appendChild(t)},initViewport(){const e="width=375, user-scalable=no, minimal-ui";let t=document.querySelector('meta[name="viewport"]');t?t.content=e:(t=document.createElement("meta"),t.name="viewport",t.content=e,document.head.appendChild(t))},initH5(){if(!["H5","MINIPROGRAM"].includes(this.options.type))return;document.body.classList.add("md-h5"),this.renderQrcode();matchMedia("(pointer:fine)").matches&&matchMedia("(hover:hover)").matches&&window.innerWidth>=768&&"if-preview"!==window.frameElement?.id&&this.renderIframe()},loadScript:async e=>new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.async=!0,r.onload=t,r.onerror=n,document.head.appendChild(r)}),async initFloatTools(){Ku.getRuntimeAgentDetail(this.options.appId).then(e=>{const t=e?.data||{};if(t.hasAgent&&t.enabled){const e="md-float-tools";let n=document.getElementById(e);n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n));let r={appId:this.options.appId,prefix:Ku.prefix,id:t.id,name:t.name,description:t.description,prologue:t.prologue,exampleQueries:t.exampleQueries,disabledTitle:"智能问答暂不可用"};this.loadScript("https://resource-static.cdn.bcebos.com/runtime-inject/domain-static/online/1.0.43.1/static/miaoda-float-tool.js?tm=1772459170688").then(()=>{window.renderFloatTool(r,n)})}return null})},initShare(e={}){nc.run(e)}};window.miaoda=mc}();