layers-design-system 2.6.10 → 2.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,7 +136,7 @@ function print() { __p += __j.call(arguments, '') }
136
136
  *
137
137
  * Copyright (c) 2019 Jason Wilson
138
138
  * Released under MIT license
139
- */var _se={symbol:"$",separator:",",decimal:".",formatWithSymbol:!1,errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#"},O$=function(e){return Math.round(e)},VS=function(e){return Math.pow(10,e)},Mse=function(e,n){return O$(e/n)*n},xse=/(\d)(?=(\d{3})+\b)/g,Cse=/(\d)(?=(\d\d)+\d\b)/g;function ra(t,e){var n=this;if(!(n instanceof ra))return new ra(t,e);var i=Object.assign({},_se,e),s=VS(i.precision),o=mv(t,i);n.intValue=o,n.value=o/s,i.increment=i.increment||1/s,i.useVedic?i.groups=Cse:i.groups=xse,this.s=i,this.p=s}function mv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,s=e.decimal,o=e.errorOnInvalid,u=e.precision,d=VS(u),f=typeof t=="number";if(f||t instanceof ra)i=(f?t:t.value)*d;else if(typeof t=="string"){var p=new RegExp("[^-\\d"+s+"]","g"),v=new RegExp("\\"+s,"g");i=t.replace(/\((.*)\)/,"-$1").replace(p,"").replace(v,".")*d,i=i||0}else{if(o)throw Error("Invalid Input");i=0}return i=i.toFixed(4),n?O$(i):i}ra.prototype={add:function(e){var n=this.intValue,i=this.s,s=this.p;return ra((n+=mv(e,i))/s,i)},subtract:function(e){var n=this.intValue,i=this.s,s=this.p;return ra((n-=mv(e,i))/s,i)},multiply:function(e){var n=this.intValue,i=this.s;return ra((n*=e)/VS(i.precision),i)},divide:function(e){var n=this.intValue,i=this.s;return ra(n/=mv(e,i,!1),i)},distribute:function(e){for(var n=this.intValue,i=this.p,s=this.s,o=[],u=Math[n>=0?"floor":"ceil"](n/e),d=Math.abs(n-u*e);e!==0;e--){var f=ra(u/i,s);d-- >0&&(f=n>=0?f.add(1/i):f.subtract(1/i)),o.push(f)}return o},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,n=this.p;return~~(e%n)},format:function(e){var n=this.s,i=n.pattern,s=n.negativePattern,o=n.formatWithSymbol,u=n.symbol,d=n.separator,f=n.decimal,p=n.groups,v=(this+"").replace(/^-/,"").split("."),y=v[0],M=v[1];return typeof e>"u"&&(e=o),(this.value>=0?i:s).replace("!",e?u:"").replace("#","".concat(y.replace(p,"$1"+d)).concat(M?f+M:""))},toString:function(){var e=this.intValue,n=this.p,i=this.s;return Mse(e/n,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};const Sse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return{form:{value:this.filter.value,comparison:this.filter.comparison||"gt"},inputValue:this.formatValue(this.filter.value)}},methods:{focus(){this.$refs.valueInput.focus()},formatValue(t){return t?(t/100).toFixed(2).replace(".",","):"0,00"},getAmount(t){return t?ra(t,{decimal:","}).intValue:0},changeInput(){this.form.value=this.getAmount(this.inputValue),this.inputValue=this.formatValue(this.form.value)},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{rules(){return{value:[{required:!0,message:`Digite para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var Tse=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v(" "+e._s(e.schema.title))],1),n("br"),n("l-form-item",{attrs:{prop:"value"}},[n("el-input",{ref:"valueInput",attrs:{size:"small"},on:{change:e.changeInput},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}},[n("template",{slot:"prepend"},[e._v("R$")])],2)],1),n("l-form-item",{attrs:{prop:"comparison"}},[n("l-radio",{attrs:{label:"gt"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Maior que")]),n("br"),n("l-radio",{attrs:{label:"gte"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Maior que ou igual a")]),n("br"),n("l-radio",{attrs:{label:"eq"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Igual a")]),n("br"),n("l-radio",{attrs:{label:"lt"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Menor que")]),n("br"),n("l-radio",{attrs:{label:"lte"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Menor que ou igual a")])],1),n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],1)},Dse=[],wse=Qe(Sse,Tse,Dse,!1,null,null,null,null);const Nse=wse.exports,kse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return vn(this.schema,"options.enum")?{form:{value:this.filter.value||[],comparison:this.filter.comparison||"in"}}:{form:{value:this.filter.value,comparison:this.filter.comparison||"gte"}}},watch:{"form.comparison":{handler(){this.$nextTick(()=>this.focus())}}},methods:{focus(){this.$refs.valueInput&&this.$refs.valueInput[0].focus()},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{valuesEnum(){return vn(this.schema,"options.enum")},inlineComponent(){try{return this.$L.FieldTypeComponents.get(this.schema,"default")}catch{return null}},comparisons(){return[{label:"Menor que",value:"lt"},{label:"Menor ou igual a",value:"lte"},{label:"Maior que",value:"gt"},{label:"Maior ou igual a",value:"gte"},{label:"Igual a",value:"eq"},{label:"Diferente de",value:"neq"}]},rules(){return{value:[{required:!0,message:`Escolha para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var Ose=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "+e._s(e.schema.title)+" ")],1),n("br"),e.valuesEnum?[n("l-form-item",{attrs:{prop:"value"}},[n("l-checkbox-group",{model:{value:e.form.value,callback:function(i){e.$set(e.form,"value",i)},expression:"form.value"}},e._l(e.valuesEnum,function(i){return n("div",{key:i},[n("l-checkbox",{attrs:{label:i}},[e.inlineComponent?n(e.inlineComponent,{tag:"component",attrs:{value:i,schema:e.schema}}):n("span",{domProps:{textContent:e._s(i)}})],1)],1)}),0)],1)]:[n("l-form-item",{attrs:{prop:"comparison"}},e._l(e.comparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}})],1):e._e()],1)}),0)],n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],2)},Ese=[],Ise=Qe(kse,Ose,Ese,!1,null,null,null,null);const Ase=Ise.exports,jse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return{form:{value:this.filter.value,comparison:this.filter.comparison||"relative_past_gte"}}},watch:{"form.comparison":{handler(t,e){e.indexOf("relative_")===0&&t.indexOf("absolute_")===0?this.form.value=new Date:e.indexOf("absolute_")===0&&t.indexOf("relative_")===0&&(this.form.value=1),this.$nextTick(()=>this.focus())}}},methods:{focus(){this.$refs.valueInput&&this.$refs.valueInput.length>0&&this.$refs.valueInput[0].focus()},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{relativePastComparisons(){return[{label:"Há menos de",value:"relative_past_gte"},{label:"Há mais de",value:"relative_past_lt"},{label:"Há exatamente",value:"relative_past_eq"}]},relativeFutureComparisons(){return[{label:"Daqui a mais de",value:"relative_future_gte"},{label:"Daqui a menos de",value:"relative_future_lt"},{label:"Daqui a exatamente",value:"relative_future_eq"}]},absoluteComparisons(){return[{label:"Em",value:"absolute_eq"},{label:"A partir de",value:"absolute_gte"},{label:"Até",value:"absolute_lt"}]},rules(){return{value:[{required:!0,message:`Digite para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var $se=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "+e._s(e.schema.title)+" ")],1),n("br"),n("l-form-item",{attrs:{prop:"comparison"}},[n("strong",[e._v("Relativo - Passado")]),e._l(e.relativePastComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number",min:"1",size:"small"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}},[e._v(e._s(e.form.value>1?"dias":"dia"))])],1)]):e._e()],1)}),n("strong",[e._v("Relativo - Futuro")]),e._l(e.relativeFutureComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number",min:"1",size:"small"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}},[e._v(e._s(e.form.value>1?"dias":"dia"))])],1)]):e._e()],1)}),n("strong",[e._v("Absoluto")]),e._l(e.absoluteComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-date-picker",{model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",s)},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}})],1)]):e._e()],1)})],2),n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],1)},Lse=[],zse=Qe(jse,$se,Lse,!1,null,null,null,null);const Pse=zse.exports;function E$(t){const e=[];if(t&&t.format&&e.push(`format:${t.format}`),t&&t.type&&e.push(`type:${t.type}`),e.push("DEFAULT"),e.length===0)throw new Error(`Unprocessable fieldSchema ${t}`);return e}const gv=new Map;function Rse(t,e){if(!t)throw new Error(`Received ${t} fieldSchema, componentType ${e}`);if(t.components&&t.components[e])return t.components[e];const n=E$(t);for(const i of n){const s=gv.get(`${i}:${e}`);if(s)return s}throw new Error(`Component not found for field schema ${JSON.stringify(t)} and component type ${e}`)}function Fse(t,e,n){const s=`${E$(t)[0]}:${e}`;gv.has(s)&&gv.get(s)!==n&&console.warn(`Overwriting component for key ${s}`),gv.set(s,n)}const rr={get:Rse,register:Fse},I$={};I$.install=function(t){t.prototype.$L.FieldTypeComponents=rr};const A$={};A$.register=function(){rr.register({type:"String"},"filterChipEditor",bse),rr.register({type:"Number"},"filterChipEditor",Ase),rr.register({type:"Date"},"filterChipEditor",Pse),rr.register({format:"Amount"},"filterChipEditor",Nse)};const Bse={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{inlineComponent(){try{return this.$L.FieldTypeComponents.get(this.schema,"textOnly")}catch{return null}},comparisonLabel(){return{in:"é",eq:"é",neq:"não é",starts_with:"começa com",ends_with:"termina com",contains:"contém"}[this.filter.comparison]}}};var Use=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v(" "+e._s(e.comparisonLabel)+" "),e.filter.comparison==="in"?e._l(e.filter.value,function(i,s){return n("span",{key:s},[e.inlineComponent?n(e.inlineComponent,{tag:"component",attrs:{value:i,schema:e.schema}}):n("span",{domProps:{textContent:e._s(i)}}),s<e.filter.value.length-1?[s<e.filter.value.length-2?n("span",[e._v(", ")]):n("span",[e._v(" ou ")])]:e._e()],2)}):[e._v('"'+e._s(e.filter.value)+'"')]],2)},Vse=[],Yse=Qe(Bse,Use,Vse,!1,null,null,null,null);const Hse=Yse.exports,Wse={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{formattedValue(){return this.$n(this.filter.value/100,"currency")}}};var Qse=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v("   "),e.filter.comparison=="eq"?n("span",[e._v("=")]):e.filter.comparison=="lt"?n("span",[e._v("<")]):e.filter.comparison=="lte"?n("span",[e._v("<=")]):e.filter.comparison=="gt"?n("span",[e._v(">")]):e.filter.comparison=="gte"?n("span",[e._v(">=")]):e._e(),e._v("   "+e._s(e.formattedValue)+" ")],1)},Gse=[],Kse=Qe(Wse,Qse,Gse,!1,null,null,null,null);const qse=Kse.exports,Xse={model:{prop:"filter",event:"change"},props:["filter","schema"]};var Zse=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v("   "),e.filter.comparison=="eq"?n("span",[e._v("=")]):e.filter.comparison=="neq"?n("span",[e._v("≠")]):e.filter.comparison=="lt"?n("span",[e._v("<")]):e.filter.comparison=="lte"?n("span",[e._v("≤")]):e.filter.comparison=="gt"?n("span",[e._v(">")]):e.filter.comparison=="gte"?n("span",[e._v("≥")]):e._e(),e._v("   "+e._s(e.filter.value)+" ")],1)},Jse=[],eae=Qe(Xse,Zse,Jse,!1,null,null,null,null);const tae=eae.exports;var YS={exports:{}},j$;function $$(){return j$||(j$=1,function(t,e){(function(n,i){t.exports=i()})(Gn,function(){var n=1e3,i=6e4,s=36e5,o="millisecond",u="second",d="minute",f="hour",p="day",v="week",y="month",M="quarter",b="year",x="date",N="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(J){var Z=["th","st","nd","rd"],X=J%100;return"["+J+(Z[(X-20)%10]||Z[X]||Z[0])+"]"}},S=function(J,Z,X){var te=String(J);return!te||te.length>=Z?J:""+Array(Z+1-te.length).join(X)+J},T={s:S,z:function(J){var Z=-J.utcOffset(),X=Math.abs(Z),te=Math.floor(X/60),oe=X%60;return(Z<=0?"+":"-")+S(te,2,"0")+":"+S(oe,2,"0")},m:function J(Z,X){if(Z.date()<X.date())return-J(X,Z);var te=12*(X.year()-Z.year())+(X.month()-Z.month()),oe=Z.clone().add(te,y),be=X-oe<0,xe=Z.clone().add(te+(be?-1:1),y);return+(-(te+(X-oe)/(be?oe-xe:xe-oe))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:y,y:b,w:v,d:p,D:x,h:f,m:d,s:u,ms:o,Q:M}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return J===void 0}},O="en",j={};j[O]=E;var $="$isDayjsObject",R=function(J){return J instanceof G||!(!J||!J[$])},W=function J(Z,X,te){var oe;if(!Z)return O;if(typeof Z=="string"){var be=Z.toLowerCase();j[be]&&(oe=be),X&&(j[be]=X,oe=be);var xe=Z.split("-");if(!oe&&xe.length>1)return J(xe[0])}else{var De=Z.name;j[De]=Z,oe=De}return!te&&oe&&(O=oe),oe||!te&&O},ee=function(J,Z){if(R(J))return J.clone();var X=typeof Z=="object"?Z:{};return X.date=J,X.args=arguments,new G(X)},q=T;q.l=W,q.i=R,q.w=function(J,Z){return ee(J,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var G=function(){function J(X){this.$L=W(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[$]=!0}var Z=J.prototype;return Z.parse=function(X){this.$d=function(te){var oe=te.date,be=te.utc;if(oe===null)return new Date(NaN);if(q.u(oe))return new Date;if(oe instanceof Date)return new Date(oe);if(typeof oe=="string"&&!/Z$/i.test(oe)){var xe=oe.match(w);if(xe){var De=xe[2]-1||0,$e=(xe[7]||"0").substring(0,3);return be?new Date(Date.UTC(xe[1],De,xe[3]||1,xe[4]||0,xe[5]||0,xe[6]||0,$e)):new Date(xe[1],De,xe[3]||1,xe[4]||0,xe[5]||0,xe[6]||0,$e)}}return new Date(oe)}(X),this.init()},Z.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},Z.$utils=function(){return q},Z.isValid=function(){return this.$d.toString()!==N},Z.isSame=function(X,te){var oe=ee(X);return this.startOf(te)<=oe&&oe<=this.endOf(te)},Z.isAfter=function(X,te){return ee(X)<this.startOf(te)},Z.isBefore=function(X,te){return this.endOf(te)<ee(X)},Z.$g=function(X,te,oe){return q.u(X)?this[te]:this.set(oe,X)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(X,te){var oe=this,be=!!q.u(te)||te,xe=q.p(X),De=function(ge,ie){var pe=q.w(oe.$u?Date.UTC(oe.$y,ie,ge):new Date(oe.$y,ie,ge),oe);return be?pe:pe.endOf(p)},$e=function(ge,ie){return q.w(oe.toDate()[ge].apply(oe.toDate("s"),(be?[0,0,0,0]:[23,59,59,999]).slice(ie)),oe)},Ke=this.$W,Ie=this.$M,ve=this.$D,H="set"+(this.$u?"UTC":"");switch(xe){case b:return be?De(1,0):De(31,11);case y:return be?De(1,Ie):De(0,Ie+1);case v:var ue=this.$locale().weekStart||0,me=(Ke<ue?Ke+7:Ke)-ue;return De(be?ve-me:ve+(6-me),Ie);case p:case x:return $e(H+"Hours",0);case f:return $e(H+"Minutes",1);case d:return $e(H+"Seconds",2);case u:return $e(H+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(X){return this.startOf(X,!1)},Z.$set=function(X,te){var oe,be=q.p(X),xe="set"+(this.$u?"UTC":""),De=(oe={},oe[p]=xe+"Date",oe[x]=xe+"Date",oe[y]=xe+"Month",oe[b]=xe+"FullYear",oe[f]=xe+"Hours",oe[d]=xe+"Minutes",oe[u]=xe+"Seconds",oe[o]=xe+"Milliseconds",oe)[be],$e=be===p?this.$D+(te-this.$W):te;if(be===y||be===b){var Ke=this.clone().set(x,1);Ke.$d[De]($e),Ke.init(),this.$d=Ke.set(x,Math.min(this.$D,Ke.daysInMonth())).$d}else De&&this.$d[De]($e);return this.init(),this},Z.set=function(X,te){return this.clone().$set(X,te)},Z.get=function(X){return this[q.p(X)]()},Z.add=function(X,te){var oe,be=this;X=Number(X);var xe=q.p(te),De=function(Ie){var ve=ee(be);return q.w(ve.date(ve.date()+Math.round(Ie*X)),be)};if(xe===y)return this.set(y,this.$M+X);if(xe===b)return this.set(b,this.$y+X);if(xe===p)return De(1);if(xe===v)return De(7);var $e=(oe={},oe[d]=i,oe[f]=s,oe[u]=n,oe)[xe]||1,Ke=this.$d.getTime()+X*$e;return q.w(Ke,this)},Z.subtract=function(X,te){return this.add(-1*X,te)},Z.format=function(X){var te=this,oe=this.$locale();if(!this.isValid())return oe.invalidDate||N;var be=X||"YYYY-MM-DDTHH:mm:ssZ",xe=q.z(this),De=this.$H,$e=this.$m,Ke=this.$M,Ie=oe.weekdays,ve=oe.months,H=oe.meridiem,ue=function(ie,pe,Ee,Re){return ie&&(ie[pe]||ie(te,be))||Ee[pe].slice(0,Re)},me=function(ie){return q.s(De%12||12,ie,"0")},ge=H||function(ie,pe,Ee){var Re=ie<12?"AM":"PM";return Ee?Re.toLowerCase():Re};return be.replace(k,function(ie,pe){return pe||function(Ee){switch(Ee){case"YY":return String(te.$y).slice(-2);case"YYYY":return q.s(te.$y,4,"0");case"M":return Ke+1;case"MM":return q.s(Ke+1,2,"0");case"MMM":return ue(oe.monthsShort,Ke,ve,3);case"MMMM":return ue(ve,Ke);case"D":return te.$D;case"DD":return q.s(te.$D,2,"0");case"d":return String(te.$W);case"dd":return ue(oe.weekdaysMin,te.$W,Ie,2);case"ddd":return ue(oe.weekdaysShort,te.$W,Ie,3);case"dddd":return Ie[te.$W];case"H":return String(De);case"HH":return q.s(De,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ge(De,$e,!0);case"A":return ge(De,$e,!1);case"m":return String($e);case"mm":return q.s($e,2,"0");case"s":return String(te.$s);case"ss":return q.s(te.$s,2,"0");case"SSS":return q.s(te.$ms,3,"0");case"Z":return xe}return null}(ie)||xe.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(X,te,oe){var be,xe=this,De=q.p(te),$e=ee(X),Ke=($e.utcOffset()-this.utcOffset())*i,Ie=this-$e,ve=function(){return q.m(xe,$e)};switch(De){case b:be=ve()/12;break;case y:be=ve();break;case M:be=ve()/3;break;case v:be=(Ie-Ke)/6048e5;break;case p:be=(Ie-Ke)/864e5;break;case f:be=Ie/s;break;case d:be=Ie/i;break;case u:be=Ie/n;break;default:be=Ie}return oe?be:q.a(be)},Z.daysInMonth=function(){return this.endOf(y).$D},Z.$locale=function(){return j[this.$L]},Z.locale=function(X,te){if(!X)return this.$L;var oe=this.clone(),be=W(X,te,!0);return be&&(oe.$L=be),oe},Z.clone=function(){return q.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},J}(),Y=G.prototype;return ee.prototype=Y,[["$ms",o],["$s",u],["$m",d],["$H",f],["$W",p],["$M",y],["$y",b],["$D",x]].forEach(function(J){Y[J[1]]=function(Z){return this.$g(Z,J[0],J[1])}}),ee.extend=function(J,Z){return J.$i||(J(Z,G,ee),J.$i=!0),ee},ee.locale=W,ee.isDayjs=R,ee.unix=function(J){return ee(1e3*J)},ee.en=j[O],ee.Ls=j,ee.p={},ee})}(YS)),YS.exports}var nae=$$();const HS=bi(nae),iae={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{comparisonLabel(){return{relative_past_gte:"há menos de",relative_past_lt:"há mais de",relative_past_eq:"há exatamente",relative_future_gte:"daqui a mais de",relative_future_lt:"daqui a menos de",relative_future_eq:"daqui a exatamente",absolute_eq:"em",absolute_gte:"a partir de",absolute_lt:"até"}[this.filter.comparison]},isRelative(){return this.filter.comparison&&this.filter.comparison.indexOf("relative_")===0},formattedValue(){if(!this.filter.value)return"-";if(this.filter.comparison.indexOf("relative_")===0)return`${this.filter.value} ${this.filter.value>1?"dias":"dia"}`;const t=vn(this.schema,"options.format","LL");return HS(this.filter.value,{locale:"pt-br"}).format(t)}}};var rae=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v(" "+e._s(e.comparisonLabel)+" "+e._s(e.formattedValue)+" ")],1)},sae=[],aae=Qe(iae,rae,sae,!1,null,null,null,null);const oae=aae.exports,L$={};L$.register=function(){rr.register({type:"String"},"filterChipView",Hse),rr.register({type:"Number"},"filterChipView",tae),rr.register({type:"Date"},"filterChipView",oae),rr.register({format:"Amount"},"filterChipView",qse)};const FEe="";A$.register(),L$.register();const lae={name:"FilterChip",props:["filter","schema"],components:{"el-popover":Nt.Popover},data(){return{editing:!1}},mounted(){(!this.$refs.editor||!this.$refs.view)&&this.remove(),this.$refs.editor.validate(t=>{t||(this.editing=!0)})},methods:{afterEnterPopover(){this.$refs.editor.focus&&this.$refs.editor.focus()},cancel(){this.editing=!1,this.$refs.editor.validate(t=>{t||this.remove()})},change(){this.editing=!1},remove(){this.$emit("onRemove")}},computed:{editorComponent(){return this.$L.FieldTypeComponents.get(this.schema,"filterChipEditor")},viewComponent(){return this.$L.FieldTypeComponents.get(this.schema,"filterChipView")}}};var uae=function(){var e=this,n=e._self._c;return n("el-popover",{staticClass:"filter-chip",attrs:{"popper-class":"filter-chip-popper",placement:"bottom-start",width:"288",trigger:"manual"},on:{"after-enter":e.afterEnterPopover},model:{value:e.editing,callback:function(i){e.editing=i},expression:"editing"}},[n("l-button",{attrs:{slot:"reference",type:"primary",round:"",size:"small"},on:{click:function(i){e.editing=!e.editing}},slot:"reference"},[n(e.viewComponent,{ref:"view",tag:"component",attrs:{schema:e.schema},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}}),n("l-icon",{staticClass:"close-button",on:{click:function(i){return i.stopPropagation(),e.remove.apply(null,arguments)}}},[e._v("uil-times-circle")])],1),n(e.editorComponent,{ref:"editor",tag:"component",attrs:{schema:e.schema},on:{cancel:e.cancel,change:e.change},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}})],1)},cae=[],dae=Qe(lae,uae,cae,!1,null,null,null,null);const fae=dae.exports,BEe="",hae={tagName:"l-search-bar",model:{prop:"value",event:"change"},props:{availableModes:{type:Array,default:()=>["simple"]},value:{type:Object,default:()=>({mode:globalThis.availableModes[0],queryText:"",filters:[]})},schema:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},data(){return{mode:vn(this.value,"mode",this.availableModes[0]),queryText:vn(this.value,"queryText",""),filters:ia(vn(this.value,"filters",[]))}},watch:{value(t){this.mode=vn(t,"mode",this.availableModes[0]),this.queryText=vn(t,"queryText","");const e=vn(t,"filters",[]);Gne(this.filters,e)||(this.filters=ia(e))},queryValue:{deep:!0,handler(t){this.isValid&&this.$emit("change",ia(t))}}},methods:{getFilterSchema(t){const{path:e}=t;return N$(this.schema.fields,{path:e})},addFilter(t){this.filters.push(Object.assign({},t))},removeFilter(t){const e=kre(this.filters,t);this.$delete(this.filters,e)},clear(){switch(this.mode){case"simple":this.queryText="";return;case"advanced":this.filters.splice(0,this.filters.length);return;default:throw new Error(`Unknown mode ${this.mode}`)}}},computed:{queryValue(){return{mode:this.mode,queryText:this.queryText,filters:this.filters}},isValid(){return this.filters.filter(t=>!t.valid).length===0},availableModesOptions(){return[{icon:"uil-search",value:"simple",title:"Filtro simples"},{icon:"uil-filter",value:"advanced",title:"Filtro avançado"}].filter(t=>this.availableModes.includes(t.value))},showClearButton(){switch(this.mode){case"simple":return this.queryText.length>0;case"advanced":return this.filters.length>0;default:throw new Error(`Unknown mode ${this.mode}`)}}},components:{AddFilterButton:pse,FilterChip:fae}};var pae=function(){var e=this,n=e._self._c;return n("div",{class:{disabled:e.disabled}},[n("l-toggle-button-group",{attrs:{disabled:e.disabled,options:e.availableModesOptions},model:{value:e.mode,callback:function(i){e.mode=i},expression:"mode"}}),e.mode=="simple"?[n("l-input",{staticStyle:{flex:"1 1 auto"},attrs:{disabled:e.disabled,size:"large",placeholder:e.disabled?"":"Digite algo para buscar"},model:{value:e.queryText,callback:function(i){e.queryText=i},expression:"queryText"}})]:[n("div",{staticClass:"filters"},[e._l(e.filters,function(i){return n("filter-chip",{key:i.path,ref:"filterChips",refInFor:!0,attrs:{filter:i,schema:e.getFilterSchema(i)},on:{onRemove:function(s){return e.removeFilter(i)}}})}),n("add-filter-button",{attrs:{schema:e.schema,filters:e.filters},on:{addFilter:e.addFilter}})],2)],n("div",{staticClass:"clear-button"},[n("l-button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}],attrs:{type:"text"},on:{click:e.clear}},[n("l-icon",[e._v("uil-times")])],1)],1)],2)},mae=[],gae=Qe(hae,pae,mae,!1,null,null,null,null);const vae=gae.exports,yae=Object.freeze(Object.defineProperty({__proto__:null,default:vae},Symbol.toStringTag,{value:"Module"}));var bae=Ss,_ae=function(){return bae.Date.now()},Mae=_ae,xae=Co,WS=Mae,z$=T$,Cae="Expected a function",Sae=Math.max,Tae=Math.min;function Dae(t,e,n){var i,s,o,u,d,f,p=0,v=!1,y=!1,M=!0;if(typeof t!="function")throw new TypeError(Cae);e=z$(e)||0,xae(n)&&(v=!!n.leading,y="maxWait"in n,o=y?Sae(z$(n.maxWait)||0,e):o,M="trailing"in n?!!n.trailing:M);function b(j){var $=i,R=s;return i=s=void 0,p=j,u=t.apply(R,$),u}function x(j){return p=j,d=setTimeout(k,e),v?b(j):u}function N(j){var $=j-f,R=j-p,W=e-$;return y?Tae(W,o-R):W}function w(j){var $=j-f,R=j-p;return f===void 0||$>=e||$<0||y&&R>=o}function k(){var j=WS();if(w(j))return E(j);d=setTimeout(k,N(j))}function E(j){return d=void 0,M&&i?b(j):(i=s=void 0,u)}function S(){d!==void 0&&clearTimeout(d),p=0,i=f=s=d=void 0}function T(){return d===void 0?u:E(WS())}function O(){var j=WS(),$=w(j);if(i=arguments,s=this,f=j,$){if(d===void 0)return x(f);if(y)return clearTimeout(d),d=setTimeout(k,e),b(f)}return d===void 0&&(d=setTimeout(k,e)),u}return O.cancel=S,O.flush=T,O}var wae=Dae;const Nae=bi(wae);function kae(t){return t!==t}var Oae=kae;function Eae(t,e,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===e)return i;return-1}var Iae=Eae,Aae=_$,jae=Oae,$ae=Iae;function Lae(t,e,n){return e===e?$ae(t,e,n):Aae(t,jae,n)}var zae=Lae,Pae=zae;function Rae(t,e){var n=t==null?0:t.length;return!!n&&Pae(t,e,0)>-1}var P$=Rae;function Fae(t,e,n){for(var i=-1,s=t==null?0:t.length;++i<s;)if(n(e,t[i]))return!0;return!1}var R$=Fae,Bae=$S,Uae=P$,Vae=R$,Yae=Jj,Hae=av,Wae=LS,Qae=200;function Gae(t,e,n,i){var s=-1,o=Uae,u=!0,d=t.length,f=[],p=e.length;if(!d)return f;n&&(e=Yae(e,Hae(n))),i?(o=Vae,u=!1):e.length>=Qae&&(o=Wae,u=!1,e=new Bae(e));e:for(;++s<d;){var v=t[s],y=n==null?v:n(v);if(v=i||v!==0?v:0,u&&y===y){for(var M=p;M--;)if(e[M]===y)continue e;f.push(v)}else o(e,y,i)||f.push(v)}return f}var Kae=Gae,F$=Tc,qae=vS,Xae=Ts,B$=F$?F$.isConcatSpreadable:void 0;function Zae(t){return Xae(t)||qae(t)||!!(B$&&t&&t[B$])}var Jae=Zae,eoe=SS,toe=Jae;function U$(t,e,n,i,s){var o=-1,u=t.length;for(n||(n=toe),s||(s=[]);++o<u;){var d=t[o];e>0&&n(d)?e>1?U$(d,e-1,n,i,s):eoe(s,d):i||(s[s.length]=d)}return s}var V$=U$;function noe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var ioe=noe,roe=ioe,Y$=Math.max;function soe(t,e,n){return e=Y$(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=Y$(i.length-e,0),u=Array(o);++s<o;)u[s]=i[e+s];s=-1;for(var d=Array(e+1);++s<e;)d[s]=i[s];return d[e]=n(u),roe(t,this,d)}}var aoe=soe;function ooe(t){return function(){return t}}var loe=ooe,uoe=loe,H$=oj,coe=BS,doe=H$?function(t,e){return H$(t,"toString",{configurable:!0,enumerable:!1,value:uoe(e),writable:!0})}:coe,foe=doe,hoe=800,poe=16,moe=Date.now;function goe(t){var e=0,n=0;return function(){var i=moe(),s=poe-(i-n);if(n=i,s>0){if(++e>=hoe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var voe=goe,yoe=foe,boe=voe,_oe=boe(yoe),Moe=_oe,xoe=BS,Coe=aoe,Soe=Moe;function Toe(t,e){return Soe(Coe(t,e,xoe),t+"")}var Doe=Toe,woe=oh,Noe=So;function koe(t){return Noe(t)&&woe(t)}var Ooe=koe,Eoe=Kae,Ioe=V$,Aoe=Doe,W$=Ooe,joe=Aoe(function(t,e){return W$(t)?Eoe(t,Ioe(e,1,W$,!0)):[]}),$oe=joe;const Loe=bi($oe);var vv={},yv={};Object.defineProperty(yv,"__esModule",{value:!0}),yv.errorHandler=void 0;function zoe(t){if(!t)return;const e={message:"Um problema aconteceu e foi enviado para análise",type:"error",retryable:!0};return!window.navigator.onLine||t.message==="Network Error"?(e.message="Parece que você está offline.",e.type="info",e):typeof t=="string"?(e.message=t,e.retryable=!1,e):t.response&&t.response.status&&t.response.status>=400&&t.response.status<500?(e.message="Algumas informações não foram atualizadas.",e.retryable=!1,e):(t.response&&t.response.status>=500&&(e.message="Ops, encontramos um erro. Tente novamente mais tarde."),e)}yv.errorHandler=zoe,function(t){var e=Gn&&Gn.__createBinding||(Object.create?function(i,s,o,u){u===void 0&&(u=o),Object.defineProperty(i,u,{enumerable:!0,get:function(){return s[o]}})}:function(i,s,o,u){u===void 0&&(u=o),i[u]=s[o]}),n=Gn&&Gn.__exportStar||function(i,s){for(var o in i)o!=="default"&&!s.hasOwnProperty(o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(yv,t)}(vv);const UEe="",Poe={props:{topic:{type:Object},disabled:{type:Boolean},checked:{type:Boolean},isCheckedFunction:{type:Function},populateTopic:{type:Function}},data:function(){return{showIncludes:!1,fetchingIncludes:!1,initialFetching:!0,fetched:!1,error:!1,includes:[],generator:null,buffer:[],hasMore:!1,limit:30}},created(){this.generator=this.combinedGenerator()},watch:{async showIncludes(t){t===!0&&this.fetched===!1&&(this.fetched=!0,await this.fetch(),this.initialFetching=!1)}},computed:{includesNoData(){return{group:"Esta turma ainda não tem alunos",tag:"Esta tag ainda não tem turmas"}[this.topic.kind]}},methods:{async*fetchToGenerator(t,e=null){const n={id:this.topic.id,kind:t,limit:this.limit+1,page:0};e&&(n.groupContext=e);let{hits:i,total:s}=await this.populateTopic(n);for(;s>0;){if(i.length>0){yield i.shift(),s--;continue}n.page+=1,i=(await this.populateTopic(n)).hits}},async*combinedGenerator(){this.topic.kind==="group"?(yield*this.fetchToGenerator("group","member"),yield*this.fetchToGenerator("group","user")):yield*this.fetchToGenerator("tag")},async fetchPage(){const t=this.limit;for(;this.buffer.length<t+1;){let e=await this.generator.next();if(e.value){this.buffer.push(e.value);continue}break}return{results:this.buffer.splice(0,t),hasMore:this.buffer.length>0}},async fetch(){const t=ia(this.includes);this.fetchingIncludes=!0;try{const{results:e,hasMore:n}=await this.fetchPage();this.includes=[...t,...e],this.hasMore=n}catch(e){this.error=e,this.$notify({...vv.errorHandler("Erro ao carregar mais."),duration:1e4,position:"bottom",showClose:!0})}finally{this.fetchingIncludes=!1}},hasChildChecked(){return this.checked||!this.includes?!1:this.includes.map(this.isCheckedFunction).some(t=>t===!0)},color(t){return this.disabled?"gray-50":{member:"purple",group:"aqua",user:"link",tag:"warning"}[t]||"lead"},icon(t){return{member:"uil-graduation-cap",group:"uil-users-alt",user:"uil-user",tag:"uil-tag-alt"}[t]},isChildChecked(t){return this.isCheckedFunction(t)||this.isCheckedFunction(this.topic)},toggleShowIncludes(){(this.topic.kind==="group"||this.topic.kind==="tag")&&(this.showIncludes=!this.showIncludes)},updateSelectedTopics(t,e){this.$emit("input",{topic:t,value:e})},topicIncludedChanged(t,e){this.checked&&!e&&(this.updateSelectedTopics(this.topic,!1),this.includes.forEach(n=>{n.id!==t.id&&this.updateSelectedTopics(n,!0)})),this.updateSelectedTopics(t,e)}}};var Roe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"topic-item-group"},[n("div",{staticClass:"topic-item-group-header l-d-flex l-align-items-center pl-3"},[n("div",{staticClass:"l-flex l-d-flex l-align-items-center",on:{click:function(i){return i.stopPropagation(),e.toggleShowIncludes()}}},[e.topic.kind=="group"||e.topic.kind=="tag"?n("div",{staticClass:"topic-chevron mr-2"},[n("l-icon",{staticClass:"gray-60--text",attrs:{size:"24"}},[e._v(" "+e._s(e.showIncludes?"uil-angle-down":"uil-angle-right")+" ")])],1):e._e(),n("div",{staticClass:"topic-icon"},[n("div",{staticClass:"bg-icon",class:e.color(e.topic.kind)}),n("l-icon",{class:e.color(e.topic.kind)+"--text"},[e._v(" "+e._s(e.icon(e.topic.kind))+" ")])],1),n("div",{staticClass:"l-flex ml-2 mr-3 l-text-regular ellipsis-2",class:e.disabled?"gray-70--text":"lead-light--text"},[e._v(" "+e._s(e.topic.name)+" ")])]),n("l-checkbox",{key:e.isCheckedFunction(e.topic),staticClass:"p-3",attrs:{disabled:e.disabled,checked:e.isCheckedFunction(e.topic),indeterminate:e.hasChildChecked()},on:{change:function(i){return e.updateSelectedTopics(e.topic,i)}}})],1),n("hr"),n("l-transition-expand",[e.showIncludes?n("div",{staticClass:"px-3"},[e.initialFetching?[n("div",{staticClass:"l-d-flex l-align-items-center my-2",staticStyle:{"justify-content":"center",width:"100%",height:"40px"}},[n("l-circular-loader",{attrs:{width:40,height:40}})],1),n("hr")]:n("div",[!e.includes.length&&!e.hasMore||e.error?[n("div",{staticClass:"no-data-includes l-text-regular gray-60--text"},[e._v(" "+e._s(e.includesNoData)+" ")]),n("hr")]:n("div",[e._l(e.includes,function(i){return n("div",{key:i.id,staticClass:"topic-item-group-includes"},[n("div",{staticClass:"topic-item-group-header l-d-flex l-align-items-center pl-4 ml-2"},[n("div",{staticClass:"l-flex l-d-flex l-align-items-center"},[n("div",{staticClass:"topic-icon"},[n("div",{staticClass:"bg-icon",class:e.color(i.kind)}),n("l-icon",{class:e.color(i.kind)+"--text"},[e._v(e._s(e.icon(i.kind)))])],1),n("div",{staticClass:"l-flex ml-2 mr-3 l-text-regular ellipsis-2",class:e.disabled?"gray-70--text":"lead-light--text"},[e._v(" "+e._s(i.name)+" ")])]),n("l-checkbox",{key:e.isChildChecked(i),staticClass:"pl-3 py-3",attrs:{disabled:e.disabled,checked:e.isChildChecked(i)},on:{change:function(s){return e.topicIncludedChanged(i,s)}}})],1),n("hr")])}),e.hasMore?n("div",{staticClass:"mx-3 my-3"},[n("l-button",{attrs:{loading:e.fetchingIncludes,plain:"",fill:""},nativeOn:{click:function(i){return e.fetch()}}},[e._v(" Carregar mais ")])],1):e._e()],2)],2)],2):e._e()])],1)},Foe=[],Boe=Qe(Poe,Roe,Foe,!1,null,"4a8fa04f",null,null);const Uoe=Boe.exports,VEe="",Voe={props:{term:{type:String}}};var Yoe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-d-flex l-align-items-center lead--text recent-topic"},[n("l-icon",{attrs:{size:"16"}},[e._v("uil-history")]),n("div",{staticClass:"l-flex l-text-regular mx-2"},[e._v(e._s(e.term))]),n("l-button",{staticClass:"border-none lead--text f-18 p-1",attrs:{circle:"",icon:"uil-multiply"},on:{click:function(i){return i.stopPropagation(),e.$emit("remove")}}})],1)},Hoe=[],Woe=Qe(Voe,Yoe,Hoe,!1,null,"9a0d87e2",null,null);const Qoe=Woe.exports,YEe="",Goe={props:{query:{type:Object},typing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hasAnySelectedTopic:{type:Boolean,default:!1},kinds:{type:Array}},computed:{filteredKinds:function(){return this.kinds.filter(t=>this.query.q||!(t.value==="member"||t.value==="user"))},queryKind:{get:function(){return this.query.kind},set:function(t){this.$emit("input",{q:this.query.q,kind:t,page:0})}}},methods:{clearInput:function(){this.$emit("input",{q:null,kind:"*",page:0})},isSelected:function(t){return vn(this.query,"kind",null)===t},updateQuery:function(t){const e=vn(t,"target.value",null);this.$emit("input",{q:e,kind:"*",page:0})},setInputClass:function(t){return"search-input-wrapper ml-2 l-flex"+" "+t},back:function(){this.$emit("close")},save:function(){this.$emit("save")}}};var Koe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"app-navigation"},[n("div",{staticClass:"search-topics-header l-d-flex l-align-items-center pl-2 pr-3"},[n("l-button",{staticClass:"border-none gray-70--text f-24 p-1",attrs:{circle:"",icon:"uil-arrow-left"},on:{click:function(i){return e.back()}}}),n("div",{class:e.setInputClass("blurred")},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query.q,expression:"query.q"}],staticStyle:{width:"100%"},attrs:{autocomplete:"off",placeholder:"Pesquisar"},domProps:{value:e.query.q},on:{focus:function(i){return e.setInputClass("focused")},blur:function(i){return e.setInputClass("blurred")},keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:i.target.blur()},input:[function(i){i.target.composing||e.$set(e.query,"q",i.target.value)},function(i){return e.updateQuery(i)}]}}),e.query.q?n("l-icon",{staticClass:"lead-light--text cursor-pointer",attrs:{size:"16"},on:{click:function(i){return e.clearInput()}}},[e._v(" uil-times ")]):e._e()],1),n("l-button",{staticClass:"bold l-d-flex l-align-items-center f-14 ml-2",attrs:{disabled:!e.hasAnySelectedTopic,loading:e.loading,type:"primary"},on:{click:function(i){return e.save()}}},[e._v(" Salvar ")])],1),e.query.q||e.query.kind!=="*"?n("div",{staticClass:"filter-kind l-d-flex px-3 pb-2"},[n("l-radio-group",{staticClass:"l-flex-nowrap",attrs:{size:"small",separated:"",color:"lead-light"},model:{value:e.queryKind,callback:function(i){e.queryKind=i},expression:"queryKind"}},e._l(e.filteredKinds,function(i){return n("l-radio-button",{key:i.value,attrs:{label:i.value}},[i.icon?n("l-icon",{attrs:{color:e.isSelected(i.value)?"white":"lead-light",size:"13"}},[e._v(" "+e._s(i.icon)+" ")]):e._e(),e._v(" "+e._s(i.name)+" ")],1)}),1)],1):e._e(),e.loading||e.typing?n("l-linear-progress"):e._e()],1)},qoe=[],Xoe=Qe(Goe,Koe,qoe,!1,null,"132f1bf9",null,null);const Zoe=Xoe.exports;var Q$={exports:{}};(function(t){t.exports=function(e){var n={};function i(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=n,i.d=function(s,o,u){i.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:u})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,o){if(o&1&&(s=i(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var d in s)i.d(u,d,(function(f){return s[f]}).bind(null,d));return u},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s="fb15")}({"00ee":function(e,n,i){var s=i("b622"),o=s("toStringTag"),u={};u[o]="z",e.exports=String(u)==="[object z]"},"0366":function(e,n,i){var s=i("1c0b");e.exports=function(o,u,d){if(s(o),u===void 0)return o;switch(d){case 0:return function(){return o.call(u)};case 1:return function(f){return o.call(u,f)};case 2:return function(f,p){return o.call(u,f,p)};case 3:return function(f,p,v){return o.call(u,f,p,v)}}return function(){return o.apply(u,arguments)}}},"057f":function(e,n,i){var s=i("fc6a"),o=i("241c").f,u={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(p){try{return o(p)}catch{return d.slice()}};e.exports.f=function(v){return d&&u.call(v)=="[object Window]"?f(v):o(s(v))}},"06cf":function(e,n,i){var s=i("83ab"),o=i("d1e7"),u=i("5c6c"),d=i("fc6a"),f=i("c04e"),p=i("5135"),v=i("0cfb"),y=Object.getOwnPropertyDescriptor;n.f=s?y:function(b,x){if(b=d(b),x=f(x,!0),v)try{return y(b,x)}catch{}if(p(b,x))return u(!o.f.call(b,x),b[x])}},"0cfb":function(e,n,i){var s=i("83ab"),o=i("d039"),u=i("cc12");e.exports=!s&&!o(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"19aa":function(e,n){e.exports=function(i,s,o){if(!(i instanceof s))throw TypeError("Incorrect "+(o?o+" ":"")+"invocation");return i}},"1be4":function(e,n,i){var s=i("d066");e.exports=s("document","documentElement")},"1c0b":function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(e,n,i){var s=i("b622"),o=s("iterator"),u=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){u=!0}};f[o]=function(){return this},Array.from(f,function(){throw 2})}catch{}e.exports=function(p,v){if(!v&&!u)return!1;var y=!1;try{var M={};M[o]=function(){return{next:function(){return{done:y=!0}}}},p(M)}catch{}return y}},"1cdc":function(e,n,i){var s=i("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},"1d80":function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(e,n,i){var s=i("d039"),o=i("b622"),u=i("2d00"),d=o("species");e.exports=function(f){return u>=51||!s(function(){var p=[],v=p.constructor={};return v[d]=function(){return{foo:1}},p[f](Boolean).foo!==1})}},"1eb2":function(e,n,i){if(typeof window<"u"){var s=window.document.currentScript;{var o=i("8875");s=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(i.p=u[1])}},2262:function(e,n,i){i.d(n,"a",function(){return s}),i.d(n,"b",function(){return o});var s=function(){var u=this,d=u.$createElement,f=u._self._c||d;return f("section",{style:{"--depth":u.depth},attrs:{layout:"drawer"}},[u._t("default")],2)},o=[]},2266:function(e,n,i){var s=i("825a"),o=i("e95a"),u=i("50c4"),d=i("0366"),f=i("35a1"),p=i("9bdd"),v=function(M,b){this.stopped=M,this.result=b},y=e.exports=function(M,b,x,N,w){var k=d(b,x,N?2:1),E,S,T,O,j,$,R;if(w)E=M;else{if(S=f(M),typeof S!="function")throw TypeError("Target is not iterable");if(o(S)){for(T=0,O=u(M.length);O>T;T++)if(j=N?k(s(R=M[T])[0],R[1]):k(M[T]),j&&j instanceof v)return j;return new v(!1)}E=S.call(M)}for($=E.next;!(R=$.call(E)).done;)if(j=p(E,k,R.value,N),typeof j=="object"&&j&&j instanceof v)return j;return new v(!1)};y.stop=function(M){return new v(!0,M)}},"23cb":function(e,n,i){var s=i("a691"),o=Math.max,u=Math.min;e.exports=function(d,f){var p=s(d);return p<0?o(p+f,0):u(p,f)}},"23e7":function(e,n,i){var s=i("da84"),o=i("06cf").f,u=i("9112"),d=i("6eeb"),f=i("ce4e"),p=i("e893"),v=i("94ca");e.exports=function(y,M){var b=y.target,x=y.global,N=y.stat,w,k,E,S,T,O;if(x?k=s:N?k=s[b]||f(b,{}):k=(s[b]||{}).prototype,k)for(E in M){if(T=M[E],y.noTargetGet?(O=o(k,E),S=O&&O.value):S=k[E],w=v(x?E:b+(N?".":"#")+E,y.forced),!w&&S!==void 0){if(typeof T==typeof S)continue;p(T,S)}(y.sham||S&&S.sham)&&u(T,"sham",!0),d(k,E,T,y)}}},"241c":function(e,n,i){var s=i("ca84"),o=i("7839"),u=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},2626:function(e,n,i){var s=i("d066"),o=i("9bf2"),u=i("b622"),d=i("83ab"),f=u("species");e.exports=function(p){var v=s(p),y=o.f;d&&v&&!v[f]&&y(v,f,{configurable:!0,get:function(){return this}})}},2768:function(e,n,i){},2877:function(e,n,i){i.d(n,"a",function(){return s});function s(o,u,d,f,p,v,y,M){var b=typeof o=="function"?o.options:o;u&&(b.render=u,b.staticRenderFns=d,b._compiled=!0),f&&(b.functional=!0),v&&(b._scopeId="data-v-"+v);var x;if(y?(x=function(k){k=k||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!k&&typeof __VUE_SSR_CONTEXT__<"u"&&(k=__VUE_SSR_CONTEXT__),p&&p.call(this,k),k&&k._registeredComponents&&k._registeredComponents.add(y)},b._ssrRegister=x):p&&(x=M?function(){p.call(this,(b.functional?this.parent:this).$root.$options.shadowRoot)}:p),x)if(b.functional){b._injectStyles=x;var N=b.render;b.render=function(E,S){return x.call(S),N(E,S)}}else{var w=b.beforeCreate;b.beforeCreate=w?[].concat(w,x):[x]}return{exports:o,options:b}}},"2aea":function(e,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=i("60a3"),u=function(d){s.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(f.prototype,"classes",{get:function(){return{center:!0}},enumerable:!0,configurable:!0}),s.__decorate([o.Prop()],f.prototype,"stack",void 0),s.__decorate([o.Prop()],f.prototype,"index",void 0),s.__decorate([o.Prop()],f.prototype,"modal",void 0),s.__decorate([o.Prop()],f.prototype,"showClose",void 0),f=s.__decorate([o.Component],f),f}(o.Vue);n.default=u,o.Vue.component("dialog",u)},"2cf4":function(e,n,i){var s=i("da84"),o=i("d039"),u=i("c6b6"),d=i("0366"),f=i("1be4"),p=i("cc12"),v=i("1cdc"),y=s.location,M=s.setImmediate,b=s.clearImmediate,x=s.process,N=s.MessageChannel,w=s.Dispatch,k=0,E={},S="onreadystatechange",T,O,j,$=function(q){if(E.hasOwnProperty(q)){var G=E[q];delete E[q],G()}},R=function(q){return function(){$(q)}},W=function(q){$(q.data)},ee=function(q){s.postMessage(q+"",y.protocol+"//"+y.host)};(!M||!b)&&(M=function(G){for(var Y=[],J=1;arguments.length>J;)Y.push(arguments[J++]);return E[++k]=function(){(typeof G=="function"?G:Function(G)).apply(void 0,Y)},T(k),k},b=function(G){delete E[G]},u(x)=="process"?T=function(q){x.nextTick(R(q))}:w&&w.now?T=function(q){w.now(R(q))}:N&&!v?(O=new N,j=O.port2,O.port1.onmessage=W,T=d(j.postMessage,j,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!o(ee)&&y.protocol!=="file:"?(T=ee,s.addEventListener("message",W,!1)):S in p("script")?T=function(q){f.appendChild(p("script"))[S]=function(){f.removeChild(this),$(q)}}:T=function(q){setTimeout(R(q),0)}),e.exports={set:M,clear:b}},"2d00":function(e,n,i){var s=i("da84"),o=i("342f"),u=s.process,d=u&&u.versions,f=d&&d.v8,p,v;f?(p=f.split("."),v=p[0]+p[1]):o&&(p=o.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=o.match(/Chrome\/(\d+)/),p&&(v=p[1]))),e.exports=v&&+v},"2f83":function(e,n,i){var s=i("2768"),o=i.n(s);o.a},"30d7":function(e,n,i){i.r(n);var s=i("2aea"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},"342f":function(e,n,i){var s=i("d066");e.exports=s("navigator","userAgent")||""},"35a1":function(e,n,i){var s=i("f5df"),o=i("3f8c"),u=i("b622"),d=u("iterator");e.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||o[s(f)]}},"37e8":function(e,n,i){var s=i("83ab"),o=i("9bf2"),u=i("825a"),d=i("df75");e.exports=s?Object.defineProperties:function(p,v){u(p);for(var y=d(v),M=y.length,b=0,x;M>b;)o.f(p,x=y[b++],v[x]);return p}},"3bbe":function(e,n,i){var s=i("861d");e.exports=function(o){if(!s(o)&&o!==null)throw TypeError("Can't set "+String(o)+" as a prototype");return o}},"3ca3":function(e,n,i){var s=i("6547").charAt,o=i("69f3"),u=i("7dd0"),d="String Iterator",f=o.set,p=o.getterFor(d);u(String,"String",function(v){f(this,{type:d,string:String(v),index:0})},function(){var y=p(this),M=y.string,b=y.index,x;return b>=M.length?{value:void 0,done:!0}:(x=s(M,b),y.index+=x.length,{value:x,done:!1})})},"3f8c":function(e,n){e.exports={}},"428f":function(e,n,i){var s=i("da84");e.exports=s},"44ad":function(e,n,i){var s=i("d039"),o=i("c6b6"),u="".split;e.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return o(d)=="String"?u.call(d,""):Object(d)}:Object},"44d2":function(e,n,i){var s=i("b622"),o=i("7c73"),u=i("9bf2"),d=s("unscopables"),f=Array.prototype;f[d]==null&&u.f(f,d,{configurable:!0,value:o(null)}),e.exports=function(p){f[d][p]=!0}},"44de":function(e,n,i){var s=i("da84");e.exports=function(o,u){var d=s.console;d&&d.error&&(arguments.length===1?d.error(o):d.error(o,u))}},"47e2":function(e,n,i){i("a4d3"),i("e01a"),i("e260"),i("4ec9"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=s.__importDefault(i("68fa")),u=i("60a3"),d=Symbol.for("GlobalStack"),f=function(){function p(){}return p.createStackInstance=function(v){console.warn('[VueModals] No ModalStack was found for name "'+v+'". Using Modals without a stack instance causes one to be created as default at the end of the document body.');var y=document.createElement("aside");return document.body.insertAdjacentElement("beforeend",y),new u.Vue({render:function(b){return b(o.default)},props:{name:v}}).$mount(y),this.globalStackInstances.get(v)},p.stack=function(v){if(v===void 0&&(v="default"),v==="default"&&!this.globalStackInstances.has("default"))return this.createStackInstance("default");if(this.globalStackInstances.has(v))return this.globalStackInstances.get(v);throw new Error('[VueModals] No stack instance found for name "'+(v??"default")+'". Create a ModalStack instance with this name to use it')},p.open=function(v){this.stack(v.stack).push(v)},p.registerLayout=function(v,y){u.Vue.component(v,y)},p.registerStack=function(v,y){console.warn("register",v,y),this.globalStackInstances.has(v)?console.warn('[VueModals] Multiple instances of ModalStack must have unique names. Duplicate name found for ModalStack "'+v+'".'):this.globalStackInstances.set(v,y)},p.unregisterStack=function(v,y){console.warn("unregister",v,y),this.globalStackInstances.get(v)===y?this.globalStackInstances.delete(v):console.warn('[VueModals] Could not unregister ModalStack because a duplicate name was found "'+v+'".')},p.globalStackInstances=window[d]||(window[d]=new Map),p}();n.default=f,window.Modals=f},4840:function(e,n,i){var s=i("825a"),o=i("1c0b"),u=i("b622"),d=u("species");e.exports=function(f,p){var v=s(f).constructor,y;return v===void 0||(y=s(v)[d])==null?p:o(y)}},4930:function(e,n,i){var s=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(e,n,i){var s=i("fc6a"),o=i("50c4"),u=i("23cb"),d=function(f){return function(p,v,y){var M=s(p),b=o(M.length),x=u(y,b),N;if(f&&v!=v){for(;b>x;)if(N=M[x++],N!=N)return!0}else for(;b>x;x++)if((f||x in M)&&M[x]===v)return f||x||0;return!f&&-1}};e.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(e,n,i){var s=i("23e7"),o=i("b727").filter,u=i("1dde"),d=i("ae40"),f=u("filter"),p=d("filter");s({target:"Array",proto:!0,forced:!f||!p},{filter:function(y){return o(this,y,arguments.length>1?arguments[1]:void 0)}})},"4e8a":function(e,n,i){var s=i("783d"),o=i.n(s);o.a},"4ec9":function(e,n,i){var s=i("6d61"),o=i("6566");e.exports=s("Map",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},o)},"50c4":function(e,n,i){var s=i("a691"),o=Math.min;e.exports=function(u){return u>0?o(s(u),9007199254740991):0}},5135:function(e,n){var i={}.hasOwnProperty;e.exports=function(s,o){return i.call(s,o)}},"566d":function(e,n,i){i.r(n);var s=i("a28d"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},5692:function(e,n,i){var s=i("c430"),o=i("c6cd");(e.exports=function(u,d){return o[u]||(o[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,n,i){var s=i("d066"),o=i("241c"),u=i("7418"),d=i("825a");e.exports=s("Reflect","ownKeys")||function(p){var v=o.f(d(p)),y=u.f;return y?v.concat(y(p)):v}},"5c6c":function(e,n){e.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"60a3":function(e,n,i){i.r(n),i.d(n,"Component",function(){return ee}),i.d(n,"Vue",function(){return o.a}),i.d(n,"Mixins",function(){return E}),i.d(n,"Inject",function(){return G}),i.d(n,"InjectReactive",function(){return Y}),i.d(n,"Provide",function(){return te}),i.d(n,"ProvideReactive",function(){return oe}),i.d(n,"Model",function(){return De}),i.d(n,"Prop",function(){return $e}),i.d(n,"PropSync",function(){return Ke}),i.d(n,"Watch",function(){return Ie}),i.d(n,"Emit",function(){return ue}),i.d(n,"Ref",function(){return me});var s=i("8bbf"),o=i.n(s);/**
139
+ */var _se={symbol:"$",separator:",",decimal:".",formatWithSymbol:!1,errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#"},O$=function(e){return Math.round(e)},VS=function(e){return Math.pow(10,e)},Mse=function(e,n){return O$(e/n)*n},xse=/(\d)(?=(\d{3})+\b)/g,Cse=/(\d)(?=(\d\d)+\d\b)/g;function ra(t,e){var n=this;if(!(n instanceof ra))return new ra(t,e);var i=Object.assign({},_se,e),s=VS(i.precision),o=mv(t,i);n.intValue=o,n.value=o/s,i.increment=i.increment||1/s,i.useVedic?i.groups=Cse:i.groups=xse,this.s=i,this.p=s}function mv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,s=e.decimal,o=e.errorOnInvalid,u=e.precision,d=VS(u),f=typeof t=="number";if(f||t instanceof ra)i=(f?t:t.value)*d;else if(typeof t=="string"){var p=new RegExp("[^-\\d"+s+"]","g"),v=new RegExp("\\"+s,"g");i=t.replace(/\((.*)\)/,"-$1").replace(p,"").replace(v,".")*d,i=i||0}else{if(o)throw Error("Invalid Input");i=0}return i=i.toFixed(4),n?O$(i):i}ra.prototype={add:function(e){var n=this.intValue,i=this.s,s=this.p;return ra((n+=mv(e,i))/s,i)},subtract:function(e){var n=this.intValue,i=this.s,s=this.p;return ra((n-=mv(e,i))/s,i)},multiply:function(e){var n=this.intValue,i=this.s;return ra((n*=e)/VS(i.precision),i)},divide:function(e){var n=this.intValue,i=this.s;return ra(n/=mv(e,i,!1),i)},distribute:function(e){for(var n=this.intValue,i=this.p,s=this.s,o=[],u=Math[n>=0?"floor":"ceil"](n/e),d=Math.abs(n-u*e);e!==0;e--){var f=ra(u/i,s);d-- >0&&(f=n>=0?f.add(1/i):f.subtract(1/i)),o.push(f)}return o},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,n=this.p;return~~(e%n)},format:function(e){var n=this.s,i=n.pattern,s=n.negativePattern,o=n.formatWithSymbol,u=n.symbol,d=n.separator,f=n.decimal,p=n.groups,v=(this+"").replace(/^-/,"").split("."),y=v[0],M=v[1];return typeof e>"u"&&(e=o),(this.value>=0?i:s).replace("!",e?u:"").replace("#","".concat(y.replace(p,"$1"+d)).concat(M?f+M:""))},toString:function(){var e=this.intValue,n=this.p,i=this.s;return Mse(e/n,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};const Sse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return{form:{value:this.filter.value,comparison:this.filter.comparison||"gt"},inputValue:this.formatValue(this.filter.value)}},methods:{focus(){this.$refs.valueInput.focus()},formatValue(t){return t?(t/100).toFixed(2).replace(".",","):"0,00"},getAmount(t){return t?ra(t,{decimal:","}).intValue:0},changeInput(){this.form.value=this.getAmount(this.inputValue),this.inputValue=this.formatValue(this.form.value)},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{rules(){return{value:[{required:!0,message:`Digite para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var Tse=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v(" "+e._s(e.schema.title))],1),n("br"),n("l-form-item",{attrs:{prop:"value"}},[n("el-input",{ref:"valueInput",attrs:{size:"small"},on:{change:e.changeInput},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}},[n("template",{slot:"prepend"},[e._v("R$")])],2)],1),n("l-form-item",{attrs:{prop:"comparison"}},[n("l-radio",{attrs:{label:"gt"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Maior que")]),n("br"),n("l-radio",{attrs:{label:"gte"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Maior que ou igual a")]),n("br"),n("l-radio",{attrs:{label:"eq"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Igual a")]),n("br"),n("l-radio",{attrs:{label:"lt"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Menor que")]),n("br"),n("l-radio",{attrs:{label:"lte"},model:{value:e.form.comparison,callback:function(i){e.$set(e.form,"comparison",i)},expression:"form.comparison"}},[e._v("Menor que ou igual a")])],1),n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],1)},Dse=[],wse=Qe(Sse,Tse,Dse,!1,null,null,null,null);const Nse=wse.exports,kse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return vn(this.schema,"options.enum")?{form:{value:this.filter.value||[],comparison:this.filter.comparison||"in"}}:{form:{value:this.filter.value,comparison:this.filter.comparison||"gte"}}},watch:{"form.comparison":{handler(){this.$nextTick(()=>this.focus())}}},methods:{focus(){this.$refs.valueInput&&this.$refs.valueInput[0].focus()},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{valuesEnum(){return vn(this.schema,"options.enum")},inlineComponent(){try{return this.$L.FieldTypeComponents.get(this.schema,"default")}catch{return null}},comparisons(){return[{label:"Menor que",value:"lt"},{label:"Menor ou igual a",value:"lte"},{label:"Maior que",value:"gt"},{label:"Maior ou igual a",value:"gte"},{label:"Igual a",value:"eq"},{label:"Diferente de",value:"neq"}]},rules(){return{value:[{required:!0,message:`Escolha para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var Ose=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "+e._s(e.schema.title)+" ")],1),n("br"),e.valuesEnum?[n("l-form-item",{attrs:{prop:"value"}},[n("l-checkbox-group",{model:{value:e.form.value,callback:function(i){e.$set(e.form,"value",i)},expression:"form.value"}},e._l(e.valuesEnum,function(i){return n("div",{key:i},[n("l-checkbox",{attrs:{label:i}},[e.inlineComponent?n(e.inlineComponent,{tag:"component",attrs:{value:i,schema:e.schema}}):n("span",{domProps:{textContent:e._s(i)}})],1)],1)}),0)],1)]:[n("l-form-item",{attrs:{prop:"comparison"}},e._l(e.comparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}})],1):e._e()],1)}),0)],n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],2)},Ese=[],Ise=Qe(kse,Ose,Ese,!1,null,null,null,null);const Ase=Ise.exports,jse={model:{prop:"filter",event:"change"},props:["filter","schema"],data(){return{form:{value:this.filter.value,comparison:this.filter.comparison||"relative_past_gte"}}},watch:{"form.comparison":{handler(t,e){e.indexOf("relative_")===0&&t.indexOf("absolute_")===0?this.form.value=new Date:e.indexOf("absolute_")===0&&t.indexOf("relative_")===0&&(this.form.value=1),this.$nextTick(()=>this.focus())}}},methods:{focus(){this.$refs.valueInput&&this.$refs.valueInput.length>0&&this.$refs.valueInput[0].focus()},validate(t){return this.$refs.form.validate(t)},save(){this.$refs.form.validate(t=>{t&&(ft.set(this.filter,"valid",t),ft.set(this.filter,"value",this.form.value),ft.set(this.filter,"comparison",this.form.comparison),this.$emit("change",this.filter))})},cancel(){this.form.value=this.filter.value,this.form.comparison=this.filter.comparison,this.$emit("cancel")}},computed:{relativePastComparisons(){return[{label:"Há menos de",value:"relative_past_gte"},{label:"Há mais de",value:"relative_past_lt"},{label:"Há exatamente",value:"relative_past_eq"}]},relativeFutureComparisons(){return[{label:"Daqui a mais de",value:"relative_future_gte"},{label:"Daqui a menos de",value:"relative_future_lt"},{label:"Daqui a exatamente",value:"relative_future_eq"}]},absoluteComparisons(){return[{label:"Em",value:"absolute_eq"},{label:"A partir de",value:"absolute_gte"},{label:"Até",value:"absolute_lt"}]},rules(){return{value:[{required:!0,message:`Digite para filtrar ${this.schema.title}`,trigger:"change"}],comparison:[{required:!0,message:`Escolha um modo para filtrar ${this.schema.title}`,trigger:"change"}]}}}};var $se=function(){var e=this,n=e._self._c;return n("l-form",{ref:"form",attrs:{model:e.form,rules:e.rules},nativeOn:{submit:function(i){i.preventDefault()}}},[n("div",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "+e._s(e.schema.title)+" ")],1),n("br"),n("l-form-item",{attrs:{prop:"comparison"}},[n("strong",[e._v("Relativo - Passado")]),e._l(e.relativePastComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number",min:"1",size:"small"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}},[e._v(e._s(e.form.value>1?"dias":"dia"))])],1)]):e._e()],1)}),n("strong",[e._v("Relativo - Futuro")]),e._l(e.relativeFutureComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-input",{ref:"valueInput",refInFor:!0,attrs:{type:"number",min:"1",size:"small"},model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",e._n(s))},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}},[e._v(e._s(e.form.value>1?"dias":"dia"))])],1)]):e._e()],1)}),n("strong",[e._v("Absoluto")]),e._l(e.absoluteComparisons,function(i){return n("div",{key:i.value},[n("l-radio",{attrs:{label:i.value},model:{value:e.form.comparison,callback:function(s){e.$set(e.form,"comparison",s)},expression:"form.comparison"}},[e._v(e._s(i.label))]),e.form.comparison==i.value?n("l-form-item",{staticStyle:{"margin-left":"24px","margin-bottom":"8px"},attrs:{prop:"value"}},[n("div",{staticClass:"row"},[n("l-date-picker",{model:{value:e.form.value,callback:function(s){e.$set(e.form,"value",s)},expression:"form.value"}}),n("div",{staticStyle:{"margin-left":"8px","white-space":"nowrap"}})],1)]):e._e()],1)})],2),n("div",{staticStyle:{"text-align":"right"}},[n("l-button",{attrs:{plain:"",size:"small"},on:{click:e.cancel}},[e._v("Cancelar")]),n("l-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("Buscar")])],1)],1)},Lse=[],zse=Qe(jse,$se,Lse,!1,null,null,null,null);const Pse=zse.exports;function E$(t){const e=[];if(t&&t.format&&e.push(`format:${t.format}`),t&&t.type&&e.push(`type:${t.type}`),e.push("DEFAULT"),e.length===0)throw new Error(`Unprocessable fieldSchema ${t}`);return e}const gv=new Map;function Rse(t,e){if(!t)throw new Error(`Received ${t} fieldSchema, componentType ${e}`);if(t.components&&t.components[e])return t.components[e];const n=E$(t);for(const i of n){const s=gv.get(`${i}:${e}`);if(s)return s}throw new Error(`Component not found for field schema ${JSON.stringify(t)} and component type ${e}`)}function Fse(t,e,n){const s=`${E$(t)[0]}:${e}`;gv.has(s)&&gv.get(s)!==n&&console.warn(`Overwriting component for key ${s}`),gv.set(s,n)}const rr={get:Rse,register:Fse},I$={};I$.install=function(t){t.prototype.$L.FieldTypeComponents=rr};const A$={};A$.register=function(){rr.register({type:"String"},"filterChipEditor",bse),rr.register({type:"Number"},"filterChipEditor",Ase),rr.register({type:"Date"},"filterChipEditor",Pse),rr.register({format:"Amount"},"filterChipEditor",Nse)};const Bse={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{inlineComponent(){try{return this.$L.FieldTypeComponents.get(this.schema,"textOnly")}catch{return null}},comparisonLabel(){return{in:"é",eq:"é",neq:"não é",starts_with:"começa com",ends_with:"termina com",contains:"contém"}[this.filter.comparison]}}};var Use=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v(" "+e._s(e.comparisonLabel)+" "),e.filter.comparison==="in"?e._l(e.filter.value,function(i,s){return n("span",{key:s},[e.inlineComponent?n(e.inlineComponent,{tag:"component",attrs:{value:i,schema:e.schema}}):n("span",{domProps:{textContent:e._s(i)}}),s<e.filter.value.length-1?[s<e.filter.value.length-2?n("span",[e._v(", ")]):n("span",[e._v(" ou ")])]:e._e()],2)}):[e._v('"'+e._s(e.filter.value)+'"')]],2)},Vse=[],Yse=Qe(Bse,Use,Vse,!1,null,null,null,null);const Hse=Yse.exports,Wse={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{formattedValue(){return this.$n(this.filter.value/100,"currency")}}};var Qse=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v("   "),e.filter.comparison=="eq"?n("span",[e._v("=")]):e.filter.comparison=="lt"?n("span",[e._v("<")]):e.filter.comparison=="lte"?n("span",[e._v("<=")]):e.filter.comparison=="gt"?n("span",[e._v(">")]):e.filter.comparison=="gte"?n("span",[e._v(">=")]):e._e(),e._v("   "+e._s(e.formattedValue)+" ")],1)},Gse=[],Kse=Qe(Wse,Qse,Gse,!1,null,null,null,null);const qse=Kse.exports,Xse={model:{prop:"filter",event:"change"},props:["filter","schema"]};var Zse=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v("   "),e.filter.comparison=="eq"?n("span",[e._v("=")]):e.filter.comparison=="neq"?n("span",[e._v("≠")]):e.filter.comparison=="lt"?n("span",[e._v("<")]):e.filter.comparison=="lte"?n("span",[e._v("≤")]):e.filter.comparison=="gt"?n("span",[e._v(">")]):e.filter.comparison=="gte"?n("span",[e._v("≥")]):e._e(),e._v("   "+e._s(e.filter.value)+" ")],1)},Jse=[],eae=Qe(Xse,Zse,Jse,!1,null,null,null,null);const tae=eae.exports;var YS={exports:{}},j$;function $$(){return j$||(j$=1,function(t,e){(function(n,i){t.exports=i()})(Gn,function(){var n=1e3,i=6e4,s=36e5,o="millisecond",u="second",d="minute",f="hour",p="day",v="week",y="month",M="quarter",b="year",x="date",N="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(J){var Z=["th","st","nd","rd"],X=J%100;return"["+J+(Z[(X-20)%10]||Z[X]||Z[0])+"]"}},S=function(J,Z,X){var te=String(J);return!te||te.length>=Z?J:""+Array(Z+1-te.length).join(X)+J},T={s:S,z:function(J){var Z=-J.utcOffset(),X=Math.abs(Z),te=Math.floor(X/60),oe=X%60;return(Z<=0?"+":"-")+S(te,2,"0")+":"+S(oe,2,"0")},m:function J(Z,X){if(Z.date()<X.date())return-J(X,Z);var te=12*(X.year()-Z.year())+(X.month()-Z.month()),oe=Z.clone().add(te,y),be=X-oe<0,xe=Z.clone().add(te+(be?-1:1),y);return+(-(te+(X-oe)/(be?oe-xe:xe-oe))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:y,y:b,w:v,d:p,D:x,h:f,m:d,s:u,ms:o,Q:M}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return J===void 0}},O="en",j={};j[O]=E;var $="$isDayjsObject",R=function(J){return J instanceof G||!(!J||!J[$])},W=function J(Z,X,te){var oe;if(!Z)return O;if(typeof Z=="string"){var be=Z.toLowerCase();j[be]&&(oe=be),X&&(j[be]=X,oe=be);var xe=Z.split("-");if(!oe&&xe.length>1)return J(xe[0])}else{var De=Z.name;j[De]=Z,oe=De}return!te&&oe&&(O=oe),oe||!te&&O},ee=function(J,Z){if(R(J))return J.clone();var X=typeof Z=="object"?Z:{};return X.date=J,X.args=arguments,new G(X)},q=T;q.l=W,q.i=R,q.w=function(J,Z){return ee(J,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var G=function(){function J(X){this.$L=W(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[$]=!0}var Z=J.prototype;return Z.parse=function(X){this.$d=function(te){var oe=te.date,be=te.utc;if(oe===null)return new Date(NaN);if(q.u(oe))return new Date;if(oe instanceof Date)return new Date(oe);if(typeof oe=="string"&&!/Z$/i.test(oe)){var xe=oe.match(w);if(xe){var De=xe[2]-1||0,$e=(xe[7]||"0").substring(0,3);return be?new Date(Date.UTC(xe[1],De,xe[3]||1,xe[4]||0,xe[5]||0,xe[6]||0,$e)):new Date(xe[1],De,xe[3]||1,xe[4]||0,xe[5]||0,xe[6]||0,$e)}}return new Date(oe)}(X),this.init()},Z.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},Z.$utils=function(){return q},Z.isValid=function(){return this.$d.toString()!==N},Z.isSame=function(X,te){var oe=ee(X);return this.startOf(te)<=oe&&oe<=this.endOf(te)},Z.isAfter=function(X,te){return ee(X)<this.startOf(te)},Z.isBefore=function(X,te){return this.endOf(te)<ee(X)},Z.$g=function(X,te,oe){return q.u(X)?this[te]:this.set(oe,X)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(X,te){var oe=this,be=!!q.u(te)||te,xe=q.p(X),De=function(ge,ie){var pe=q.w(oe.$u?Date.UTC(oe.$y,ie,ge):new Date(oe.$y,ie,ge),oe);return be?pe:pe.endOf(p)},$e=function(ge,ie){return q.w(oe.toDate()[ge].apply(oe.toDate("s"),(be?[0,0,0,0]:[23,59,59,999]).slice(ie)),oe)},Ke=this.$W,Ie=this.$M,ve=this.$D,H="set"+(this.$u?"UTC":"");switch(xe){case b:return be?De(1,0):De(31,11);case y:return be?De(1,Ie):De(0,Ie+1);case v:var ue=this.$locale().weekStart||0,me=(Ke<ue?Ke+7:Ke)-ue;return De(be?ve-me:ve+(6-me),Ie);case p:case x:return $e(H+"Hours",0);case f:return $e(H+"Minutes",1);case d:return $e(H+"Seconds",2);case u:return $e(H+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(X){return this.startOf(X,!1)},Z.$set=function(X,te){var oe,be=q.p(X),xe="set"+(this.$u?"UTC":""),De=(oe={},oe[p]=xe+"Date",oe[x]=xe+"Date",oe[y]=xe+"Month",oe[b]=xe+"FullYear",oe[f]=xe+"Hours",oe[d]=xe+"Minutes",oe[u]=xe+"Seconds",oe[o]=xe+"Milliseconds",oe)[be],$e=be===p?this.$D+(te-this.$W):te;if(be===y||be===b){var Ke=this.clone().set(x,1);Ke.$d[De]($e),Ke.init(),this.$d=Ke.set(x,Math.min(this.$D,Ke.daysInMonth())).$d}else De&&this.$d[De]($e);return this.init(),this},Z.set=function(X,te){return this.clone().$set(X,te)},Z.get=function(X){return this[q.p(X)]()},Z.add=function(X,te){var oe,be=this;X=Number(X);var xe=q.p(te),De=function(Ie){var ve=ee(be);return q.w(ve.date(ve.date()+Math.round(Ie*X)),be)};if(xe===y)return this.set(y,this.$M+X);if(xe===b)return this.set(b,this.$y+X);if(xe===p)return De(1);if(xe===v)return De(7);var $e=(oe={},oe[d]=i,oe[f]=s,oe[u]=n,oe)[xe]||1,Ke=this.$d.getTime()+X*$e;return q.w(Ke,this)},Z.subtract=function(X,te){return this.add(-1*X,te)},Z.format=function(X){var te=this,oe=this.$locale();if(!this.isValid())return oe.invalidDate||N;var be=X||"YYYY-MM-DDTHH:mm:ssZ",xe=q.z(this),De=this.$H,$e=this.$m,Ke=this.$M,Ie=oe.weekdays,ve=oe.months,H=oe.meridiem,ue=function(ie,pe,Ee,Re){return ie&&(ie[pe]||ie(te,be))||Ee[pe].slice(0,Re)},me=function(ie){return q.s(De%12||12,ie,"0")},ge=H||function(ie,pe,Ee){var Re=ie<12?"AM":"PM";return Ee?Re.toLowerCase():Re};return be.replace(k,function(ie,pe){return pe||function(Ee){switch(Ee){case"YY":return String(te.$y).slice(-2);case"YYYY":return q.s(te.$y,4,"0");case"M":return Ke+1;case"MM":return q.s(Ke+1,2,"0");case"MMM":return ue(oe.monthsShort,Ke,ve,3);case"MMMM":return ue(ve,Ke);case"D":return te.$D;case"DD":return q.s(te.$D,2,"0");case"d":return String(te.$W);case"dd":return ue(oe.weekdaysMin,te.$W,Ie,2);case"ddd":return ue(oe.weekdaysShort,te.$W,Ie,3);case"dddd":return Ie[te.$W];case"H":return String(De);case"HH":return q.s(De,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ge(De,$e,!0);case"A":return ge(De,$e,!1);case"m":return String($e);case"mm":return q.s($e,2,"0");case"s":return String(te.$s);case"ss":return q.s(te.$s,2,"0");case"SSS":return q.s(te.$ms,3,"0");case"Z":return xe}return null}(ie)||xe.replace(":","")})},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(X,te,oe){var be,xe=this,De=q.p(te),$e=ee(X),Ke=($e.utcOffset()-this.utcOffset())*i,Ie=this-$e,ve=function(){return q.m(xe,$e)};switch(De){case b:be=ve()/12;break;case y:be=ve();break;case M:be=ve()/3;break;case v:be=(Ie-Ke)/6048e5;break;case p:be=(Ie-Ke)/864e5;break;case f:be=Ie/s;break;case d:be=Ie/i;break;case u:be=Ie/n;break;default:be=Ie}return oe?be:q.a(be)},Z.daysInMonth=function(){return this.endOf(y).$D},Z.$locale=function(){return j[this.$L]},Z.locale=function(X,te){if(!X)return this.$L;var oe=this.clone(),be=W(X,te,!0);return be&&(oe.$L=be),oe},Z.clone=function(){return q.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},J}(),Y=G.prototype;return ee.prototype=Y,[["$ms",o],["$s",u],["$m",d],["$H",f],["$W",p],["$M",y],["$y",b],["$D",x]].forEach(function(J){Y[J[1]]=function(Z){return this.$g(Z,J[0],J[1])}}),ee.extend=function(J,Z){return J.$i||(J(Z,G,ee),J.$i=!0),ee},ee.locale=W,ee.isDayjs=R,ee.unix=function(J){return ee(1e3*J)},ee.en=j[O],ee.Ls=j,ee.p={},ee})}(YS)),YS.exports}var nae=$$();const HS=bi(nae),iae={model:{prop:"filter",event:"change"},props:["filter","schema"],computed:{comparisonLabel(){return{relative_past_gte:"há menos de",relative_past_lt:"há mais de",relative_past_eq:"há exatamente",relative_future_gte:"daqui a mais de",relative_future_lt:"daqui a menos de",relative_future_eq:"daqui a exatamente",absolute_eq:"em",absolute_gte:"a partir de",absolute_lt:"até"}[this.filter.comparison]},isRelative(){return this.filter.comparison&&this.filter.comparison.indexOf("relative_")===0},formattedValue(){if(!this.filter.value)return"-";if(this.filter.comparison.indexOf("relative_")===0)return`${this.filter.value} ${this.filter.value>1?"dias":"dia"}`;const t=vn(this.schema,"options.format","LL");return HS(this.filter.value,{locale:"pt-br"}).format(t)}}};var rae=function(){var e=this,n=e._self._c;return n("span",[n("l-icon",[e._v(e._s(e.$L.Icons.get(e.schema)))]),e._v("  "),n("strong",[e._v(e._s(e.schema.title))]),e._v(" "+e._s(e.comparisonLabel)+" "+e._s(e.formattedValue)+" ")],1)},sae=[],aae=Qe(iae,rae,sae,!1,null,null,null,null);const oae=aae.exports,L$={};L$.register=function(){rr.register({type:"String"},"filterChipView",Hse),rr.register({type:"Number"},"filterChipView",tae),rr.register({type:"Date"},"filterChipView",oae),rr.register({format:"Amount"},"filterChipView",qse)};const FEe="";A$.register(),L$.register();const lae={name:"FilterChip",props:["filter","schema"],components:{"el-popover":Nt.Popover},data(){return{editing:!1}},mounted(){(!this.$refs.editor||!this.$refs.view)&&this.remove(),this.$refs.editor.validate(t=>{t||(this.editing=!0)})},methods:{afterEnterPopover(){this.$refs.editor.focus&&this.$refs.editor.focus()},cancel(){this.editing=!1,this.$refs.editor.validate(t=>{t||this.remove()})},change(){this.editing=!1},remove(){this.$emit("onRemove")}},computed:{editorComponent(){return this.$L.FieldTypeComponents.get(this.schema,"filterChipEditor")},viewComponent(){return this.$L.FieldTypeComponents.get(this.schema,"filterChipView")}}};var uae=function(){var e=this,n=e._self._c;return n("el-popover",{staticClass:"filter-chip",attrs:{"popper-class":"filter-chip-popper",placement:"bottom-start",width:"288",trigger:"manual"},on:{"after-enter":e.afterEnterPopover},model:{value:e.editing,callback:function(i){e.editing=i},expression:"editing"}},[n("l-button",{attrs:{slot:"reference",type:"primary",round:"",size:"small"},on:{click:function(i){e.editing=!e.editing}},slot:"reference"},[n(e.viewComponent,{ref:"view",tag:"component",attrs:{schema:e.schema},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}}),n("l-icon",{staticClass:"close-button",on:{click:function(i){return i.stopPropagation(),e.remove.apply(null,arguments)}}},[e._v("uil-times-circle")])],1),n(e.editorComponent,{ref:"editor",tag:"component",attrs:{schema:e.schema},on:{cancel:e.cancel,change:e.change},model:{value:e.filter,callback:function(i){e.filter=i},expression:"filter"}})],1)},cae=[],dae=Qe(lae,uae,cae,!1,null,null,null,null);const fae=dae.exports,BEe="",hae={tagName:"l-search-bar",model:{prop:"value",event:"change"},props:{availableModes:{type:Array,default:()=>["simple"]},value:{type:Object,default:()=>({mode:globalThis.availableModes[0],queryText:"",filters:[]})},schema:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},data(){return{mode:vn(this.value,"mode",this.availableModes[0]),queryText:vn(this.value,"queryText",""),filters:ia(vn(this.value,"filters",[]))}},watch:{value(t){this.mode=vn(t,"mode",this.availableModes[0]),this.queryText=vn(t,"queryText","");const e=vn(t,"filters",[]);Gne(this.filters,e)||(this.filters=ia(e))},queryValue:{deep:!0,handler(t){this.isValid&&this.$emit("change",ia(t))}}},methods:{getFilterSchema(t){const{path:e}=t;return N$(this.schema.fields,{path:e})},addFilter(t){this.filters.push(Object.assign({},t))},removeFilter(t){const e=kre(this.filters,t);this.$delete(this.filters,e)},clear(){switch(this.mode){case"simple":this.queryText="";return;case"advanced":this.filters.splice(0,this.filters.length);return;default:throw new Error(`Unknown mode ${this.mode}`)}}},computed:{queryValue(){return{mode:this.mode,queryText:this.queryText,filters:this.filters}},isValid(){return this.filters.filter(t=>!t.valid).length===0},availableModesOptions(){return[{icon:"uil-search",value:"simple",title:"Filtro simples"},{icon:"uil-filter",value:"advanced",title:"Filtro avançado"}].filter(t=>this.availableModes.includes(t.value))},showClearButton(){switch(this.mode){case"simple":return this.queryText.length>0;case"advanced":return this.filters.length>0;default:throw new Error(`Unknown mode ${this.mode}`)}}},components:{AddFilterButton:pse,FilterChip:fae}};var pae=function(){var e=this,n=e._self._c;return n("div",{class:{disabled:e.disabled}},[n("l-toggle-button-group",{attrs:{disabled:e.disabled,options:e.availableModesOptions},model:{value:e.mode,callback:function(i){e.mode=i},expression:"mode"}}),e.mode=="simple"?[n("l-input",{staticStyle:{flex:"1 1 auto"},attrs:{disabled:e.disabled,size:"large",placeholder:e.disabled?"":"Digite algo para buscar"},model:{value:e.queryText,callback:function(i){e.queryText=i},expression:"queryText"}})]:[n("div",{staticClass:"filters"},[e._l(e.filters,function(i){return n("filter-chip",{key:i.path,ref:"filterChips",refInFor:!0,attrs:{filter:i,schema:e.getFilterSchema(i)},on:{onRemove:function(s){return e.removeFilter(i)}}})}),n("add-filter-button",{attrs:{schema:e.schema,filters:e.filters},on:{addFilter:e.addFilter}})],2)],n("div",{staticClass:"clear-button"},[n("l-button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}],attrs:{type:"text"},on:{click:e.clear}},[n("l-icon",[e._v("uil-times")])],1)],1)],2)},mae=[],gae=Qe(hae,pae,mae,!1,null,null,null,null);const vae=gae.exports,yae=Object.freeze(Object.defineProperty({__proto__:null,default:vae},Symbol.toStringTag,{value:"Module"}));var bae=Ss,_ae=function(){return bae.Date.now()},Mae=_ae,xae=Co,WS=Mae,z$=T$,Cae="Expected a function",Sae=Math.max,Tae=Math.min;function Dae(t,e,n){var i,s,o,u,d,f,p=0,v=!1,y=!1,M=!0;if(typeof t!="function")throw new TypeError(Cae);e=z$(e)||0,xae(n)&&(v=!!n.leading,y="maxWait"in n,o=y?Sae(z$(n.maxWait)||0,e):o,M="trailing"in n?!!n.trailing:M);function b(j){var $=i,R=s;return i=s=void 0,p=j,u=t.apply(R,$),u}function x(j){return p=j,d=setTimeout(k,e),v?b(j):u}function N(j){var $=j-f,R=j-p,W=e-$;return y?Tae(W,o-R):W}function w(j){var $=j-f,R=j-p;return f===void 0||$>=e||$<0||y&&R>=o}function k(){var j=WS();if(w(j))return E(j);d=setTimeout(k,N(j))}function E(j){return d=void 0,M&&i?b(j):(i=s=void 0,u)}function S(){d!==void 0&&clearTimeout(d),p=0,i=f=s=d=void 0}function T(){return d===void 0?u:E(WS())}function O(){var j=WS(),$=w(j);if(i=arguments,s=this,f=j,$){if(d===void 0)return x(f);if(y)return clearTimeout(d),d=setTimeout(k,e),b(f)}return d===void 0&&(d=setTimeout(k,e)),u}return O.cancel=S,O.flush=T,O}var wae=Dae;const Nae=bi(wae);function kae(t){return t!==t}var Oae=kae;function Eae(t,e,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===e)return i;return-1}var Iae=Eae,Aae=_$,jae=Oae,$ae=Iae;function Lae(t,e,n){return e===e?$ae(t,e,n):Aae(t,jae,n)}var zae=Lae,Pae=zae;function Rae(t,e){var n=t==null?0:t.length;return!!n&&Pae(t,e,0)>-1}var P$=Rae;function Fae(t,e,n){for(var i=-1,s=t==null?0:t.length;++i<s;)if(n(e,t[i]))return!0;return!1}var R$=Fae,Bae=$S,Uae=P$,Vae=R$,Yae=Jj,Hae=av,Wae=LS,Qae=200;function Gae(t,e,n,i){var s=-1,o=Uae,u=!0,d=t.length,f=[],p=e.length;if(!d)return f;n&&(e=Yae(e,Hae(n))),i?(o=Vae,u=!1):e.length>=Qae&&(o=Wae,u=!1,e=new Bae(e));e:for(;++s<d;){var v=t[s],y=n==null?v:n(v);if(v=i||v!==0?v:0,u&&y===y){for(var M=p;M--;)if(e[M]===y)continue e;f.push(v)}else o(e,y,i)||f.push(v)}return f}var Kae=Gae,F$=Tc,qae=vS,Xae=Ts,B$=F$?F$.isConcatSpreadable:void 0;function Zae(t){return Xae(t)||qae(t)||!!(B$&&t&&t[B$])}var Jae=Zae,eoe=SS,toe=Jae;function U$(t,e,n,i,s){var o=-1,u=t.length;for(n||(n=toe),s||(s=[]);++o<u;){var d=t[o];e>0&&n(d)?e>1?U$(d,e-1,n,i,s):eoe(s,d):i||(s[s.length]=d)}return s}var V$=U$;function noe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var ioe=noe,roe=ioe,Y$=Math.max;function soe(t,e,n){return e=Y$(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=Y$(i.length-e,0),u=Array(o);++s<o;)u[s]=i[e+s];s=-1;for(var d=Array(e+1);++s<e;)d[s]=i[s];return d[e]=n(u),roe(t,this,d)}}var aoe=soe;function ooe(t){return function(){return t}}var loe=ooe,uoe=loe,H$=oj,coe=BS,doe=H$?function(t,e){return H$(t,"toString",{configurable:!0,enumerable:!1,value:uoe(e),writable:!0})}:coe,foe=doe,hoe=800,poe=16,moe=Date.now;function goe(t){var e=0,n=0;return function(){var i=moe(),s=poe-(i-n);if(n=i,s>0){if(++e>=hoe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var voe=goe,yoe=foe,boe=voe,_oe=boe(yoe),Moe=_oe,xoe=BS,Coe=aoe,Soe=Moe;function Toe(t,e){return Soe(Coe(t,e,xoe),t+"")}var Doe=Toe,woe=oh,Noe=So;function koe(t){return Noe(t)&&woe(t)}var Ooe=koe,Eoe=Kae,Ioe=V$,Aoe=Doe,W$=Ooe,joe=Aoe(function(t,e){return W$(t)?Eoe(t,Ioe(e,1,W$,!0)):[]}),$oe=joe;const Loe=bi($oe);var vv={},yv={};Object.defineProperty(yv,"__esModule",{value:!0}),yv.errorHandler=void 0;function zoe(t){if(!t)return;const e={message:"Um problema aconteceu e foi enviado para análise",type:"error",retryable:!0};return!window.navigator.onLine||t.message==="Network Error"?(e.message="Parece que você está offline.",e.type="info",e):typeof t=="string"?(e.message=t,e.retryable=!1,e):t.response&&t.response.status&&t.response.status>=400&&t.response.status<500?(e.message="Algumas informações não foram atualizadas.",e.retryable=!1,e):(t.response&&t.response.status>=500&&(e.message="Ops, encontramos um erro. Tente novamente mais tarde."),e)}yv.errorHandler=zoe,function(t){var e=Gn&&Gn.__createBinding||(Object.create?function(i,s,o,u){u===void 0&&(u=o),Object.defineProperty(i,u,{enumerable:!0,get:function(){return s[o]}})}:function(i,s,o,u){u===void 0&&(u=o),i[u]=s[o]}),n=Gn&&Gn.__exportStar||function(i,s){for(var o in i)o!=="default"&&!s.hasOwnProperty(o)&&e(s,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(yv,t)}(vv);const UEe="",VEe="",Poe={name:"TopicItem",props:{multipleTargets:{type:Boolean},depth:{type:Number,default:0},propagate:{type:Function},propagateIncludes:{type:Function},parentsTopic:{type:Array,default:()=>[]},isCheckedFunction:{type:Function},populateTopic:{type:Function},hasChildChecked:{type:Function},parentIncludes:{type:Array,default:()=>[]},includesMap:{type:Object},parentChecked:{type:Boolean},topic:{type:Object},disabled:{type:Boolean},checked:{type:Boolean}},data:function(){return{showIncludes:!1,fetchingIncludes:!1,initialFetching:!0,fetched:!1,error:!1,includes:[],includesMapData:{},generator:null,buffer:[],hasMore:!1,limit:30}},created(){this.generator=this.combinedGenerator(),this.includesMapData=this.includesMap},watch:{async showIncludes(t){t===!0&&this.fetched===!1&&(this.fetched=!0,await this.fetch(),this.initialFetching=!1)}},computed:{includesNoData(){return{group:"Esta turma ainda não tem alunos",tag:"Esta tag ainda não tem turmas"}[this.topic.kind]},isUserKind(){return this.topic.kind==="user"},chanShowCheckbox(){return this.multipleTargets||this.isUserKind&&!this.multipleTargets}},methods:{async*fetchToGenerator(t,e=null){const n={id:this.topic.id,kind:t,limit:this.limit+1,page:0};e&&(n.groupContext=e);let{hits:i,total:s}=await this.populateTopic(n);for(;s>0;){if(i.length>0){yield i.shift(),s--;continue}n.page+=1,i=(await this.populateTopic(n)).hits}},async*combinedGenerator(){this.topic.kind==="group"?(yield*this.fetchToGenerator("group","member"),yield*this.fetchToGenerator("group","user")):this.topic.kind==="member"?yield*this.fetchToGenerator("member","user"):yield*this.fetchToGenerator("tag")},async fetchPage(){const t=this.limit;for(;this.buffer.length<t+1;){let e=await this.generator.next();if(e.value){this.buffer.push(e.value);continue}break}return{results:this.buffer.splice(0,t),hasMore:this.buffer.length>0}},async fetch(){const t=ia(this.includes);this.fetchingIncludes=!0;try{const{results:e,hasMore:n}=await this.fetchPage();this.includes=[...t,...e],this.includesMapData={...this.includesMapData,[this.topic.id]:this.includes},this.$emit("includes",{topic:this.topic,includes:this.includes}),this.hasMore=n}catch(e){this.error=e,this.$notify({...vv.errorHandler("Erro ao carregar mais."),duration:1e4,position:"bottom",showClose:!0})}finally{this.fetchingIncludes=!1}},color(t){return this.disabled?"gray-50":{member:"purple",group:"aqua",user:"link",tag:"warning"}[t]||"lead"},icon(t){return{member:"uil-graduation-cap",group:"uil-users-alt",user:"uil-user",tag:"uil-tag-alt"}[t]},isChildChecked(t){return this.isCheckedFunction(t)||this.isCheckedFunction(this.topic)},expandableKind(){return["group","tag","member"].includes(this.topic.kind)},toggleShowIncludes(){this.expandableKind&&(this.showIncludes=!this.showIncludes)},updateSelectedTopics(t,e){this.$emit("input",{topic:t,value:e})},topicIncludedChanged(t,e){this.parentsTopic.some(this.isCheckedFunction)&&!e&&this.parentsTopic.filter(this.isCheckedFunction).forEach(i=>{var s;this.updateSelectedTopics(i,!1),(s=this.includesMap[i.id])==null||s.forEach(o=>{this.hasChildChecked(o)||this.updateSelectedTopics(o,!0)})}),this.updateSelectedTopics(t,e)}}};var Roe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"topic-item-group"},[n("div",{class:"topic-item-group-header depth-"+e.depth+" l-d-flex l-align-items-center pl-3"+(e.isUserKind&&e.depth>0?" user-topic-item-group-header":"")},[n("div",{staticClass:"l-flex l-d-flex l-align-items-center",on:{click:function(i){i.stopPropagation(),e.isUserKind||e.toggleShowIncludes()}}},[e.isUserKind?e._e():n("div",{staticClass:"topic-chevron mr-2"},[n("l-icon",{staticClass:"gray-60--text",attrs:{size:"24"}},[e._v(" "+e._s(e.showIncludes?"uil-angle-down":"uil-angle-right")+" ")])],1),n("div",{staticClass:"topic-icon"},[n("div",{staticClass:"bg-icon",class:e.color(e.topic.kind)}),n("l-icon",{class:e.color(e.topic.kind)+"--text"},[e._v(" "+e._s(e.icon(e.topic.kind))+" ")])],1),n("div",{staticClass:"l-flex ml-2 mr-3 l-text-regular ellipsis-2",class:e.disabled?"gray-70--text":"lead-light--text"},[e._v(" "+e._s(e.topic.name)+" ")])]),n("l-checkbox",{key:e.isCheckedFunction(e.topic),staticClass:"p-3",class:{"circular-checkbox":!e.multipleTargets},style:{display:e.chanShowCheckbox?"block":"none"},attrs:{disabled:e.disabled,checked:e.isCheckedFunction(e.topic),indeterminate:e.hasChildChecked(e.topic)&&!e.isCheckedFunction(e.topic)},on:{change:function(i){e.parentsTopic.length?e.topicIncludedChanged(e.topic,i):e.updateSelectedTopics(e.topic,i)}}})],1),n("hr"),n("l-transition-expand",[e.showIncludes?n("div",[e.initialFetching?[n("div",{staticClass:"l-d-flex l-align-items-center my-2",staticStyle:{"justify-content":"center",width:"100%",height:"40px"}},[n("l-circular-loader",{attrs:{width:40,height:40}})],1),n("hr")]:n("div",[!e.includes.length&&!e.hasMore||e.error?[n("div",{staticClass:"no-data-includes l-text-regular gray-60--text"},[e._v(" "+e._s(e.includesNoData)+" ")]),n("hr")]:n("div",[e._l(e.includes,function(i){return n("TopicItem",{key:i.id,attrs:{propagateIncludes:e.propagateIncludes,hasChildChecked:e.hasChildChecked,isCheckedFunction:e.isChildChecked,checked:e.isChildChecked(i),depth:e.depth+1,topic:i,parentsTopic:[...e.parentsTopic,e.topic],parentIncludes:e.includes,includesMap:e.includesMapData,parentChecked:e.checked,populateTopic:e.populateTopic,propagate:e.propagate,disabled:e.disabled,multipleTargets:e.multipleTargets},on:{input:function(s){return e.propagate(s)},includes:function(s){return e.propagateIncludes(s)}}})}),e.hasMore?n("div",{staticClass:"mx-3 my-3"},[n("l-button",{attrs:{loading:e.fetchingIncludes,plain:"",fill:""},nativeOn:{click:function(i){return e.fetch()}}},[e._v(" Carregar mais ")])],1):e._e()],2)],2)],2):e._e()])],1)},Foe=[],Boe=Qe(Poe,Roe,Foe,!1,null,"982c1ee8",null,null);const Uoe=Boe.exports,YEe="",Voe={props:{term:{type:String}}};var Yoe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-d-flex l-align-items-center lead--text recent-topic"},[n("l-icon",{attrs:{size:"16"}},[e._v("uil-history")]),n("div",{staticClass:"l-flex l-text-regular mx-2"},[e._v(e._s(e.term))]),n("l-button",{staticClass:"border-none lead--text f-18 p-1",attrs:{circle:"",icon:"uil-multiply"},on:{click:function(i){return i.stopPropagation(),e.$emit("remove")}}})],1)},Hoe=[],Woe=Qe(Voe,Yoe,Hoe,!1,null,"9a0d87e2",null,null);const Qoe=Woe.exports,HEe="",Goe={props:{query:{type:Object},typing:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},hasAnySelectedTopic:{type:Boolean,default:!1},kinds:{type:Array}},computed:{filteredKinds:function(){return this.kinds.filter(t=>this.query.q||!(t.value==="member"||t.value==="user"))},queryKind:{get:function(){return this.query.kind},set:function(t){this.$emit("input",{q:this.query.q,kind:t,page:0})}}},methods:{clearInput:function(){this.$emit("input",{q:null,kind:"*",page:0})},isSelected:function(t){return vn(this.query,"kind",null)===t},updateQuery:function(t){const e=vn(t,"target.value",null);this.$emit("input",{q:e,kind:"*",page:0})},setInputClass:function(t){return"search-input-wrapper ml-2 l-flex"+" "+t},back:function(){this.$emit("close")},save:function(){this.$emit("save")}}};var Koe=function(){var e=this,n=e._self._c;return n("div",{staticClass:"app-navigation"},[n("div",{staticClass:"search-topics-header l-d-flex l-align-items-center pl-2 pr-3"},[n("l-button",{staticClass:"border-none gray-70--text f-24 p-1",attrs:{circle:"",icon:"uil-arrow-left"},on:{click:function(i){return e.back()}}}),n("div",{class:e.setInputClass("blurred")},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.query.q,expression:"query.q"}],staticStyle:{width:"100%"},attrs:{autocomplete:"off",placeholder:"Pesquisar"},domProps:{value:e.query.q},on:{focus:function(i){return e.setInputClass("focused")},blur:function(i){return e.setInputClass("blurred")},keypress:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:i.target.blur()},input:[function(i){i.target.composing||e.$set(e.query,"q",i.target.value)},function(i){return e.updateQuery(i)}]}}),e.query.q?n("l-icon",{staticClass:"lead-light--text cursor-pointer",attrs:{size:"16"},on:{click:function(i){return e.clearInput()}}},[e._v(" uil-times ")]):e._e()],1),n("l-button",{staticClass:"save-button bold l-d-flex l-align-items-center f-14 ml-2",attrs:{disabled:!e.hasAnySelectedTopic,loading:e.loading||e.typing,type:"primary"},on:{click:function(i){return e.save()}}},[e._v(" Salvar ")])],1),e.query.q||e.query.kind!=="*"?n("div",{staticClass:"filter-kind l-d-flex px-3 pb-2"},[n("l-radio-group",{staticClass:"l-flex-nowrap",attrs:{size:"small",separated:"",color:"lead-light"},model:{value:e.queryKind,callback:function(i){e.queryKind=i},expression:"queryKind"}},e._l(e.filteredKinds,function(i){return n("l-radio-button",{key:i.value,attrs:{label:i.value}},[i.icon?n("l-icon",{attrs:{color:e.isSelected(i.value)?"white":"lead-light",size:"13"}},[e._v(" "+e._s(i.icon)+" ")]):e._e(),e._v(" "+e._s(i.name)+" ")],1)}),1)],1):e._e(),e.loading||e.typing?n("l-linear-progress"):e._e()],1)},qoe=[],Xoe=Qe(Goe,Koe,qoe,!1,null,"d969ed02",null,null);const Zoe=Xoe.exports;var Q$={exports:{}};(function(t){t.exports=function(e){var n={};function i(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=n,i.d=function(s,o,u){i.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:u})},i.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},i.t=function(s,o){if(o&1&&(s=i(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var d in s)i.d(u,d,(function(f){return s[f]}).bind(null,d));return u},i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,"a",o),o},i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},i.p="",i(i.s="fb15")}({"00ee":function(e,n,i){var s=i("b622"),o=s("toStringTag"),u={};u[o]="z",e.exports=String(u)==="[object z]"},"0366":function(e,n,i){var s=i("1c0b");e.exports=function(o,u,d){if(s(o),u===void 0)return o;switch(d){case 0:return function(){return o.call(u)};case 1:return function(f){return o.call(u,f)};case 2:return function(f,p){return o.call(u,f,p)};case 3:return function(f,p,v){return o.call(u,f,p,v)}}return function(){return o.apply(u,arguments)}}},"057f":function(e,n,i){var s=i("fc6a"),o=i("241c").f,u={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(p){try{return o(p)}catch{return d.slice()}};e.exports.f=function(v){return d&&u.call(v)=="[object Window]"?f(v):o(s(v))}},"06cf":function(e,n,i){var s=i("83ab"),o=i("d1e7"),u=i("5c6c"),d=i("fc6a"),f=i("c04e"),p=i("5135"),v=i("0cfb"),y=Object.getOwnPropertyDescriptor;n.f=s?y:function(b,x){if(b=d(b),x=f(x,!0),v)try{return y(b,x)}catch{}if(p(b,x))return u(!o.f.call(b,x),b[x])}},"0cfb":function(e,n,i){var s=i("83ab"),o=i("d039"),u=i("cc12");e.exports=!s&&!o(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"19aa":function(e,n){e.exports=function(i,s,o){if(!(i instanceof s))throw TypeError("Incorrect "+(o?o+" ":"")+"invocation");return i}},"1be4":function(e,n,i){var s=i("d066");e.exports=s("document","documentElement")},"1c0b":function(e,n){e.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(e,n,i){var s=i("b622"),o=s("iterator"),u=!1;try{var d=0,f={next:function(){return{done:!!d++}},return:function(){u=!0}};f[o]=function(){return this},Array.from(f,function(){throw 2})}catch{}e.exports=function(p,v){if(!v&&!u)return!1;var y=!1;try{var M={};M[o]=function(){return{next:function(){return{done:y=!0}}}},p(M)}catch{}return y}},"1cdc":function(e,n,i){var s=i("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},"1d80":function(e,n){e.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(e,n,i){var s=i("d039"),o=i("b622"),u=i("2d00"),d=o("species");e.exports=function(f){return u>=51||!s(function(){var p=[],v=p.constructor={};return v[d]=function(){return{foo:1}},p[f](Boolean).foo!==1})}},"1eb2":function(e,n,i){if(typeof window<"u"){var s=window.document.currentScript;{var o=i("8875");s=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(i.p=u[1])}},2262:function(e,n,i){i.d(n,"a",function(){return s}),i.d(n,"b",function(){return o});var s=function(){var u=this,d=u.$createElement,f=u._self._c||d;return f("section",{style:{"--depth":u.depth},attrs:{layout:"drawer"}},[u._t("default")],2)},o=[]},2266:function(e,n,i){var s=i("825a"),o=i("e95a"),u=i("50c4"),d=i("0366"),f=i("35a1"),p=i("9bdd"),v=function(M,b){this.stopped=M,this.result=b},y=e.exports=function(M,b,x,N,w){var k=d(b,x,N?2:1),E,S,T,O,j,$,R;if(w)E=M;else{if(S=f(M),typeof S!="function")throw TypeError("Target is not iterable");if(o(S)){for(T=0,O=u(M.length);O>T;T++)if(j=N?k(s(R=M[T])[0],R[1]):k(M[T]),j&&j instanceof v)return j;return new v(!1)}E=S.call(M)}for($=E.next;!(R=$.call(E)).done;)if(j=p(E,k,R.value,N),typeof j=="object"&&j&&j instanceof v)return j;return new v(!1)};y.stop=function(M){return new v(!0,M)}},"23cb":function(e,n,i){var s=i("a691"),o=Math.max,u=Math.min;e.exports=function(d,f){var p=s(d);return p<0?o(p+f,0):u(p,f)}},"23e7":function(e,n,i){var s=i("da84"),o=i("06cf").f,u=i("9112"),d=i("6eeb"),f=i("ce4e"),p=i("e893"),v=i("94ca");e.exports=function(y,M){var b=y.target,x=y.global,N=y.stat,w,k,E,S,T,O;if(x?k=s:N?k=s[b]||f(b,{}):k=(s[b]||{}).prototype,k)for(E in M){if(T=M[E],y.noTargetGet?(O=o(k,E),S=O&&O.value):S=k[E],w=v(x?E:b+(N?".":"#")+E,y.forced),!w&&S!==void 0){if(typeof T==typeof S)continue;p(T,S)}(y.sham||S&&S.sham)&&u(T,"sham",!0),d(k,E,T,y)}}},"241c":function(e,n,i){var s=i("ca84"),o=i("7839"),u=o.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},2626:function(e,n,i){var s=i("d066"),o=i("9bf2"),u=i("b622"),d=i("83ab"),f=u("species");e.exports=function(p){var v=s(p),y=o.f;d&&v&&!v[f]&&y(v,f,{configurable:!0,get:function(){return this}})}},2768:function(e,n,i){},2877:function(e,n,i){i.d(n,"a",function(){return s});function s(o,u,d,f,p,v,y,M){var b=typeof o=="function"?o.options:o;u&&(b.render=u,b.staticRenderFns=d,b._compiled=!0),f&&(b.functional=!0),v&&(b._scopeId="data-v-"+v);var x;if(y?(x=function(k){k=k||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!k&&typeof __VUE_SSR_CONTEXT__<"u"&&(k=__VUE_SSR_CONTEXT__),p&&p.call(this,k),k&&k._registeredComponents&&k._registeredComponents.add(y)},b._ssrRegister=x):p&&(x=M?function(){p.call(this,(b.functional?this.parent:this).$root.$options.shadowRoot)}:p),x)if(b.functional){b._injectStyles=x;var N=b.render;b.render=function(E,S){return x.call(S),N(E,S)}}else{var w=b.beforeCreate;b.beforeCreate=w?[].concat(w,x):[x]}return{exports:o,options:b}}},"2aea":function(e,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=i("60a3"),u=function(d){s.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(f.prototype,"classes",{get:function(){return{center:!0}},enumerable:!0,configurable:!0}),s.__decorate([o.Prop()],f.prototype,"stack",void 0),s.__decorate([o.Prop()],f.prototype,"index",void 0),s.__decorate([o.Prop()],f.prototype,"modal",void 0),s.__decorate([o.Prop()],f.prototype,"showClose",void 0),f=s.__decorate([o.Component],f),f}(o.Vue);n.default=u,o.Vue.component("dialog",u)},"2cf4":function(e,n,i){var s=i("da84"),o=i("d039"),u=i("c6b6"),d=i("0366"),f=i("1be4"),p=i("cc12"),v=i("1cdc"),y=s.location,M=s.setImmediate,b=s.clearImmediate,x=s.process,N=s.MessageChannel,w=s.Dispatch,k=0,E={},S="onreadystatechange",T,O,j,$=function(q){if(E.hasOwnProperty(q)){var G=E[q];delete E[q],G()}},R=function(q){return function(){$(q)}},W=function(q){$(q.data)},ee=function(q){s.postMessage(q+"",y.protocol+"//"+y.host)};(!M||!b)&&(M=function(G){for(var Y=[],J=1;arguments.length>J;)Y.push(arguments[J++]);return E[++k]=function(){(typeof G=="function"?G:Function(G)).apply(void 0,Y)},T(k),k},b=function(G){delete E[G]},u(x)=="process"?T=function(q){x.nextTick(R(q))}:w&&w.now?T=function(q){w.now(R(q))}:N&&!v?(O=new N,j=O.port2,O.port1.onmessage=W,T=d(j.postMessage,j,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!o(ee)&&y.protocol!=="file:"?(T=ee,s.addEventListener("message",W,!1)):S in p("script")?T=function(q){f.appendChild(p("script"))[S]=function(){f.removeChild(this),$(q)}}:T=function(q){setTimeout(R(q),0)}),e.exports={set:M,clear:b}},"2d00":function(e,n,i){var s=i("da84"),o=i("342f"),u=s.process,d=u&&u.versions,f=d&&d.v8,p,v;f?(p=f.split("."),v=p[0]+p[1]):o&&(p=o.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=o.match(/Chrome\/(\d+)/),p&&(v=p[1]))),e.exports=v&&+v},"2f83":function(e,n,i){var s=i("2768"),o=i.n(s);o.a},"30d7":function(e,n,i){i.r(n);var s=i("2aea"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},"342f":function(e,n,i){var s=i("d066");e.exports=s("navigator","userAgent")||""},"35a1":function(e,n,i){var s=i("f5df"),o=i("3f8c"),u=i("b622"),d=u("iterator");e.exports=function(f){if(f!=null)return f[d]||f["@@iterator"]||o[s(f)]}},"37e8":function(e,n,i){var s=i("83ab"),o=i("9bf2"),u=i("825a"),d=i("df75");e.exports=s?Object.defineProperties:function(p,v){u(p);for(var y=d(v),M=y.length,b=0,x;M>b;)o.f(p,x=y[b++],v[x]);return p}},"3bbe":function(e,n,i){var s=i("861d");e.exports=function(o){if(!s(o)&&o!==null)throw TypeError("Can't set "+String(o)+" as a prototype");return o}},"3ca3":function(e,n,i){var s=i("6547").charAt,o=i("69f3"),u=i("7dd0"),d="String Iterator",f=o.set,p=o.getterFor(d);u(String,"String",function(v){f(this,{type:d,string:String(v),index:0})},function(){var y=p(this),M=y.string,b=y.index,x;return b>=M.length?{value:void 0,done:!0}:(x=s(M,b),y.index+=x.length,{value:x,done:!1})})},"3f8c":function(e,n){e.exports={}},"428f":function(e,n,i){var s=i("da84");e.exports=s},"44ad":function(e,n,i){var s=i("d039"),o=i("c6b6"),u="".split;e.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return o(d)=="String"?u.call(d,""):Object(d)}:Object},"44d2":function(e,n,i){var s=i("b622"),o=i("7c73"),u=i("9bf2"),d=s("unscopables"),f=Array.prototype;f[d]==null&&u.f(f,d,{configurable:!0,value:o(null)}),e.exports=function(p){f[d][p]=!0}},"44de":function(e,n,i){var s=i("da84");e.exports=function(o,u){var d=s.console;d&&d.error&&(arguments.length===1?d.error(o):d.error(o,u))}},"47e2":function(e,n,i){i("a4d3"),i("e01a"),i("e260"),i("4ec9"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=s.__importDefault(i("68fa")),u=i("60a3"),d=Symbol.for("GlobalStack"),f=function(){function p(){}return p.createStackInstance=function(v){console.warn('[VueModals] No ModalStack was found for name "'+v+'". Using Modals without a stack instance causes one to be created as default at the end of the document body.');var y=document.createElement("aside");return document.body.insertAdjacentElement("beforeend",y),new u.Vue({render:function(b){return b(o.default)},props:{name:v}}).$mount(y),this.globalStackInstances.get(v)},p.stack=function(v){if(v===void 0&&(v="default"),v==="default"&&!this.globalStackInstances.has("default"))return this.createStackInstance("default");if(this.globalStackInstances.has(v))return this.globalStackInstances.get(v);throw new Error('[VueModals] No stack instance found for name "'+(v??"default")+'". Create a ModalStack instance with this name to use it')},p.open=function(v){this.stack(v.stack).push(v)},p.registerLayout=function(v,y){u.Vue.component(v,y)},p.registerStack=function(v,y){console.warn("register",v,y),this.globalStackInstances.has(v)?console.warn('[VueModals] Multiple instances of ModalStack must have unique names. Duplicate name found for ModalStack "'+v+'".'):this.globalStackInstances.set(v,y)},p.unregisterStack=function(v,y){console.warn("unregister",v,y),this.globalStackInstances.get(v)===y?this.globalStackInstances.delete(v):console.warn('[VueModals] Could not unregister ModalStack because a duplicate name was found "'+v+'".')},p.globalStackInstances=window[d]||(window[d]=new Map),p}();n.default=f,window.Modals=f},4840:function(e,n,i){var s=i("825a"),o=i("1c0b"),u=i("b622"),d=u("species");e.exports=function(f,p){var v=s(f).constructor,y;return v===void 0||(y=s(v)[d])==null?p:o(y)}},4930:function(e,n,i){var s=i("d039");e.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(e,n,i){var s=i("fc6a"),o=i("50c4"),u=i("23cb"),d=function(f){return function(p,v,y){var M=s(p),b=o(M.length),x=u(y,b),N;if(f&&v!=v){for(;b>x;)if(N=M[x++],N!=N)return!0}else for(;b>x;x++)if((f||x in M)&&M[x]===v)return f||x||0;return!f&&-1}};e.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(e,n,i){var s=i("23e7"),o=i("b727").filter,u=i("1dde"),d=i("ae40"),f=u("filter"),p=d("filter");s({target:"Array",proto:!0,forced:!f||!p},{filter:function(y){return o(this,y,arguments.length>1?arguments[1]:void 0)}})},"4e8a":function(e,n,i){var s=i("783d"),o=i.n(s);o.a},"4ec9":function(e,n,i){var s=i("6d61"),o=i("6566");e.exports=s("Map",function(u){return function(){return u(this,arguments.length?arguments[0]:void 0)}},o)},"50c4":function(e,n,i){var s=i("a691"),o=Math.min;e.exports=function(u){return u>0?o(s(u),9007199254740991):0}},5135:function(e,n){var i={}.hasOwnProperty;e.exports=function(s,o){return i.call(s,o)}},"566d":function(e,n,i){i.r(n);var s=i("a28d"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},5692:function(e,n,i){var s=i("c430"),o=i("c6cd");(e.exports=function(u,d){return o[u]||(o[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,n,i){var s=i("d066"),o=i("241c"),u=i("7418"),d=i("825a");e.exports=s("Reflect","ownKeys")||function(p){var v=o.f(d(p)),y=u.f;return y?v.concat(y(p)):v}},"5c6c":function(e,n){e.exports=function(i,s){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:s}}},"60a3":function(e,n,i){i.r(n),i.d(n,"Component",function(){return ee}),i.d(n,"Vue",function(){return o.a}),i.d(n,"Mixins",function(){return E}),i.d(n,"Inject",function(){return G}),i.d(n,"InjectReactive",function(){return Y}),i.d(n,"Provide",function(){return te}),i.d(n,"ProvideReactive",function(){return oe}),i.d(n,"Model",function(){return De}),i.d(n,"Prop",function(){return $e}),i.d(n,"PropSync",function(){return Ke}),i.d(n,"Watch",function(){return Ie}),i.d(n,"Emit",function(){return ue}),i.d(n,"Ref",function(){return me});var s=i("8bbf"),o=i.n(s);/**
140
140
  * vue-class-component v7.2.6
141
141
  * (c) 2015-present Evan You
142
142
  * @license MIT
@@ -153,13 +153,13 @@ function print() { __p += __j.call(arguments, '') }
153
153
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
154
154
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
155
155
  PERFORMANCE OF THIS SOFTWARE.
156
- ***************************************************************************** */var s=function(G,Y){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Z){J.__proto__=Z}||function(J,Z){for(var X in Z)Z.hasOwnProperty(X)&&(J[X]=Z[X])},s(G,Y)};function o(G,Y){s(G,Y);function J(){this.constructor=G}G.prototype=Y===null?Object.create(Y):(J.prototype=Y.prototype,new J)}var u=function(){return u=Object.assign||function(Y){for(var J,Z=1,X=arguments.length;Z<X;Z++){J=arguments[Z];for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&(Y[te]=J[te])}return Y},u.apply(this,arguments)};function d(G,Y){var J={};for(var Z in G)Object.prototype.hasOwnProperty.call(G,Z)&&Y.indexOf(Z)<0&&(J[Z]=G[Z]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,Z=Object.getOwnPropertySymbols(G);X<Z.length;X++)Y.indexOf(Z[X])<0&&Object.prototype.propertyIsEnumerable.call(G,Z[X])&&(J[Z[X]]=G[Z[X]]);return J}function f(G,Y,J,Z){var X=arguments.length,te=X<3?Y:Z===null?Z=Object.getOwnPropertyDescriptor(Y,J):Z,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(G,Y,J,Z);else for(var be=G.length-1;be>=0;be--)(oe=G[be])&&(te=(X<3?oe(te):X>3?oe(Y,J,te):oe(Y,J))||te);return X>3&&te&&Object.defineProperty(Y,J,te),te}function p(G,Y){return function(J,Z){Y(J,Z,G)}}function v(G,Y){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(G,Y)}function y(G,Y,J,Z){function X(te){return te instanceof J?te:new J(function(oe){oe(te)})}return new(J||(J=Promise))(function(te,oe){function be($e){try{De(Z.next($e))}catch(Ke){oe(Ke)}}function xe($e){try{De(Z.throw($e))}catch(Ke){oe(Ke)}}function De($e){$e.done?te($e.value):X($e.value).then(be,xe)}De((Z=Z.apply(G,Y||[])).next())})}function M(G,Y){var J={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},Z,X,te,oe;return oe={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function be(De){return function($e){return xe([De,$e])}}function xe(De){if(Z)throw new TypeError("Generator is already executing.");for(;J;)try{if(Z=1,X&&(te=De[0]&2?X.return:De[0]?X.throw||((te=X.return)&&te.call(X),0):X.next)&&!(te=te.call(X,De[1])).done)return te;switch(X=0,te&&(De=[De[0]&2,te.value]),De[0]){case 0:case 1:te=De;break;case 4:return J.label++,{value:De[1],done:!1};case 5:J.label++,X=De[1],De=[0];continue;case 7:De=J.ops.pop(),J.trys.pop();continue;default:if(te=J.trys,!(te=te.length>0&&te[te.length-1])&&(De[0]===6||De[0]===2)){J=0;continue}if(De[0]===3&&(!te||De[1]>te[0]&&De[1]<te[3])){J.label=De[1];break}if(De[0]===6&&J.label<te[1]){J.label=te[1],te=De;break}if(te&&J.label<te[2]){J.label=te[2],J.ops.push(De);break}te[2]&&J.ops.pop(),J.trys.pop();continue}De=Y.call(G,J)}catch($e){De=[6,$e],X=0}finally{Z=te=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}}function b(G,Y,J,Z){Z===void 0&&(Z=J),G[Z]=Y[J]}function x(G,Y){for(var J in G)J!=="default"&&!Y.hasOwnProperty(J)&&(Y[J]=G[J])}function N(G){var Y=typeof Symbol=="function"&&Symbol.iterator,J=Y&&G[Y],Z=0;if(J)return J.call(G);if(G&&typeof G.length=="number")return{next:function(){return G&&Z>=G.length&&(G=void 0),{value:G&&G[Z++],done:!G}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(G,Y){var J=typeof Symbol=="function"&&G[Symbol.iterator];if(!J)return G;var Z=J.call(G),X,te=[],oe;try{for(;(Y===void 0||Y-- >0)&&!(X=Z.next()).done;)te.push(X.value)}catch(be){oe={error:be}}finally{try{X&&!X.done&&(J=Z.return)&&J.call(Z)}finally{if(oe)throw oe.error}}return te}function k(){for(var G=[],Y=0;Y<arguments.length;Y++)G=G.concat(w(arguments[Y]));return G}function E(){for(var G=0,Y=0,J=arguments.length;Y<J;Y++)G+=arguments[Y].length;for(var Z=Array(G),X=0,Y=0;Y<J;Y++)for(var te=arguments[Y],oe=0,be=te.length;oe<be;oe++,X++)Z[X]=te[oe];return Z}function S(G){return this instanceof S?(this.v=G,this):new S(G)}function T(G,Y,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z=J.apply(G,Y||[]),X,te=[];return X={},oe("next"),oe("throw"),oe("return"),X[Symbol.asyncIterator]=function(){return this},X;function oe(Ie){Z[Ie]&&(X[Ie]=function(ve){return new Promise(function(H,ue){te.push([Ie,ve,H,ue])>1||be(Ie,ve)})})}function be(Ie,ve){try{xe(Z[Ie](ve))}catch(H){Ke(te[0][3],H)}}function xe(Ie){Ie.value instanceof S?Promise.resolve(Ie.value.v).then(De,$e):Ke(te[0][2],Ie)}function De(Ie){be("next",Ie)}function $e(Ie){be("throw",Ie)}function Ke(Ie,ve){Ie(ve),te.shift(),te.length&&be(te[0][0],te[0][1])}}function O(G){var Y,J;return Y={},Z("next"),Z("throw",function(X){throw X}),Z("return"),Y[Symbol.iterator]=function(){return this},Y;function Z(X,te){Y[X]=G[X]?function(oe){return(J=!J)?{value:S(G[X](oe)),done:X==="return"}:te?te(oe):oe}:te}}function j(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y=G[Symbol.asyncIterator],J;return Y?Y.call(G):(G=typeof N=="function"?N(G):G[Symbol.iterator](),J={},Z("next"),Z("throw"),Z("return"),J[Symbol.asyncIterator]=function(){return this},J);function Z(te){J[te]=G[te]&&function(oe){return new Promise(function(be,xe){oe=G[te](oe),X(be,xe,oe.done,oe.value)})}}function X(te,oe,be,xe){Promise.resolve(xe).then(function(De){te({value:De,done:be})},oe)}}function $(G,Y){return Object.defineProperty?Object.defineProperty(G,"raw",{value:Y}):G.raw=Y,G}function R(G){if(G&&G.__esModule)return G;var Y={};if(G!=null)for(var J in G)Object.hasOwnProperty.call(G,J)&&(Y[J]=G[J]);return Y.default=G,Y}function W(G){return G&&G.__esModule?G:{default:G}}function ee(G,Y){if(!Y.has(G))throw new TypeError("attempted to get private field on non-instance");return Y.get(G)}function q(G,Y,J){if(!Y.has(G))throw new TypeError("attempted to set private field on non-instance");return Y.set(G,J),J}},"9bdd":function(e,n,i){var s=i("825a");e.exports=function(o,u,d,f){try{return f?u(s(d)[0],d[1]):u(d)}catch(v){var p=o.return;throw p!==void 0&&s(p.call(o)),v}}},"9bf2":function(e,n,i){var s=i("83ab"),o=i("0cfb"),u=i("825a"),d=i("c04e"),f=Object.defineProperty;n.f=s?f:function(v,y,M){if(u(v),y=d(y,!0),u(M),o)try{return f(v,y,M)}catch{}if("get"in M||"set"in M)throw TypeError("Accessors not supported");return"value"in M&&(v[y]=M.value),v}},"9ed3":function(e,n,i){var s=i("ae93").IteratorPrototype,o=i("7c73"),u=i("5c6c"),d=i("d44e"),f=i("3f8c"),p=function(){return this};e.exports=function(v,y,M){var b=y+" Iterator";return v.prototype=o(s,{next:u(1,M)}),d(v,b,!1,!0),f[b]=p,v}},a28d:function(e,n,i){i("4de4"),i("c740"),Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=i("60a3"),u=function(d){s.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(f.prototype,"depth",{get:function(){var v=this,y=this.stack.filter(function(b){return b.options.layout==="drawer"}),M=y.findIndex(function(b){return b===v.modal});return y.length-M-1},enumerable:!0,configurable:!0}),s.__decorate([o.Prop()],f.prototype,"stack",void 0),s.__decorate([o.Prop()],f.prototype,"index",void 0),s.__decorate([o.Prop()],f.prototype,"modal",void 0),f=s.__decorate([o.Component],f),f}(o.Vue);n.default=u,o.Vue.component("drawer",u)},a434:function(e,n,i){var s=i("23e7"),o=i("23cb"),u=i("a691"),d=i("50c4"),f=i("7b0b"),p=i("65f0"),v=i("8418"),y=i("1dde"),M=i("ae40"),b=y("splice"),x=M("splice",{ACCESSORS:!0,0:0,1:2}),N=Math.max,w=Math.min,k=9007199254740991,E="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!b||!x},{splice:function(T,O){var j=f(this),$=d(j.length),R=o(T,$),W=arguments.length,ee,q,G,Y,J,Z;if(W===0?ee=q=0:W===1?(ee=0,q=$-R):(ee=W-2,q=w(N(u(O),0),$-R)),$+ee-q>k)throw TypeError(E);for(G=p(j,q),Y=0;Y<q;Y++)J=R+Y,J in j&&v(G,Y,j[J]);if(G.length=q,ee<q){for(Y=R;Y<$-q;Y++)J=Y+q,Z=Y+ee,J in j?j[Z]=j[J]:delete j[Z];for(Y=$;Y>$-q+ee;Y--)delete j[Y-1]}else if(ee>q)for(Y=$-q;Y>R;Y--)J=Y+q-1,Z=Y+ee-1,J in j?j[Z]=j[J]:delete j[Z];for(Y=0;Y<ee;Y++)j[Y+R]=arguments[Y+2];return j.length=$-q+ee,G}})},a4d3:function(e,n,i){var s=i("23e7"),o=i("da84"),u=i("d066"),d=i("c430"),f=i("83ab"),p=i("4930"),v=i("fdbf"),y=i("d039"),M=i("5135"),b=i("e8b5"),x=i("861d"),N=i("825a"),w=i("7b0b"),k=i("fc6a"),E=i("c04e"),S=i("5c6c"),T=i("7c73"),O=i("df75"),j=i("241c"),$=i("057f"),R=i("7418"),W=i("06cf"),ee=i("9bf2"),q=i("d1e7"),G=i("9112"),Y=i("6eeb"),J=i("5692"),Z=i("f772"),X=i("d012"),te=i("90e3"),oe=i("b622"),be=i("e538"),xe=i("746f"),De=i("d44e"),$e=i("69f3"),Ke=i("b727").forEach,Ie=Z("hidden"),ve="Symbol",H="prototype",ue=oe("toPrimitive"),me=$e.set,ge=$e.getterFor(ve),ie=Object[H],pe=o.Symbol,Ee=u("JSON","stringify"),Re=W.f,Ge=ee.f,ct=$.f,bt=q.f,et=J("symbols"),pt=J("op-symbols"),Qt=J("string-to-symbol-registry"),Dt=J("symbol-to-string-registry"),Ot=J("wks"),qt=o.QObject,ce=!qt||!qt[H]||!qt[H].findChild,P=f&&y(function(){return T(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a!=7})?function(ye,Me,Pe){var Ye=Re(ie,Me);Ye&&delete ie[Me],Ge(ye,Me,Pe),Ye&&ye!==ie&&Ge(ie,Me,Ye)}:Ge,B=function(ye,Me){var Pe=et[ye]=T(pe[H]);return me(Pe,{type:ve,tag:ye,description:Me}),f||(Pe.description=Me),Pe},re=v?function(ye){return typeof ye=="symbol"}:function(ye){return Object(ye)instanceof pe},we=function(Me,Pe,Ye){Me===ie&&we(pt,Pe,Ye),N(Me);var st=E(Pe,!0);return N(Ye),M(et,st)?(Ye.enumerable?(M(Me,Ie)&&Me[Ie][st]&&(Me[Ie][st]=!1),Ye=T(Ye,{enumerable:S(0,!1)})):(M(Me,Ie)||Ge(Me,Ie,S(1,{})),Me[Ie][st]=!0),P(Me,st,Ye)):Ge(Me,st,Ye)},ze=function(Me,Pe){N(Me);var Ye=k(Pe),st=O(Ye).concat(rt(Ye));return Ke(st,function(At){(!f||lt.call(Ye,At))&&we(Me,At,Ye[At])}),Me},ot=function(Me,Pe){return Pe===void 0?T(Me):ze(T(Me),Pe)},lt=function(Me){var Pe=E(Me,!0),Ye=bt.call(this,Pe);return this===ie&&M(et,Pe)&&!M(pt,Pe)?!1:Ye||!M(this,Pe)||!M(et,Pe)||M(this,Ie)&&this[Ie][Pe]?Ye:!0},Fe=function(Me,Pe){var Ye=k(Me),st=E(Pe,!0);if(!(Ye===ie&&M(et,st)&&!M(pt,st))){var At=Re(Ye,st);return At&&M(et,st)&&!(M(Ye,Ie)&&Ye[Ie][st])&&(At.enumerable=!0),At}},je=function(Me){var Pe=ct(k(Me)),Ye=[];return Ke(Pe,function(st){!M(et,st)&&!M(X,st)&&Ye.push(st)}),Ye},rt=function(Me){var Pe=Me===ie,Ye=ct(Pe?pt:k(Me)),st=[];return Ke(Ye,function(At){M(et,At)&&(!Pe||M(ie,At))&&st.push(et[At])}),st};if(p||(pe=function(){if(this instanceof pe)throw TypeError("Symbol is not a constructor");var Me=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Pe=te(Me),Ye=function(st){this===ie&&Ye.call(pt,st),M(this,Ie)&&M(this[Ie],Pe)&&(this[Ie][Pe]=!1),P(this,Pe,S(1,st))};return f&&ce&&P(ie,Pe,{configurable:!0,set:Ye}),B(Pe,Me)},Y(pe[H],"toString",function(){return ge(this).tag}),Y(pe,"withoutSetter",function(ye){return B(te(ye),ye)}),q.f=lt,ee.f=we,W.f=Fe,j.f=$.f=je,R.f=rt,be.f=function(ye){return B(oe(ye),ye)},f&&(Ge(pe[H],"description",{configurable:!0,get:function(){return ge(this).description}}),d||Y(ie,"propertyIsEnumerable",lt,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:pe}),Ke(O(Ot),function(ye){xe(ye)}),s({target:ve,stat:!0,forced:!p},{for:function(ye){var Me=String(ye);if(M(Qt,Me))return Qt[Me];var Pe=pe(Me);return Qt[Me]=Pe,Dt[Pe]=Me,Pe},keyFor:function(Me){if(!re(Me))throw TypeError(Me+" is not a symbol");if(M(Dt,Me))return Dt[Me]},useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),s({target:"Object",stat:!0,forced:!p,sham:!f},{create:ot,defineProperty:we,defineProperties:ze,getOwnPropertyDescriptor:Fe}),s({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:je,getOwnPropertySymbols:rt}),s({target:"Object",stat:!0,forced:y(function(){R.f(1)})},{getOwnPropertySymbols:function(Me){return R.f(w(Me))}}),Ee){var se=!p||y(function(){var ye=pe();return Ee([ye])!="[null]"||Ee({a:ye})!="{}"||Ee(Object(ye))!="{}"});s({target:"JSON",stat:!0,forced:se},{stringify:function(Me,Pe,Ye){for(var st=[Me],At=1,dn;arguments.length>At;)st.push(arguments[At++]);if(dn=Pe,!(!x(Pe)&&Me===void 0||re(Me)))return b(Pe)||(Pe=function(Rt,Xt){if(typeof dn=="function"&&(Xt=dn.call(this,Rt,Xt)),!re(Xt))return Xt}),st[1]=Pe,Ee.apply(null,st)}})}pe[H][ue]||G(pe[H],ue,pe[H].valueOf),De(pe,ve),X[Ie]=!0},a623:function(e,n,i){var s=i("23e7"),o=i("b727").every,u=i("a640"),d=i("ae40"),f=u("every"),p=d("every");s({target:"Array",proto:!0,forced:!f||!p},{every:function(y){return o(this,y,arguments.length>1?arguments[1]:void 0)}})},a640:function(e,n,i){var s=i("d039");e.exports=function(o,u){var d=[][o];return!!d&&s(function(){d.call(null,u||function(){throw 1},1)})}},a691:function(e,n){var i=Math.ceil,s=Math.floor;e.exports=function(o){return isNaN(o=+o)?0:(o>0?s:i)(o)}},ae40:function(e,n,i){var s=i("83ab"),o=i("d039"),u=i("5135"),d=Object.defineProperty,f={},p=function(v){throw v};e.exports=function(v,y){if(u(f,v))return f[v];y||(y={});var M=[][v],b=u(y,"ACCESSORS")?y.ACCESSORS:!1,x=u(y,0)?y[0]:p,N=u(y,1)?y[1]:void 0;return f[v]=!!M&&!o(function(){if(b&&!s)return!0;var w={length:-1};b?d(w,1,{enumerable:!0,get:p}):w[1]=1,M.call(w,x,N)})}},ae93:function(e,n,i){var s=i("e163"),o=i("9112"),u=i("5135"),d=i("b622"),f=i("c430"),p=d("iterator"),v=!1,y=function(){return this},M,b,x;[].keys&&(x=[].keys(),"next"in x?(b=s(s(x)),b!==Object.prototype&&(M=b)):v=!0),M==null&&(M={}),!f&&!u(M,p)&&o(M,p,y),e.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,n,i){var s=i("00ee"),o=i("f5df");e.exports=s?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,n,i){var s=i("83ab"),o=i("9bf2").f,u=Function.prototype,d=u.toString,f=/^\s*function ([^ (]*)/,p="name";s&&!(p in u)&&o(u,p,{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch{return""}}})},b575:function(e,n,i){var s=i("da84"),o=i("06cf").f,u=i("c6b6"),d=i("2cf4").set,f=i("1cdc"),p=s.MutationObserver||s.WebKitMutationObserver,v=s.process,y=s.Promise,M=u(v)=="process",b=o(s,"queueMicrotask"),x=b&&b.value,N,w,k,E,S,T,O,j;x||(N=function(){var $,R;for(M&&($=v.domain)&&$.exit();w;){R=w.fn,w=w.next;try{R()}catch(W){throw w?E():k=void 0,W}}k=void 0,$&&$.enter()},M?E=function(){v.nextTick(N)}:p&&!f?(S=!0,T=document.createTextNode(""),new p(N).observe(T,{characterData:!0}),E=function(){T.data=S=!S}):y&&y.resolve?(O=y.resolve(void 0),j=O.then,E=function(){j.call(O,N)}):E=function(){d.call(s,N)}),e.exports=x||function($){var R={fn:$,next:void 0};k&&(k.next=R),w||(w=R,E()),k=R}},b622:function(e,n,i){var s=i("da84"),o=i("5692"),u=i("5135"),d=i("90e3"),f=i("4930"),p=i("fdbf"),v=o("wks"),y=s.Symbol,M=p?y:y&&y.withoutSetter||d;e.exports=function(b){return u(v,b)||(f&&u(y,b)?v[b]=y[b]:v[b]=M("Symbol."+b)),v[b]}},b712:function(e,n,i){var s=i("cff7"),o=i.n(s);o.a},b727:function(e,n,i){var s=i("0366"),o=i("44ad"),u=i("7b0b"),d=i("50c4"),f=i("65f0"),p=[].push,v=function(y){var M=y==1,b=y==2,x=y==3,N=y==4,w=y==6,k=y==5||w;return function(E,S,T,O){for(var j=u(E),$=o(j),R=s(S,T,3),W=d($.length),ee=0,q=O||f,G=M?q(E,W):b?q(E,0):void 0,Y,J;W>ee;ee++)if((k||ee in $)&&(Y=$[ee],J=R(Y,ee,j),y)){if(M)G[ee]=J;else if(J)switch(y){case 3:return!0;case 5:return Y;case 6:return ee;case 2:p.call(G,Y)}else if(N)return!1}return w?-1:x||N?N:G}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},bb2f:function(e,n,i){var s=i("d039");e.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},c04e:function(e,n,i){var s=i("861d");e.exports=function(o,u){if(!s(o))return o;var d,f;if(u&&typeof(d=o.toString)=="function"&&!s(f=d.call(o))||typeof(d=o.valueOf)=="function"&&!s(f=d.call(o))||!u&&typeof(d=o.toString)=="function"&&!s(f=d.call(o)))return f;throw TypeError("Can't convert object to primitive value")}},c093:function(e,n,i){i.r(n);var s=i("922d"),o=i("30d7");for(var u in o)["default"].indexOf(u)<0&&function(p){i.d(n,p,function(){return o[p]})}(u);i("2f83");var d=i("2877"),f=Object(d.a)(o.default,s.a,s.b,!1,null,null,null);n.default=f.exports},c430:function(e,n){e.exports=!1},c6b6:function(e,n){var i={}.toString;e.exports=function(s){return i.call(s).slice(8,-1)}},c6cd:function(e,n,i){var s=i("da84"),o=i("ce4e"),u="__core-js_shared__",d=s[u]||o(u,{});e.exports=d},c740:function(e,n,i){var s=i("23e7"),o=i("b727").findIndex,u=i("44d2"),d=i("ae40"),f="findIndex",p=!0,v=d(f);f in[]&&Array(1)[f](function(){p=!1}),s({target:"Array",proto:!0,forced:p||!v},{findIndex:function(M){return o(this,M,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(e,n){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}e.exports=i},ca84:function(e,n,i){var s=i("5135"),o=i("fc6a"),u=i("4d64").indexOf,d=i("d012");e.exports=function(f,p){var v=o(f),y=0,M=[],b;for(b in v)!s(d,b)&&s(v,b)&&M.push(b);for(;p.length>y;)s(v,b=p[y++])&&(~u(M,b)||M.push(b));return M}},cc12:function(e,n,i){var s=i("da84"),o=i("861d"),u=s.document,d=o(u)&&o(u.createElement);e.exports=function(f){return d?u.createElement(f):{}}},cd49:function(e,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4");i("9900"),i("c093");var o=s.__importDefault(i("68fa")),u=s.__importDefault(i("47e2")),d={install:function(p){p.component("vue-modals-stack",o.default),p.modals=p.prototype.$modals=u.default},Modals:u.default,ModalStack:o.default};n.default=d},cdf9:function(e,n,i){var s=i("825a"),o=i("861d"),u=i("f069");e.exports=function(d,f){if(s(d),o(f)&&f.constructor===d)return f;var p=u.f(d),v=p.resolve;return v(f),p.promise}},ce4e:function(e,n,i){var s=i("da84"),o=i("9112");e.exports=function(u,d){try{o(s,u,d)}catch{s[u]=d}return d}},cff7:function(e,n,i){},d012:function(e,n){e.exports={}},d019:function(e,n,i){i.d(n,"a",function(){return s}),i.d(n,"b",function(){return o});var s=function(){var u=this,d=u.$createElement,f=u._self._c||d;return f("transition-group",{attrs:{tag:"div",stack:u.name,name:"modal"}},[u._l(u.stack,function(p,v){return[p.options.hideOverlay?u._e():f("div",{key:p.id+"_overlay",staticClass:"vue-modals-overlay",class:{below:v<u.stack.length-1,far:v<u.stack.length-4},style:"z-index: "+(1e3+v),on:{click:function(y){p.options.clickToClose!==!1&&u.close(p)}}}),f(p.layout,{key:p.id+"_modal",tag:"component",staticClass:"vue-modals-layout",style:"z-index: "+(1001+v),attrs:{"modal-id":p.id,modal:p,showClose:p.options.showClose,stack:u.stack,index:v},on:{close:function(y){return u.close(p,y)},destroy:function(y){return u.destroy(p,y)},answer:function(y){return u.answer(p,y)}}},[f(p.options.component,u._b({ref:p.id,refInFor:!0,tag:"component",on:{close:function(y){return u.close(p,y)},destroy:function(y){return u.destroy(p,y)},answer:function(y){return u.answer(p,y)}}},"component",p.options.props,!1))],1)]})],2)},o=[]},d039:function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(e,n,i){var s=i("428f"),o=i("da84"),u=function(d){return typeof d=="function"?d:void 0};e.exports=function(d,f){return arguments.length<2?u(s[d])||u(o[d]):s[d]&&s[d][f]||o[d]&&o[d][f]}},d1e7:function(e,n,i){var s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u=o&&!s.call({1:2},1);n.f=u?function(f){var p=o(this,f);return!!p&&p.enumerable}:s},d2bb:function(e,n,i){var s=i("825a"),o=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,d={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(d,[]),u=d instanceof Array}catch{}return function(v,y){return s(v),o(y),u?f.call(v,y):v.__proto__=y,v}}():void 0)},d3b7:function(e,n,i){var s=i("00ee"),o=i("6eeb"),u=i("b041");s||o(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(e,n,i){var s=i("9bf2").f,o=i("5135"),u=i("b622"),d=u("toStringTag");e.exports=function(f,p,v){f&&!o(f=v?f:f.prototype,d)&&s(f,d,{configurable:!0,value:p})}},da84:function(e,n,i){(function(s){var o=function(u){return u&&u.Math==Math&&u};e.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof s=="object"&&s)||Function("return this")()}).call(this,i("c8ba"))},ddb0:function(e,n,i){var s=i("da84"),o=i("fdbc"),u=i("e260"),d=i("9112"),f=i("b622"),p=f("iterator"),v=f("toStringTag"),y=u.values;for(var M in o){var b=s[M],x=b&&b.prototype;if(x){if(x[p]!==y)try{d(x,p,y)}catch{x[p]=y}if(x[v]||d(x,v,M),o[M]){for(var N in u)if(x[N]!==u[N])try{d(x,N,u[N])}catch{x[N]=u[N]}}}}},df75:function(e,n,i){var s=i("ca84"),o=i("7839");e.exports=Object.keys||function(d){return s(d,o)}},e01a:function(e,n,i){var s=i("23e7"),o=i("83ab"),u=i("da84"),d=i("5135"),f=i("861d"),p=i("9bf2").f,v=i("e893"),y=u.Symbol;if(o&&typeof y=="function"&&(!("description"in y.prototype)||y().description!==void 0)){var M={},b=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),T=this instanceof b?new y(S):S===void 0?y():y(S);return S===""&&(M[T]=!0),T};v(b,y);var x=b.prototype=y.prototype;x.constructor=b;var N=x.toString,w=String(y("test"))=="Symbol(test)",k=/^Symbol\((.*)\)[^)]+$/;p(x,"description",{configurable:!0,get:function(){var S=f(this)?this.valueOf():this,T=N.call(S);if(d(M,S))return"";var O=w?T.slice(7,-1):T.replace(k,"$1");return O===""?void 0:O}}),s({global:!0,forced:!0},{Symbol:b})}},e163:function(e,n,i){var s=i("5135"),o=i("7b0b"),u=i("f772"),d=i("e177"),f=u("IE_PROTO"),p=Object.prototype;e.exports=d?Object.getPrototypeOf:function(v){return v=o(v),s(v,f)?v[f]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},e177:function(e,n,i){var s=i("d039");e.exports=!s(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},e260:function(e,n,i){var s=i("fc6a"),o=i("44d2"),u=i("3f8c"),d=i("69f3"),f=i("7dd0"),p="Array Iterator",v=d.set,y=d.getterFor(p);e.exports=f(Array,"Array",function(M,b){v(this,{type:p,target:s(M),index:0,kind:b})},function(){var M=y(this),b=M.target,x=M.kind,N=M.index++;return!b||N>=b.length?(M.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:N,done:!1}:x=="values"?{value:b[N],done:!1}:{value:[N,b[N]],done:!1}},"values"),u.Arguments=u.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,n,i){var s=i("6eeb");e.exports=function(o,u,d){for(var f in u)s(o,f,u[f],d);return o}},e538:function(e,n,i){var s=i("b622");n.f=s},e667:function(e,n){e.exports=function(i){try{return{error:!1,value:i()}}catch(s){return{error:!0,value:s}}}},e6cf:function(e,n,i){var s=i("23e7"),o=i("c430"),u=i("da84"),d=i("d066"),f=i("fea9"),p=i("6eeb"),v=i("e2cc"),y=i("d44e"),M=i("2626"),b=i("861d"),x=i("1c0b"),N=i("19aa"),w=i("c6b6"),k=i("8925"),E=i("2266"),S=i("1c7e"),T=i("4840"),O=i("2cf4").set,j=i("b575"),$=i("cdf9"),R=i("44de"),W=i("f069"),ee=i("e667"),q=i("69f3"),G=i("94ca"),Y=i("b622"),J=i("2d00"),Z=Y("species"),X="Promise",te=q.get,oe=q.set,be=q.getterFor(X),xe=f,De=u.TypeError,$e=u.document,Ke=u.process,Ie=d("fetch"),ve=W.f,H=ve,ue=w(Ke)=="process",me=!!($e&&$e.createEvent&&u.dispatchEvent),ge="unhandledrejection",ie="rejectionhandled",pe=0,Ee=1,Re=2,Ge=1,ct=2,bt,et,pt,Qt,Dt=G(X,function(){var Fe=k(xe)!==String(xe);if(!Fe&&(J===66||!ue&&typeof PromiseRejectionEvent!="function")||o&&!xe.prototype.finally)return!0;if(J>=51&&/native code/.test(xe))return!1;var je=xe.resolve(1),rt=function(ye){ye(function(){},function(){})},se=je.constructor={};return se[Z]=rt,!(je.then(function(){})instanceof rt)}),Ot=Dt||!S(function(Fe){xe.all(Fe).catch(function(){})}),qt=function(Fe){var je;return b(Fe)&&typeof(je=Fe.then)=="function"?je:!1},ce=function(Fe,je,rt){if(!je.notified){je.notified=!0;var se=je.reactions;j(function(){for(var ye=je.value,Me=je.state==Ee,Pe=0;se.length>Pe;){var Ye=se[Pe++],st=Me?Ye.ok:Ye.fail,At=Ye.resolve,dn=Ye.reject,Rt=Ye.domain,Xt,Ni,Yn;try{st?(Me||(je.rejection===ct&&we(Fe,je),je.rejection=Ge),st===!0?Xt=ye:(Rt&&Rt.enter(),Xt=st(ye),Rt&&(Rt.exit(),Yn=!0)),Xt===Ye.promise?dn(De("Promise-chain cycle")):(Ni=qt(Xt))?Ni.call(Xt,At,dn):At(Xt)):dn(ye)}catch(fi){Rt&&!Yn&&Rt.exit(),dn(fi)}}je.reactions=[],je.notified=!1,rt&&!je.rejection&&B(Fe,je)})}},P=function(Fe,je,rt){var se,ye;me?(se=$e.createEvent("Event"),se.promise=je,se.reason=rt,se.initEvent(Fe,!1,!0),u.dispatchEvent(se)):se={promise:je,reason:rt},(ye=u["on"+Fe])?ye(se):Fe===ge&&R("Unhandled promise rejection",rt)},B=function(Fe,je){O.call(u,function(){var rt=je.value,se=re(je),ye;if(se&&(ye=ee(function(){ue?Ke.emit("unhandledRejection",rt,Fe):P(ge,Fe,rt)}),je.rejection=ue||re(je)?ct:Ge,ye.error))throw ye.value})},re=function(Fe){return Fe.rejection!==Ge&&!Fe.parent},we=function(Fe,je){O.call(u,function(){ue?Ke.emit("rejectionHandled",Fe):P(ie,Fe,je.value)})},ze=function(Fe,je,rt,se){return function(ye){Fe(je,rt,ye,se)}},ot=function(Fe,je,rt,se){je.done||(je.done=!0,se&&(je=se),je.value=rt,je.state=Re,ce(Fe,je,!0))},lt=function(Fe,je,rt,se){if(!je.done){je.done=!0,se&&(je=se);try{if(Fe===rt)throw De("Promise can't be resolved itself");var ye=qt(rt);ye?j(function(){var Me={done:!1};try{ye.call(rt,ze(lt,Fe,Me,je),ze(ot,Fe,Me,je))}catch(Pe){ot(Fe,Me,Pe,je)}}):(je.value=rt,je.state=Ee,ce(Fe,je,!1))}catch(Me){ot(Fe,{done:!1},Me,je)}}};Dt&&(xe=function(je){N(this,xe,X),x(je),bt.call(this);var rt=te(this);try{je(ze(lt,this,rt),ze(ot,this,rt))}catch(se){ot(this,rt,se)}},bt=function(je){oe(this,{type:X,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:pe,value:void 0})},bt.prototype=v(xe.prototype,{then:function(je,rt){var se=be(this),ye=ve(T(this,xe));return ye.ok=typeof je=="function"?je:!0,ye.fail=typeof rt=="function"&&rt,ye.domain=ue?Ke.domain:void 0,se.parent=!0,se.reactions.push(ye),se.state!=pe&&ce(this,se,!1),ye.promise},catch:function(Fe){return this.then(void 0,Fe)}}),et=function(){var Fe=new bt,je=te(Fe);this.promise=Fe,this.resolve=ze(lt,Fe,je),this.reject=ze(ot,Fe,je)},W.f=ve=function(Fe){return Fe===xe||Fe===pt?new et(Fe):H(Fe)},!o&&typeof f=="function"&&(Qt=f.prototype.then,p(f.prototype,"then",function(je,rt){var se=this;return new xe(function(ye,Me){Qt.call(se,ye,Me)}).then(je,rt)},{unsafe:!0}),typeof Ie=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(je){return $(xe,Ie.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:Dt},{Promise:xe}),y(xe,X,!1,!0),M(X),pt=d(X),s({target:X,stat:!0,forced:Dt},{reject:function(je){var rt=ve(this);return rt.reject.call(void 0,je),rt.promise}}),s({target:X,stat:!0,forced:o||Dt},{resolve:function(je){return $(o&&this===pt?xe:this,je)}}),s({target:X,stat:!0,forced:Ot},{all:function(je){var rt=this,se=ve(rt),ye=se.resolve,Me=se.reject,Pe=ee(function(){var Ye=x(rt.resolve),st=[],At=0,dn=1;E(je,function(Rt){var Xt=At++,Ni=!1;st.push(void 0),dn++,Ye.call(rt,Rt).then(function(Yn){Ni||(Ni=!0,st[Xt]=Yn,--dn||ye(st))},Me)}),--dn||ye(st)});return Pe.error&&Me(Pe.value),se.promise},race:function(je){var rt=this,se=ve(rt),ye=se.reject,Me=ee(function(){var Pe=x(rt.resolve);E(je,function(Ye){Pe.call(rt,Ye).then(se.resolve,ye)})});return Me.error&&ye(Me.value),se.promise}})},e893:function(e,n,i){var s=i("5135"),o=i("56ef"),u=i("06cf"),d=i("9bf2");e.exports=function(f,p){for(var v=o(p),y=d.f,M=u.f,b=0;b<v.length;b++){var x=v[b];s(f,x)||y(f,x,M(p,x))}}},e8b5:function(e,n,i){var s=i("c6b6");e.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(e,n,i){var s=i("b622"),o=i("3f8c"),u=s("iterator"),d=Array.prototype;e.exports=function(f){return f!==void 0&&(o.Array===f||d[u]===f)}},f069:function(e,n,i){var s=i("1c0b"),o=function(u){var d,f;this.promise=new u(function(p,v){if(d!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");d=p,f=v}),this.resolve=s(d),this.reject=s(f)};e.exports.f=function(u){return new o(u)}},f183:function(e,n,i){var s=i("d012"),o=i("861d"),u=i("5135"),d=i("9bf2").f,f=i("90e3"),p=i("bb2f"),v=f("meta"),y=0,M=Object.isExtensible||function(){return!0},b=function(E){d(E,v,{value:{objectID:"O"+ ++y,weakData:{}}})},x=function(E,S){if(!o(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!u(E,v)){if(!M(E))return"F";if(!S)return"E";b(E)}return E[v].objectID},N=function(E,S){if(!u(E,v)){if(!M(E))return!0;if(!S)return!1;b(E)}return E[v].weakData},w=function(E){return p&&k.REQUIRED&&M(E)&&!u(E,v)&&b(E),E},k=e.exports={REQUIRED:!1,fastKey:x,getWeakData:N,onFreeze:w};s[v]=!0},f5df:function(e,n,i){var s=i("00ee"),o=i("c6b6"),u=i("b622"),d=u("toStringTag"),f=o(function(){return arguments}())=="Arguments",p=function(v,y){try{return v[y]}catch{}};e.exports=s?o:function(v){var y,M,b;return v===void 0?"Undefined":v===null?"Null":typeof(M=p(y=Object(v),d))=="string"?M:f?o(y):(b=o(y))=="Object"&&typeof y.callee=="function"?"Arguments":b}},f772:function(e,n,i){var s=i("5692"),o=i("90e3"),u=s("keys");e.exports=function(d){return u[d]||(u[d]=o(d))}},fb15:function(e,n,i){i.r(n),i("1eb2");var s=i("cd49"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},fc6a:function(e,n,i){var s=i("44ad"),o=i("1d80");e.exports=function(u){return s(o(u))}},fdbc:function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,n,i){var s=i("4930");e.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},fea9:function(e,n,i){var s=i("da84");e.exports=s.Promise}})})(Q$);var Joe=Q$.exports;const G$=bi(Joe);async function ele(t){const e=window.LayersPortal?window.LayersPortal.platform:"shell";if(e==="shell"||e==="iframe"){const i=G$.Modals.stack().push({layout:"dialog",showClose:!1,component:IS,props:{title:t.title,content:t.content,buttonCloseLabel:t.buttonCloseLabel,buttonConfirmLabel:t.buttonConfirmLabel}});try{return await i}catch{return!1}}return window.confirm(t.content||t.title)}async function tle(){const t=G$.Modals.stack();window.history.go(1);const e=t.push({layout:"dialog",showClose:!1,component:IS,props:{buttonCloseLabel:"Permanecer aqui",buttonConfirmLabel:"Descartar alterações",title:"Alterações não salvas",content:"Você quer mesmo sair? Existem alterações que não foram salvas. Se você sair, suas alterações serão perdidas."}});try{const n=await e;if(n)return n}catch{}}const nle="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIwIiBoZWlnaHQ9IjE4MyIgdmlld0JveD0iMCAwIDIyMCAxODMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODMuMjk5NCAxNjQuMjk4TDgzLjI5OSAxNjQuMjk4Qzc5LjA5NiAxNjYuMjIgNzUuMTk0NiAxNjguMDA1IDcxLjMxNDcgMTY5LjIxQzUxLjk2MDMgMTc1LjIyMyAzMS4wNjI2IDE3NS45MjIgMTAuMjk0OCAxNDguMjIxQy0xMC40NzI5IDEyMC41MTkgLTAuMzE2MjIyIDg0Ljk0NTQgNDUuMjkwOSA3MC4xOTEyQzU3LjIwOTMgNjYuMzM5IDYyLjgwOTQgNTcuNzI3NSA2OS41NjAzIDQ3LjM0NjFDNzYuNjg1MSAzNi4zODk5IDg1LjA5MTcgMjMuNDYyNSAxMDMuNTYgMTIuMDc4MkMxNTIuNTU1IC0xOC4xMTMzIDE5Ny4wODggMTAuNzYzNSAyMTUuODU4IDcxLjI3MTRDMjM0LjYyNyAxMzEuNzc5IDE4Ni43IDE1OS4xNDQgMTMwLjY3MiAxNTQuNDk4QzEwOC43MSAxNTIuNjc1IDk0Ljg2MzQgMTU5LjAwOSA4My4yOTk0IDE2NC4yOThaIiBmaWxsPSIjNTQ1MUQ2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuOSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04My4yOTk0IDE2NC4yOThMODMuMjk5IDE2NC4yOThDNzkuMDk2IDE2Ni4yMiA3NS4xOTQ2IDE2OC4wMDUgNzEuMzE0NyAxNjkuMjFDNTEuOTYwMyAxNzUuMjIzIDMxLjA2MjYgMTc1LjkyMiAxMC4yOTQ4IDE0OC4yMjFDLTEwLjQ3MjkgMTIwLjUxOSAtMC4zMTYyMjIgODQuOTQ1NCA0NS4yOTA5IDcwLjE5MTJDNTcuMjA5MyA2Ni4zMzkgNjIuODA5NCA1Ny43Mjc1IDY5LjU2MDMgNDcuMzQ2MUM3Ni42ODUxIDM2LjM4OTkgODUuMDkxNyAyMy40NjI1IDEwMy41NiAxMi4wNzgyQzE1Mi41NTUgLTE4LjExMzMgMTk3LjA4OCAxMC43NjM1IDIxNS44NTggNzEuMjcxNEMyMzQuNjI3IDEzMS43NzkgMTg2LjcgMTU5LjE0NCAxMzAuNjcyIDE1NC40OThDMTA4LjcxIDE1Mi42NzUgOTQuODYzNCAxNTkuMDA5IDgzLjI5OTQgMTY0LjI5OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMTUuMjgxIDE3NS43NDRDMTY5LjM1NiAxNzUuNzQ0IDIxMy4xOTIgMTczLjE2NiAyMTMuMTkyIDE2OS45ODVDMjEzLjE5MiAxNjYuODA0IDE2OS4zNTYgMTY0LjIyNiAxMTUuMjgxIDE2NC4yMjZDNjEuMjA2MyAxNjQuMjI2IDE3LjM3MDEgMTY2LjgwNCAxNy4zNzAxIDE2OS45ODVDMTcuMzcwMSAxNzMuMTY2IDYxLjIwNjMgMTc1Ljc0NCAxMTUuMjgxIDE3NS43NDRaIiBmaWxsPSIjRjVGNUY1Ii8+CjxwYXRoIGQ9Ik0xMjkuODY4IDEwOS42MjlDMTI0LjU0NiAxMjEuMTM1IDExNy41MzMgMTIyLjM2MyAxMTcuNTMzIDEyMi4zNjNMMTA5LjE0OSAxMTIuNDcxQzEwOS4xNDkgMTEyLjQ3MSAxMTUuMTYxIDEwOC44MjEgMTE2LjU2MyAxMDQuMzk2QzExNy45NjYgOTkuOTcxMiAxMTUuMzYxIDcxLjA4NzQgMTIyLjgzMSA2NS4wMzkzQzEyMi44MzEgNjUuMDM5MyAxMjMuNjg5IDY3LjMzMjYgMTI0Ljg1MSA3MC45MTc4QzEyNy4xMjcgNzcuOTI2OCAxMzAuNTczIDg5Ljg2MTUgMTMxLjExOCA5OS4zMjUyQzEzMS4zNjcgMTAzLjQxOSAxMzEuMDk0IDEwNy4wNzcgMTI5Ljg2OCAxMDkuNjI5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjEiIGQ9Ik0xMzEuMDk0IDk5LjMxNjhDMTIzLjc2OCA4Ni4xNTQ4IDEyMy4wMDcgNzYuNjQyNiAxMjQuODI2IDcwLjkwOTRDMTI3LjEyNyA3Ny45MTg0IDEzMC41NzMgODkuODUzMSAxMzEuMDk0IDk5LjMxNjhaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTMwLjc2NiAxMjguNDExQzEzMC43NjYgMTI4LjQxMSA3Ny4wNjU2IDExMy4zMTkgNzAuMzQxMSAxMzIuMjk1QzYzLjYxNjYgMTUxLjI3MSAxMTIuMzMxIDE2Ni40MDMgMTM5LjI3IDE2Ny4zMzJDMTY2LjIwOCAxNjguMjYgMTc3LjI0NCAxNDkuMjAzIDE2OS4yOTMgMTMxLjA5MkwxMzAuNzY2IDEyOC40MTFaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEzMC43NjYgMTI4LjQxMUMxMzAuNzY2IDEyOC40MTEgNzcuMDY1NiAxMTMuMzE5IDcwLjM0MTEgMTMyLjI5NUM2My42MTY2IDE1MS4yNzEgMTEyLjMzMSAxNjYuNDAzIDEzOS4yNyAxNjcuMzMyQzE2Ni4yMDggMTY4LjI2IDE3Ny4yNDQgMTQ5LjIwMyAxNjkuMjkzIDEzMS4wOTJMMTMwLjc2NiAxMjguNDExWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTE3NC4zNzUgMTQyLjA0OUwxMjQuNDkgMTMzLjQ1QzEzMy4yMjYgMTE2LjQ5MiAxMzAuNDUzIDkwLjcwMTMgMTIyLjg4NyA2NS4wMjMyQzEyOC4xNjkgNjAuNTc0IDE0OS4yOCA1Ny41NzAxIDE2NS4zNjYgNjIuMjg1OEMxNjUuMzY2IDYyLjI4NTggMTY2LjMyIDY1Ljg1NDkgMTY3LjYxMSA3MS45NzU3QzE2OS4xNTcgNzkuMzIzOCAxNzEuMTg1IDkwLjM1NDEgMTcyLjYyOCAxMDMuMzcxQzE3NC4xMDUgMTE2LjIwNyAxNzQuNjg4IDEyOS4xMzEgMTc0LjM3NSAxNDIuMDQ5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjYiIGQ9Ik0xNzQuMzc1IDE0Mi4wNDlMMTI0LjQ5IDEzMy40NDlDMTMxLjkwNCAxMTkuMDYgMTMxLjAzIDk4LjMxNTcgMTI1Ljk0OCA3Ni42NzVDMTMwLjE0OCA2OC41MTk0IDEzNS41ODIgNjcuNTEgMTM1LjU4MiA2Ny41MUMxNDEuMDczIDc1LjI4NjEgMTUyLjQxNCA2Ny41MSAxNTIuNDE0IDY3LjUxQzE2Mi45MjEgNzMuOTA1MyAxNjkuMTczIDg3LjIyMDggMTcxLjE3NyA5Mi4wODE4QzE3My42NjcgMTA4LjYxNCAxNzQuNzM3IDEyNS4zMzIgMTc0LjM3NSAxNDIuMDQ5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggb3BhY2l0eT0iMC4xIiBkPSJNMTcyLjYwMyAxMDMuMzk0QzE2OC41MTMgMTAwLjE3NyAxNjUuNDQ4IDk1LjgyMzIgMTYzLjc4NyA5MC44NzAyQzE1OS43MzEgNzcuOTEwMSAxNjYuMDQ3IDcyLjk3NjMgMTY3LjU3OCA3MS45OTkzQzE2OS4xMzMgNzkuMzQ3NCAxNzEuMTY5IDkwLjM3NzcgMTcyLjYwMyAxMDMuMzk0WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTc2LjUwNDQgMTU4LjAyMUM3Ni4wOTk4IDE1Ny43MTIgNzUuODAyNCAxNTcuMjgzIDc1LjY1NDkgMTU2Ljc5NEM3NS42MjY5IDE1Ni42MzIgNzUuNjQxNyAxNTYuNDY1IDc1LjY5OCAxNTYuMzFDNzUuNzU0MyAxNTYuMTU2IDc1Ljg1IDE1Ni4wMTkgNzUuOTc1NSAxNTUuOTE0Qzc2LjA0MzkgMTU1Ljg0MyA3Ni4xMjk1IDE1NS43OTIgNzYuMjIzNyAxNTUuNzY1Qzc2LjMxNzkgMTU1LjczOCA3Ni40MTc0IDE1NS43MzYgNzYuNTEyNCAxNTUuNzZDNzcuNDE4MSAxNTYuMDM1IDc4LjMxNTcgMTU4LjY0MyA3OC40MDM4IDE1OC45NUM3OC40MTQ4IDE1OC45NzggNzguNDE2IDE1OS4wMDkgNzguNDA3MyAxNTkuMDM5Qzc4LjM5ODYgMTU5LjA2OCA3OC4zODA0IDE1OS4wOTMgNzguMzU1NyAxNTkuMTExQzc4LjMyNjggMTU5LjEzMyA3OC4yOTE2IDE1OS4xNDQgNzguMjU1NiAxNTkuMTQ0Qzc4LjIxOTUgMTU5LjE0NCA3OC4xODQ0IDE1OS4xMzMgNzguMTU1NCAxNTkuMTExQzc3LjU3MTkgMTU4LjgwMSA3Ny4wMTkxIDE1OC40MzYgNzYuNTA0NCAxNTguMDIxWk03Ni42NDg3IDE1Ni4yMkM3Ni41OTAzIDE1Ni4xNjMgNzYuNTE4NyAxNTYuMTIyIDc2LjQ0MDMgMTU2LjA5OUM3Ni40MDMyIDE1Ni4wODggNzYuMzYzNCAxNTYuMDg3IDc2LjMyNjIgMTU2LjA5OUM3Ni4yODkgMTU2LjExMSA3Ni4yNTYxIDE1Ni4xMzMgNzYuMjMxOSAxNTYuMTY0Qzc2LjE0IDE1Ni4yMyA3Ni4wNjkyIDE1Ni4zMjIgNzYuMDI3OSAxNTYuNDI4Qzc1Ljk4NjcgMTU2LjUzNCA3NS45NzY4IDE1Ni42NSA3NS45OTk1IDE1Ni43NjFDNzYuNDAwMyAxNTcuNTk0IDc3LjA4MjIgMTU4LjI1NSA3Ny45MjMgMTU4LjYyN0M3Ny42NDg5IDE1Ny43NTIgNzcuMjE2OSAxNTYuOTM3IDc2LjY0ODcgMTU2LjIyWiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNNzguMTE1NyAxNTkuMTI3VjE1OS4wNDZDNzcuNzk1MSAxNTguMjM5IDc3LjcyMyAxNTYuMTI0IDc4LjM3MjIgMTU1LjY2M0M3OC40ODIxIDE1NS41OTEgNzguNjEzMSAxNTUuNTU4IDc4Ljc0MzkgMTU1LjU3Qzc4Ljg3NDggMTU1LjU4MSA3OC45OTc5IDE1NS42MzcgNzkuMDkzNSAxNTUuNzI4Qzc5LjIwMzkgMTU1LjgwMyA3OS4yOTgzIDE1NS45IDc5LjM3MTIgMTU2LjAxMkM3OS40NDQyIDE1Ni4xMjQgNzkuNDk0MSAxNTYuMjUgNzkuNTE4MiAxNTYuMzgyQzc5LjcyNjYgMTU3LjQ1NiA3OC40NzY0IDE1OS4wMzggNzguMzk2MiAxNTkuMTExQzc4LjM3NjUgMTU5LjEzNiA3OC4zNDk4IDE1OS4xNTMgNzguMzE5NyAxNTkuMTYyQzc4LjI4OTUgMTU5LjE3MSA3OC4yNTc1IDE1OS4xNyA3OC4yMjc5IDE1OS4xNkM3OC4xODc5IDE1OS4xNjMgNzguMTQ4MSAxNTkuMTUxIDc4LjExNTcgMTU5LjEyN1pNNzguOTE3MSAxNTYuMDU5TDc4Ljg2MTEgMTU2LjAwMkM3OC42NjA3IDE1NS44NzMgNzguNTg4NiAxNTUuOTMgNzguNTQ4NSAxNTUuOTU0Qzc4LjE2MzggMTU2LjIyIDc4LjA5OTcgMTU3LjcwNiA3OC4zMDAxIDE1OC42MUM3OC42MzY3IDE1OC4xMjYgNzkuMjYxOCAxNTcuMTA5IDc5LjEwMTUgMTU2LjQzOEM3OS4wNzY3IDE1Ni4yOSA3OC45OTk5IDE1Ni4xNTUgNzguODg1MSAxNTYuMDU5SDc4LjkxNzFaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIGQ9Ik0xMzMuMjQyIDE3MC42OThDMTMzLjMwNyAxNzEuMjAzIDEzMy4yMDggMTcxLjcxNiAxMzIuOTYxIDE3Mi4xNkMxMzIuODY3IDE3Mi4yOTQgMTMyLjc0IDE3Mi40IDEzMi41OTIgMTcyLjQ2OEMxMzIuNDQ0IDE3Mi41MzYgMTMyLjI4MSAxNzIuNTYzIDEzMi4xMiAxNzIuNTQ3QzEzMi4wMjEgMTcyLjU0OSAxMzEuOTIzIDE3Mi41MjMgMTMxLjgzNyAxNzIuNDc0QzEzMS43NTEgMTcyLjQyNCAxMzEuNjggMTcyLjM1MiAxMzEuNjMxIDE3Mi4yNjVDMTMxLjE5IDE3MS40NTcgMTMyLjQzMiAxNjguOTU0IDEzMi41NjggMTY4LjY4QzEzMi41ODEgMTY4LjY1MSAxMzIuNjAzIDE2OC42MjcgMTMyLjYzIDE2OC42MTJDMTMyLjY1OCAxNjguNTk4IDEzMi42OSAxNjguNTkzIDEzMi43MjEgMTY4LjU5OUMxMzIuNzU2IDE2OC42MDQgMTMyLjc4OSAxNjguNjE5IDEzMi44MTUgMTY4LjY0NEMxMzIuODQxIDE2OC42NjkgMTMyLjg1OCAxNjguNzAxIDEzMi44NjUgMTY4LjczNkMxMzMuMDU5IDE2OS4zNzUgMTMzLjE4NSAxNzAuMDMzIDEzMy4yNDIgMTcwLjY5OFpNMTMxLjg5NSAxNzEuODQ1QzEzMS44OTggMTcxLjkyOSAxMzEuOTE3IDE3Mi4wMTEgMTMxLjk1MSAxNzIuMDg3QzEzMS45NjkgMTcyLjEyMiAxMzEuOTk3IDE3Mi4xNTEgMTMyLjAzMSAxNzIuMTdDMTMyLjA2NiAxNzIuMTg5IDEzMi4xMDUgMTcyLjE5NiAxMzIuMTQ0IDE3Mi4xOTJDMTMyLjI1NSAxNzIuMjExIDEzMi4zNjkgMTcyLjE5NyAxMzIuNDcyIDE3Mi4xNTNDMTMyLjU3NiAxNzIuMTA4IDEzMi42NjUgMTcyLjAzNSAxMzIuNzI5IDE3MS45NDJDMTMzLjA0OSAxNzEuMDc1IDEzMy4wNDkgMTcwLjEyIDEzMi43MjkgMTY5LjI1M0MxMzIuMjk3IDE3MC4wNTkgMTMyLjAxNCAxNzAuOTM3IDEzMS44OTUgMTcxLjg0NVoiIGZpbGw9IiM0NjQ0QjUiLz4KPHBhdGggZD0iTTExOS44NjUgMTUwLjQ2NEwxMjkuMzYzIDE1Ny40ODFMMTMzLjkyNCAxNjAuODQ4TDEzMC45NDIgMTY2LjA4OUwxMjYuMzE3IDE2My41MzdMMTE1LjAwOCAxNTcuMzAzTDExOS44NjUgMTUwLjQ2NFoiIGZpbGw9IiNFODYxNjEiLz4KPHBhdGggZD0iTTEyOS40OTEgMTY1LjkzNEwxMzIuMzUzIDE1OS41NjNDMTMyLjM5MSAxNTkuNDc5IDEzMi40NDYgMTU5LjQwNCAxMzIuNTE0IDE1OS4zNDFDMTMyLjU4MiAxNTkuMjc5IDEzMi42NjEgMTU5LjIzIDEzMi43NDcgMTU5LjE5OUMxMzIuODM0IDE1OS4xNjcgMTMyLjkyNiAxNTkuMTUzIDEzMy4wMTcgMTU5LjE1OEMxMzMuMTA5IDE1OS4xNjIgMTMzLjE5OSAxNTkuMTg1IDEzMy4yODIgMTU5LjIyNEwxMzYuMzc2IDE2MC43NUMxMzYuMzc2IDE2MC43NSAxNDAuNjcyIDE2Mi41MDMgMTQxLjE4NSAxNjMuOTA4QzE0Mi43ODggMTY4LjAyNiAxMzYuNzg1IDE4Mi4yODYgMTM0LjkxNyAxODIuMjg2QzEzNC4yMzYgMTgyLjI4NiAxMzMuODI3IDE4MS4yMiAxMzMuNzMxIDE4MC41NDJDMTMzLjQyNyAxNzguMzc4IDEzMy4zNzggMTcyLjk1MSAxMzMuMTA2IDE3MS4xNTFDMTMyLjc4NSAxNjkuMDUxIDEzMC43MDEgMTY3LjQzNiAxMjkuNyAxNjYuNzlDMTI5LjU3MSAxNjYuNjk1IDEyOS40NzkgMTY2LjU1NyAxMjkuNDQxIDE2Ni40QzEyOS40MDMgMTY2LjI0NCAxMjkuNDIxIDE2Ni4wNzkgMTI5LjQ5MSAxNjUuOTM0WiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTMyLjg5NyAxNjguNzYyTDEzMi44NTcgMTY4LjgzNEMxMzIuNTEzIDE2OS42NDIgMTMxLjA2MiAxNzEuMTY4IDEzMC4yNzcgMTcxLjAyMkMxMzAuMTUgMTcwLjk5MyAxMzAuMDM2IDE3MC45MjEgMTI5Ljk1NCAxNzAuODE5QzEyOS44NzMgMTcwLjcxNiAxMjkuODI4IDE3MC41ODkgMTI5LjgyOCAxNzAuNDU3QzEyOS44MDEgMTcwLjMyNSAxMjkuODAyIDE3MC4xODkgMTI5LjgyOSAxNzAuMDU3QzEyOS44NTcgMTY5LjkyNSAxMjkuOTExIDE2OS44IDEyOS45ODggMTY5LjY5QzEzMC42MDUgMTY4Ljc5NCAxMzIuNTkzIDE2OC41NzYgMTMyLjcwNSAxNjguNTkyQzEzMi43MzYgMTY4LjU4NyAxMzIuNzY3IDE2OC41OTMgMTMyLjc5NCAxNjguNjA3QzEzMi44MjIgMTY4LjYyMiAxMzIuODQ0IDE2OC42NDUgMTMyLjg1NyAxNjguNjczQzEzMi44NzkgMTY4LjY5OCAxMzIuODkzIDE2OC43MjkgMTMyLjg5NyAxNjguNzYyWk0xMzAuMTY1IDE3MC4zMzZWMTcwLjQxN0MxMzAuMTY1IDE3MC42NTEgMTMwLjMwMSAxNzAuNjY3IDEzMC4zNDkgMTcwLjY3NUMxMzAuODA2IDE3MC43NjQgMTMxLjkwNCAxNjkuNzcxIDEzMi40MDEgMTY4Ljk5NkMxMzEuODE1IDE2OS4wOTMgMTMwLjY2MSAxNjkuMzUxIDEzMC4yNzcgMTY5LjkxNkMxMzAuMTkgMTcwLjAzOCAxMzAuMTQ4IDE3MC4xODYgMTMwLjE1NiAxNzAuMzM2SDEzMC4xNjVaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTExOS44NjUgMTUwLjQ2NEwxMjkuMzYzIDE1Ny40ODFMMTI2LjMxNyAxNjMuNTM3TDExNS4wMDggMTU3LjMwM0wxMTkuODY1IDE1MC40NjRaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTI0LjE0NSAxNjMuOTMxTDEyMS4wMjcgMTYzLjIyOUwxMjYuMjEzIDE1My4yNDlMMTI5LjEwNiAxNTYuMjI4TDEyNC4xNDUgMTYzLjkzMVoiIGZpbGw9IiM0NjQ0QjUiLz4KPHBhdGggb3BhY2l0eT0iMC42IiBkPSJNMTI0LjE0NSAxNjMuOTMxTDEyMS4wMjcgMTYzLjIyOUwxMjYuMjEzIDE1My4yNDlMMTI5LjEwNiAxNTYuMjI4TDEyNC4xNDUgMTYzLjkzMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMDAuMjEzIDE2Mi41NTFMODguNTkwOSAxNjQuNDcyTDgzLjAwNDUgMTY1LjQwMUw4MS4zNzc0IDE1OS41OTVMODYuNDI2OSAxNTguMDQ1TDk4Ljc1MzggMTU0LjI2NkwxMDAuMjEzIDE2Mi41NTFaIiBmaWxsPSIjRTg2MTYxIi8+CjxwYXRoIGQ9Ik04Mi41MTUzIDE1OC42NDNMODUuMDMyIDE2NS4xNTlDODUuMDY1IDE2NS4yNDYgODUuMDgwNCAxNjUuMzM5IDg1LjA3NzMgMTY1LjQzMkM4NS4wNzQxIDE2NS41MjUgODUuMDUyNCAxNjUuNjE2IDg1LjAxMzYgMTY1LjdDODQuOTc0NyAxNjUuNzg1IDg0LjkxOTQgMTY1Ljg2IDg0Ljg1MSAxNjUuOTIzQzg0Ljc4MjUgMTY1Ljk4NSA4NC43MDI0IDE2Ni4wMzMgODQuNjE1MiAxNjYuMDY0TDgxLjQwOTIgMTY3LjIxOEM4MS40MDkyIDE2Ny4yMTggNzcuMTUzMyAxNjkuMDkyIDc1Ljc5ODggMTY4LjQ5NEM3MS43OTEzIDE2Ni43NSA2NS44NTIyIDE1Mi40NzQgNjcuMTU4NyAxNTEuMTI1QzY3LjYzMTUgMTUwLjYzMyA2OC42NzM1IDE1MS4wODUgNjkuMjI2NSAxNTEuNDk3QzcwLjk2NTggMTUyLjc4OSA3NC44MzcgMTU2LjU1MiA3Ni4zMTk3IDE1Ny42MDlDNzguMDM0OSAxNTguODUzIDgwLjY1NTggMTU4LjQ2NSA4MS43OTM5IDE1OC4yMTVDODEuOTQ0MyAxNTguMTk1IDgyLjA5NjkgMTU4LjIyNyA4Mi4yMjc2IDE1OC4zMDRDODIuMzU4MiAxNTguMzgyIDgyLjQ1OTUgMTU4LjUwMSA4Mi41MTUzIDE1OC42NDNaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEwMC4yMTIgMTYyLjU1MUw4OC41OTA4IDE2NC40NzNMODYuNDI2OCAxNTguMDQ1TDk4Ljc1MzcgMTU0LjI2NkwxMDAuMjEyIDE2Mi41NTFaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNODguNDMwNyAxNTYuODM0Qzg4LjQzMDcgMTU2LjgzNCAxMzYuNzQ1IDEyOC4xMiAxNTMuMDg3IDEyOC44ODdDMTY5LjQzIDEyOS42NTQgMTcwLjg3MiAxNDYuMDQ2IDE2NC4xMjQgMTU1LjEzOUMxNTcuMzc1IDE2NC4yMzEgMTQ0Ljg4OCAxNjYuNDQzIDE0NC44ODggMTY2LjQ0M0MxNDQuODg4IDE2Ni40NDMgMTUzLjM2OCAxNTQuMzcxIDE1Mi4xNDkgMTUwLjk3MkMxNTAuOTMxIDE0Ny41NzIgMTQ2LjI0MiAxNTguOTk4IDE0Ni4yNDIgMTU4Ljk5OEMxNDYuMjQyIDE1OC45OTggMTE2LjMxNSAxNjIuOTU1IDkwLjIzNCAxNjUuMTc2TDg4LjQzMDcgMTU2LjgzNFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTg3LjY2MTEgMTU2LjA5TDkwLjM0NiAxNTQuMjgyTDkzLjc5MjIgMTY0Ljk0SDg5LjY0ODdMODcuNjYxMSAxNTYuMDlaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNiIgZD0iTTg3LjY2MTEgMTU2LjA5TDkwLjM0NiAxNTQuMjgyTDkzLjc5MjIgMTY0Ljk0SDg5LjY0ODdMODcuNjYxMSAxNTYuMDlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTQzLjAyOCA2OS4xODkzQzE1MC4wNTcgNjkuMTg5MyAxNTQuNjM0IDYxLjc2MDQgMTU0LjYzNCA2MS43NjA0QzE0NS40MTcgNTguNTMwNSAxNDUuMzg1IDQ4LjcwMzQgMTQ1LjM4NSA0OC43MDM0TDE0MS44MzQgNTIuMTY3NUwxMzYuNzc2IDU3LjE1NzhDMTQwLjk4NCA2MC4xNjE2IDEzOC45OTcgNjIuNzYxNyAxMzcuNjU4IDYzLjkxNjRDMTM3LjM4NCA2NC4xNjMyIDEzNy4wODkgNjQuMzg0OCAxMzYuNzc2IDY0LjU3ODZDMTM2Ljc3NiA2NC41Nzg2IDEzNS45OTkgNjkuMTg5MyAxNDMuMDI4IDY5LjE4OTNaIiBmaWxsPSIjRjk3Nzc3Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEzNy42NTkgNjMuOTQ5MUMxNDYuMjgzIDY0LjkyNjIgMTQ1LjY3NCA1MS45MTc2IDE0NS42NzQgNTEuOTE3NkMxNDQuMzggNTEuODk2OSAxNDMuMDg3IDUxLjk5MTUgMTQxLjgxIDUyLjIwMDJMMTM2Ljc1MyA1Ny4xOTA1QzE0MC45ODUgNjAuMTk0MyAxMzguOTk3IDYyLjc5NDQgMTM3LjY1OSA2My45NDkxWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggb3BhY2l0eT0iMC4yIiBkPSJNMTYyLjEzNiAxMTguNTExTDE0NS41MTMgMTM3LjA4M0MxNDUuNTEzIDEzNy4wODMgMTI3LjE0MyAxMzYuNjcxIDEwNC44MjkgMTQ3LjY1M0MxMDQuODI5IDE0Ny42NTMgODAuODg4NCAxMzcuNjg5IDc4LjY4NDMgMTI5LjQxMkM3Ni40ODAxIDEyMS4xMzUgMTI4Ljk0NiAxMjYuOTg5IDEyOC45NDYgMTI2Ljk4OUwxNjIuMTM2IDExOC41MTFaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTU3LjQzOSAxMTMuMDZMMTMwLjc4OSAxMjEuODQ2QzEzMC43ODkgMTIxLjg0NiAxMjEuMjY4IDExOS43MjIgMTE5LjU2OSAxMTkuNzIyQzExNy44NjkgMTE5LjcyMiAxMTEuMjg5IDEyNS4xMDggMTE1LjAwOCAxMjYuOTg5QzExOC43MjcgMTI4Ljg3MSAxMjguODgyIDEyOS4xMTMgMTI5Ljk4OCAxMjguNTA3QzEzMS4wOTQgMTI3LjkwMiAxNjAuNjQ1IDEyMC45MzMgMTYwLjY0NSAxMjAuOTMzTDE1Ny40MzkgMTEzLjA2WiIgZmlsbD0iI0U4NjE2MSIvPgo8cGF0aCBkPSJNMTY1LjM0MiA2Mi4yODU0QzE1OS4zMDcgNjEuMTA2NCAxNjkuNzc0IDk4LjEyMTYgMTY3LjIwOSAxMDMuNTcyQzE2NC42NDQgMTA5LjAyMyAxNTQuNjM0IDExMi40NTUgMTU0LjYzNCAxMTIuNDU1TDE1OS4yNDIgMTIyLjcwMkMxNTkuMjQyIDEyMi43MDIgMTcyLjg2OCAxMjAuMTEgMTgwLjI4MiAxMTAuNTg5QzE4Ny42OTUgMTAxLjA2OSAxNzUuMTc2IDY0LjIxNTMgMTY1LjM0MiA2Mi4yODU0WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNMTU0LjYzNCAxMTEuNjQ3TDE2MC4yNDQgMTIyLjcxOEwxNTUuNDM1IDEyMy43NkwxNTEuMDI3IDExMy41NjlMMTU0LjYzNCAxMTEuNjQ3WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xNTQuNjM0IDExMS42NDdMMTYwLjI0NCAxMjIuNzE4TDE1NS40MzUgMTIzLjc2TDE1MS4wMjcgMTEzLjU2OUwxNTQuNjM0IDExMS42NDdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTQzLjYxMyAxMjYuOTlWMTI4Ljc1QzE0My42MSAxMjkuMzM4IDE0My4zODMgMTI5LjkwMiAxNDIuOTc5IDEzMC4zMjVDMTQyLjU3NCAxMzAuNzQ5IDE0Mi4wMjQgMTMxIDE0MS40NDEgMTMxLjAyN0g3Ny4wMDk0Qzc2LjQwOTkgMTMxLjAwOCA3NS44MzkgMTMwLjc2NCA3NS40MDkgMTMwLjM0M0M3NC45NzkgMTI5LjkyMSA3NC43MjA4IDEyOS4zNTMgNzQuNjg1MSAxMjguNzVWMTI2Ljk5SDE0My42MTNaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTE0My42MTMgMTI2Ljk5VjEyOC43NUMxNDMuNjEgMTI5LjMzOCAxNDMuMzgzIDEyOS45MDIgMTQyLjk3OSAxMzAuMzI1QzE0Mi41NzQgMTMwLjc0OSAxNDIuMDI0IDEzMSAxNDEuNDQxIDEzMS4wMjdINzcuMDA5NEM3Ni40MDk5IDEzMS4wMDggNzUuODM5IDEzMC43NjQgNzUuNDA5IDEzMC4zNDNDNzQuOTc5IDEyOS45MjEgNzQuNzIwOCAxMjkuMzUzIDc0LjY4NTEgMTI4Ljc1VjEyNi45OUgxNDMuNjEzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggb3BhY2l0eT0iMC4yIiBkPSJNMTE5LjU2OSAxMjYuOTlWMTI4Ljc1QzExOS41NjMgMTI5LjMzOCAxMTkuMzM0IDEyOS45MDIgMTE4LjkyOSAxMzAuMzI2QzExOC41MjMgMTMwLjc0OSAxMTcuOTcyIDEzMSAxMTcuMzg5IDEzMS4wMjdINzcuMDA5NEM3Ni40MDk5IDEzMS4wMDggNzUuODM5IDEzMC43NjQgNzUuNDA5IDEzMC4zNDNDNzQuOTc5IDEyOS45MjEgNzQuNzIwOCAxMjkuMzUzIDc0LjY4NTEgMTI4Ljc1VjEyNi45OUgxMTkuNTY5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTExNy4zODkgMTI5LjQxMkg3NC44MjE0Qzc0LjEzNzkgMTI5LjM3OCA3My40Nzk2IDEyOS4xNDIgNzIuOTI5MiAxMjguNzMyQzcyLjM3ODcgMTI4LjMyMyA3MS45NjA3IDEyNy43NTkgNzEuNzI3NiAxMjcuMTFMNjEuOTY1NCA5Ni4yNjQ0QzYxLjg1NDEgOTYuMDAwOSA2MS44MTAxIDk1LjcxMzYgNjEuODM3NSA5NS40Mjg2QzYxLjg2NDkgOTUuMTQzNiA2MS45NjI5IDk0Ljg3MDEgNjIuMTIyMyA5NC42MzMxQzYyLjI4MTggOTQuMzk2MSA2Mi40OTc4IDk0LjIwMzIgNjIuNzUwNCA5NC4wNzJDNjMuMDAzIDkzLjk0MDggNjMuMjg0MyA5My44NzU2IDYzLjU2ODQgOTMuODgyM0gxMDYuMTY4QzEwNi44NTggOTMuOTMyNiAxMDcuNTE4IDk0LjE4NDggMTA4LjA2OCA5NC42MDhDMTA4LjYxNyA5NS4wMzEyIDEwOS4wMzIgOTUuNjA2OSAxMDkuMjYyIDk2LjI2NDRMMTE5LjAyNCAxMjcuMDdDMTE5LjEzNyAxMjcuMzM0IDExOS4xODEgMTI3LjYyMiAxMTkuMTUxIDEyNy45MDhDMTE5LjEyMiAxMjguMTk0IDExOS4wMjEgMTI4LjQ2NyAxMTguODU3IDEyOC43MDJDMTE4LjY5MyAxMjguOTM3IDExOC40NzIgMTI5LjEyNSAxMTguMjE1IDEyOS4yNUMxMTcuOTU4IDEyOS4zNzQgMTE3LjY3MyAxMjkuNDMgMTE3LjM4OSAxMjkuNDEyWiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xMTcuMzg5IDEyOS40MTJINzQuODIxNEM3NC4xMzc5IDEyOS4zNzggNzMuNDc5NiAxMjkuMTQyIDcyLjkyOTIgMTI4LjczMkM3Mi4zNzg3IDEyOC4zMjMgNzEuOTYwNyAxMjcuNzU5IDcxLjcyNzYgMTI3LjExTDYxLjk2NTQgOTYuMjY0NEM2MS44NTQxIDk2LjAwMDkgNjEuODEwMSA5NS43MTM2IDYxLjgzNzUgOTUuNDI4NkM2MS44NjQ5IDk1LjE0MzYgNjEuOTYyOSA5NC44NzAxIDYyLjEyMjMgOTQuNjMzMUM2Mi4yODE4IDk0LjM5NjEgNjIuNDk3OCA5NC4yMDMyIDYyLjc1MDQgOTQuMDcyQzYzLjAwMyA5My45NDA4IDYzLjI4NDMgOTMuODc1NiA2My41Njg0IDkzLjg4MjNIMTA2LjE2OEMxMDYuODU4IDkzLjkzMjYgMTA3LjUxOCA5NC4xODQ4IDEwOC4wNjggOTQuNjA4QzEwOC42MTcgOTUuMDMxMiAxMDkuMDMyIDk1LjYwNjkgMTA5LjI2MiA5Ni4yNjQ0TDExOS4wMjQgMTI3LjA3QzExOS4xMzcgMTI3LjMzNCAxMTkuMTgxIDEyNy42MjIgMTE5LjE1MSAxMjcuOTA4QzExOS4xMjIgMTI4LjE5NCAxMTkuMDIxIDEyOC40NjcgMTE4Ljg1NyAxMjguNzAyQzExOC42OTMgMTI4LjkzNyAxMTguNDcyIDEyOS4xMjUgMTE4LjIxNSAxMjkuMjVDMTE3Ljk1OCAxMjkuMzc0IDExNy42NzMgMTI5LjQzIDExNy4zODkgMTI5LjQxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTExNS43ODYgMTI5LjQxMkg3NC44MjE0Qzc0LjEzNzkgMTI5LjM3OCA3My40Nzk2IDEyOS4xNDIgNzIuOTI5MiAxMjguNzMyQzcyLjM3ODcgMTI4LjMyMyA3MS45NjA3IDEyNy43NTkgNzEuNzI3NiAxMjcuMTFMNjEuOTY1NCA5Ni4yNjQ0QzYxLjg1NDEgOTYuMDAwOSA2MS44MTAxIDk1LjcxMzYgNjEuODM3NSA5NS40Mjg2QzYxLjg2NDkgOTUuMTQzNiA2MS45NjI5IDk0Ljg3MDEgNjIuMTIyMyA5NC42MzMxQzYyLjI4MTggOTQuMzk2MSA2Mi40OTc4IDk0LjIwMzIgNjIuNzUwNCA5NC4wNzJDNjMuMDAzIDkzLjk0MDggNjMuMjg0MyA5My44NzU2IDYzLjU2ODQgOTMuODgyM0gxMDQuNTY1QzEwNS4yNTUgOTMuOTMyNiAxMDUuOTE1IDk0LjE4NDggMTA2LjQ2NSA5NC42MDhDMTA3LjAxNCA5NS4wMzEyIDEwNy40MjkgOTUuNjA2OSAxMDcuNjU5IDk2LjI2NDRMMTE3LjQyMSAxMjcuMDdDMTE3LjUzNCAxMjcuMzM0IDExNy41NzggMTI3LjYyMiAxMTcuNTQ4IDEyNy45MDhDMTE3LjUxOSAxMjguMTk0IDExNy40MTggMTI4LjQ2NyAxMTcuMjU0IDEyOC43MDJDMTE3LjA5IDEyOC45MzcgMTE2Ljg2OSAxMjkuMTI1IDExNi42MTIgMTI5LjI1QzExNi4zNTUgMTI5LjM3NCAxMTYuMDcgMTI5LjQzIDExNS43ODYgMTI5LjQxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTkwLjg4MjYgMTEzLjA2QzkxLjQwMzUgMTE1LjExOSA5MC4zOTM3IDExNi43ODIgODguNjE0NSAxMTYuNzgyQzg2LjgzNTMgMTE2Ljc4MiA4NC45NjggMTE1LjExOSA4NC40NDcgMTEzLjA2QzgzLjkyNjEgMTExLjAwMSA4NC45MzU5IDEwOS4zMzggODYuNzE1MSAxMDkuMzM4Qzg4LjQ5NDMgMTA5LjMzOCA5MC4zNTM2IDExMS4wMDkgOTAuODgyNiAxMTMuMDZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xMjkuNDkxIDE2NS45MzRMMTMyLjM1MyAxNTkuNTYzQzEzMi4zOTEgMTU5LjQ3OSAxMzIuNDQ2IDE1OS40MDQgMTMyLjUxNCAxNTkuMzQxQzEzMi41ODIgMTU5LjI3OSAxMzIuNjYxIDE1OS4yMyAxMzIuNzQ3IDE1OS4xOTlDMTMyLjgzNCAxNTkuMTY3IDEzMi45MjYgMTU5LjE1MyAxMzMuMDE3IDE1OS4xNThDMTMzLjEwOSAxNTkuMTYyIDEzMy4xOTkgMTU5LjE4NSAxMzMuMjgyIDE1OS4yMjRMMTM2LjM3NiAxNjAuNzVDMTM2LjM3NiAxNjAuNzUgMTQwLjY3MiAxNjIuNTAzIDE0MS4xODUgMTYzLjkwOEMxNDIuNzg4IDE2OC4wMjYgMTM2Ljc4NSAxODIuMjg2IDEzNC45MTcgMTgyLjI4NkMxMzQuMjM2IDE4Mi4yODYgMTMzLjgyNyAxODEuMjIgMTMzLjczMSAxODAuNTQyQzEzMy40MjcgMTc4LjM3OCAxMzMuMzc4IDE3Mi45NTEgMTMzLjEwNiAxNzEuMTUxQzEzMi43ODUgMTY5LjA1MSAxMzAuNzAxIDE2Ny40MzYgMTI5LjcgMTY2Ljc5QzEyOS41NzEgMTY2LjY5NSAxMjkuNDc5IDE2Ni41NTcgMTI5LjQ0MSAxNjYuNEMxMjkuNDAzIDE2Ni4yNDQgMTI5LjQyMSAxNjYuMDc5IDEyOS40OTEgMTY1LjkzNFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTgyLjUxNTMgMTU4LjY0M0w4NS4wMzIgMTY1LjE1OUM4NS4wNjUgMTY1LjI0NiA4NS4wODA0IDE2NS4zMzkgODUuMDc3MyAxNjUuNDMyQzg1LjA3NDEgMTY1LjUyNSA4NS4wNTI0IDE2NS42MTYgODUuMDEzNiAxNjUuN0M4NC45NzQ3IDE2NS43ODUgODQuOTE5NCAxNjUuODYgODQuODUxIDE2NS45MjNDODQuNzgyNSAxNjUuOTg1IDg0LjcwMjQgMTY2LjAzMyA4NC42MTUyIDE2Ni4wNjRMODEuNDA5MiAxNjcuMjE4QzgxLjQwOTIgMTY3LjIxOCA3Ny4xNTMzIDE2OS4wOTIgNzUuNzk4OCAxNjguNDk0QzcxLjc5MTMgMTY2Ljc1IDY1Ljg1MjIgMTUyLjQ3NCA2Ny4xNTg3IDE1MS4xMjVDNjcuNjMxNSAxNTAuNjMzIDY4LjY3MzUgMTUxLjA4NSA2OS4yMjY1IDE1MS40OTdDNzAuOTY1OCAxNTIuNzg5IDc0LjgzNyAxNTYuNTUyIDc2LjMxOTcgMTU3LjYwOUM3OC4wMzQ5IDE1OC44NTMgODAuNjU1OCAxNTguNDY1IDgxLjc5MzkgMTU4LjIxNUM4MS45NDQzIDE1OC4xOTUgODIuMDk2OSAxNTguMjI3IDgyLjIyNzYgMTU4LjMwNEM4Mi4zNTgyIDE1OC4zODIgODIuNDU5NSAxNTguNTAxIDgyLjUxNTMgMTU4LjY0M1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik05NS45MTY3IDY1Ljk4MTlIODAuNDIxMUM3OC4wMTY2IDY1Ljk4MTkgNzYuMTQ2NSA2Ny44NjYxIDc2LjE0NjUgNzAuMjg4NVY4Mi41MzU0Qzc2LjE0NjUgODQuODIzMyA3OC4wMTY2IDg2Ljg0MiA4MC40MjExIDg2Ljg0Mkg4Ni4xNjUyTDg4LjE2ODkgOTEuNjg2OUw5MC4xNzI2IDg2LjcwNzRIOTUuOTE2N0M5OC4xODc2IDg2LjcwNzQgMTAwLjE5MSA4NC44MjMzIDEwMC4xOTEgODIuNDAwOFY3MC4yODg1QzEwMC4wNTggNjcuODY2MSA5OC4xODc2IDY1Ljk4MTkgOTUuOTE2NyA2NS45ODE5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNOTQuMTQ0IDcyLjQ1MDVDOTQuMDYxMiA3Mi4zNjY0IDkzLjk2MjcgNzIuMjk5NiA5My44NTQyIDcyLjI1NDFDOTMuNzQ1NyA3Mi4yMDg1IDkzLjYyOTMgNzIuMTg1MSA5My41MTE3IDcyLjE4NTFDOTMuMzk0MSA3Mi4xODUxIDkzLjI3NzcgNzIuMjA4NSA5My4xNjkyIDcyLjI1NDFDOTMuMDYwNyA3Mi4yOTk2IDkyLjk2MjIgNzIuMzY2NCA5Mi44Nzk0IDcyLjQ1MDVMODYuMjQ0OCA3OS4xNDM2TDgzLjQ1NzQgNzYuMzI2NEM4My4zNzE0IDc2LjI0MjcgODMuMjcgNzYuMTc3IDgzLjE1ODggNzYuMTMyOEM4My4wNDc2IDc2LjA4ODcgODIuOTI4OSA3Ni4wNjcgODIuODA5NCA3Ni4wNjkxQzgyLjY4OTkgNzYuMDcxMiA4Mi41NzIgNzYuMDk3IDgyLjQ2MjMgNzYuMTQ1QzgyLjM1MjcgNzYuMTkyOSA4Mi4yNTM2IDc2LjI2MjIgODIuMTcwNiA3Ni4zNDg4QzgyLjA4NzUgNzYuNDM1NCA4Mi4wMjIyIDc2LjUzNzcgODEuOTc4NCA3Ni42NDk3QzgxLjkzNDYgNzYuNzYxNyA4MS45MTMxIDc2Ljg4MTMgODEuOTE1MiA3Ny4wMDE3QzgxLjkxNzIgNzcuMTIyMSA4MS45NDI4IDc3LjI0MDkgODEuOTkwNSA3Ny4zNTEzQzgyLjAzODEgNzcuNDYxNyA4Mi4xMDY5IDc3LjU2MTYgODIuMTkyOCA3Ny42NDUzTDg1LjYxMjUgODEuMDkwNkM4NS42OTUzIDgxLjE3NDcgODUuNzkzOCA4MS4yNDE0IDg1LjkwMjMgODEuMjg3Qzg2LjAxMDkgODEuMzMyNSA4Ni4xMjczIDgxLjM1NiA4Ni4yNDQ4IDgxLjM1NkM4Ni4zNjI0IDgxLjM1NiA4Ni40Nzg4IDgxLjMzMjUgODYuNTg3MyA4MS4yODdDODYuNjk1OCA4MS4yNDE0IDg2Ljc5NDMgODEuMTc0NyA4Ni44NzcxIDgxLjA5MDZMOTQuMTQ0IDczLjc2OTNDOTQuMjM0NCA3My42ODUzIDk0LjMwNjUgNzMuNTgzNCA5NC4zNTU5IDczLjQ2OTlDOTQuNDA1MiA3My4zNTY0IDk0LjQzMDcgNzMuMjMzOCA5NC40MzA3IDczLjEwOTlDOTQuNDMwNyA3Mi45ODYgOTQuNDA1MiA3Mi44NjM0IDk0LjM1NTkgNzIuNzQ5OUM5NC4zMDY1IDcyLjYzNjQgOTQuMjM0NCA3Mi41MzQ1IDk0LjE0NCA3Mi40NTA1WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEzMS4yNTUgMzkuMjE0MUMxMzQuNTI3IDQwLjU4MDcgMTMzLjg4OCA0NC4xMTc2IDEyOC40NjMgNTAuNjI4N0MxMjUuMTEyIDQ3LjczNDkgMTIzLjM1NiA0MS4yMjM3IDEyNS4xMTIgMzkuMDUzNEMxMjYuNzg3IDM3LjA0MzggMTI4LjM4MyAzOC4wODg4IDEzMS4yNTUgMzkuMjE0MVoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTEyNi4zODcgNTMuNzYzMkMxMjYuNzA2IDU0LjcyNzggMTI3LjAyNSA1NS41MzE2IDEyNy40MjQgNTYuMzM1NUMxMzAuNjE1IDYyLjkyNyAxMzkuODcxIDY0LjIxMzEgMTQzLjk0IDU3LjcwMkMxNDMuOTQgNTcuNzAyIDE0My45NCA1Ny43MDIgMTQ0LjAyIDU3LjYyMTZDMTQ2LjczMyA1My4yMDA1IDE0NS42OTUgNDkuMTgxMyAxNDQuNTc4IDQyLjAyNzFDMTQ0LjMzOSA0MC40OTk4IDE0My43OCAzOS4xMzMyIDE0Mi45MDMgMzcuODQ3MUMxMzkuNzkxIDMzLjQyNiAxMzMuODA3IDMyLjM4MSAxMjkuMzM5IDM1LjQzNTZDMTI0LjA3MyAzOS4yMTM2IDEyNC4zOTIgNDcuNjU0IDEyNi4zODcgNTMuNzYzMloiIGZpbGw9IiNGOTc3NzciLz4KPHBhdGggZD0iTTEzNC44NTQgNDcuNzkyNkMxMzUuMDE0IDQ4LjM1NTMgMTM0Ljc3NSA0OC45MTc5IDEzNC4zNzYgNDguOTk4M0MxMzMuOTc3IDQ5LjA3ODcgMTMzLjU3OCA0OC42NzY4IDEzMy40OTggNDguMTE0MUMxMzMuMzM4IDQ3LjU1MTUgMTMzLjU3OCA0Ni45ODg4IDEzMy44OTcgNDYuOTA4NEMxMzQuMjk2IDQ2LjgyODEgMTM0LjY5NSA0Ny4yMyAxMzQuODU0IDQ3Ljc5MjZaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xMjguMzkzIDQ5LjIzOTRDMTI4LjU1MiA0OS44MDIgMTI4LjMxMyA1MC4zNjQ3IDEyNy45MTQgNTAuNDQ1MUMxMjcuNTE1IDUwLjUyNTQgMTI3LjExNiA1MC4xMjM1IDEyNy4wMzYgNDkuNTYwOUMxMjYuODc3IDQ4Ljk5ODIgMTI3LjExNiA0OC40MzU2IDEyNy41MTUgNDguMzU1MkMxMjcuOTE0IDQ4LjI3NDggMTI4LjMxMyA0OC42NzY3IDEyOC4zOTMgNDkuMjM5NFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTEzMS42MjQgNDguOTQxN0MxMzEuMzA1IDUwLjg3MDcgMTMwLjgyNiA1Mi42MzkxIDEzMC4wMjggNTQuNDA3NEMxMzEuMjI1IDU1LjEzMDggMTMyLjgyMSA1NC4zMjcgMTMyLjgyMSA1NC4zMjdMMTMxLjYyNCA0OC45NDE3WiIgZmlsbD0iI0RFNTc1MyIvPgo8cGF0aCBkPSJNMTM2LjEyNCA0NS4yNzc2QzEzNi4yMDQgNDUuMjc3NiAxMzYuMjgzIDQ1LjE5NzMgMTM2LjM2MyA0NS4xOTczQzEzNi41MjMgNDUuMDM2NSAxMzYuNDQzIDQ0Ljg3NTcgMTM2LjM2MyA0NC43MTVDMTM1LjU2NSA0My45OTE2IDEzNC40NDggNDMuNjcwMSAxMzMuMzMxIDQzLjkxMTJDMTMzLjE3MiA0My45OTE2IDEzMy4wMTIgNDQuMTUyMyAxMzMuMDkyIDQ0LjMxMzFDMTMzLjE3MiA0NC40NzM5IDEzMy4zMzEgNDQuNTU0MiAxMzMuNDkxIDQ0LjU1NDJDMTM0LjM2OSA0NC4zOTM1IDEzNS4yNDYgNDQuNjM0NiAxMzUuODg0IDQ1LjE5NzNDMTM1Ljg4NCA0NS4yNzc2IDEzNi4wNDQgNDUuMjc3NiAxMzYuMTI0IDQ1LjI3NzZaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xMjUuMzc4IDQ3LjY2NzVDMTI1LjUzNyA0Ny42Njc1IDEyNS42MTcgNDcuNTA2NyAxMjUuNjE3IDQ3LjQyNjRDMTI1Ljc3NyA0Ni41NDIyIDEyNi4zMzUgNDUuODE4OCAxMjcuMTMzIDQ1LjQ5NzNDMTI3LjI5MiA0NS40MTY5IDEyNy4zNzIgNDUuMjU2MSAxMjcuMzcyIDQ1LjA5NTRDMTI3LjI5MiA0NC45MzQ2IDEyNy4xMzMgNDQuODU0MiAxMjYuOTczIDQ0Ljg1NDJDMTI1LjkzNiA0NS4yNTYxIDEyNS4yMTggNDYuMjIwNyAxMjQuOTc5IDQ3LjI2NTZDMTI0Ljg5OSA0Ny40MjY0IDEyNS4wNTkgNDcuNjY3NSAxMjUuMjE4IDQ3LjY2NzVDMTI1LjI5OCA0Ny43NDc5IDEyNS4zNzggNDcuNzQ3OSAxMjUuMzc4IDQ3LjY2NzVaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xNDAuNDMgMzYuNDgwOUMxMzcuMzk4IDM4LjMyOTggMTM4LjU5NCA0MS43ODYzIDE0NC45NzcgNDcuMzMyOEMxNDcuNzcgNDMuOTU2NiAxNDguNTY4IDM3LjIwNDQgMTQ2LjQ5MyAzNS40MzU5QzE0NC40MTkgMzMuNTg3MSAxNDMuMDYzIDM0Ljg3MzIgMTQwLjQzIDM2LjQ4MDlaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xNDkuMTI2IDQ2Ljg1MUMxNDkuMDQ2IDQ4LjYxOTMgMTQ4LjE2OCA1MC4zMDczIDE0Ni44OTIgNTEuNTEzQzE0NS4xMzcgNTMuMTIwNSAxNDMuMjIyIDUxLjc1NDEgMTQyLjgyMyA0OS41MDM1QzE0Mi41MDQgNDcuNDk0IDE0My4wNjIgNDQuMjc4OSAxNDUuMjE2IDQzLjU1NTRDMTQ3LjQ1IDQyLjkxMjQgMTQ5LjI4NSA0NC42ODA4IDE0OS4xMjYgNDYuODUxWiIgZmlsbD0iI0Y5Nzc3NyIvPgo8cGF0aCBkPSJNMTM3LjIyIDU0LjA1MDNDMTM3LjIyIDU0LjA1MDMgMTM2LjUwMiA1Ni42MjI0IDEzMy4wNzEgNTcuMTg1MSIgc3Ryb2tlPSIjMjYzMjM4IiBzdHJva2Utd2lkdGg9IjAuOTI1Mzg4IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTI3LjI2NCAzNy41MjYxQzEyNy4yNjQgMzcuNTI2MSAxMjkuOTc3IDM2LjU2MTYgMTMzLjY0NyAzNi45NjM1QzEzMy42NDcgMzYuOTYzNSAxMzUuNDgyIDMzLjc0ODMgMTMwLjkzNCAzMy41ODc1QzEyNy43NDMgMzMuNDI2OCAxMjcuMTA1IDM1LjE5NTEgMTI3LjI2NCAzNy41MjYxWiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTI2LjgzMyA0NC4wMDQ0TDEyNC4xMzggNDQuMTc1NUMxMjQuMTM4IDQ0LjE3NTUgMTI0LjgzMyA0MC44NzM3IDEyMy44NTggMzguNzIzNEMxMjIuOTQyIDM2LjU1MTUgMTIxLjkyMyAzNS4wMjY5IDEyNi4xODUgMzMuNjA2MUMxMzAuNDQ4IDMyLjE4NTMgMTM0LjM1NCAzNS41Njg1IDEyNi44MzMgNDQuMDA0NFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTE0MC41MzYgMzcuOTg2NUMxMzUuNjQyIDM4Ljk2MDQgMTI2LjY2NSAzOS4wNTM4IDEyNS42NTEgMzMuMDU2NEMxMjUuMDA3IDI5LjAyMzcgMTMxLjIwMyAyOC4xMTY1IDEzMy4xMTkgMjkuNTE3QzEzNS4wNTYgMzAuOTc3NCAxMzkuMTIxIDMyLjc0NDkgMTQyLjQ5NiAzMy4zNDE4QzE0NS44NzEgMzMuOTM4NiAxNDcuODE4IDM2LjU0NzIgMTQwLjUzNiAzNy45ODY1WiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTQxLjI5OCA0Ny4zOTVMMTM4LjYxNSA0Ny4yMjM0QzEzOC42MTUgNDcuMjIzNCAxMzkuNjkzIDQ0LjA1MjUgMTM5LjAxNSA0MS43OTM4QzEzOC4zMzcgMzkuNTM1MSAxMzcuNTM0IDM3Ljg2MzggMTQxLjkzMSAzNy4wMDM2QzE0Ni4zNjYgMzYuMDYxOCAxNDkuNzg1IDM5Ljk2MTMgMTQxLjI5OCA0Ny4zOTVaIiBmaWxsPSIjMjYzMjM4Ii8+Cjwvc3ZnPgo=",HEe="",ile={tagName:"l-search-topics",name:"LSearchTopics",components:{TopicItemGroup:Uoe,RecentTermSearched:Qoe,SearchTopicsHeader:Zoe},props:{canSendForAll:{type:Boolean,default:!1},searchTopics:{type:Function},populateTopic:{type:Function},alreadySelectedTopics:{type:Array},recentTopicsSearched:{type:Object}},data:function(){return{forAllTagChecked:!1,showSelected:!1,selectedTopics:[],querySearchTopics:{q:null,kind:"*",page:0},searchedTopics:{tag:{hits:[],total:0},group:{hits:[],total:0},member:{hits:[],total:0},user:{hits:[],total:0}},total:0,kinds:["*","tag","group","member","user"],kindsIcons:{tag:"uil-tag-alt",group:"uil-users-alt",member:"uil-graduation-cap",user:"uil-user","*":""},typing:!1,loading:!1,loadingMore:!1}},watch:{selectedTopics(t){(!t||t.length===0)&&(this.showSelected=!1)},querySearchTopics(){!this.typing&&!this.loadingMore&&(this.typing=!0),this.searchDebounced()}},computed:{searchingSpan(){return this.querySearchTopics.q?this.querySearchTopics.q:this.querySearchTopics.kind==="*"?"":this.getKindNamePlural(this.querySearchTopics.kind).toLowerCase()},hasQuery(){return this.querySearchTopics.q||this.querySearchTopics.kind!=="*"},showRecentSearchedTopics(){return this.recentTopicsSearched.data?this.recentTopicsSearched.data.length>0&&!this.hasQuery:!1},filteredSearchedTopics(){return{...this.searchedTopics,tag:{hits:this.searchedTopics.tag.hits.filter(t=>t.id!=="*"),total:this.searchedTopics.tag.total}}},forAllTag:{get(){return this.forAllTagChecked},set(t){const e=this.searchedTopics.tag.hits;if(this.selectedTopics&&this.selectedTopics.length&&this.selectedTopics.find(n=>n.id!=="*")&&t!=="confirm"){this.showForAllTagAlert().then(n=>{if(!n){this.forAllTagChecked=!1;return}const i=e.find(s=>s.id==="*");this.setSelectedTopics([i]),this.forAllTagChecked=!0});return}if(t=!!t,t&&this.searchedTopics&&e){const n=e.find(i=>i.id==="*");this.setSelectedTopics([n])}else this.setSelectedTopics([]);this.forAllTagChecked=t}},recentTopicsFiltered(){return ia(this.recentTopicsSearched.data).reverse().slice(0,3)},topicsSummary(){if(!this.selectedTopics||!this.selectedTopics.length)return"";if(this.forAllTagChecked)return"Enviando para todos";const t=[];return this.kinds.filter(e=>e!=="*").forEach(e=>{const n=k$(this.selectedTopics,{kind:e}).length;n===1?t.push(`1 ${this.getKindName(e).toLowerCase()}`):n>1&&t.push(`${n} ${this.getKindNamePlural(e).toLowerCase()}`)}),t.length?t.join(", "):null},hasAnySearchedTopic(){return this.total?this.total>0:null},headerKinds(){return this.kinds.filter(t=>t!=="tag"||this.canSendForAll).map(t=>({value:t,name:this.getKindNamePlural(t),icon:this.kindsIcons[t]}))},resultKinds(){return this.kinds.filter(e=>e!=="*").filter(e=>this.filteredSearchedTopics[e].total&&this.filteredSearchedTopics[e].hits.length)},totalLabel(){return this.total===1?"1 resultado encontrado":this.total+" resultados encontrados"},isAllEntities(){return this.querySearchTopics.kind==="*"}},async created(){this.loading=!0;try{const t=await this.searchTopics(this.querySearchTopics);this.searchedTopics=t.result,this.total=t.total}catch{this.$notify({...vv.errorHandler("Erro ao carregar o público alvo."),duration:1e4,position:"bottom",showClose:!0})}finally{this.loading=!1}this.selectedTopics=this.alreadySelectedTopics,this.selectedTopics&&this.selectedTopics.length&&this.selectedTopics.find(t=>t.id==="*"&&t.kind==="tag")&&(this.forAllTag=!0)},destroyed(){this.setSelectedTopics([])},methods:{searchDebounced:Nae(async function(){vn(this.querySearchTopics,"q.length",null)>3&&this.recentTopicsSearched.push(this.querySearchTopics.q),await this.getSearchedTopics(this.querySearchTopics),this.typing=!1},500,{leading:!1,trailing:!0}),useRecentTermSearched(t){this.setQuerySearchTopics({q:t,kind:"*"})},getKindName(t,e="pt-br"){return{"pt-br":{"*":"Procurar em tudo",tag:"Marcador",group:"Turma",member:"Aluno",user:"Usuário"},"en-us":{"*":"Search all",tag:"Tag",group:"Group",member:"Member",user:"User"}}[e][t]},getKindNamePlural(t,e="pt-br"){return{"pt-br":{"*":"Procurar em tudo",tag:"Marcadores",group:"Turmas",member:"Alunos",user:"Usuários"},"en-us":{"*":"Search all",tag:"Tags",group:"Groups",member:"Members",user:"Users"}}[e][t]},async getSearchedTopics(t){this.loadingMore||(this.loading=!0);try{const e=await this.searchTopics(t);if(t.page>0){const n=ia(this.searchedTopics);await Promise.all(w7(e.result).map(i=>{n[i]||(n[i]={hits:[],total:null}),n[i].hits=[...n[i].hits,...e.result[i].hits]})),this.searchedTopics=n}else this.searchedTopics=e.result,this.total=e.total}catch{this.$notify({...vv.errorHandler("Erro ao buscar o público desejado."),duration:1e4,position:"bottom",showClose:!0})}finally{this.loading=!1,this.loadingMore=!1}},loadMore(){this.loadingMore=!0;const t=vn(this.querySearchTopics,"page",0)+1,e=vn(this.querySearchTopics,"q",null),n=vn(this.querySearchTopics,"kind",null);this.setQuerySearchTopics({q:e,kind:n,page:t})},getTopicHits(t){return vn(this.filteredSearchedTopics,`${t}.hits`,[])},getTopicTotal(t){return vn(this.filteredSearchedTopics,`${t}.total`,[])},needShowMore(t){return this.getTopicTotal(t)>this.getTopicHits(t).length},isChecked(t){return this.forAllTagChecked?!0:this.selectedTopics.filter(e=>e.kind===t.kind&&e.id===t.id).length!==0},filterForKind(t){this.setQuerySearchTopics({q:this.querySearchTopics.q,kind:t,page:0})},setSelectedTopics(t){this.selectedTopics=t},removeFromRecentTopicsSearched(t){this.recentTopicsSearched.remove(t)},setQuerySearchTopics(t){this.querySearchTopics=t},async showForAllTagAlert(){const t=await ele({title:"Você já selecionou alguns destinatários e eles serão substituídos pela tag todos.",buttonCloseLabel:"Cancelar",buttonConfirmLabel:"Continuar"});if(t)return t},addTopic(t){if(this.selectedTopics.filter(n=>n.id===t.id&&n.kind===t.kind).length===0){const n=ia(this.selectedTopics);n.push(t),this.setSelectedTopics(n)}},removeTopic(t){const e=this.selectedTopics.findIndex(i=>i.id===t.id&&i.kind===t.kind);if(e==-1)return;const n=ia(this.selectedTopics);n.splice(e,1),this.setSelectedTopics(n)},updateSelectedTopics({topic:t,value:e}){if(!e){this.removeTopic(t);return}this.addTopic(t)},onSave(){const t=this.selectedTopics.map(e=>({hash:e.hash,name:e.name,kind:e.kind,id:e.id}));this.$emit("answer",t)},async onClose(){const t=ia(this.alreadySelectedTopics).map(s=>s.kind+s.id),e=ia(this.selectedTopics).map(s=>s.kind+s.id);if(Loe(e,t).length===0){this.$emit("close");return}await tle()&&this.$emit("close")},onInput(t){this.querySearchTopics=t}}};var rle=function(){var e=this,n=e._self._c;return n("div",{staticClass:"search-topics-page l-col l-d-flex column"},[n("SearchTopicsHeader",{staticClass:"drawer-search-topics-header",attrs:{kinds:e.headerKinds,query:e.querySearchTopics,typing:e.typing,loading:e.loading,hasAnySelectedTopic:e.selectedTopics.length>0},on:{save:e.onSave,close:e.onClose,input:e.onInput}}),n("div",{staticClass:"px-0 py-2 l-container scroll-y l-flex-grow-1"},[e.loading||e.typing?[n("div",{staticClass:"gray-70--text searching-label mx-3"},[e._v(" Procurando "+e._s(e.searchingSpan)+"... ")])]:e.hasAnySearchedTopic?[n("div",{staticClass:"mb-5"},[e.showRecentSearchedTopics?n("div",{staticClass:"recent-search mb-3 mx-3"},[n("div",{staticClass:"recent-search-title gray-70--text mb-2 l-text-regular"},[e._v(" Buscas recentes ")]),e._l(e.recentTopicsFiltered,function(i,s){return n("RecentTermSearched",{key:s,staticClass:"mb-2 cursor-pointer",attrs:{term:i},on:{remove:function(o){return e.removeFromRecentTopicsSearched(i)}},nativeOn:{click:function(o){return e.useRecentTermSearched(i)}}})})],2):e._e(),e.canSendForAll&&!this.hasQuery?n("div",{staticClass:"topic-item-tag-for-all mx-3"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Enviar para todos ")]),n("l-checkbox",{model:{value:e.forAllTag,callback:function(i){e.forAllTag=i},expression:"forAllTag"}})],1):e._e(),e.total>=1&&e.hasQuery?n("div",{staticClass:"results-total mb-2 px-3"},[e._v(" "+e._s(e.totalLabel)+" ")]):e._e(),e._l(e.resultKinds,function(i){return n("div",{key:i,staticClass:"topics-searched mb-3"},[e.isAllEntities?n("h6",{staticClass:"topic-kind-title gray-70--text mb-2 px-3"},[e._v(" "+e._s(e.getKindNamePlural(i))+" ("+e._s(e.getTopicTotal(i))+") ")]):e._e(),e._l(e.getTopicHits(i),function(s){return n("TopicItemGroup",{key:s.id,attrs:{topic:s,populateTopic:e.populateTopic,disabled:e.forAllTagChecked,checked:e.isChecked(s),isCheckedFunction:e.isChecked},on:{input:function(o){return e.updateSelectedTopics(o)}}})}),e.isAllEntities&&e.needShowMore(i)?n("div",{staticClass:"m-3"},[n("l-button",{attrs:{loading:e.loading,plain:"",fill:""},nativeOn:{click:function(s){return e.filterForKind(i)}}},[e._v(" Mostrar mais "+e._s(e.getKindNamePlural(i).toLowerCase())+" ")])],1):e._e(),!e.isAllEntities&&e.needShowMore(i)?n("div",{staticClass:"m-3"},[n("l-button",{staticClass:"ma-3",attrs:{loading:e.loadingMore,plain:"",fill:""},nativeOn:{click:function(s){return e.loadMore()}}},[e._v(" Carregar mais ")])],1):e._e()],2)})],2)]:[n("div",{staticStyle:{display:"flex","flex-direction":"column",height:"100%","align-items":"stretch"}},[e.canSendForAll&&!this.hasQuery?n("div",{staticClass:"topic-item-tag-for-all empty-tags-groups-for-all mx-3"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Enviar para todos ")]),n("l-checkbox",{model:{value:e.forAllTag,callback:function(i){e.forAllTag=i},expression:"forAllTag"}})],1):e._e(),e.querySearchTopics.q?!e.typing&&!e.loading?n("div",{staticClass:"not-found-result mx-3"},[n("h4",{staticClass:"bold lead--text m-0"},[e._v("Não encontramos resultados")]),n("p",{staticClass:"lead-light--text l-text-regular mt-3 mb-0"},[e._v(" Tenha certeza que você está digitando uma palavra-chave correta ")])]):e._e():n("div",{staticClass:"empty-tags-groups-placeholder"},[n("img",{attrs:{alt:"Search Topics",src:nle}}),e._m(0)])])]],2),e.selectedTopics&&e.selectedTopics.length?n("div",{staticClass:"selected-topics"},[n("button",{staticClass:"selected-topics-button l-d-flex l-align-items-center",staticStyle:{padding:"0"},on:{click:function(i){e.forAllTagChecked?e.forAllTag=!1:e.showSelected=!0}}},[n("div",{staticClass:"selected-topics-button-bg"}),n("div",{staticClass:"ml-2 topics-selected-summary l-flex link--text"},[e._v(" "+e._s(e.topicsSummary)+" ")]),n("l-button",{staticClass:"mr-2 bold link--text",attrs:{type:"text"}},[e._v(" "+e._s(e.forAllTagChecked?"Limpar":"ver tudo")+" ")])],1),n("van-action-sheet",{staticStyle:{"max-height":"500px","min-height":"180px"},attrs:{"lock-scroll":""},model:{value:e.showSelected,callback:function(i){e.showSelected=i},expression:"showSelected"}},[n("div",{staticClass:"l-d-flex m-3 l-align-items-center"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Destinatários selecionados ")]),n("l-button",{staticClass:"border-none gray-70--text f-24 p-1",attrs:{circle:"",icon:"uil-multiply"},on:{click:function(i){e.showSelected=!1}}})],1),n("div",{staticClass:"mx-3 mb-3"},e._l(e.selectedTopics,function(i){return n("l-target-chip",{key:i.id,staticClass:"mr-2 mb-2",attrs:{kind:i.kind,name:i.name,closeable:!0},on:{remove:function(s){return e.removeTopic(i)}}})}),1)])],1):e._e()],1)},sle=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"empty-tags-groups-placeholder-text mt-2"},[e("h3",[t._v("Busque por marcadores, turmas, alunos e usuários")]),e("span",{staticClass:"text-small lead-light--text"},[t._v(" Quando você tiver marcadores e turmas, eles aparecerão aqui. ")])])}],ale=Qe(ile,rle,sle,!1,null,"4af9663b",null,null);const ole=ale.exports,lle=Object.freeze(Object.defineProperty({__proto__:null,default:ole},Symbol.toStringTag,{value:"Module"})),ule={tagName:"l-select",extends:Nt.Select};var cle=Qe(ule,null,null,!1,null,null,null,null);const dle=cle.exports,fle=Object.freeze(Object.defineProperty({__proto__:null,default:dle},Symbol.toStringTag,{value:"Module"})),hle={tagName:"l-slider",extends:Nt.Slider};var ple=Qe(hle,null,null,!1,null,null,null,null);const mle=ple.exports,gle=Object.freeze(Object.defineProperty({__proto__:null,default:mle},Symbol.toStringTag,{value:"Module"})),qEe="",vle=lh(Nt.Switch);delete vle.props.activeIconClass;const yle={tagName:"l-switch",extends:Nt.Switch,computed:{activeIconClass(){return this.value?"uil-check":"uil-times"}}};var ble=Qe(yle,null,null,!1,null,"a8ac0bc4",null,null);const _le=ble.exports,Mle=Object.freeze(Object.defineProperty({__proto__:null,default:_le},Symbol.toStringTag,{value:"Module"})),xle={tagName:"l-tab-pane",extends:Nt.TabPane};var Cle=Qe(xle,null,null,!1,null,null,null,null);const Sle=Cle.exports,Tle=Object.freeze(Object.defineProperty({__proto__:null,default:Sle},Symbol.toStringTag,{value:"Module"}));/*!
156
+ ***************************************************************************** */var s=function(G,Y){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Z){J.__proto__=Z}||function(J,Z){for(var X in Z)Z.hasOwnProperty(X)&&(J[X]=Z[X])},s(G,Y)};function o(G,Y){s(G,Y);function J(){this.constructor=G}G.prototype=Y===null?Object.create(Y):(J.prototype=Y.prototype,new J)}var u=function(){return u=Object.assign||function(Y){for(var J,Z=1,X=arguments.length;Z<X;Z++){J=arguments[Z];for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&(Y[te]=J[te])}return Y},u.apply(this,arguments)};function d(G,Y){var J={};for(var Z in G)Object.prototype.hasOwnProperty.call(G,Z)&&Y.indexOf(Z)<0&&(J[Z]=G[Z]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,Z=Object.getOwnPropertySymbols(G);X<Z.length;X++)Y.indexOf(Z[X])<0&&Object.prototype.propertyIsEnumerable.call(G,Z[X])&&(J[Z[X]]=G[Z[X]]);return J}function f(G,Y,J,Z){var X=arguments.length,te=X<3?Y:Z===null?Z=Object.getOwnPropertyDescriptor(Y,J):Z,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(G,Y,J,Z);else for(var be=G.length-1;be>=0;be--)(oe=G[be])&&(te=(X<3?oe(te):X>3?oe(Y,J,te):oe(Y,J))||te);return X>3&&te&&Object.defineProperty(Y,J,te),te}function p(G,Y){return function(J,Z){Y(J,Z,G)}}function v(G,Y){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(G,Y)}function y(G,Y,J,Z){function X(te){return te instanceof J?te:new J(function(oe){oe(te)})}return new(J||(J=Promise))(function(te,oe){function be($e){try{De(Z.next($e))}catch(Ke){oe(Ke)}}function xe($e){try{De(Z.throw($e))}catch(Ke){oe(Ke)}}function De($e){$e.done?te($e.value):X($e.value).then(be,xe)}De((Z=Z.apply(G,Y||[])).next())})}function M(G,Y){var J={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},Z,X,te,oe;return oe={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function be(De){return function($e){return xe([De,$e])}}function xe(De){if(Z)throw new TypeError("Generator is already executing.");for(;J;)try{if(Z=1,X&&(te=De[0]&2?X.return:De[0]?X.throw||((te=X.return)&&te.call(X),0):X.next)&&!(te=te.call(X,De[1])).done)return te;switch(X=0,te&&(De=[De[0]&2,te.value]),De[0]){case 0:case 1:te=De;break;case 4:return J.label++,{value:De[1],done:!1};case 5:J.label++,X=De[1],De=[0];continue;case 7:De=J.ops.pop(),J.trys.pop();continue;default:if(te=J.trys,!(te=te.length>0&&te[te.length-1])&&(De[0]===6||De[0]===2)){J=0;continue}if(De[0]===3&&(!te||De[1]>te[0]&&De[1]<te[3])){J.label=De[1];break}if(De[0]===6&&J.label<te[1]){J.label=te[1],te=De;break}if(te&&J.label<te[2]){J.label=te[2],J.ops.push(De);break}te[2]&&J.ops.pop(),J.trys.pop();continue}De=Y.call(G,J)}catch($e){De=[6,$e],X=0}finally{Z=te=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}}function b(G,Y,J,Z){Z===void 0&&(Z=J),G[Z]=Y[J]}function x(G,Y){for(var J in G)J!=="default"&&!Y.hasOwnProperty(J)&&(Y[J]=G[J])}function N(G){var Y=typeof Symbol=="function"&&Symbol.iterator,J=Y&&G[Y],Z=0;if(J)return J.call(G);if(G&&typeof G.length=="number")return{next:function(){return G&&Z>=G.length&&(G=void 0),{value:G&&G[Z++],done:!G}}};throw new TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(G,Y){var J=typeof Symbol=="function"&&G[Symbol.iterator];if(!J)return G;var Z=J.call(G),X,te=[],oe;try{for(;(Y===void 0||Y-- >0)&&!(X=Z.next()).done;)te.push(X.value)}catch(be){oe={error:be}}finally{try{X&&!X.done&&(J=Z.return)&&J.call(Z)}finally{if(oe)throw oe.error}}return te}function k(){for(var G=[],Y=0;Y<arguments.length;Y++)G=G.concat(w(arguments[Y]));return G}function E(){for(var G=0,Y=0,J=arguments.length;Y<J;Y++)G+=arguments[Y].length;for(var Z=Array(G),X=0,Y=0;Y<J;Y++)for(var te=arguments[Y],oe=0,be=te.length;oe<be;oe++,X++)Z[X]=te[oe];return Z}function S(G){return this instanceof S?(this.v=G,this):new S(G)}function T(G,Y,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z=J.apply(G,Y||[]),X,te=[];return X={},oe("next"),oe("throw"),oe("return"),X[Symbol.asyncIterator]=function(){return this},X;function oe(Ie){Z[Ie]&&(X[Ie]=function(ve){return new Promise(function(H,ue){te.push([Ie,ve,H,ue])>1||be(Ie,ve)})})}function be(Ie,ve){try{xe(Z[Ie](ve))}catch(H){Ke(te[0][3],H)}}function xe(Ie){Ie.value instanceof S?Promise.resolve(Ie.value.v).then(De,$e):Ke(te[0][2],Ie)}function De(Ie){be("next",Ie)}function $e(Ie){be("throw",Ie)}function Ke(Ie,ve){Ie(ve),te.shift(),te.length&&be(te[0][0],te[0][1])}}function O(G){var Y,J;return Y={},Z("next"),Z("throw",function(X){throw X}),Z("return"),Y[Symbol.iterator]=function(){return this},Y;function Z(X,te){Y[X]=G[X]?function(oe){return(J=!J)?{value:S(G[X](oe)),done:X==="return"}:te?te(oe):oe}:te}}function j(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y=G[Symbol.asyncIterator],J;return Y?Y.call(G):(G=typeof N=="function"?N(G):G[Symbol.iterator](),J={},Z("next"),Z("throw"),Z("return"),J[Symbol.asyncIterator]=function(){return this},J);function Z(te){J[te]=G[te]&&function(oe){return new Promise(function(be,xe){oe=G[te](oe),X(be,xe,oe.done,oe.value)})}}function X(te,oe,be,xe){Promise.resolve(xe).then(function(De){te({value:De,done:be})},oe)}}function $(G,Y){return Object.defineProperty?Object.defineProperty(G,"raw",{value:Y}):G.raw=Y,G}function R(G){if(G&&G.__esModule)return G;var Y={};if(G!=null)for(var J in G)Object.hasOwnProperty.call(G,J)&&(Y[J]=G[J]);return Y.default=G,Y}function W(G){return G&&G.__esModule?G:{default:G}}function ee(G,Y){if(!Y.has(G))throw new TypeError("attempted to get private field on non-instance");return Y.get(G)}function q(G,Y,J){if(!Y.has(G))throw new TypeError("attempted to set private field on non-instance");return Y.set(G,J),J}},"9bdd":function(e,n,i){var s=i("825a");e.exports=function(o,u,d,f){try{return f?u(s(d)[0],d[1]):u(d)}catch(v){var p=o.return;throw p!==void 0&&s(p.call(o)),v}}},"9bf2":function(e,n,i){var s=i("83ab"),o=i("0cfb"),u=i("825a"),d=i("c04e"),f=Object.defineProperty;n.f=s?f:function(v,y,M){if(u(v),y=d(y,!0),u(M),o)try{return f(v,y,M)}catch{}if("get"in M||"set"in M)throw TypeError("Accessors not supported");return"value"in M&&(v[y]=M.value),v}},"9ed3":function(e,n,i){var s=i("ae93").IteratorPrototype,o=i("7c73"),u=i("5c6c"),d=i("d44e"),f=i("3f8c"),p=function(){return this};e.exports=function(v,y,M){var b=y+" Iterator";return v.prototype=o(s,{next:u(1,M)}),d(v,b,!1,!0),f[b]=p,v}},a28d:function(e,n,i){i("4de4"),i("c740"),Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4"),o=i("60a3"),u=function(d){s.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(f.prototype,"depth",{get:function(){var v=this,y=this.stack.filter(function(b){return b.options.layout==="drawer"}),M=y.findIndex(function(b){return b===v.modal});return y.length-M-1},enumerable:!0,configurable:!0}),s.__decorate([o.Prop()],f.prototype,"stack",void 0),s.__decorate([o.Prop()],f.prototype,"index",void 0),s.__decorate([o.Prop()],f.prototype,"modal",void 0),f=s.__decorate([o.Component],f),f}(o.Vue);n.default=u,o.Vue.component("drawer",u)},a434:function(e,n,i){var s=i("23e7"),o=i("23cb"),u=i("a691"),d=i("50c4"),f=i("7b0b"),p=i("65f0"),v=i("8418"),y=i("1dde"),M=i("ae40"),b=y("splice"),x=M("splice",{ACCESSORS:!0,0:0,1:2}),N=Math.max,w=Math.min,k=9007199254740991,E="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!b||!x},{splice:function(T,O){var j=f(this),$=d(j.length),R=o(T,$),W=arguments.length,ee,q,G,Y,J,Z;if(W===0?ee=q=0:W===1?(ee=0,q=$-R):(ee=W-2,q=w(N(u(O),0),$-R)),$+ee-q>k)throw TypeError(E);for(G=p(j,q),Y=0;Y<q;Y++)J=R+Y,J in j&&v(G,Y,j[J]);if(G.length=q,ee<q){for(Y=R;Y<$-q;Y++)J=Y+q,Z=Y+ee,J in j?j[Z]=j[J]:delete j[Z];for(Y=$;Y>$-q+ee;Y--)delete j[Y-1]}else if(ee>q)for(Y=$-q;Y>R;Y--)J=Y+q-1,Z=Y+ee-1,J in j?j[Z]=j[J]:delete j[Z];for(Y=0;Y<ee;Y++)j[Y+R]=arguments[Y+2];return j.length=$-q+ee,G}})},a4d3:function(e,n,i){var s=i("23e7"),o=i("da84"),u=i("d066"),d=i("c430"),f=i("83ab"),p=i("4930"),v=i("fdbf"),y=i("d039"),M=i("5135"),b=i("e8b5"),x=i("861d"),N=i("825a"),w=i("7b0b"),k=i("fc6a"),E=i("c04e"),S=i("5c6c"),T=i("7c73"),O=i("df75"),j=i("241c"),$=i("057f"),R=i("7418"),W=i("06cf"),ee=i("9bf2"),q=i("d1e7"),G=i("9112"),Y=i("6eeb"),J=i("5692"),Z=i("f772"),X=i("d012"),te=i("90e3"),oe=i("b622"),be=i("e538"),xe=i("746f"),De=i("d44e"),$e=i("69f3"),Ke=i("b727").forEach,Ie=Z("hidden"),ve="Symbol",H="prototype",ue=oe("toPrimitive"),me=$e.set,ge=$e.getterFor(ve),ie=Object[H],pe=o.Symbol,Ee=u("JSON","stringify"),Re=W.f,Ge=ee.f,ct=$.f,bt=q.f,et=J("symbols"),pt=J("op-symbols"),Qt=J("string-to-symbol-registry"),Dt=J("symbol-to-string-registry"),Ot=J("wks"),qt=o.QObject,ce=!qt||!qt[H]||!qt[H].findChild,P=f&&y(function(){return T(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a!=7})?function(ye,Me,Pe){var Ye=Re(ie,Me);Ye&&delete ie[Me],Ge(ye,Me,Pe),Ye&&ye!==ie&&Ge(ie,Me,Ye)}:Ge,B=function(ye,Me){var Pe=et[ye]=T(pe[H]);return me(Pe,{type:ve,tag:ye,description:Me}),f||(Pe.description=Me),Pe},re=v?function(ye){return typeof ye=="symbol"}:function(ye){return Object(ye)instanceof pe},we=function(Me,Pe,Ye){Me===ie&&we(pt,Pe,Ye),N(Me);var st=E(Pe,!0);return N(Ye),M(et,st)?(Ye.enumerable?(M(Me,Ie)&&Me[Ie][st]&&(Me[Ie][st]=!1),Ye=T(Ye,{enumerable:S(0,!1)})):(M(Me,Ie)||Ge(Me,Ie,S(1,{})),Me[Ie][st]=!0),P(Me,st,Ye)):Ge(Me,st,Ye)},ze=function(Me,Pe){N(Me);var Ye=k(Pe),st=O(Ye).concat(rt(Ye));return Ke(st,function(At){(!f||lt.call(Ye,At))&&we(Me,At,Ye[At])}),Me},ot=function(Me,Pe){return Pe===void 0?T(Me):ze(T(Me),Pe)},lt=function(Me){var Pe=E(Me,!0),Ye=bt.call(this,Pe);return this===ie&&M(et,Pe)&&!M(pt,Pe)?!1:Ye||!M(this,Pe)||!M(et,Pe)||M(this,Ie)&&this[Ie][Pe]?Ye:!0},Fe=function(Me,Pe){var Ye=k(Me),st=E(Pe,!0);if(!(Ye===ie&&M(et,st)&&!M(pt,st))){var At=Re(Ye,st);return At&&M(et,st)&&!(M(Ye,Ie)&&Ye[Ie][st])&&(At.enumerable=!0),At}},je=function(Me){var Pe=ct(k(Me)),Ye=[];return Ke(Pe,function(st){!M(et,st)&&!M(X,st)&&Ye.push(st)}),Ye},rt=function(Me){var Pe=Me===ie,Ye=ct(Pe?pt:k(Me)),st=[];return Ke(Ye,function(At){M(et,At)&&(!Pe||M(ie,At))&&st.push(et[At])}),st};if(p||(pe=function(){if(this instanceof pe)throw TypeError("Symbol is not a constructor");var Me=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Pe=te(Me),Ye=function(st){this===ie&&Ye.call(pt,st),M(this,Ie)&&M(this[Ie],Pe)&&(this[Ie][Pe]=!1),P(this,Pe,S(1,st))};return f&&ce&&P(ie,Pe,{configurable:!0,set:Ye}),B(Pe,Me)},Y(pe[H],"toString",function(){return ge(this).tag}),Y(pe,"withoutSetter",function(ye){return B(te(ye),ye)}),q.f=lt,ee.f=we,W.f=Fe,j.f=$.f=je,R.f=rt,be.f=function(ye){return B(oe(ye),ye)},f&&(Ge(pe[H],"description",{configurable:!0,get:function(){return ge(this).description}}),d||Y(ie,"propertyIsEnumerable",lt,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:pe}),Ke(O(Ot),function(ye){xe(ye)}),s({target:ve,stat:!0,forced:!p},{for:function(ye){var Me=String(ye);if(M(Qt,Me))return Qt[Me];var Pe=pe(Me);return Qt[Me]=Pe,Dt[Pe]=Me,Pe},keyFor:function(Me){if(!re(Me))throw TypeError(Me+" is not a symbol");if(M(Dt,Me))return Dt[Me]},useSetter:function(){ce=!0},useSimple:function(){ce=!1}}),s({target:"Object",stat:!0,forced:!p,sham:!f},{create:ot,defineProperty:we,defineProperties:ze,getOwnPropertyDescriptor:Fe}),s({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:je,getOwnPropertySymbols:rt}),s({target:"Object",stat:!0,forced:y(function(){R.f(1)})},{getOwnPropertySymbols:function(Me){return R.f(w(Me))}}),Ee){var se=!p||y(function(){var ye=pe();return Ee([ye])!="[null]"||Ee({a:ye})!="{}"||Ee(Object(ye))!="{}"});s({target:"JSON",stat:!0,forced:se},{stringify:function(Me,Pe,Ye){for(var st=[Me],At=1,dn;arguments.length>At;)st.push(arguments[At++]);if(dn=Pe,!(!x(Pe)&&Me===void 0||re(Me)))return b(Pe)||(Pe=function(Rt,Xt){if(typeof dn=="function"&&(Xt=dn.call(this,Rt,Xt)),!re(Xt))return Xt}),st[1]=Pe,Ee.apply(null,st)}})}pe[H][ue]||G(pe[H],ue,pe[H].valueOf),De(pe,ve),X[Ie]=!0},a623:function(e,n,i){var s=i("23e7"),o=i("b727").every,u=i("a640"),d=i("ae40"),f=u("every"),p=d("every");s({target:"Array",proto:!0,forced:!f||!p},{every:function(y){return o(this,y,arguments.length>1?arguments[1]:void 0)}})},a640:function(e,n,i){var s=i("d039");e.exports=function(o,u){var d=[][o];return!!d&&s(function(){d.call(null,u||function(){throw 1},1)})}},a691:function(e,n){var i=Math.ceil,s=Math.floor;e.exports=function(o){return isNaN(o=+o)?0:(o>0?s:i)(o)}},ae40:function(e,n,i){var s=i("83ab"),o=i("d039"),u=i("5135"),d=Object.defineProperty,f={},p=function(v){throw v};e.exports=function(v,y){if(u(f,v))return f[v];y||(y={});var M=[][v],b=u(y,"ACCESSORS")?y.ACCESSORS:!1,x=u(y,0)?y[0]:p,N=u(y,1)?y[1]:void 0;return f[v]=!!M&&!o(function(){if(b&&!s)return!0;var w={length:-1};b?d(w,1,{enumerable:!0,get:p}):w[1]=1,M.call(w,x,N)})}},ae93:function(e,n,i){var s=i("e163"),o=i("9112"),u=i("5135"),d=i("b622"),f=i("c430"),p=d("iterator"),v=!1,y=function(){return this},M,b,x;[].keys&&(x=[].keys(),"next"in x?(b=s(s(x)),b!==Object.prototype&&(M=b)):v=!0),M==null&&(M={}),!f&&!u(M,p)&&o(M,p,y),e.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,n,i){var s=i("00ee"),o=i("f5df");e.exports=s?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,n,i){var s=i("83ab"),o=i("9bf2").f,u=Function.prototype,d=u.toString,f=/^\s*function ([^ (]*)/,p="name";s&&!(p in u)&&o(u,p,{configurable:!0,get:function(){try{return d.call(this).match(f)[1]}catch{return""}}})},b575:function(e,n,i){var s=i("da84"),o=i("06cf").f,u=i("c6b6"),d=i("2cf4").set,f=i("1cdc"),p=s.MutationObserver||s.WebKitMutationObserver,v=s.process,y=s.Promise,M=u(v)=="process",b=o(s,"queueMicrotask"),x=b&&b.value,N,w,k,E,S,T,O,j;x||(N=function(){var $,R;for(M&&($=v.domain)&&$.exit();w;){R=w.fn,w=w.next;try{R()}catch(W){throw w?E():k=void 0,W}}k=void 0,$&&$.enter()},M?E=function(){v.nextTick(N)}:p&&!f?(S=!0,T=document.createTextNode(""),new p(N).observe(T,{characterData:!0}),E=function(){T.data=S=!S}):y&&y.resolve?(O=y.resolve(void 0),j=O.then,E=function(){j.call(O,N)}):E=function(){d.call(s,N)}),e.exports=x||function($){var R={fn:$,next:void 0};k&&(k.next=R),w||(w=R,E()),k=R}},b622:function(e,n,i){var s=i("da84"),o=i("5692"),u=i("5135"),d=i("90e3"),f=i("4930"),p=i("fdbf"),v=o("wks"),y=s.Symbol,M=p?y:y&&y.withoutSetter||d;e.exports=function(b){return u(v,b)||(f&&u(y,b)?v[b]=y[b]:v[b]=M("Symbol."+b)),v[b]}},b712:function(e,n,i){var s=i("cff7"),o=i.n(s);o.a},b727:function(e,n,i){var s=i("0366"),o=i("44ad"),u=i("7b0b"),d=i("50c4"),f=i("65f0"),p=[].push,v=function(y){var M=y==1,b=y==2,x=y==3,N=y==4,w=y==6,k=y==5||w;return function(E,S,T,O){for(var j=u(E),$=o(j),R=s(S,T,3),W=d($.length),ee=0,q=O||f,G=M?q(E,W):b?q(E,0):void 0,Y,J;W>ee;ee++)if((k||ee in $)&&(Y=$[ee],J=R(Y,ee,j),y)){if(M)G[ee]=J;else if(J)switch(y){case 3:return!0;case 5:return Y;case 6:return ee;case 2:p.call(G,Y)}else if(N)return!1}return w?-1:x||N?N:G}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},bb2f:function(e,n,i){var s=i("d039");e.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},c04e:function(e,n,i){var s=i("861d");e.exports=function(o,u){if(!s(o))return o;var d,f;if(u&&typeof(d=o.toString)=="function"&&!s(f=d.call(o))||typeof(d=o.valueOf)=="function"&&!s(f=d.call(o))||!u&&typeof(d=o.toString)=="function"&&!s(f=d.call(o)))return f;throw TypeError("Can't convert object to primitive value")}},c093:function(e,n,i){i.r(n);var s=i("922d"),o=i("30d7");for(var u in o)["default"].indexOf(u)<0&&function(p){i.d(n,p,function(){return o[p]})}(u);i("2f83");var d=i("2877"),f=Object(d.a)(o.default,s.a,s.b,!1,null,null,null);n.default=f.exports},c430:function(e,n){e.exports=!1},c6b6:function(e,n){var i={}.toString;e.exports=function(s){return i.call(s).slice(8,-1)}},c6cd:function(e,n,i){var s=i("da84"),o=i("ce4e"),u="__core-js_shared__",d=s[u]||o(u,{});e.exports=d},c740:function(e,n,i){var s=i("23e7"),o=i("b727").findIndex,u=i("44d2"),d=i("ae40"),f="findIndex",p=!0,v=d(f);f in[]&&Array(1)[f](function(){p=!1}),s({target:"Array",proto:!0,forced:p||!v},{findIndex:function(M){return o(this,M,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(e,n){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}e.exports=i},ca84:function(e,n,i){var s=i("5135"),o=i("fc6a"),u=i("4d64").indexOf,d=i("d012");e.exports=function(f,p){var v=o(f),y=0,M=[],b;for(b in v)!s(d,b)&&s(v,b)&&M.push(b);for(;p.length>y;)s(v,b=p[y++])&&(~u(M,b)||M.push(b));return M}},cc12:function(e,n,i){var s=i("da84"),o=i("861d"),u=s.document,d=o(u)&&o(u.createElement);e.exports=function(f){return d?u.createElement(f):{}}},cd49:function(e,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i("9ab4");i("9900"),i("c093");var o=s.__importDefault(i("68fa")),u=s.__importDefault(i("47e2")),d={install:function(p){p.component("vue-modals-stack",o.default),p.modals=p.prototype.$modals=u.default},Modals:u.default,ModalStack:o.default};n.default=d},cdf9:function(e,n,i){var s=i("825a"),o=i("861d"),u=i("f069");e.exports=function(d,f){if(s(d),o(f)&&f.constructor===d)return f;var p=u.f(d),v=p.resolve;return v(f),p.promise}},ce4e:function(e,n,i){var s=i("da84"),o=i("9112");e.exports=function(u,d){try{o(s,u,d)}catch{s[u]=d}return d}},cff7:function(e,n,i){},d012:function(e,n){e.exports={}},d019:function(e,n,i){i.d(n,"a",function(){return s}),i.d(n,"b",function(){return o});var s=function(){var u=this,d=u.$createElement,f=u._self._c||d;return f("transition-group",{attrs:{tag:"div",stack:u.name,name:"modal"}},[u._l(u.stack,function(p,v){return[p.options.hideOverlay?u._e():f("div",{key:p.id+"_overlay",staticClass:"vue-modals-overlay",class:{below:v<u.stack.length-1,far:v<u.stack.length-4},style:"z-index: "+(1e3+v),on:{click:function(y){p.options.clickToClose!==!1&&u.close(p)}}}),f(p.layout,{key:p.id+"_modal",tag:"component",staticClass:"vue-modals-layout",style:"z-index: "+(1001+v),attrs:{"modal-id":p.id,modal:p,showClose:p.options.showClose,stack:u.stack,index:v},on:{close:function(y){return u.close(p,y)},destroy:function(y){return u.destroy(p,y)},answer:function(y){return u.answer(p,y)}}},[f(p.options.component,u._b({ref:p.id,refInFor:!0,tag:"component",on:{close:function(y){return u.close(p,y)},destroy:function(y){return u.destroy(p,y)},answer:function(y){return u.answer(p,y)}}},"component",p.options.props,!1))],1)]})],2)},o=[]},d039:function(e,n){e.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(e,n,i){var s=i("428f"),o=i("da84"),u=function(d){return typeof d=="function"?d:void 0};e.exports=function(d,f){return arguments.length<2?u(s[d])||u(o[d]):s[d]&&s[d][f]||o[d]&&o[d][f]}},d1e7:function(e,n,i){var s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,u=o&&!s.call({1:2},1);n.f=u?function(f){var p=o(this,f);return!!p&&p.enumerable}:s},d2bb:function(e,n,i){var s=i("825a"),o=i("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,d={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(d,[]),u=d instanceof Array}catch{}return function(v,y){return s(v),o(y),u?f.call(v,y):v.__proto__=y,v}}():void 0)},d3b7:function(e,n,i){var s=i("00ee"),o=i("6eeb"),u=i("b041");s||o(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(e,n,i){var s=i("9bf2").f,o=i("5135"),u=i("b622"),d=u("toStringTag");e.exports=function(f,p,v){f&&!o(f=v?f:f.prototype,d)&&s(f,d,{configurable:!0,value:p})}},da84:function(e,n,i){(function(s){var o=function(u){return u&&u.Math==Math&&u};e.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof s=="object"&&s)||Function("return this")()}).call(this,i("c8ba"))},ddb0:function(e,n,i){var s=i("da84"),o=i("fdbc"),u=i("e260"),d=i("9112"),f=i("b622"),p=f("iterator"),v=f("toStringTag"),y=u.values;for(var M in o){var b=s[M],x=b&&b.prototype;if(x){if(x[p]!==y)try{d(x,p,y)}catch{x[p]=y}if(x[v]||d(x,v,M),o[M]){for(var N in u)if(x[N]!==u[N])try{d(x,N,u[N])}catch{x[N]=u[N]}}}}},df75:function(e,n,i){var s=i("ca84"),o=i("7839");e.exports=Object.keys||function(d){return s(d,o)}},e01a:function(e,n,i){var s=i("23e7"),o=i("83ab"),u=i("da84"),d=i("5135"),f=i("861d"),p=i("9bf2").f,v=i("e893"),y=u.Symbol;if(o&&typeof y=="function"&&(!("description"in y.prototype)||y().description!==void 0)){var M={},b=function(){var S=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),T=this instanceof b?new y(S):S===void 0?y():y(S);return S===""&&(M[T]=!0),T};v(b,y);var x=b.prototype=y.prototype;x.constructor=b;var N=x.toString,w=String(y("test"))=="Symbol(test)",k=/^Symbol\((.*)\)[^)]+$/;p(x,"description",{configurable:!0,get:function(){var S=f(this)?this.valueOf():this,T=N.call(S);if(d(M,S))return"";var O=w?T.slice(7,-1):T.replace(k,"$1");return O===""?void 0:O}}),s({global:!0,forced:!0},{Symbol:b})}},e163:function(e,n,i){var s=i("5135"),o=i("7b0b"),u=i("f772"),d=i("e177"),f=u("IE_PROTO"),p=Object.prototype;e.exports=d?Object.getPrototypeOf:function(v){return v=o(v),s(v,f)?v[f]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?p:null}},e177:function(e,n,i){var s=i("d039");e.exports=!s(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},e260:function(e,n,i){var s=i("fc6a"),o=i("44d2"),u=i("3f8c"),d=i("69f3"),f=i("7dd0"),p="Array Iterator",v=d.set,y=d.getterFor(p);e.exports=f(Array,"Array",function(M,b){v(this,{type:p,target:s(M),index:0,kind:b})},function(){var M=y(this),b=M.target,x=M.kind,N=M.index++;return!b||N>=b.length?(M.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:N,done:!1}:x=="values"?{value:b[N],done:!1}:{value:[N,b[N]],done:!1}},"values"),u.Arguments=u.Array,o("keys"),o("values"),o("entries")},e2cc:function(e,n,i){var s=i("6eeb");e.exports=function(o,u,d){for(var f in u)s(o,f,u[f],d);return o}},e538:function(e,n,i){var s=i("b622");n.f=s},e667:function(e,n){e.exports=function(i){try{return{error:!1,value:i()}}catch(s){return{error:!0,value:s}}}},e6cf:function(e,n,i){var s=i("23e7"),o=i("c430"),u=i("da84"),d=i("d066"),f=i("fea9"),p=i("6eeb"),v=i("e2cc"),y=i("d44e"),M=i("2626"),b=i("861d"),x=i("1c0b"),N=i("19aa"),w=i("c6b6"),k=i("8925"),E=i("2266"),S=i("1c7e"),T=i("4840"),O=i("2cf4").set,j=i("b575"),$=i("cdf9"),R=i("44de"),W=i("f069"),ee=i("e667"),q=i("69f3"),G=i("94ca"),Y=i("b622"),J=i("2d00"),Z=Y("species"),X="Promise",te=q.get,oe=q.set,be=q.getterFor(X),xe=f,De=u.TypeError,$e=u.document,Ke=u.process,Ie=d("fetch"),ve=W.f,H=ve,ue=w(Ke)=="process",me=!!($e&&$e.createEvent&&u.dispatchEvent),ge="unhandledrejection",ie="rejectionhandled",pe=0,Ee=1,Re=2,Ge=1,ct=2,bt,et,pt,Qt,Dt=G(X,function(){var Fe=k(xe)!==String(xe);if(!Fe&&(J===66||!ue&&typeof PromiseRejectionEvent!="function")||o&&!xe.prototype.finally)return!0;if(J>=51&&/native code/.test(xe))return!1;var je=xe.resolve(1),rt=function(ye){ye(function(){},function(){})},se=je.constructor={};return se[Z]=rt,!(je.then(function(){})instanceof rt)}),Ot=Dt||!S(function(Fe){xe.all(Fe).catch(function(){})}),qt=function(Fe){var je;return b(Fe)&&typeof(je=Fe.then)=="function"?je:!1},ce=function(Fe,je,rt){if(!je.notified){je.notified=!0;var se=je.reactions;j(function(){for(var ye=je.value,Me=je.state==Ee,Pe=0;se.length>Pe;){var Ye=se[Pe++],st=Me?Ye.ok:Ye.fail,At=Ye.resolve,dn=Ye.reject,Rt=Ye.domain,Xt,Ni,Yn;try{st?(Me||(je.rejection===ct&&we(Fe,je),je.rejection=Ge),st===!0?Xt=ye:(Rt&&Rt.enter(),Xt=st(ye),Rt&&(Rt.exit(),Yn=!0)),Xt===Ye.promise?dn(De("Promise-chain cycle")):(Ni=qt(Xt))?Ni.call(Xt,At,dn):At(Xt)):dn(ye)}catch(fi){Rt&&!Yn&&Rt.exit(),dn(fi)}}je.reactions=[],je.notified=!1,rt&&!je.rejection&&B(Fe,je)})}},P=function(Fe,je,rt){var se,ye;me?(se=$e.createEvent("Event"),se.promise=je,se.reason=rt,se.initEvent(Fe,!1,!0),u.dispatchEvent(se)):se={promise:je,reason:rt},(ye=u["on"+Fe])?ye(se):Fe===ge&&R("Unhandled promise rejection",rt)},B=function(Fe,je){O.call(u,function(){var rt=je.value,se=re(je),ye;if(se&&(ye=ee(function(){ue?Ke.emit("unhandledRejection",rt,Fe):P(ge,Fe,rt)}),je.rejection=ue||re(je)?ct:Ge,ye.error))throw ye.value})},re=function(Fe){return Fe.rejection!==Ge&&!Fe.parent},we=function(Fe,je){O.call(u,function(){ue?Ke.emit("rejectionHandled",Fe):P(ie,Fe,je.value)})},ze=function(Fe,je,rt,se){return function(ye){Fe(je,rt,ye,se)}},ot=function(Fe,je,rt,se){je.done||(je.done=!0,se&&(je=se),je.value=rt,je.state=Re,ce(Fe,je,!0))},lt=function(Fe,je,rt,se){if(!je.done){je.done=!0,se&&(je=se);try{if(Fe===rt)throw De("Promise can't be resolved itself");var ye=qt(rt);ye?j(function(){var Me={done:!1};try{ye.call(rt,ze(lt,Fe,Me,je),ze(ot,Fe,Me,je))}catch(Pe){ot(Fe,Me,Pe,je)}}):(je.value=rt,je.state=Ee,ce(Fe,je,!1))}catch(Me){ot(Fe,{done:!1},Me,je)}}};Dt&&(xe=function(je){N(this,xe,X),x(je),bt.call(this);var rt=te(this);try{je(ze(lt,this,rt),ze(ot,this,rt))}catch(se){ot(this,rt,se)}},bt=function(je){oe(this,{type:X,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:pe,value:void 0})},bt.prototype=v(xe.prototype,{then:function(je,rt){var se=be(this),ye=ve(T(this,xe));return ye.ok=typeof je=="function"?je:!0,ye.fail=typeof rt=="function"&&rt,ye.domain=ue?Ke.domain:void 0,se.parent=!0,se.reactions.push(ye),se.state!=pe&&ce(this,se,!1),ye.promise},catch:function(Fe){return this.then(void 0,Fe)}}),et=function(){var Fe=new bt,je=te(Fe);this.promise=Fe,this.resolve=ze(lt,Fe,je),this.reject=ze(ot,Fe,je)},W.f=ve=function(Fe){return Fe===xe||Fe===pt?new et(Fe):H(Fe)},!o&&typeof f=="function"&&(Qt=f.prototype.then,p(f.prototype,"then",function(je,rt){var se=this;return new xe(function(ye,Me){Qt.call(se,ye,Me)}).then(je,rt)},{unsafe:!0}),typeof Ie=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(je){return $(xe,Ie.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:Dt},{Promise:xe}),y(xe,X,!1,!0),M(X),pt=d(X),s({target:X,stat:!0,forced:Dt},{reject:function(je){var rt=ve(this);return rt.reject.call(void 0,je),rt.promise}}),s({target:X,stat:!0,forced:o||Dt},{resolve:function(je){return $(o&&this===pt?xe:this,je)}}),s({target:X,stat:!0,forced:Ot},{all:function(je){var rt=this,se=ve(rt),ye=se.resolve,Me=se.reject,Pe=ee(function(){var Ye=x(rt.resolve),st=[],At=0,dn=1;E(je,function(Rt){var Xt=At++,Ni=!1;st.push(void 0),dn++,Ye.call(rt,Rt).then(function(Yn){Ni||(Ni=!0,st[Xt]=Yn,--dn||ye(st))},Me)}),--dn||ye(st)});return Pe.error&&Me(Pe.value),se.promise},race:function(je){var rt=this,se=ve(rt),ye=se.reject,Me=ee(function(){var Pe=x(rt.resolve);E(je,function(Ye){Pe.call(rt,Ye).then(se.resolve,ye)})});return Me.error&&ye(Me.value),se.promise}})},e893:function(e,n,i){var s=i("5135"),o=i("56ef"),u=i("06cf"),d=i("9bf2");e.exports=function(f,p){for(var v=o(p),y=d.f,M=u.f,b=0;b<v.length;b++){var x=v[b];s(f,x)||y(f,x,M(p,x))}}},e8b5:function(e,n,i){var s=i("c6b6");e.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(e,n,i){var s=i("b622"),o=i("3f8c"),u=s("iterator"),d=Array.prototype;e.exports=function(f){return f!==void 0&&(o.Array===f||d[u]===f)}},f069:function(e,n,i){var s=i("1c0b"),o=function(u){var d,f;this.promise=new u(function(p,v){if(d!==void 0||f!==void 0)throw TypeError("Bad Promise constructor");d=p,f=v}),this.resolve=s(d),this.reject=s(f)};e.exports.f=function(u){return new o(u)}},f183:function(e,n,i){var s=i("d012"),o=i("861d"),u=i("5135"),d=i("9bf2").f,f=i("90e3"),p=i("bb2f"),v=f("meta"),y=0,M=Object.isExtensible||function(){return!0},b=function(E){d(E,v,{value:{objectID:"O"+ ++y,weakData:{}}})},x=function(E,S){if(!o(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!u(E,v)){if(!M(E))return"F";if(!S)return"E";b(E)}return E[v].objectID},N=function(E,S){if(!u(E,v)){if(!M(E))return!0;if(!S)return!1;b(E)}return E[v].weakData},w=function(E){return p&&k.REQUIRED&&M(E)&&!u(E,v)&&b(E),E},k=e.exports={REQUIRED:!1,fastKey:x,getWeakData:N,onFreeze:w};s[v]=!0},f5df:function(e,n,i){var s=i("00ee"),o=i("c6b6"),u=i("b622"),d=u("toStringTag"),f=o(function(){return arguments}())=="Arguments",p=function(v,y){try{return v[y]}catch{}};e.exports=s?o:function(v){var y,M,b;return v===void 0?"Undefined":v===null?"Null":typeof(M=p(y=Object(v),d))=="string"?M:f?o(y):(b=o(y))=="Object"&&typeof y.callee=="function"?"Arguments":b}},f772:function(e,n,i){var s=i("5692"),o=i("90e3"),u=s("keys");e.exports=function(d){return u[d]||(u[d]=o(d))}},fb15:function(e,n,i){i.r(n),i("1eb2");var s=i("cd49"),o=i.n(s);for(var u in s)["default"].indexOf(u)<0&&function(d){i.d(n,d,function(){return s[d]})}(u);n.default=o.a},fc6a:function(e,n,i){var s=i("44ad"),o=i("1d80");e.exports=function(u){return s(o(u))}},fdbc:function(e,n){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,n,i){var s=i("4930");e.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},fea9:function(e,n,i){var s=i("da84");e.exports=s.Promise}})})(Q$);var Joe=Q$.exports;const G$=bi(Joe);async function ele(t){const e=window.LayersPortal?window.LayersPortal.platform:"shell";if(e==="shell"||e==="iframe"){const i=G$.Modals.stack().push({layout:"dialog",showClose:!1,component:IS,props:{title:t.title,content:t.content,buttonCloseLabel:t.buttonCloseLabel,buttonConfirmLabel:t.buttonConfirmLabel}});try{return await i}catch{return!1}}return window.confirm(t.content||t.title)}async function tle(){const t=G$.Modals.stack();window.history.go(1);const e=t.push({layout:"dialog",showClose:!1,component:IS,props:{buttonCloseLabel:"Permanecer aqui",buttonConfirmLabel:"Descartar alterações",title:"Alterações não salvas",content:"Você quer mesmo sair? Existem alterações que não foram salvas. Se você sair, suas alterações serão perdidas."}});try{const n=await e;if(n)return n}catch{}}const nle="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIwIiBoZWlnaHQ9IjE4MyIgdmlld0JveD0iMCAwIDIyMCAxODMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNODMuMjk5NCAxNjQuMjk4TDgzLjI5OSAxNjQuMjk4Qzc5LjA5NiAxNjYuMjIgNzUuMTk0NiAxNjguMDA1IDcxLjMxNDcgMTY5LjIxQzUxLjk2MDMgMTc1LjIyMyAzMS4wNjI2IDE3NS45MjIgMTAuMjk0OCAxNDguMjIxQy0xMC40NzI5IDEyMC41MTkgLTAuMzE2MjIyIDg0Ljk0NTQgNDUuMjkwOSA3MC4xOTEyQzU3LjIwOTMgNjYuMzM5IDYyLjgwOTQgNTcuNzI3NSA2OS41NjAzIDQ3LjM0NjFDNzYuNjg1MSAzNi4zODk5IDg1LjA5MTcgMjMuNDYyNSAxMDMuNTYgMTIuMDc4MkMxNTIuNTU1IC0xOC4xMTMzIDE5Ny4wODggMTAuNzYzNSAyMTUuODU4IDcxLjI3MTRDMjM0LjYyNyAxMzEuNzc5IDE4Ni43IDE1OS4xNDQgMTMwLjY3MiAxNTQuNDk4QzEwOC43MSAxNTIuNjc1IDk0Ljg2MzQgMTU5LjAwOSA4My4yOTk0IDE2NC4yOThaIiBmaWxsPSIjNTQ1MUQ2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuOSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04My4yOTk0IDE2NC4yOThMODMuMjk5IDE2NC4yOThDNzkuMDk2IDE2Ni4yMiA3NS4xOTQ2IDE2OC4wMDUgNzEuMzE0NyAxNjkuMjFDNTEuOTYwMyAxNzUuMjIzIDMxLjA2MjYgMTc1LjkyMiAxMC4yOTQ4IDE0OC4yMjFDLTEwLjQ3MjkgMTIwLjUxOSAtMC4zMTYyMjIgODQuOTQ1NCA0NS4yOTA5IDcwLjE5MTJDNTcuMjA5MyA2Ni4zMzkgNjIuODA5NCA1Ny43Mjc1IDY5LjU2MDMgNDcuMzQ2MUM3Ni42ODUxIDM2LjM4OTkgODUuMDkxNyAyMy40NjI1IDEwMy41NiAxMi4wNzgyQzE1Mi41NTUgLTE4LjExMzMgMTk3LjA4OCAxMC43NjM1IDIxNS44NTggNzEuMjcxNEMyMzQuNjI3IDEzMS43NzkgMTg2LjcgMTU5LjE0NCAxMzAuNjcyIDE1NC40OThDMTA4LjcxIDE1Mi42NzUgOTQuODYzNCAxNTkuMDA5IDgzLjI5OTQgMTY0LjI5OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMTUuMjgxIDE3NS43NDRDMTY5LjM1NiAxNzUuNzQ0IDIxMy4xOTIgMTczLjE2NiAyMTMuMTkyIDE2OS45ODVDMjEzLjE5MiAxNjYuODA0IDE2OS4zNTYgMTY0LjIyNiAxMTUuMjgxIDE2NC4yMjZDNjEuMjA2MyAxNjQuMjI2IDE3LjM3MDEgMTY2LjgwNCAxNy4zNzAxIDE2OS45ODVDMTcuMzcwMSAxNzMuMTY2IDYxLjIwNjMgMTc1Ljc0NCAxMTUuMjgxIDE3NS43NDRaIiBmaWxsPSIjRjVGNUY1Ii8+CjxwYXRoIGQ9Ik0xMjkuODY4IDEwOS42MjlDMTI0LjU0NiAxMjEuMTM1IDExNy41MzMgMTIyLjM2MyAxMTcuNTMzIDEyMi4zNjNMMTA5LjE0OSAxMTIuNDcxQzEwOS4xNDkgMTEyLjQ3MSAxMTUuMTYxIDEwOC44MjEgMTE2LjU2MyAxMDQuMzk2QzExNy45NjYgOTkuOTcxMiAxMTUuMzYxIDcxLjA4NzQgMTIyLjgzMSA2NS4wMzkzQzEyMi44MzEgNjUuMDM5MyAxMjMuNjg5IDY3LjMzMjYgMTI0Ljg1MSA3MC45MTc4QzEyNy4xMjcgNzcuOTI2OCAxMzAuNTczIDg5Ljg2MTUgMTMxLjExOCA5OS4zMjUyQzEzMS4zNjcgMTAzLjQxOSAxMzEuMDk0IDEwNy4wNzcgMTI5Ljg2OCAxMDkuNjI5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjEiIGQ9Ik0xMzEuMDk0IDk5LjMxNjhDMTIzLjc2OCA4Ni4xNTQ4IDEyMy4wMDcgNzYuNjQyNiAxMjQuODI2IDcwLjkwOTRDMTI3LjEyNyA3Ny45MTg0IDEzMC41NzMgODkuODUzMSAxMzEuMDk0IDk5LjMxNjhaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTMwLjc2NiAxMjguNDExQzEzMC43NjYgMTI4LjQxMSA3Ny4wNjU2IDExMy4zMTkgNzAuMzQxMSAxMzIuMjk1QzYzLjYxNjYgMTUxLjI3MSAxMTIuMzMxIDE2Ni40MDMgMTM5LjI3IDE2Ny4zMzJDMTY2LjIwOCAxNjguMjYgMTc3LjI0NCAxNDkuMjAzIDE2OS4yOTMgMTMxLjA5MkwxMzAuNzY2IDEyOC40MTFaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEzMC43NjYgMTI4LjQxMUMxMzAuNzY2IDEyOC40MTEgNzcuMDY1NiAxMTMuMzE5IDcwLjM0MTEgMTMyLjI5NUM2My42MTY2IDE1MS4yNzEgMTEyLjMzMSAxNjYuNDAzIDEzOS4yNyAxNjcuMzMyQzE2Ni4yMDggMTY4LjI2IDE3Ny4yNDQgMTQ5LjIwMyAxNjkuMjkzIDEzMS4wOTJMMTMwLjc2NiAxMjguNDExWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTE3NC4zNzUgMTQyLjA0OUwxMjQuNDkgMTMzLjQ1QzEzMy4yMjYgMTE2LjQ5MiAxMzAuNDUzIDkwLjcwMTMgMTIyLjg4NyA2NS4wMjMyQzEyOC4xNjkgNjAuNTc0IDE0OS4yOCA1Ny41NzAxIDE2NS4zNjYgNjIuMjg1OEMxNjUuMzY2IDYyLjI4NTggMTY2LjMyIDY1Ljg1NDkgMTY3LjYxMSA3MS45NzU3QzE2OS4xNTcgNzkuMzIzOCAxNzEuMTg1IDkwLjM1NDEgMTcyLjYyOCAxMDMuMzcxQzE3NC4xMDUgMTE2LjIwNyAxNzQuNjg4IDEyOS4xMzEgMTc0LjM3NSAxNDIuMDQ5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjYiIGQ9Ik0xNzQuMzc1IDE0Mi4wNDlMMTI0LjQ5IDEzMy40NDlDMTMxLjkwNCAxMTkuMDYgMTMxLjAzIDk4LjMxNTcgMTI1Ljk0OCA3Ni42NzVDMTMwLjE0OCA2OC41MTk0IDEzNS41ODIgNjcuNTEgMTM1LjU4MiA2Ny41MUMxNDEuMDczIDc1LjI4NjEgMTUyLjQxNCA2Ny41MSAxNTIuNDE0IDY3LjUxQzE2Mi45MjEgNzMuOTA1MyAxNjkuMTczIDg3LjIyMDggMTcxLjE3NyA5Mi4wODE4QzE3My42NjcgMTA4LjYxNCAxNzQuNzM3IDEyNS4zMzIgMTc0LjM3NSAxNDIuMDQ5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggb3BhY2l0eT0iMC4xIiBkPSJNMTcyLjYwMyAxMDMuMzk0QzE2OC41MTMgMTAwLjE3NyAxNjUuNDQ4IDk1LjgyMzIgMTYzLjc4NyA5MC44NzAyQzE1OS43MzEgNzcuOTEwMSAxNjYuMDQ3IDcyLjk3NjMgMTY3LjU3OCA3MS45OTkzQzE2OS4xMzMgNzkuMzQ3NCAxNzEuMTY5IDkwLjM3NzcgMTcyLjYwMyAxMDMuMzk0WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTc2LjUwNDQgMTU4LjAyMUM3Ni4wOTk4IDE1Ny43MTIgNzUuODAyNCAxNTcuMjgzIDc1LjY1NDkgMTU2Ljc5NEM3NS42MjY5IDE1Ni42MzIgNzUuNjQxNyAxNTYuNDY1IDc1LjY5OCAxNTYuMzFDNzUuNzU0MyAxNTYuMTU2IDc1Ljg1IDE1Ni4wMTkgNzUuOTc1NSAxNTUuOTE0Qzc2LjA0MzkgMTU1Ljg0MyA3Ni4xMjk1IDE1NS43OTIgNzYuMjIzNyAxNTUuNzY1Qzc2LjMxNzkgMTU1LjczOCA3Ni40MTc0IDE1NS43MzYgNzYuNTEyNCAxNTUuNzZDNzcuNDE4MSAxNTYuMDM1IDc4LjMxNTcgMTU4LjY0MyA3OC40MDM4IDE1OC45NUM3OC40MTQ4IDE1OC45NzggNzguNDE2IDE1OS4wMDkgNzguNDA3MyAxNTkuMDM5Qzc4LjM5ODYgMTU5LjA2OCA3OC4zODA0IDE1OS4wOTMgNzguMzU1NyAxNTkuMTExQzc4LjMyNjggMTU5LjEzMyA3OC4yOTE2IDE1OS4xNDQgNzguMjU1NiAxNTkuMTQ0Qzc4LjIxOTUgMTU5LjE0NCA3OC4xODQ0IDE1OS4xMzMgNzguMTU1NCAxNTkuMTExQzc3LjU3MTkgMTU4LjgwMSA3Ny4wMTkxIDE1OC40MzYgNzYuNTA0NCAxNTguMDIxWk03Ni42NDg3IDE1Ni4yMkM3Ni41OTAzIDE1Ni4xNjMgNzYuNTE4NyAxNTYuMTIyIDc2LjQ0MDMgMTU2LjA5OUM3Ni40MDMyIDE1Ni4wODggNzYuMzYzNCAxNTYuMDg3IDc2LjMyNjIgMTU2LjA5OUM3Ni4yODkgMTU2LjExMSA3Ni4yNTYxIDE1Ni4xMzMgNzYuMjMxOSAxNTYuMTY0Qzc2LjE0IDE1Ni4yMyA3Ni4wNjkyIDE1Ni4zMjIgNzYuMDI3OSAxNTYuNDI4Qzc1Ljk4NjcgMTU2LjUzNCA3NS45NzY4IDE1Ni42NSA3NS45OTk1IDE1Ni43NjFDNzYuNDAwMyAxNTcuNTk0IDc3LjA4MjIgMTU4LjI1NSA3Ny45MjMgMTU4LjYyN0M3Ny42NDg5IDE1Ny43NTIgNzcuMjE2OSAxNTYuOTM3IDc2LjY0ODcgMTU2LjIyWiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNNzguMTE1NyAxNTkuMTI3VjE1OS4wNDZDNzcuNzk1MSAxNTguMjM5IDc3LjcyMyAxNTYuMTI0IDc4LjM3MjIgMTU1LjY2M0M3OC40ODIxIDE1NS41OTEgNzguNjEzMSAxNTUuNTU4IDc4Ljc0MzkgMTU1LjU3Qzc4Ljg3NDggMTU1LjU4MSA3OC45OTc5IDE1NS42MzcgNzkuMDkzNSAxNTUuNzI4Qzc5LjIwMzkgMTU1LjgwMyA3OS4yOTgzIDE1NS45IDc5LjM3MTIgMTU2LjAxMkM3OS40NDQyIDE1Ni4xMjQgNzkuNDk0MSAxNTYuMjUgNzkuNTE4MiAxNTYuMzgyQzc5LjcyNjYgMTU3LjQ1NiA3OC40NzY0IDE1OS4wMzggNzguMzk2MiAxNTkuMTExQzc4LjM3NjUgMTU5LjEzNiA3OC4zNDk4IDE1OS4xNTMgNzguMzE5NyAxNTkuMTYyQzc4LjI4OTUgMTU5LjE3MSA3OC4yNTc1IDE1OS4xNyA3OC4yMjc5IDE1OS4xNkM3OC4xODc5IDE1OS4xNjMgNzguMTQ4MSAxNTkuMTUxIDc4LjExNTcgMTU5LjEyN1pNNzguOTE3MSAxNTYuMDU5TDc4Ljg2MTEgMTU2LjAwMkM3OC42NjA3IDE1NS44NzMgNzguNTg4NiAxNTUuOTMgNzguNTQ4NSAxNTUuOTU0Qzc4LjE2MzggMTU2LjIyIDc4LjA5OTcgMTU3LjcwNiA3OC4zMDAxIDE1OC42MUM3OC42MzY3IDE1OC4xMjYgNzkuMjYxOCAxNTcuMTA5IDc5LjEwMTUgMTU2LjQzOEM3OS4wNzY3IDE1Ni4yOSA3OC45OTk5IDE1Ni4xNTUgNzguODg1MSAxNTYuMDU5SDc4LjkxNzFaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIGQ9Ik0xMzMuMjQyIDE3MC42OThDMTMzLjMwNyAxNzEuMjAzIDEzMy4yMDggMTcxLjcxNiAxMzIuOTYxIDE3Mi4xNkMxMzIuODY3IDE3Mi4yOTQgMTMyLjc0IDE3Mi40IDEzMi41OTIgMTcyLjQ2OEMxMzIuNDQ0IDE3Mi41MzYgMTMyLjI4MSAxNzIuNTYzIDEzMi4xMiAxNzIuNTQ3QzEzMi4wMjEgMTcyLjU0OSAxMzEuOTIzIDE3Mi41MjMgMTMxLjgzNyAxNzIuNDc0QzEzMS43NTEgMTcyLjQyNCAxMzEuNjggMTcyLjM1MiAxMzEuNjMxIDE3Mi4yNjVDMTMxLjE5IDE3MS40NTcgMTMyLjQzMiAxNjguOTU0IDEzMi41NjggMTY4LjY4QzEzMi41ODEgMTY4LjY1MSAxMzIuNjAzIDE2OC42MjcgMTMyLjYzIDE2OC42MTJDMTMyLjY1OCAxNjguNTk4IDEzMi42OSAxNjguNTkzIDEzMi43MjEgMTY4LjU5OUMxMzIuNzU2IDE2OC42MDQgMTMyLjc4OSAxNjguNjE5IDEzMi44MTUgMTY4LjY0NEMxMzIuODQxIDE2OC42NjkgMTMyLjg1OCAxNjguNzAxIDEzMi44NjUgMTY4LjczNkMxMzMuMDU5IDE2OS4zNzUgMTMzLjE4NSAxNzAuMDMzIDEzMy4yNDIgMTcwLjY5OFpNMTMxLjg5NSAxNzEuODQ1QzEzMS44OTggMTcxLjkyOSAxMzEuOTE3IDE3Mi4wMTEgMTMxLjk1MSAxNzIuMDg3QzEzMS45NjkgMTcyLjEyMiAxMzEuOTk3IDE3Mi4xNTEgMTMyLjAzMSAxNzIuMTdDMTMyLjA2NiAxNzIuMTg5IDEzMi4xMDUgMTcyLjE5NiAxMzIuMTQ0IDE3Mi4xOTJDMTMyLjI1NSAxNzIuMjExIDEzMi4zNjkgMTcyLjE5NyAxMzIuNDcyIDE3Mi4xNTNDMTMyLjU3NiAxNzIuMTA4IDEzMi42NjUgMTcyLjAzNSAxMzIuNzI5IDE3MS45NDJDMTMzLjA0OSAxNzEuMDc1IDEzMy4wNDkgMTcwLjEyIDEzMi43MjkgMTY5LjI1M0MxMzIuMjk3IDE3MC4wNTkgMTMyLjAxNCAxNzAuOTM3IDEzMS44OTUgMTcxLjg0NVoiIGZpbGw9IiM0NjQ0QjUiLz4KPHBhdGggZD0iTTExOS44NjUgMTUwLjQ2NEwxMjkuMzYzIDE1Ny40ODFMMTMzLjkyNCAxNjAuODQ4TDEzMC45NDIgMTY2LjA4OUwxMjYuMzE3IDE2My41MzdMMTE1LjAwOCAxNTcuMzAzTDExOS44NjUgMTUwLjQ2NFoiIGZpbGw9IiNFODYxNjEiLz4KPHBhdGggZD0iTTEyOS40OTEgMTY1LjkzNEwxMzIuMzUzIDE1OS41NjNDMTMyLjM5MSAxNTkuNDc5IDEzMi40NDYgMTU5LjQwNCAxMzIuNTE0IDE1OS4zNDFDMTMyLjU4MiAxNTkuMjc5IDEzMi42NjEgMTU5LjIzIDEzMi43NDcgMTU5LjE5OUMxMzIuODM0IDE1OS4xNjcgMTMyLjkyNiAxNTkuMTUzIDEzMy4wMTcgMTU5LjE1OEMxMzMuMTA5IDE1OS4xNjIgMTMzLjE5OSAxNTkuMTg1IDEzMy4yODIgMTU5LjIyNEwxMzYuMzc2IDE2MC43NUMxMzYuMzc2IDE2MC43NSAxNDAuNjcyIDE2Mi41MDMgMTQxLjE4NSAxNjMuOTA4QzE0Mi43ODggMTY4LjAyNiAxMzYuNzg1IDE4Mi4yODYgMTM0LjkxNyAxODIuMjg2QzEzNC4yMzYgMTgyLjI4NiAxMzMuODI3IDE4MS4yMiAxMzMuNzMxIDE4MC41NDJDMTMzLjQyNyAxNzguMzc4IDEzMy4zNzggMTcyLjk1MSAxMzMuMTA2IDE3MS4xNTFDMTMyLjc4NSAxNjkuMDUxIDEzMC43MDEgMTY3LjQzNiAxMjkuNyAxNjYuNzlDMTI5LjU3MSAxNjYuNjk1IDEyOS40NzkgMTY2LjU1NyAxMjkuNDQxIDE2Ni40QzEyOS40MDMgMTY2LjI0NCAxMjkuNDIxIDE2Ni4wNzkgMTI5LjQ5MSAxNjUuOTM0WiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTMyLjg5NyAxNjguNzYyTDEzMi44NTcgMTY4LjgzNEMxMzIuNTEzIDE2OS42NDIgMTMxLjA2MiAxNzEuMTY4IDEzMC4yNzcgMTcxLjAyMkMxMzAuMTUgMTcwLjk5MyAxMzAuMDM2IDE3MC45MjEgMTI5Ljk1NCAxNzAuODE5QzEyOS44NzMgMTcwLjcxNiAxMjkuODI4IDE3MC41ODkgMTI5LjgyOCAxNzAuNDU3QzEyOS44MDEgMTcwLjMyNSAxMjkuODAyIDE3MC4xODkgMTI5LjgyOSAxNzAuMDU3QzEyOS44NTcgMTY5LjkyNSAxMjkuOTExIDE2OS44IDEyOS45ODggMTY5LjY5QzEzMC42MDUgMTY4Ljc5NCAxMzIuNTkzIDE2OC41NzYgMTMyLjcwNSAxNjguNTkyQzEzMi43MzYgMTY4LjU4NyAxMzIuNzY3IDE2OC41OTMgMTMyLjc5NCAxNjguNjA3QzEzMi44MjIgMTY4LjYyMiAxMzIuODQ0IDE2OC42NDUgMTMyLjg1NyAxNjguNjczQzEzMi44NzkgMTY4LjY5OCAxMzIuODkzIDE2OC43MjkgMTMyLjg5NyAxNjguNzYyWk0xMzAuMTY1IDE3MC4zMzZWMTcwLjQxN0MxMzAuMTY1IDE3MC42NTEgMTMwLjMwMSAxNzAuNjY3IDEzMC4zNDkgMTcwLjY3NUMxMzAuODA2IDE3MC43NjQgMTMxLjkwNCAxNjkuNzcxIDEzMi40MDEgMTY4Ljk5NkMxMzEuODE1IDE2OS4wOTMgMTMwLjY2MSAxNjkuMzUxIDEzMC4yNzcgMTY5LjkxNkMxMzAuMTkgMTcwLjAzOCAxMzAuMTQ4IDE3MC4xODYgMTMwLjE1NiAxNzAuMzM2SDEzMC4xNjVaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTExOS44NjUgMTUwLjQ2NEwxMjkuMzYzIDE1Ny40ODFMMTI2LjMxNyAxNjMuNTM3TDExNS4wMDggMTU3LjMwM0wxMTkuODY1IDE1MC40NjRaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTI0LjE0NSAxNjMuOTMxTDEyMS4wMjcgMTYzLjIyOUwxMjYuMjEzIDE1My4yNDlMMTI5LjEwNiAxNTYuMjI4TDEyNC4xNDUgMTYzLjkzMVoiIGZpbGw9IiM0NjQ0QjUiLz4KPHBhdGggb3BhY2l0eT0iMC42IiBkPSJNMTI0LjE0NSAxNjMuOTMxTDEyMS4wMjcgMTYzLjIyOUwxMjYuMjEzIDE1My4yNDlMMTI5LjEwNiAxNTYuMjI4TDEyNC4xNDUgMTYzLjkzMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMDAuMjEzIDE2Mi41NTFMODguNTkwOSAxNjQuNDcyTDgzLjAwNDUgMTY1LjQwMUw4MS4zNzc0IDE1OS41OTVMODYuNDI2OSAxNTguMDQ1TDk4Ljc1MzggMTU0LjI2NkwxMDAuMjEzIDE2Mi41NTFaIiBmaWxsPSIjRTg2MTYxIi8+CjxwYXRoIGQ9Ik04Mi41MTUzIDE1OC42NDNMODUuMDMyIDE2NS4xNTlDODUuMDY1IDE2NS4yNDYgODUuMDgwNCAxNjUuMzM5IDg1LjA3NzMgMTY1LjQzMkM4NS4wNzQxIDE2NS41MjUgODUuMDUyNCAxNjUuNjE2IDg1LjAxMzYgMTY1LjdDODQuOTc0NyAxNjUuNzg1IDg0LjkxOTQgMTY1Ljg2IDg0Ljg1MSAxNjUuOTIzQzg0Ljc4MjUgMTY1Ljk4NSA4NC43MDI0IDE2Ni4wMzMgODQuNjE1MiAxNjYuMDY0TDgxLjQwOTIgMTY3LjIxOEM4MS40MDkyIDE2Ny4yMTggNzcuMTUzMyAxNjkuMDkyIDc1Ljc5ODggMTY4LjQ5NEM3MS43OTEzIDE2Ni43NSA2NS44NTIyIDE1Mi40NzQgNjcuMTU4NyAxNTEuMTI1QzY3LjYzMTUgMTUwLjYzMyA2OC42NzM1IDE1MS4wODUgNjkuMjI2NSAxNTEuNDk3QzcwLjk2NTggMTUyLjc4OSA3NC44MzcgMTU2LjU1MiA3Ni4zMTk3IDE1Ny42MDlDNzguMDM0OSAxNTguODUzIDgwLjY1NTggMTU4LjQ2NSA4MS43OTM5IDE1OC4yMTVDODEuOTQ0MyAxNTguMTk1IDgyLjA5NjkgMTU4LjIyNyA4Mi4yMjc2IDE1OC4zMDRDODIuMzU4MiAxNTguMzgyIDgyLjQ1OTUgMTU4LjUwMSA4Mi41MTUzIDE1OC42NDNaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEwMC4yMTIgMTYyLjU1MUw4OC41OTA4IDE2NC40NzNMODYuNDI2OCAxNTguMDQ1TDk4Ljc1MzcgMTU0LjI2NkwxMDAuMjEyIDE2Mi41NTFaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNODguNDMwNyAxNTYuODM0Qzg4LjQzMDcgMTU2LjgzNCAxMzYuNzQ1IDEyOC4xMiAxNTMuMDg3IDEyOC44ODdDMTY5LjQzIDEyOS42NTQgMTcwLjg3MiAxNDYuMDQ2IDE2NC4xMjQgMTU1LjEzOUMxNTcuMzc1IDE2NC4yMzEgMTQ0Ljg4OCAxNjYuNDQzIDE0NC44ODggMTY2LjQ0M0MxNDQuODg4IDE2Ni40NDMgMTUzLjM2OCAxNTQuMzcxIDE1Mi4xNDkgMTUwLjk3MkMxNTAuOTMxIDE0Ny41NzIgMTQ2LjI0MiAxNTguOTk4IDE0Ni4yNDIgMTU4Ljk5OEMxNDYuMjQyIDE1OC45OTggMTE2LjMxNSAxNjIuOTU1IDkwLjIzNCAxNjUuMTc2TDg4LjQzMDcgMTU2LjgzNFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTg3LjY2MTEgMTU2LjA5TDkwLjM0NiAxNTQuMjgyTDkzLjc5MjIgMTY0Ljk0SDg5LjY0ODdMODcuNjYxMSAxNTYuMDlaIiBmaWxsPSIjNDY0NEI1Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNiIgZD0iTTg3LjY2MTEgMTU2LjA5TDkwLjM0NiAxNTQuMjgyTDkzLjc5MjIgMTY0Ljk0SDg5LjY0ODdMODcuNjYxMSAxNTYuMDlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTQzLjAyOCA2OS4xODkzQzE1MC4wNTcgNjkuMTg5MyAxNTQuNjM0IDYxLjc2MDQgMTU0LjYzNCA2MS43NjA0QzE0NS40MTcgNTguNTMwNSAxNDUuMzg1IDQ4LjcwMzQgMTQ1LjM4NSA0OC43MDM0TDE0MS44MzQgNTIuMTY3NUwxMzYuNzc2IDU3LjE1NzhDMTQwLjk4NCA2MC4xNjE2IDEzOC45OTcgNjIuNzYxNyAxMzcuNjU4IDYzLjkxNjRDMTM3LjM4NCA2NC4xNjMyIDEzNy4wODkgNjQuMzg0OCAxMzYuNzc2IDY0LjU3ODZDMTM2Ljc3NiA2NC41Nzg2IDEzNS45OTkgNjkuMTg5MyAxNDMuMDI4IDY5LjE4OTNaIiBmaWxsPSIjRjk3Nzc3Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTEzNy42NTkgNjMuOTQ5MUMxNDYuMjgzIDY0LjkyNjIgMTQ1LjY3NCA1MS45MTc2IDE0NS42NzQgNTEuOTE3NkMxNDQuMzggNTEuODk2OSAxNDMuMDg3IDUxLjk5MTUgMTQxLjgxIDUyLjIwMDJMMTM2Ljc1MyA1Ny4xOTA1QzE0MC45ODUgNjAuMTk0MyAxMzguOTk3IDYyLjc5NDQgMTM3LjY1OSA2My45NDkxWiIgZmlsbD0iYmxhY2siLz4KPHBhdGggb3BhY2l0eT0iMC4yIiBkPSJNMTYyLjEzNiAxMTguNTExTDE0NS41MTMgMTM3LjA4M0MxNDUuNTEzIDEzNy4wODMgMTI3LjE0MyAxMzYuNjcxIDEwNC44MjkgMTQ3LjY1M0MxMDQuODI5IDE0Ny42NTMgODAuODg4NCAxMzcuNjg5IDc4LjY4NDMgMTI5LjQxMkM3Ni40ODAxIDEyMS4xMzUgMTI4Ljk0NiAxMjYuOTg5IDEyOC45NDYgMTI2Ljk4OUwxNjIuMTM2IDExOC41MTFaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNMTU3LjQzOSAxMTMuMDZMMTMwLjc4OSAxMjEuODQ2QzEzMC43ODkgMTIxLjg0NiAxMjEuMjY4IDExOS43MjIgMTE5LjU2OSAxMTkuNzIyQzExNy44NjkgMTE5LjcyMiAxMTEuMjg5IDEyNS4xMDggMTE1LjAwOCAxMjYuOTg5QzExOC43MjcgMTI4Ljg3MSAxMjguODgyIDEyOS4xMTMgMTI5Ljk4OCAxMjguNTA3QzEzMS4wOTQgMTI3LjkwMiAxNjAuNjQ1IDEyMC45MzMgMTYwLjY0NSAxMjAuOTMzTDE1Ny40MzkgMTEzLjA2WiIgZmlsbD0iI0U4NjE2MSIvPgo8cGF0aCBkPSJNMTY1LjM0MiA2Mi4yODU0QzE1OS4zMDcgNjEuMTA2NCAxNjkuNzc0IDk4LjEyMTYgMTY3LjIwOSAxMDMuNTcyQzE2NC42NDQgMTA5LjAyMyAxNTQuNjM0IDExMi40NTUgMTU0LjYzNCAxMTIuNDU1TDE1OS4yNDIgMTIyLjcwMkMxNTkuMjQyIDEyMi43MDIgMTcyLjg2OCAxMjAuMTEgMTgwLjI4MiAxMTAuNTg5QzE4Ny42OTUgMTAxLjA2OSAxNzUuMTc2IDY0LjIxNTMgMTY1LjM0MiA2Mi4yODU0WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNMTU0LjYzNCAxMTEuNjQ3TDE2MC4yNDQgMTIyLjcxOEwxNTUuNDM1IDEyMy43NkwxNTEuMDI3IDExMy41NjlMMTU0LjYzNCAxMTEuNjQ3WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xNTQuNjM0IDExMS42NDdMMTYwLjI0NCAxMjIuNzE4TDE1NS40MzUgMTIzLjc2TDE1MS4wMjcgMTEzLjU2OUwxNTQuNjM0IDExMS42NDdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTQzLjYxMyAxMjYuOTlWMTI4Ljc1QzE0My42MSAxMjkuMzM4IDE0My4zODMgMTI5LjkwMiAxNDIuOTc5IDEzMC4zMjVDMTQyLjU3NCAxMzAuNzQ5IDE0Mi4wMjQgMTMxIDE0MS40NDEgMTMxLjAyN0g3Ny4wMDk0Qzc2LjQwOTkgMTMxLjAwOCA3NS44MzkgMTMwLjc2NCA3NS40MDkgMTMwLjM0M0M3NC45NzkgMTI5LjkyMSA3NC43MjA4IDEyOS4zNTMgNzQuNjg1MSAxMjguNzVWMTI2Ljk5SDE0My42MTNaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTE0My42MTMgMTI2Ljk5VjEyOC43NUMxNDMuNjEgMTI5LjMzOCAxNDMuMzgzIDEyOS45MDIgMTQyLjk3OSAxMzAuMzI1QzE0Mi41NzQgMTMwLjc0OSAxNDIuMDI0IDEzMSAxNDEuNDQxIDEzMS4wMjdINzcuMDA5NEM3Ni40MDk5IDEzMS4wMDggNzUuODM5IDEzMC43NjQgNzUuNDA5IDEzMC4zNDNDNzQuOTc5IDEyOS45MjEgNzQuNzIwOCAxMjkuMzUzIDc0LjY4NTEgMTI4Ljc1VjEyNi45OUgxNDMuNjEzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggb3BhY2l0eT0iMC4yIiBkPSJNMTE5LjU2OSAxMjYuOTlWMTI4Ljc1QzExOS41NjMgMTI5LjMzOCAxMTkuMzM0IDEyOS45MDIgMTE4LjkyOSAxMzAuMzI2QzExOC41MjMgMTMwLjc0OSAxMTcuOTcyIDEzMSAxMTcuMzg5IDEzMS4wMjdINzcuMDA5NEM3Ni40MDk5IDEzMS4wMDggNzUuODM5IDEzMC43NjQgNzUuNDA5IDEzMC4zNDNDNzQuOTc5IDEyOS45MjEgNzQuNzIwOCAxMjkuMzUzIDc0LjY4NTEgMTI4Ljc1VjEyNi45OUgxMTkuNTY5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTExNy4zODkgMTI5LjQxMkg3NC44MjE0Qzc0LjEzNzkgMTI5LjM3OCA3My40Nzk2IDEyOS4xNDIgNzIuOTI5MiAxMjguNzMyQzcyLjM3ODcgMTI4LjMyMyA3MS45NjA3IDEyNy43NTkgNzEuNzI3NiAxMjcuMTFMNjEuOTY1NCA5Ni4yNjQ0QzYxLjg1NDEgOTYuMDAwOSA2MS44MTAxIDk1LjcxMzYgNjEuODM3NSA5NS40Mjg2QzYxLjg2NDkgOTUuMTQzNiA2MS45NjI5IDk0Ljg3MDEgNjIuMTIyMyA5NC42MzMxQzYyLjI4MTggOTQuMzk2MSA2Mi40OTc4IDk0LjIwMzIgNjIuNzUwNCA5NC4wNzJDNjMuMDAzIDkzLjk0MDggNjMuMjg0MyA5My44NzU2IDYzLjU2ODQgOTMuODgyM0gxMDYuMTY4QzEwNi44NTggOTMuOTMyNiAxMDcuNTE4IDk0LjE4NDggMTA4LjA2OCA5NC42MDhDMTA4LjYxNyA5NS4wMzEyIDEwOS4wMzIgOTUuNjA2OSAxMDkuMjYyIDk2LjI2NDRMMTE5LjAyNCAxMjcuMDdDMTE5LjEzNyAxMjcuMzM0IDExOS4xODEgMTI3LjYyMiAxMTkuMTUxIDEyNy45MDhDMTE5LjEyMiAxMjguMTk0IDExOS4wMjEgMTI4LjQ2NyAxMTguODU3IDEyOC43MDJDMTE4LjY5MyAxMjguOTM3IDExOC40NzIgMTI5LjEyNSAxMTguMjE1IDEyOS4yNUMxMTcuOTU4IDEyOS4zNzQgMTE3LjY3MyAxMjkuNDMgMTE3LjM4OSAxMjkuNDEyWiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xMTcuMzg5IDEyOS40MTJINzQuODIxNEM3NC4xMzc5IDEyOS4zNzggNzMuNDc5NiAxMjkuMTQyIDcyLjkyOTIgMTI4LjczMkM3Mi4zNzg3IDEyOC4zMjMgNzEuOTYwNyAxMjcuNzU5IDcxLjcyNzYgMTI3LjExTDYxLjk2NTQgOTYuMjY0NEM2MS44NTQxIDk2LjAwMDkgNjEuODEwMSA5NS43MTM2IDYxLjgzNzUgOTUuNDI4NkM2MS44NjQ5IDk1LjE0MzYgNjEuOTYyOSA5NC44NzAxIDYyLjEyMjMgOTQuNjMzMUM2Mi4yODE4IDk0LjM5NjEgNjIuNDk3OCA5NC4yMDMyIDYyLjc1MDQgOTQuMDcyQzYzLjAwMyA5My45NDA4IDYzLjI4NDMgOTMuODc1NiA2My41Njg0IDkzLjg4MjNIMTA2LjE2OEMxMDYuODU4IDkzLjkzMjYgMTA3LjUxOCA5NC4xODQ4IDEwOC4wNjggOTQuNjA4QzEwOC42MTcgOTUuMDMxMiAxMDkuMDMyIDk1LjYwNjkgMTA5LjI2MiA5Ni4yNjQ0TDExOS4wMjQgMTI3LjA3QzExOS4xMzcgMTI3LjMzNCAxMTkuMTgxIDEyNy42MjIgMTE5LjE1MSAxMjcuOTA4QzExOS4xMjIgMTI4LjE5NCAxMTkuMDIxIDEyOC40NjcgMTE4Ljg1NyAxMjguNzAyQzExOC42OTMgMTI4LjkzNyAxMTguNDcyIDEyOS4xMjUgMTE4LjIxNSAxMjkuMjVDMTE3Ljk1OCAxMjkuMzc0IDExNy42NzMgMTI5LjQzIDExNy4zODkgMTI5LjQxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTExNS43ODYgMTI5LjQxMkg3NC44MjE0Qzc0LjEzNzkgMTI5LjM3OCA3My40Nzk2IDEyOS4xNDIgNzIuOTI5MiAxMjguNzMyQzcyLjM3ODcgMTI4LjMyMyA3MS45NjA3IDEyNy43NTkgNzEuNzI3NiAxMjcuMTFMNjEuOTY1NCA5Ni4yNjQ0QzYxLjg1NDEgOTYuMDAwOSA2MS44MTAxIDk1LjcxMzYgNjEuODM3NSA5NS40Mjg2QzYxLjg2NDkgOTUuMTQzNiA2MS45NjI5IDk0Ljg3MDEgNjIuMTIyMyA5NC42MzMxQzYyLjI4MTggOTQuMzk2MSA2Mi40OTc4IDk0LjIwMzIgNjIuNzUwNCA5NC4wNzJDNjMuMDAzIDkzLjk0MDggNjMuMjg0MyA5My44NzU2IDYzLjU2ODQgOTMuODgyM0gxMDQuNTY1QzEwNS4yNTUgOTMuOTMyNiAxMDUuOTE1IDk0LjE4NDggMTA2LjQ2NSA5NC42MDhDMTA3LjAxNCA5NS4wMzEyIDEwNy40MjkgOTUuNjA2OSAxMDcuNjU5IDk2LjI2NDRMMTE3LjQyMSAxMjcuMDdDMTE3LjUzNCAxMjcuMzM0IDExNy41NzggMTI3LjYyMiAxMTcuNTQ4IDEyNy45MDhDMTE3LjUxOSAxMjguMTk0IDExNy40MTggMTI4LjQ2NyAxMTcuMjU0IDEyOC43MDJDMTE3LjA5IDEyOC45MzcgMTE2Ljg2OSAxMjkuMTI1IDExNi42MTIgMTI5LjI1QzExNi4zNTUgMTI5LjM3NCAxMTYuMDcgMTI5LjQzIDExNS43ODYgMTI5LjQxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTkwLjg4MjYgMTEzLjA2QzkxLjQwMzUgMTE1LjExOSA5MC4zOTM3IDExNi43ODIgODguNjE0NSAxMTYuNzgyQzg2LjgzNTMgMTE2Ljc4MiA4NC45NjggMTE1LjExOSA4NC40NDcgMTEzLjA2QzgzLjkyNjEgMTExLjAwMSA4NC45MzU5IDEwOS4zMzggODYuNzE1MSAxMDkuMzM4Qzg4LjQ5NDMgMTA5LjMzOCA5MC4zNTM2IDExMS4wMDkgOTAuODgyNiAxMTMuMDZaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBvcGFjaXR5PSIwLjIiIGQ9Ik0xMjkuNDkxIDE2NS45MzRMMTMyLjM1MyAxNTkuNTYzQzEzMi4zOTEgMTU5LjQ3OSAxMzIuNDQ2IDE1OS40MDQgMTMyLjUxNCAxNTkuMzQxQzEzMi41ODIgMTU5LjI3OSAxMzIuNjYxIDE1OS4yMyAxMzIuNzQ3IDE1OS4xOTlDMTMyLjgzNCAxNTkuMTY3IDEzMi45MjYgMTU5LjE1MyAxMzMuMDE3IDE1OS4xNThDMTMzLjEwOSAxNTkuMTYyIDEzMy4xOTkgMTU5LjE4NSAxMzMuMjgyIDE1OS4yMjRMMTM2LjM3NiAxNjAuNzVDMTM2LjM3NiAxNjAuNzUgMTQwLjY3MiAxNjIuNTAzIDE0MS4xODUgMTYzLjkwOEMxNDIuNzg4IDE2OC4wMjYgMTM2Ljc4NSAxODIuMjg2IDEzNC45MTcgMTgyLjI4NkMxMzQuMjM2IDE4Mi4yODYgMTMzLjgyNyAxODEuMjIgMTMzLjczMSAxODAuNTQyQzEzMy40MjcgMTc4LjM3OCAxMzMuMzc4IDE3Mi45NTEgMTMzLjEwNiAxNzEuMTUxQzEzMi43ODUgMTY5LjA1MSAxMzAuNzAxIDE2Ny40MzYgMTI5LjcgMTY2Ljc5QzEyOS41NzEgMTY2LjY5NSAxMjkuNDc5IDE2Ni41NTcgMTI5LjQ0MSAxNjYuNEMxMjkuNDAzIDE2Ni4yNDQgMTI5LjQyMSAxNjYuMDc5IDEyOS40OTEgMTY1LjkzNFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIG9wYWNpdHk9IjAuMiIgZD0iTTgyLjUxNTMgMTU4LjY0M0w4NS4wMzIgMTY1LjE1OUM4NS4wNjUgMTY1LjI0NiA4NS4wODA0IDE2NS4zMzkgODUuMDc3MyAxNjUuNDMyQzg1LjA3NDEgMTY1LjUyNSA4NS4wNTI0IDE2NS42MTYgODUuMDEzNiAxNjUuN0M4NC45NzQ3IDE2NS43ODUgODQuOTE5NCAxNjUuODYgODQuODUxIDE2NS45MjNDODQuNzgyNSAxNjUuOTg1IDg0LjcwMjQgMTY2LjAzMyA4NC42MTUyIDE2Ni4wNjRMODEuNDA5MiAxNjcuMjE4QzgxLjQwOTIgMTY3LjIxOCA3Ny4xNTMzIDE2OS4wOTIgNzUuNzk4OCAxNjguNDk0QzcxLjc5MTMgMTY2Ljc1IDY1Ljg1MjIgMTUyLjQ3NCA2Ny4xNTg3IDE1MS4xMjVDNjcuNjMxNSAxNTAuNjMzIDY4LjY3MzUgMTUxLjA4NSA2OS4yMjY1IDE1MS40OTdDNzAuOTY1OCAxNTIuNzg5IDc0LjgzNyAxNTYuNTUyIDc2LjMxOTcgMTU3LjYwOUM3OC4wMzQ5IDE1OC44NTMgODAuNjU1OCAxNTguNDY1IDgxLjc5MzkgMTU4LjIxNUM4MS45NDQzIDE1OC4xOTUgODIuMDk2OSAxNTguMjI3IDgyLjIyNzYgMTU4LjMwNEM4Mi4zNTgyIDE1OC4zODIgODIuNDU5NSAxNTguNTAxIDgyLjUxNTMgMTU4LjY0M1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik05NS45MTY3IDY1Ljk4MTlIODAuNDIxMUM3OC4wMTY2IDY1Ljk4MTkgNzYuMTQ2NSA2Ny44NjYxIDc2LjE0NjUgNzAuMjg4NVY4Mi41MzU0Qzc2LjE0NjUgODQuODIzMyA3OC4wMTY2IDg2Ljg0MiA4MC40MjExIDg2Ljg0Mkg4Ni4xNjUyTDg4LjE2ODkgOTEuNjg2OUw5MC4xNzI2IDg2LjcwNzRIOTUuOTE2N0M5OC4xODc2IDg2LjcwNzQgMTAwLjE5MSA4NC44MjMzIDEwMC4xOTEgODIuNDAwOFY3MC4yODg1QzEwMC4wNTggNjcuODY2MSA5OC4xODc2IDY1Ljk4MTkgOTUuOTE2NyA2NS45ODE5WiIgZmlsbD0iIzQ2NDRCNSIvPgo8cGF0aCBkPSJNOTQuMTQ0IDcyLjQ1MDVDOTQuMDYxMiA3Mi4zNjY0IDkzLjk2MjcgNzIuMjk5NiA5My44NTQyIDcyLjI1NDFDOTMuNzQ1NyA3Mi4yMDg1IDkzLjYyOTMgNzIuMTg1MSA5My41MTE3IDcyLjE4NTFDOTMuMzk0MSA3Mi4xODUxIDkzLjI3NzcgNzIuMjA4NSA5My4xNjkyIDcyLjI1NDFDOTMuMDYwNyA3Mi4yOTk2IDkyLjk2MjIgNzIuMzY2NCA5Mi44Nzk0IDcyLjQ1MDVMODYuMjQ0OCA3OS4xNDM2TDgzLjQ1NzQgNzYuMzI2NEM4My4zNzE0IDc2LjI0MjcgODMuMjcgNzYuMTc3IDgzLjE1ODggNzYuMTMyOEM4My4wNDc2IDc2LjA4ODcgODIuOTI4OSA3Ni4wNjcgODIuODA5NCA3Ni4wNjkxQzgyLjY4OTkgNzYuMDcxMiA4Mi41NzIgNzYuMDk3IDgyLjQ2MjMgNzYuMTQ1QzgyLjM1MjcgNzYuMTkyOSA4Mi4yNTM2IDc2LjI2MjIgODIuMTcwNiA3Ni4zNDg4QzgyLjA4NzUgNzYuNDM1NCA4Mi4wMjIyIDc2LjUzNzcgODEuOTc4NCA3Ni42NDk3QzgxLjkzNDYgNzYuNzYxNyA4MS45MTMxIDc2Ljg4MTMgODEuOTE1MiA3Ny4wMDE3QzgxLjkxNzIgNzcuMTIyMSA4MS45NDI4IDc3LjI0MDkgODEuOTkwNSA3Ny4zNTEzQzgyLjAzODEgNzcuNDYxNyA4Mi4xMDY5IDc3LjU2MTYgODIuMTkyOCA3Ny42NDUzTDg1LjYxMjUgODEuMDkwNkM4NS42OTUzIDgxLjE3NDcgODUuNzkzOCA4MS4yNDE0IDg1LjkwMjMgODEuMjg3Qzg2LjAxMDkgODEuMzMyNSA4Ni4xMjczIDgxLjM1NiA4Ni4yNDQ4IDgxLjM1NkM4Ni4zNjI0IDgxLjM1NiA4Ni40Nzg4IDgxLjMzMjUgODYuNTg3MyA4MS4yODdDODYuNjk1OCA4MS4yNDE0IDg2Ljc5NDMgODEuMTc0NyA4Ni44NzcxIDgxLjA5MDZMOTQuMTQ0IDczLjc2OTNDOTQuMjM0NCA3My42ODUzIDk0LjMwNjUgNzMuNTgzNCA5NC4zNTU5IDczLjQ2OTlDOTQuNDA1MiA3My4zNTY0IDk0LjQzMDcgNzMuMjMzOCA5NC40MzA3IDczLjEwOTlDOTQuNDMwNyA3Mi45ODYgOTQuNDA1MiA3Mi44NjM0IDk0LjM1NTkgNzIuNzQ5OUM5NC4zMDY1IDcyLjYzNjQgOTQuMjM0NCA3Mi41MzQ1IDk0LjE0NCA3Mi40NTA1WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEzMS4yNTUgMzkuMjE0MUMxMzQuNTI3IDQwLjU4MDcgMTMzLjg4OCA0NC4xMTc2IDEyOC40NjMgNTAuNjI4N0MxMjUuMTEyIDQ3LjczNDkgMTIzLjM1NiA0MS4yMjM3IDEyNS4xMTIgMzkuMDUzNEMxMjYuNzg3IDM3LjA0MzggMTI4LjM4MyAzOC4wODg4IDEzMS4yNTUgMzkuMjE0MVoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTEyNi4zODcgNTMuNzYzMkMxMjYuNzA2IDU0LjcyNzggMTI3LjAyNSA1NS41MzE2IDEyNy40MjQgNTYuMzM1NUMxMzAuNjE1IDYyLjkyNyAxMzkuODcxIDY0LjIxMzEgMTQzLjk0IDU3LjcwMkMxNDMuOTQgNTcuNzAyIDE0My45NCA1Ny43MDIgMTQ0LjAyIDU3LjYyMTZDMTQ2LjczMyA1My4yMDA1IDE0NS42OTUgNDkuMTgxMyAxNDQuNTc4IDQyLjAyNzFDMTQ0LjMzOSA0MC40OTk4IDE0My43OCAzOS4xMzMyIDE0Mi45MDMgMzcuODQ3MUMxMzkuNzkxIDMzLjQyNiAxMzMuODA3IDMyLjM4MSAxMjkuMzM5IDM1LjQzNTZDMTI0LjA3MyAzOS4yMTM2IDEyNC4zOTIgNDcuNjU0IDEyNi4zODcgNTMuNzYzMloiIGZpbGw9IiNGOTc3NzciLz4KPHBhdGggZD0iTTEzNC44NTQgNDcuNzkyNkMxMzUuMDE0IDQ4LjM1NTMgMTM0Ljc3NSA0OC45MTc5IDEzNC4zNzYgNDguOTk4M0MxMzMuOTc3IDQ5LjA3ODcgMTMzLjU3OCA0OC42NzY4IDEzMy40OTggNDguMTE0MUMxMzMuMzM4IDQ3LjU1MTUgMTMzLjU3OCA0Ni45ODg4IDEzMy44OTcgNDYuOTA4NEMxMzQuMjk2IDQ2LjgyODEgMTM0LjY5NSA0Ny4yMyAxMzQuODU0IDQ3Ljc5MjZaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xMjguMzkzIDQ5LjIzOTRDMTI4LjU1MiA0OS44MDIgMTI4LjMxMyA1MC4zNjQ3IDEyNy45MTQgNTAuNDQ1MUMxMjcuNTE1IDUwLjUyNTQgMTI3LjExNiA1MC4xMjM1IDEyNy4wMzYgNDkuNTYwOUMxMjYuODc3IDQ4Ljk5ODIgMTI3LjExNiA0OC40MzU2IDEyNy41MTUgNDguMzU1MkMxMjcuOTE0IDQ4LjI3NDggMTI4LjMxMyA0OC42NzY3IDEyOC4zOTMgNDkuMjM5NFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTEzMS42MjQgNDguOTQxN0MxMzEuMzA1IDUwLjg3MDcgMTMwLjgyNiA1Mi42MzkxIDEzMC4wMjggNTQuNDA3NEMxMzEuMjI1IDU1LjEzMDggMTMyLjgyMSA1NC4zMjcgMTMyLjgyMSA1NC4zMjdMMTMxLjYyNCA0OC45NDE3WiIgZmlsbD0iI0RFNTc1MyIvPgo8cGF0aCBkPSJNMTM2LjEyNCA0NS4yNzc2QzEzNi4yMDQgNDUuMjc3NiAxMzYuMjgzIDQ1LjE5NzMgMTM2LjM2MyA0NS4xOTczQzEzNi41MjMgNDUuMDM2NSAxMzYuNDQzIDQ0Ljg3NTcgMTM2LjM2MyA0NC43MTVDMTM1LjU2NSA0My45OTE2IDEzNC40NDggNDMuNjcwMSAxMzMuMzMxIDQzLjkxMTJDMTMzLjE3MiA0My45OTE2IDEzMy4wMTIgNDQuMTUyMyAxMzMuMDkyIDQ0LjMxMzFDMTMzLjE3MiA0NC40NzM5IDEzMy4zMzEgNDQuNTU0MiAxMzMuNDkxIDQ0LjU1NDJDMTM0LjM2OSA0NC4zOTM1IDEzNS4yNDYgNDQuNjM0NiAxMzUuODg0IDQ1LjE5NzNDMTM1Ljg4NCA0NS4yNzc2IDEzNi4wNDQgNDUuMjc3NiAxMzYuMTI0IDQ1LjI3NzZaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xMjUuMzc4IDQ3LjY2NzVDMTI1LjUzNyA0Ny42Njc1IDEyNS42MTcgNDcuNTA2NyAxMjUuNjE3IDQ3LjQyNjRDMTI1Ljc3NyA0Ni41NDIyIDEyNi4zMzUgNDUuODE4OCAxMjcuMTMzIDQ1LjQ5NzNDMTI3LjI5MiA0NS40MTY5IDEyNy4zNzIgNDUuMjU2MSAxMjcuMzcyIDQ1LjA5NTRDMTI3LjI5MiA0NC45MzQ2IDEyNy4xMzMgNDQuODU0MiAxMjYuOTczIDQ0Ljg1NDJDMTI1LjkzNiA0NS4yNTYxIDEyNS4yMTggNDYuMjIwNyAxMjQuOTc5IDQ3LjI2NTZDMTI0Ljg5OSA0Ny40MjY0IDEyNS4wNTkgNDcuNjY3NSAxMjUuMjE4IDQ3LjY2NzVDMTI1LjI5OCA0Ny43NDc5IDEyNS4zNzggNDcuNzQ3OSAxMjUuMzc4IDQ3LjY2NzVaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xNDAuNDMgMzYuNDgwOUMxMzcuMzk4IDM4LjMyOTggMTM4LjU5NCA0MS43ODYzIDE0NC45NzcgNDcuMzMyOEMxNDcuNzcgNDMuOTU2NiAxNDguNTY4IDM3LjIwNDQgMTQ2LjQ5MyAzNS40MzU5QzE0NC40MTkgMzMuNTg3MSAxNDMuMDYzIDM0Ljg3MzIgMTQwLjQzIDM2LjQ4MDlaIiBmaWxsPSIjMjYzMjM4Ii8+CjxwYXRoIGQ9Ik0xNDkuMTI2IDQ2Ljg1MUMxNDkuMDQ2IDQ4LjYxOTMgMTQ4LjE2OCA1MC4zMDczIDE0Ni44OTIgNTEuNTEzQzE0NS4xMzcgNTMuMTIwNSAxNDMuMjIyIDUxLjc1NDEgMTQyLjgyMyA0OS41MDM1QzE0Mi41MDQgNDcuNDk0IDE0My4wNjIgNDQuMjc4OSAxNDUuMjE2IDQzLjU1NTRDMTQ3LjQ1IDQyLjkxMjQgMTQ5LjI4NSA0NC42ODA4IDE0OS4xMjYgNDYuODUxWiIgZmlsbD0iI0Y5Nzc3NyIvPgo8cGF0aCBkPSJNMTM3LjIyIDU0LjA1MDNDMTM3LjIyIDU0LjA1MDMgMTM2LjUwMiA1Ni42MjI0IDEzMy4wNzEgNTcuMTg1MSIgc3Ryb2tlPSIjMjYzMjM4IiBzdHJva2Utd2lkdGg9IjAuOTI1Mzg4IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTI3LjI2NCAzNy41MjYxQzEyNy4yNjQgMzcuNTI2MSAxMjkuOTc3IDM2LjU2MTYgMTMzLjY0NyAzNi45NjM1QzEzMy42NDcgMzYuOTYzNSAxMzUuNDgyIDMzLjc0ODMgMTMwLjkzNCAzMy41ODc1QzEyNy43NDMgMzMuNDI2OCAxMjcuMTA1IDM1LjE5NTEgMTI3LjI2NCAzNy41MjYxWiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTI2LjgzMyA0NC4wMDQ0TDEyNC4xMzggNDQuMTc1NUMxMjQuMTM4IDQ0LjE3NTUgMTI0LjgzMyA0MC44NzM3IDEyMy44NTggMzguNzIzNEMxMjIuOTQyIDM2LjU1MTUgMTIxLjkyMyAzNS4wMjY5IDEyNi4xODUgMzMuNjA2MUMxMzAuNDQ4IDMyLjE4NTMgMTM0LjM1NCAzNS41Njg1IDEyNi44MzMgNDQuMDA0NFoiIGZpbGw9IiMyNjMyMzgiLz4KPHBhdGggZD0iTTE0MC41MzYgMzcuOTg2NUMxMzUuNjQyIDM4Ljk2MDQgMTI2LjY2NSAzOS4wNTM4IDEyNS42NTEgMzMuMDU2NEMxMjUuMDA3IDI5LjAyMzcgMTMxLjIwMyAyOC4xMTY1IDEzMy4xMTkgMjkuNTE3QzEzNS4wNTYgMzAuOTc3NCAxMzkuMTIxIDMyLjc0NDkgMTQyLjQ5NiAzMy4zNDE4QzE0NS44NzEgMzMuOTM4NiAxNDcuODE4IDM2LjU0NzIgMTQwLjUzNiAzNy45ODY1WiIgZmlsbD0iIzI2MzIzOCIvPgo8cGF0aCBkPSJNMTQxLjI5OCA0Ny4zOTVMMTM4LjYxNSA0Ny4yMjM0QzEzOC42MTUgNDcuMjIzNCAxMzkuNjkzIDQ0LjA1MjUgMTM5LjAxNSA0MS43OTM4QzEzOC4zMzcgMzkuNTM1MSAxMzcuNTM0IDM3Ljg2MzggMTQxLjkzMSAzNy4wMDM2QzE0Ni4zNjYgMzYuMDYxOCAxNDkuNzg1IDM5Ljk2MTMgMTQxLjI5OCA0Ny4zOTVaIiBmaWxsPSIjMjYzMjM4Ii8+Cjwvc3ZnPgo=",WEe="",ile={tagName:"l-search-topics",name:"LSearchTopics",components:{TopicItemGroup:Uoe,RecentTermSearched:Qoe,SearchTopicsHeader:Zoe},props:{multipleTargets:{type:Boolean,default:!0},canSendForAll:{type:Boolean,default:!1},searchTopics:{type:Function},populateTopic:{type:Function},alreadySelectedTopics:{type:Array},recentTopicsSearched:{type:Object}},data:function(){return{forAllTagChecked:!1,showSelected:!1,selectedTopics:[],includesMap:{},querySearchTopics:{q:null,kind:"*",page:0},searchedTopics:{tag:{hits:[],total:0},group:{hits:[],total:0},member:{hits:[],total:0},user:{hits:[],total:0}},total:0,kinds:["*","tag","group","member","user"],kindsIcons:{tag:"uil-tag-alt",group:"uil-users-alt",member:"uil-graduation-cap",user:"uil-user","*":""},typing:!1,loading:!1,loadingMore:!1}},watch:{selectedTopics(t){(!t||t.length===0)&&(this.showSelected=!1)},querySearchTopics(){!this.typing&&!this.loadingMore&&(this.typing=!0),this.searchDebounced()}},computed:{canShowSendForAll(){return this.canSendForAll&&!this.hasQuery&&this.multipleTargets},searchingSpan(){return this.querySearchTopics.q?this.querySearchTopics.q:this.querySearchTopics.kind==="*"?"":this.getKindNamePlural(this.querySearchTopics.kind).toLowerCase()},hasQuery(){return this.querySearchTopics.q||this.querySearchTopics.kind!=="*"},showRecentSearchedTopics(){return this.recentTopicsSearched.data?this.recentTopicsSearched.data.length>0&&!this.hasQuery:!1},filteredSearchedTopics(){return{...this.searchedTopics,tag:{hits:this.searchedTopics.tag.hits.filter(t=>t.id!=="*"),total:this.searchedTopics.tag.total}}},forAllTag:{get(){return this.forAllTagChecked},set(t){const e=this.searchedTopics.tag.hits;if(this.selectedTopics&&this.selectedTopics.length&&this.selectedTopics.find(n=>n.id!=="*")&&t!=="confirm"){this.showForAllTagAlert().then(n=>{if(!n){this.forAllTagChecked=!1;return}const i=e.find(s=>s.id==="*");this.setSelectedTopics([i]),this.forAllTagChecked=!0});return}if(t=!!t,t&&this.searchedTopics&&e){const n=e.find(i=>i.id==="*");this.setSelectedTopics([n])}else this.setSelectedTopics([]);this.forAllTagChecked=t}},recentTopicsFiltered(){return ia(this.recentTopicsSearched.data).reverse().slice(0,3)},topicsSummary(){if(!this.selectedTopics||!this.selectedTopics.length)return"";if(this.forAllTagChecked)return"Enviando para todos";const t=[];return this.kinds.filter(e=>e!=="*").forEach(e=>{const n=k$(this.selectedTopics,{kind:e}).length;n===1?t.push(`1 ${this.getKindName(e).toLowerCase()}`):n>1&&t.push(`${n} ${this.getKindNamePlural(e).toLowerCase()}`)}),t.length?t.join(", "):null},hasAnySearchedTopic(){return this.total?this.total>0:null},headerKinds(){return this.kinds.filter(t=>t!=="tag"||this.canSendForAll).map(t=>({value:t,name:this.getKindNamePlural(t),icon:this.kindsIcons[t]}))},resultKinds(){return this.kinds.filter(e=>e!=="*").filter(e=>this.filteredSearchedTopics[e].total&&this.filteredSearchedTopics[e].hits.length)},totalLabel(){return this.total===1?"1 resultado encontrado":this.total+" resultados encontrados"},isAllEntities(){return this.querySearchTopics.kind==="*"}},async created(){this.loading=!0;try{const t=await this.searchTopics(this.querySearchTopics);this.searchedTopics=t.result,this.total=t.total}catch{this.$notify({...vv.errorHandler("Erro ao carregar o público alvo."),duration:1e4,position:"bottom",showClose:!0})}finally{this.loading=!1}this.selectedTopics=this.alreadySelectedTopics,this.selectedTopics&&this.selectedTopics.length&&this.selectedTopics.find(t=>t.id==="*"&&t.kind==="tag")&&this.multipleTargets&&(this.forAllTag=!0)},destroyed(){this.setSelectedTopics([])},methods:{searchDebounced:Nae(async function(){vn(this.querySearchTopics,"q.length",null)>3&&this.recentTopicsSearched.push(this.querySearchTopics.q),await this.getSearchedTopics(this.querySearchTopics),this.typing=!1},500,{leading:!1,trailing:!0}),useRecentTermSearched(t){this.setQuerySearchTopics({q:t,kind:"*"})},updateIncludesMap({topic:t,includes:e}){this.includesMap[t.id]=e},hasChildChecked(t){const e=this.includesMap[t.id];return e?e.some(this.isChecked)||e.some(this.hasChildChecked):!1},getKindName(t,e="pt-br"){return{"pt-br":{"*":"Procurar em tudo",tag:"Marcador",group:"Turma",member:"Aluno",user:"Usuário"},"en-us":{"*":"Search all",tag:"Tag",group:"Group",member:"Member",user:"User"}}[e][t]},getKindNamePlural(t,e="pt-br"){return{"pt-br":{"*":"Procurar em tudo",tag:"Marcadores",group:"Turmas",member:"Alunos",user:"Usuários"},"en-us":{"*":"Search all",tag:"Tags",group:"Groups",member:"Members",user:"Users"}}[e][t]},async getSearchedTopics(t){this.loadingMore||(this.loading=!0);try{const e=await this.searchTopics(t);if(t.page>0){const n=ia(this.searchedTopics);await Promise.all(w7(e.result).map(i=>{n[i]||(n[i]={hits:[],total:null}),n[i].hits=[...n[i].hits,...e.result[i].hits]})),this.searchedTopics=n}else this.searchedTopics=e.result,this.total=e.total}catch{this.$notify({...vv.errorHandler("Erro ao buscar o público desejado."),duration:1e4,position:"bottom",showClose:!0})}finally{this.loading=!1,this.loadingMore=!1}},loadMore(){this.loadingMore=!0;const t=vn(this.querySearchTopics,"page",0)+1,e=vn(this.querySearchTopics,"q",null),n=vn(this.querySearchTopics,"kind",null);this.setQuerySearchTopics({q:e,kind:n,page:t})},getTopicHits(t){return vn(this.filteredSearchedTopics,`${t}.hits`,[])},getTopicTotal(t){return vn(this.filteredSearchedTopics,`${t}.total`,[])},needShowMore(t){return this.getTopicTotal(t)>this.getTopicHits(t).length},isChecked(t){return this.forAllTagChecked?!0:this.selectedTopics.filter(e=>e.kind===t.kind&&e.id===t.id).length!==0},filterForKind(t){this.setQuerySearchTopics({q:this.querySearchTopics.q,kind:t,page:0})},setSelectedTopics(t){this.selectedTopics=t},removeFromRecentTopicsSearched(t){this.recentTopicsSearched.remove(t)},setQuerySearchTopics(t){this.querySearchTopics=t},async showForAllTagAlert(){const t=await ele({title:"Você já selecionou alguns destinatários e eles serão substituídos pela tag todos.",buttonCloseLabel:"Cancelar",buttonConfirmLabel:"Continuar"});if(t)return t},addTopic(t){if(this.selectedTopics.filter(n=>n.id===t.id&&n.kind===t.kind).length===0){const n=ia(this.selectedTopics);n.push(t),this.setSelectedTopics(n)}},removeTopic(t){const e=this.selectedTopics.findIndex(i=>i.id===t.id&&i.kind===t.kind);if(e==-1)return;const n=ia(this.selectedTopics);n.splice(e,1),this.setSelectedTopics(n)},updateSelectedTopics({topic:t,value:e}){if(!this.multipleTargets)return e?this.setSelectedTopics([t]):this.setSelectedTopics([]);if(!e){this.removeTopic(t);return}this.addTopic(t)},onSave(){const t=this.selectedTopics.map(e=>({hash:e.hash,name:e.name,kind:e.kind,id:e.id}));this.$emit("answer",t)},async onClose(){const t=ia(this.alreadySelectedTopics).map(s=>s.kind+s.id),e=ia(this.selectedTopics).map(s=>s.kind+s.id);if(Loe(e,t).length===0){this.$emit("close");return}await tle()&&this.$emit("close")},onInput(t){this.querySearchTopics=t}}};var rle=function(){var e=this,n=e._self._c;return n("div",{staticClass:"search-topics-page l-col l-d-flex column"},[n("SearchTopicsHeader",{staticClass:"drawer-search-topics-header",attrs:{kinds:e.headerKinds,query:e.querySearchTopics,typing:e.typing,loading:e.loading,hasAnySelectedTopic:e.selectedTopics.length>0},on:{save:e.onSave,close:e.onClose,input:e.onInput}}),n("div",{staticClass:"px-0 py-2 l-container scroll-y l-flex-grow-1"},[e.loading||e.typing?[n("div",{staticClass:"gray-70--text searching-label mx-3"},[e._v(" Procurando "+e._s(e.searchingSpan)+"... ")])]:e.hasAnySearchedTopic?[n("div",{staticClass:"mb-5"},[e.showRecentSearchedTopics?n("div",{staticClass:"recent-search mb-3 mx-3"},[n("div",{staticClass:"recent-search-title gray-70--text mb-2 l-text-regular"},[e._v(" Buscas recentes ")]),e._l(e.recentTopicsFiltered,function(i,s){return n("RecentTermSearched",{key:s,staticClass:"mb-2 cursor-pointer",attrs:{term:i},on:{remove:function(o){return e.removeFromRecentTopicsSearched(i)}},nativeOn:{click:function(o){return e.useRecentTermSearched(i)}}})})],2):e._e(),e.canShowSendForAll?n("div",{staticClass:"topic-item-tag-for-all mx-3"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Enviar para todos ")]),n("l-checkbox",{model:{value:e.forAllTag,callback:function(i){e.forAllTag=i},expression:"forAllTag"}})],1):e._e(),e.total>=1&&e.hasQuery?n("div",{staticClass:"results-total mb-2 px-3"},[e._v(" "+e._s(e.totalLabel)+" ")]):e._e(),e._l(e.resultKinds,function(i){return n("div",{key:i,staticClass:"topics-searched mb-3"},[e.isAllEntities?n("h6",{staticClass:"topic-kind-title gray-70--text mb-2 px-3"},[e._v(" "+e._s(e.getKindNamePlural(i))+" ("+e._s(e.getTopicTotal(i))+") ")]):e._e(),e._l(e.getTopicHits(i),function(s){return n("TopicItemGroup",{key:s.id,attrs:{propagateIncludes:e.updateIncludesMap,propagate:e.updateSelectedTopics,hasChildChecked:e.hasChildChecked,topic:s,parentTopic:s,populateTopic:e.populateTopic,disabled:e.forAllTagChecked,checked:e.isChecked(s),isCheckedFunction:e.isChecked,multipleTargets:e.multipleTargets},on:{input:function(o){return e.updateSelectedTopics(o)},includes:e.updateIncludesMap}})}),e.isAllEntities&&e.needShowMore(i)?n("div",{staticClass:"m-3"},[n("l-button",{attrs:{loading:e.loading,plain:"",fill:""},nativeOn:{click:function(s){return e.filterForKind(i)}}},[e._v(" Mostrar mais "+e._s(e.getKindNamePlural(i).toLowerCase())+" ")])],1):e._e(),!e.isAllEntities&&e.needShowMore(i)?n("div",{staticClass:"m-3"},[n("l-button",{staticClass:"ma-3",attrs:{loading:e.loadingMore,plain:"",fill:""},nativeOn:{click:function(s){return e.loadMore()}}},[e._v(" Carregar mais ")])],1):e._e()],2)})],2)]:[n("div",{staticStyle:{display:"flex","flex-direction":"column",height:"100%","align-items":"stretch"}},[e.canSendForAll&&!this.hasQuery?n("div",{staticClass:"topic-item-tag-for-all empty-tags-groups-for-all mx-3"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Enviar para todos ")]),n("l-checkbox",{model:{value:e.forAllTag,callback:function(i){e.forAllTag=i},expression:"forAllTag"}})],1):e._e(),e.querySearchTopics.q?!e.typing&&!e.loading?n("div",{staticClass:"not-found-result mx-3"},[n("h4",{staticClass:"bold lead--text m-0"},[e._v("Não encontramos resultados")]),n("p",{staticClass:"lead-light--text l-text-regular mt-3 mb-0"},[e._v(" Tenha certeza que você está digitando uma palavra-chave correta ")])]):e._e():n("div",{staticClass:"empty-tags-groups-placeholder"},[n("img",{attrs:{alt:"Search Topics",src:nle}}),e._m(0)])])]],2),e.selectedTopics&&e.selectedTopics.length?n("div",{staticClass:"selected-topics"},[n("button",{staticClass:"selected-topics-button l-d-flex l-align-items-center",staticStyle:{padding:"0"},on:{click:function(i){e.forAllTagChecked?e.forAllTag=!1:e.showSelected=!0}}},[n("div",{staticClass:"selected-topics-button-bg"}),n("div",{staticClass:"ml-2 topics-selected-summary l-flex link--text"},[e._v(" "+e._s(e.topicsSummary)+" ")]),n("l-button",{staticClass:"mr-2 bold link--text",attrs:{type:"text"}},[e._v(" "+e._s(e.forAllTagChecked?"Limpar":"ver tudo")+" ")])],1),n("van-action-sheet",{staticStyle:{"max-height":"500px","min-height":"180px"},attrs:{"lock-scroll":""},model:{value:e.showSelected,callback:function(i){e.showSelected=i},expression:"showSelected"}},[n("div",{staticClass:"l-d-flex m-3 l-align-items-center"},[n("div",{staticClass:"l-flex lead-light--text l-text-regular"},[e._v(" Destinatários selecionados ")]),n("l-button",{staticClass:"border-none gray-70--text f-24 p-1",attrs:{circle:"",icon:"uil-multiply"},on:{click:function(i){e.showSelected=!1}}})],1),n("div",{staticClass:"mx-3 mb-3"},e._l(e.selectedTopics,function(i){return n("l-target-chip",{key:i.id,staticClass:"mr-2 mb-2",attrs:{kind:i.kind,name:i.name,closeable:!0},on:{remove:function(s){return e.removeTopic(i)}}})}),1)])],1):e._e()],1)},sle=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"empty-tags-groups-placeholder-text mt-2"},[e("h3",[t._v("Busque por marcadores, turmas, alunos e usuários")]),e("span",{staticClass:"text-small lead-light--text"},[t._v(" Quando você tiver marcadores e turmas, eles aparecerão aqui. ")])])}],ale=Qe(ile,rle,sle,!1,null,"2031061c",null,null);const ole=ale.exports,lle=Object.freeze(Object.defineProperty({__proto__:null,default:ole},Symbol.toStringTag,{value:"Module"})),ule={tagName:"l-select",extends:Nt.Select};var cle=Qe(ule,null,null,!1,null,null,null,null);const dle=cle.exports,fle=Object.freeze(Object.defineProperty({__proto__:null,default:dle},Symbol.toStringTag,{value:"Module"})),hle={tagName:"l-slider",extends:Nt.Slider};var ple=Qe(hle,null,null,!1,null,null,null,null);const mle=ple.exports,gle=Object.freeze(Object.defineProperty({__proto__:null,default:mle},Symbol.toStringTag,{value:"Module"})),XEe="",vle=lh(Nt.Switch);delete vle.props.activeIconClass;const yle={tagName:"l-switch",extends:Nt.Switch,computed:{activeIconClass(){return this.value?"uil-check":"uil-times"}}};var ble=Qe(yle,null,null,!1,null,"a8ac0bc4",null,null);const _le=ble.exports,Mle=Object.freeze(Object.defineProperty({__proto__:null,default:_le},Symbol.toStringTag,{value:"Module"})),xle={tagName:"l-tab-pane",extends:Nt.TabPane};var Cle=Qe(xle,null,null,!1,null,null,null,null);const Sle=Cle.exports,Tle=Object.freeze(Object.defineProperty({__proto__:null,default:Sle},Symbol.toStringTag,{value:"Module"}));/*!
157
157
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
158
158
  * http://github.com/janl/mustache.js
159
159
  */var Dle=Object.prototype.toString,Ec=Array.isArray||function(e){return Dle.call(e)==="[object Array]"};function QS(t){return typeof t=="function"}function wle(t){return Ec(t)?"array":typeof t}function GS(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function K$(t,e){return t!=null&&typeof t=="object"&&e in t}function Nle(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var kle=RegExp.prototype.test;function Ole(t,e){return kle.call(t,e)}var Ele=/\S/;function Ile(t){return!Ole(Ele,t)}var Ale={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function jle(t){return String(t).replace(/[&<>"'`=\/]/g,function(n){return Ale[n]})}var $le=/\s*/,Lle=/\s+/,q$=/\s*=/,zle=/\s*\}/,Ple=/#|\^|\/|>|\{|&|=|!/;function Rle(t,e){if(!t)return[];var n=!1,i=[],s=[],o=[],u=!1,d=!1,f="",p=0;function v(){if(u&&!d)for(;o.length;)delete s[o.pop()];else o=[];u=!1,d=!1}var y,M,b;function x(R){if(typeof R=="string"&&(R=R.split(Lle,2)),!Ec(R)||R.length!==2)throw new Error("Invalid tags: "+R);y=new RegExp(GS(R[0])+"\\s*"),M=new RegExp("\\s*"+GS(R[1])),b=new RegExp("\\s*"+GS("}"+R[1]))}x(e||Ur.tags);for(var N=new uh(t),w,k,E,S,T,O;!N.eos();){if(w=N.pos,E=N.scanUntil(y),E)for(var j=0,$=E.length;j<$;++j)S=E.charAt(j),Ile(S)?(o.push(s.length),f+=S):(d=!0,n=!0,f+=" "),s.push(["text",S,w,w+1]),w+=1,S===`
160
160
  `&&(v(),f="",p=0,n=!1);if(!N.scan(y))break;if(u=!0,k=N.scan(Ple)||"name",N.scan($le),k==="="?(E=N.scanUntil(q$),N.scan(q$),N.scanUntil(M)):k==="{"?(E=N.scanUntil(b),N.scan(zle),N.scanUntil(M),k="&"):E=N.scanUntil(M),!N.scan(M))throw new Error("Unclosed tag at "+N.pos);if(k==">"?T=[k,E,w,N.pos,f,p,n]:T=[k,E,w,N.pos],p++,s.push(T),k==="#"||k==="^")i.push(T);else if(k==="/"){if(O=i.pop(),!O)throw new Error('Unopened section "'+E+'" at '+w);if(O[1]!==E)throw new Error('Unclosed section "'+O[1]+'" at '+w)}else k==="name"||k==="{"||k==="&"?d=!0:k==="="&&x(E)}if(v(),O=i.pop(),O)throw new Error('Unclosed section "'+O[1]+'" at '+N.pos);return Ble(Fle(s))}function Fle(t){for(var e=[],n,i,s=0,o=t.length;s<o;++s)n=t[s],n&&(n[0]==="text"&&i&&i[0]==="text"?(i[1]+=n[1],i[3]=n[3]):(e.push(n),i=n));return e}function Ble(t){for(var e=[],n=e,i=[],s,o,u=0,d=t.length;u<d;++u)switch(s=t[u],s[0]){case"#":case"^":n.push(s),i.push(s),n=s[4]=[];break;case"/":o=i.pop(),o[5]=s[2],n=i.length>0?i[i.length-1][4]:e;break;default:n.push(s)}return e}function uh(t){this.string=t,this.tail=t,this.pos=0}uh.prototype.eos=function(){return this.tail===""},uh.prototype.scan=function(e){var n=this.tail.match(e);if(!n||n.index!==0)return"";var i=n[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},uh.prototype.scanUntil=function(e){var n=this.tail.search(e),i;switch(n){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=i.length,i};function Ic(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Ic.prototype.push=function(e){return new Ic(e,this)},Ic.prototype.lookup=function(e){var n=this.cache,i;if(n.hasOwnProperty(e))i=n[e];else{for(var s=this,o,u,d,f=!1;s;){if(e.indexOf(".")>0)for(o=s.view,u=e.split("."),d=0;o!=null&&d<u.length;)d===u.length-1&&(f=K$(o,u[d])||Nle(o,u[d])),o=o[u[d++]];else o=s.view[e],f=K$(s.view,e);if(f){i=o;break}s=s.parent}n[e]=i}return QS(i)&&(i=i.call(this.view)),i};function ji(){this.templateCache={_cache:{},set:function(e,n){this._cache[e]=n},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}ji.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},ji.prototype.parse=function(e,n){var i=this.templateCache,s=e+":"+(n||Ur.tags).join(":"),o=typeof i<"u",u=o?i.get(s):void 0;return u==null&&(u=Rle(e,n),o&&i.set(s,u)),u},ji.prototype.render=function(e,n,i,s){var o=this.getConfigTags(s),u=this.parse(e,o),d=n instanceof Ic?n:new Ic(n,void 0);return this.renderTokens(u,d,i,e,s)},ji.prototype.renderTokens=function(e,n,i,s,o){for(var u="",d,f,p,v=0,y=e.length;v<y;++v)p=void 0,d=e[v],f=d[0],f==="#"?p=this.renderSection(d,n,i,s,o):f==="^"?p=this.renderInverted(d,n,i,s,o):f===">"?p=this.renderPartial(d,n,i,o):f==="&"?p=this.unescapedValue(d,n):f==="name"?p=this.escapedValue(d,n,o):f==="text"&&(p=this.rawValue(d)),p!==void 0&&(u+=p);return u},ji.prototype.renderSection=function(e,n,i,s,o){var u=this,d="",f=n.lookup(e[1]);function p(M){return u.render(M,n,i,o)}if(f){if(Ec(f))for(var v=0,y=f.length;v<y;++v)d+=this.renderTokens(e[4],n.push(f[v]),i,s,o);else if(typeof f=="object"||typeof f=="string"||typeof f=="number")d+=this.renderTokens(e[4],n.push(f),i,s,o);else if(QS(f)){if(typeof s!="string")throw new Error("Cannot use higher-order sections without the original template");f=f.call(n.view,s.slice(e[3],e[5]),p),f!=null&&(d+=f)}else d+=this.renderTokens(e[4],n,i,s,o);return d}},ji.prototype.renderInverted=function(e,n,i,s,o){var u=n.lookup(e[1]);if(!u||Ec(u)&&u.length===0)return this.renderTokens(e[4],n,i,s,o)},ji.prototype.indentPartial=function(e,n,i){for(var s=n.replace(/[^ \t]/g,""),o=e.split(`
161
161
  `),u=0;u<o.length;u++)o[u].length&&(u>0||!i)&&(o[u]=s+o[u]);return o.join(`
162
- `)},ji.prototype.renderPartial=function(e,n,i,s){if(i){var o=this.getConfigTags(s),u=QS(i)?i(e[1]):i[e[1]];if(u!=null){var d=e[6],f=e[5],p=e[4],v=u;f==0&&p&&(v=this.indentPartial(u,p,d));var y=this.parse(v,o);return this.renderTokens(y,n,i,v,s)}}},ji.prototype.unescapedValue=function(e,n){var i=n.lookup(e[1]);if(i!=null)return i},ji.prototype.escapedValue=function(e,n,i){var s=this.getConfigEscape(i)||Ur.escape,o=n.lookup(e[1]);if(o!=null)return typeof o=="number"&&s===Ur.escape?String(o):s(o)},ji.prototype.rawValue=function(e){return e[1]},ji.prototype.getConfigTags=function(e){return Ec(e)?e:e&&typeof e=="object"?e.tags:void 0},ji.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Ec(e))return e.escape};var Ur={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){ch.templateCache=t},get templateCache(){return ch.templateCache}},ch=new ji;Ur.clearCache=function(){return ch.clearCache()},Ur.parse=function(e,n){return ch.parse(e,n)},Ur.render=function(e,n,i,s){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+wle(e)+'" was given as the first argument for mustache#render(template, view, partials)');return ch.render(e,n,i,s)},Ur.escape=jle,Ur.Scanner=uh,Ur.Context=Ic,Ur.Writer=ji;const Ule={props:["value","schema","entity"],methods:{hasRouterLink(t){return vn(t.schema,"options.routerLink")},getRouterLink(t){const e=vn(t.schema,"options.routerLink");return Ur.render(e,t.entity)}}};var Vle=function(e,n){return n.$options.methods.hasRouterLink(n.props)?e("router-link",{attrs:{to:n.$options.methods.getRouterLink(n.props)}},[n._v(n._s(n.props.value))]):e("span",[n._v(n._s(n.props.value))])},Yle=[],Hle=Qe(Ule,Vle,Yle,!0,null,null,null,null);const Wle=Hle.exports,Qle={props:["value","schema"],methods:{formatValue(t){return t}}};var Gle=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value)))])},Kle=[],qle=Qe(Qle,Gle,Kle,!0,null,null,null,null);const Xle=qle.exports,Zle={props:["value","schema"],methods:{formatValue(t,e){return isNaN(t)||t===null||t===void 0?"-":e.$n?e.$n(t/100,"currency"):Number(t/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}}};var Jle=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value,n.parent)))])},eue=[],tue=Qe(Zle,Jle,eue,!0,null,null,null,null);const nue=tue.exports,iue={props:["value","schema"]};var rue=function(e,n){return e("a",{attrs:{target:"_blank",href:`mailto:${n.props.value}`}},[n._v(n._s(n.props.value))])},sue=[],aue=Qe(iue,rue,sue,!0,null,null,null,null);const oue=aue.exports,lue={props:["value","schema"],methods:{formatValue(t,e){if(!t)return"-";const n=vn(e,"options.format","dd/MM/yyyy hh:mm:ss");return HS(t,{locale:"pt-br"}).format(n)}}};var uue=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value,n.props.schema)))])},cue=[],due=Qe(lue,uue,cue,!0,null,null,null,null);const fue=due.exports,X$={};X$.register=function(){rr.register({type:"String"},"default",Wle),rr.register({type:"Date"},"default",fue),rr.register({type:"Number"},"default",Xle),rr.register({format:"Amount"},"default",nue),rr.register({format:"Email"},"default",oue)};const tIe="",hue={props:{perPage:Number,pagesCount:Number,totalCount:Number,columnSpecs:{type:Array},includedIds:{type:Array},excludedIds:{type:Array},selectable:Boolean,clickable:Boolean,multiselect:Boolean,page:Object},computed:{includedAll(){return this.includedIds.toString()==="*"},estimatedRows(){return this.page&&this.pagesCount>1&&this.page.index>=this.pagesCount-1?this.totalCount%this.perPage:this.perPage},checked(){if(!this.page||!this.page.data)return[];let t=this.includedIds,e=this.excludedIds,n=this.includedAll;return this.page.data.map(i=>n&&!e.includes(i.id)||t.includes(i.id))}},methods:{getColumnComponent(t){return t.component},getColumnValue(t,e){return vn(t,e.path)}}};var pue=function(){var e=this,n=e._self._c;return n("tbody",{staticClass:"l-table-tbody"},[e.page&&e.page.loaded?e._l(e.page.data,function(i,s){return n("tr",{key:s,class:{"l-table-selected":e.checked[s]}},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{type:e.multiselect?"checkbox":"radio",value:e.checked[s]},on:{change:function(o){return e.$emit("selected",{key:i.id,selected:o})}}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}${e.clickable?" cursor-pointer":""}`,on:{click:function(d){return e.$emit("click-item",i)}}},[n(e.getColumnComponent(o),{tag:"component",attrs:{value:e.getColumnValue(i,o),schema:o,entity:i}})],1)})],2)}):e.page&&e.page.loading?e._l(e.estimatedRows,function(i,s){return n("tr",{key:s},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{disabled:"",type:e.multiselect?"checkbox":"radio",value:e.includedAll}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}`},[n("span",{staticClass:"l-table-skeleton"})])})],2)}):e._l(e.estimatedRows,function(i,s){return n("tr",{key:s},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{disabled:"",type:e.multiselect?"checkbox":"radio",value:e.includedAll}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}`},[n("span",{staticClass:"l-table-skeleton error"})])})],2)})],2)},mue=[],gue=Qe(hue,pue,mue,!1,null,null,null,null);const vue=gue.exports,nIe="",yue={props:{title:String,maxWidth:{type:Number,default:null},minWidth:{type:Number,default:50}},data(){return{dragging:!1,deltaX:0}},computed:{handleStyle(){return this.dragging?{transform:`translateX(${this.deltaX}px)`}:null}},methods:{currentWidth(){return this.$el.parentElement.getBoundingClientRect().width},limitDeltaX(t){let e=this.currentWidth();return this.limitWidth(e+t)-e},limitWidth(t){return t?this.maxWidth&&this.maxWidth<t?this.maxWidth:this.minWidth&&this.minWidth>t?this.minWidth:t:null},resize(t){this.$emit("resize",this.limitWidth(t))},drag(t){this.dragging||this.unregisterDocumentHandlers();let e=t.clientX-this.dragStartClientX;this.deltaX=this.limitDeltaX(e),console.log("drag",this.deltaX)},dragStart(t){this.registerDocumentHandlers(),this.deltaX=0,this.dragging=!0,this.dragStartClientX=t.clientX,console.log("dragStart",t)},dragEnd(t){if(this.deltaX){let e=this.currentWidth()+this.deltaX;this.resize(e)}this.unregisterDocumentHandlers(),this.deltaX=0,this.dragging=!1,this.dragStartClientX=0,console.log("dragEnd",t)},registerDocumentHandlers(){this.unregisterDocumentHandlers(),this._documentMouseMove=t=>this.drag(t),this._documentMouseUp=t=>this.dragEnd(t),document.body.style.cursor="col-resize",document.addEventListener("mousemove",this._documentMouseMove),document.addEventListener("mouseup",this._documentMouseUp),document.onselectstart=()=>!1,document.ondragstart=()=>!1},unregisterDocumentHandlers(){document.removeEventListener("mousemove",this._documentMouseMove),document.removeEventListener("mouseup",this._documentMouseUp),document.body.style.cursor="",document.onselectstart=null,document.ondragstart=null}}};var bue=function(){var e=this,n=e._self._c;return n("div",{staticClass:"mt-handle",class:e.dragging?"dragging":"",style:e.handleStyle,on:{dblclick:function(i){return e.resize(null)},mousedown:e.dragStart}})},_ue=[],Mue=Qe(yue,bue,_ue,!1,null,null,null,null);const xue=Mue.exports,iIe="",Cue={components:{LTableHeaderResizer:xue},props:{spec:{type:Object}},computed:{resizable(){return this.spec.field&&this.spec.field.resizable},reordable(){return!0},icon(){return this.$L.Icons.get(this.spec.field)}},methods:{resizeColumn(t,e){this.$set(t,"width",e)},toggleSorting(t){let e=this.spec.column.sortDirection,n="asc";e?e.toLowerCase()==="asc"&&(n="desc"):n="asc",this.$emit("sort",{direction:n,cumulative:t})}}};var Sue=function(){var e=this,n=e._self._c;return n("th",{staticClass:"l-table-header-cell l-table-cell",style:{"--l-table-col-width":e.spec.column.width?`${e.spec.column.width}px`:"auto"}},[e.spec.sortable?n("a",{staticClass:"l-table-header-cell-content",class:[e.spec.column.sortDirection?"active":null,`l-table-header-align-${e.spec.align}`],attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.toggleSorting()}}},[n("l-tooltip",{key:"tooltip",attrs:{disabled:!e.spec.description,content:e.spec.description,placement:"top","open-delay":600,offset:0}},[n("span",[e.icon?n("l-icon",{staticClass:"l-table-header-icon"},[e._v(e._s(e.icon))]):e._e(),e._v("   "+e._s(e.spec.title)+" ")],1)]),n("i",{staticClass:"l-table-sorter-icon uil uil-arrow-down",class:`l-table-sorter-${e.spec.column.sortDirection||"default"}`})],1):n("span",{staticClass:"l-table-header-cell-content"},[n("l-tooltip",{attrs:{disabled:!e.spec.description,content:e.spec.description,placement:"top","open-delay":600,offset:0}},[n("span",[e.icon?n("l-icon",{staticClass:"l-table-header-icon"},[e._v(e._s(e.icon))]):e._e(),e._v("   "+e._s(e.spec.title)+" ")],1)])],1),n("span",{staticStyle:{width:"12px"}}),e.resizable?n("LTableHeaderResizer",{on:{resize:function(i){return e.resizeColumn(e.spec.column,i)}}}):e._e()],1)},Tue=[],Due=Qe(Cue,Sue,Tue,!1,null,null,null,null);const wue=Due.exports,rIe="",Nue={props:["loading"]};var kue=function(e,n){return e("div",{staticClass:"l-table-header-loader",class:{loading:n.props.loading}})},Oue=[],Eue=Qe(Nue,kue,Oue,!0,null,null,null,null);const Iue=Eue.exports,sIe="",Aue={components:{LTableHeaderCell:wue,LTableHeaderLoader:Iue},props:{columnSpecs:{type:Array},loading:{type:Boolean,default:!1},includedIds:{type:Array},excludedIds:{type:Array},total:{type:Number},selectable:{type:Boolean},multiselect:{type:Boolean}},computed:{selectedEverything(){let t=this.includedIds.length===this.total&&this.total>0,e=this.includedIds.toString()==="*"&&this.excludedIds.length==0;return t||e},selectedNothing(){return this.includedIds.length===0},selectedSomethings(){return!this.selectedNothing&&!this.selectedEverything}},methods:{changeSpecSort(t,{direction:e,cumulative:n}){if(n){let s=this.columnSpecs.reduce((o,u)=>Math.max(o,u.column.sortOrder),0)+1;this.$set(t.column,"sortDirection",e),this.$set(t.column,"sortOrder",s)}else{for(let i of this.columnSpecs)this.$set(i.column,"sortDirection",null),this.$set(i.column,"sortOrder",null);this.$set(t.column,"sortDirection",e),this.$set(t.column,"sortOrder",1)}},changeSelection(t){this.$emit("selected",{key:"*",selected:t})}}};var jue=function(){var e=this,n=e._self._c;return n("thead",{staticClass:"l-table-header"},[n("tr",[e.selectable?n("th",{staticClass:"l-table-header-cell l-table-cell l-table-column-selector",attrs:{scope:"col"}},[e.multiselect?n("l-checkbox",{staticClass:"l-table-selector",attrs:{type:"checkbox",value:e.selectedEverything,indeterminate:e.selectedSomethings},on:{change:function(i){return e.changeSelection(i)}}}):e._e()],1):e._e(),e._l(e.columnSpecs,function(i,s){return n("LTableHeaderCell",{key:s,ref:"headers",refInFor:!0,attrs:{spec:i},on:{sort:function(o){return e.changeSpecSort(i,o)}}})})],2),n("tr",{staticClass:"l-table-header-extras"},[n("td",{attrs:{colspan:"999"}},[n("LTableHeaderLoader",{attrs:{loading:e.loading}}),n("div",{staticClass:"l-table-header-shadow-top"})],1)])])},$ue=[],Lue=Qe(Aue,jue,$ue,!1,null,null,null,null);const zue=Lue.exports,aIe="",Pue={};var Rue=function(e,n){return e("div",{staticClass:"l-table-endspace"})},Fue=[],Bue=Qe(Pue,Rue,Fue,!0,null,null,null,null);const Uue=Bue.exports,oIe="",Vue={props:{loading:Boolean,automatic:Boolean},mounted(){this.intersectionObserver=new IntersectionObserver(([t])=>{t&&t.isIntersecting&&this.automatic&&this.$emit("appeared")}),this.intersectionObserver.observe(this.$el)},destroyed(){this.intersectionObserver&&this.intersectionObserver.disconnect()}};var Yue=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-loadmore",class:{loading:e.loading},on:{click:function(i){return e.$emit("click")}}},[n("a",{staticClass:"l-table-loadmore-link",attrs:{href:"#"}},[e._v("Carregar mais")])])},Hue=[],Wue=Qe(Vue,Yue,Hue,!1,null,null,null,null);const Que=Wue.exports,lIe="",Gue=2e3,Kue={name:"LTableReloader",data(){return{canReload:!0}},methods:{reload(){this.canReload=!1,this.$emit("reload"),setTimeout(()=>this.canReload=!0,Gue)}}};var que=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-reloader"},[n("div",{staticClass:"l-table-reloader-content"},[n("l-icon",{attrs:{size:"22"}},[e._v("uil-cloud-exclamation")]),n("span",{staticStyle:{"margin-left":"8px",flex:"1 1"}},[e._v("Algumas informações não puderam ser carregadas.")]),n("l-button",{attrs:{size:"mini"},on:{click:function(i){return e.reload()}}},[e._v("Recarregar")])],1)])},Xue=[],Zue=Qe(Kue,que,Xue,!1,null,null,null,null);const Jue=Zue.exports,uIe="",ece={props:{height:{type:Number}}};var tce=function(e,n){return e("tbody",{staticClass:"l-table-spacer"},[e("tr",{style:{height:`${n.props.height}px`}},[e("td",{staticClass:"l-table-spacer-bg",attrs:{colspan:"999"}})])])},nce=[],ice=Qe(ece,tce,nce,!0,null,null,null,null);const rce=ice.exports;var sce=V$;function ace(t){var e=t==null?0:t.length;return e?sce(t,1):[]}var oce=ace;const lce=bi(oce);function uce(){}var cce=uce,KS=Dj,dce=cce,fce=zS,hce=1/0,pce=KS&&1/fce(new KS([,-0]))[1]==hce?function(t){return new KS(t)}:dce,mce=pce,gce=$S,vce=P$,yce=R$,bce=LS,_ce=mce,Mce=zS,xce=200;function Cce(t,e,n){var i=-1,s=vce,o=t.length,u=!0,d=[],f=d;if(n)u=!1,s=yce;else if(o>=xce){var p=e?null:_ce(t);if(p)return Mce(p);u=!1,s=bce,f=new gce}else f=e?[]:d;e:for(;++i<o;){var v=t[i],y=e?e(v):v;if(v=n||v!==0?v:0,u&&y===y){for(var M=f.length;M--;)if(f[M]===y)continue e;e&&f.push(y),d.push(v)}else s(f,y,n)||(f!==d&&f.push(y),d.push(v))}return d}var Sce=Cce,Tce=Sce;function Dce(t){return t&&t.length?Tce(t):[]}var wce=Dce;const Nce=bi(wce);function kce({key:t,selected:e},n){let{loadedPages:i,allowInvertedSelection:s,includedIds:o,excludedIds:u,multiselect:d,itemToId:f=b=>b}=n;if(!t===void 0||t===null)return{includedIds:o,excludedIds:u};if(t==="*"){if(o.splice(0,o.length),u.splice(0,u.length),e&&d&&s&&o.push("*"),e&&d&&!s){let b=lce(i.filter(N=>N.data).map(N=>N.data));o=Nce(b.map(N=>f(N)))}return{includedIds:o,excludedIds:u}}let v=o.includes("*"),y=o.includes(t),M=u.includes(t);if(d||(o.splice(0,o.length),u.splice(0,u.length)),v&&d){if(e&&M){let b=u.indexOf(t);u.splice(b,1)}!e&&!M&&d&&u.push(t)}else if(e&&!y&&(d?o.push(t):o=[t]),!e&&y){let b=o.indexOf(t);o.splice(b,1)}return{includedIds:o,excludedIds:u}}function Oce({pagesCount:t,currentPage:e,endingAdjacents:n=1,adjacents:i=2,next:s=!0,previous:o=!0,last:u=!1,first:d=!1,fixedWidth:f=!0}){const p=[];if(!t)return p;const v=f?n*2+i*2+3:n*2+1;if(t<=v)for(let y=0;y<t;y++)p.push(y);else{let y=0;for(let N=0;N<Math.min(n,t);N++)p.push(y=N);let M=n+i*2,b=i,x=i;f&&e<M&&(x+=M-e),f&&t-e-1<M&&(b+=M-(t-e-1));for(let N=Math.max(y+1,e-b);N<Math.min(e+x+1,t);N++)y+2===N&&p.push(y=y+1),y+1!==N&&p.push("...1"),p.push(y=N);for(let N=Math.max(y+1,t-n);N<t;N++)y+2===N&&p.push(y=y+1),y+1!==N&&p.push("...2"),p.push(y=N)}return o&&p.unshift("<"),s&&p.push(">"),d&&p.unshift("<<"),u&&p.push(">>"),p}const cIe="",Ece={name:"LTablePagination",props:{pagesCount:Number,totalCount:Number,currentPage:{type:Number,default:2}},computed:{visiblePages(){return this.totalCount?Oce({pagesCount:this.pagesCount,currentPage:this.currentPage,adjacents:1,endingAdjacents:1,fixedWidth:!0}):["...1"]}},methods:{clicked(t){typeof t=="number"?this.goto(parseInt(t)):t==="<"?this.goto(this.currentPage-1):t===">"?this.goto(this.currentPage+1):t==="<<"?this.goto(0):t===">>"&&this.goto(this.pagesCount-1)},goto(t){this.currentPage!=t&&(t=Math.max(0,Math.min(t,this.pagesCount-1)),this.$emit("goto",t))}}};var Ice=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-pagination"},[n("transition-group",{staticClass:"l-table-pagination-pages",attrs:{tag:"div",name:"l-table-pagination-transition"}},e._l(e.visiblePages,function(i){return n("span",{key:i,staticClass:"l-table-pagination-page-item",class:{active:i==e.currentPage},on:{click:function(s){return e.clicked(i)}}},[i==="<"?[n("l-icon",{attrs:{size:"20"}},[e._v("uil-angle-left")])]:i===">"?[n("l-icon",{attrs:{size:"20"}},[e._v("uil-angle-right")])]:i==="...1"||i==="...2"?[e._v(" ... ")]:[e._v(" "+e._s(i+1)+" ")]],2)}),0)],1)},Ace=[],jce=Qe(Ece,Ice,Ace,!1,null,null,null,null);const $ce=jce.exports,dIe="";X$.register();const Lce=100,zce=3e4,Pce=3,Rce="scrollBehavior"in document.documentElement.style,Fce={name:"LTable",tagName:"l-table",components:{LTableHeader:zue,LTableBody:vue,LTableReloader:Jue,LTableLoadMore:Que,LTableEndspace:Uue,LTableBodySpacer:rce,LTablePagination:$ce},props:{rows:{type:Array},primaryKey:{type:String,default:"id"},fetch:{type:Function},columns:{type:Array},pagination:{type:Boolean,default:!1},display:{type:String,enum:["all","more","paged"],default:"all"},autoLoadMore:{type:Boolean,default:!1},schema:{type:Object,required:!0},selectable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},multiselect:{type:Boolean,default:!0},allowInvertedSelection:{type:Boolean,default:!0},rowHeight:{type:Number,default:32},borderTick:{type:Number,default:1},snapToPageOnMore:{type:Boolean,default:!0},stickyColumnLeft:{type:Boolean,default:!1},recycle:{type:Boolean,default:!0},limitPerPage:{type:Number,default:50}},mounted(){this.computeVisibleRows()},data(){return{fetching:0,headerHeight:56,nonce:0,id:0,extraRows:15,lastComputedOffsetY:0,includedIds:[],excludedIds:[],scrollAtTop:!0,scrollAtLeft:!0,totalCount:0,firstPage:null,currentPage:null,lastPage:null,loadedPages:[]}},watch:{totalCount(t){this.$emit("changeSelection",{includedIds:this.includedIds,excludedIds:this.excludedIds,selectionCount:this.selectionCount,totalCount:t})},somePageIsLoading(t){this.$emit("loading",t)}},computed:{perPage(){return Number(this.limitPerPage)},pagesCount(){return Math.floor(this.totalCount/this.perPage)+1},selectionCount(){return this.includedIds.toString()==="*"?this.totalCount-this.excludedIds.length:this.includedIds.length},lastLoadedPage(){return this.loadedPages.length},isLoadMoreVisible(){return this.display==="more"&&this.lastLoadedPage<this.pagesCount},isPaginationVisible(){return(this.display==="page"||!!this.pagination)&&this.display!=="more"&&this.pagesCount!==null},isLeftColumnSticky(){return this.stickyColumnLeft||this.columns&&this.columns[0]&&this.columns[0].sticky},usingRecycledLayout(){return this.display!=="paged"&&this.recycle},hasVisibleFailedPages(){for(let t=this.firstPageRendered;t<=this.lastPageRendered;t++)if(this.loadedPages[t]&&this.loadedPages[t].failed)return!0;return!1},firstPageRendered(){return!this.usingRecycledLayout&&this.display!=="paged"?0:this.firstPage},lastPageRendered(){return this.display==="paged"?this.firstPage:this.usingRecycledLayout?this.lastPage:Math.max(0,this.lastLoadedPage-1)},visiblePages(){let t=[];for(let e=this.firstPageRendered;e<=this.lastPageRendered;e++){let n=this.loadedPages[e]||{index:e};t.push(n)}return t},contentStyle(){return{"--l-table-primary-color":"#2F8AF5","--l-table-warning-color":"#fd3a57","--l-table-bg-color":"white","--l-table-header-height":`${this.headerHeight}px`,"--l-table-header-text-color":"#232B34","--l-table-header-border-color":"#E8E8E8","--l-table-skeleton-height":`${Math.min(this.rowHeight-8,8)}px`,"--l-table-loader-height":"3px","--l-table-loader-color":"var(--l-table-primary-color)","--l-table-row-height":`${this.rowHeight}px`,"--l-table-cell-padding":"0 8px","--l-table-row-hover-color":"#fafbfd","--l-table-row-selected-color":"#eef5fa","--l-table-row-selected-hover-color":"#e6f0f8","--l-table-border-color":"#D3DAE6","--l-table-border-tick":`${this.borderTick}px`,"--l-table-selector-width":`${this.selectable?Math.min(this.headerHeight,this.rowHeight):0}px`,"--l-table-loadmore-height":"46px","--l-table-pagination-height":"48px","--l-table-pagination-color":"var(--l-table-primary-color)","--l-table-pagination-bg-color":"white","--l-table-reloader-margin":"16px","--l-table-endspace-bg-color":"#f5f5f5","--l-table-link-color":"var(--l-table-primary-color)"}},contentClasses(){return{"l-table-at-top":this.scrollAtTop,"l-table-at-left":this.scrollAtLeft,"l-table-sticky-column-left":this.isLeftColumnSticky}},spacing(){let t=0,e=0,n=this.display,i=this.totalCount;return n==="more"&&(i=this.loadedPages.length*this.perPage),(n==="all"||n==="more")&&(t=this.firstPageRendered*this.perPage*this.rowHeight,e=Math.max(0,(i-(this.lastPageRendered+1)*this.perPage)*this.rowHeight)),{top:Math.max(0,t),bottom:Math.max(0,e)}},columnSpecs(){return this.columns?this.columns.map(t=>this.buildColumnSpec(t)):[]},rect(){return this.$refs.container.getBoundingClientRect()},somePageIsLoading(){return this.loadedPages.map(t=>t.loading).some(t=>t)}},methods:{itemToId(t){return t?this.primaryKey?t[this.primaryKey]:t:null},scrollTo(t=0,e){let n="auto";if(e){let i=this.$refs.container.scrollTop,s=this.perPage*this.rowHeight+1;n=Math.abs(i-t)<s?"smooth":"auto"}this.$refs.container.scrollTo({top:t,behavior:n})},gotoPage(t,e){if(t=Math.max(0,Math.min(this.pagesCount,t)),this.display==="paged"){this.setViewablePages(t,t,t),this.scrollTo(0,!0);return}this.display==="more"?this.setViewablePages(t-1,t,t):this.setViewablePages(t,t,t);let n=t*this.rowHeight*this.perPage;this.scrollTo(n,e)},async loadMore(t){let e=this.loadedPages[this.loadedPages.length-1];if(!e||e.loading)return!1;let n=this.loadedPages.length;this.setViewablePages(this.firstPage,n),t&&this.snapToPageOnMore&&Rce&&setTimeout(()=>this.gotoPage(n,!0),100)},reload(){this.id++,this.fetching=0,this.firstPage=null,this.lastPage=null,this.totalCount=null,this.loadedPages=[],this.includedIds=[],this.excludedIds=[],this.gotoPage(0),this.computeVisibleRows()},reloadFailedPages(){let t=0;for(let e=this.firstPageRendered;e<=this.lastPageRendered&&!(!(!this.loadedPages[e]||!this.loadedPages[e].failed)&&(this.$set(this.loadedPages,e,null),this.fetchPage(e),++t>=Pce));e++);},onScroll(){if(!(this.getScrollSpeed()>zce)&&!this._scrollDebounce)return this.computeVisibleRows();clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>{this.computeVisibleRows(),this._scrollDebounce=null},Lce)},getScrollSpeed(){let t=this._lastOffsetY||0,e=this._lastOffsetYTime||0,n=this._lastOffsetY=this.$refs.container.scrollTop,i=this._lastOffsetYTime=Date.now();return Math.abs(1e3*(t-n)/(i-e))},computeVisibleRows(){let t=this.$refs.container.scrollTop,e=this.$refs.container.scrollLeft,n=this.lastComputedOffsetY;this.scrollAtTop=t===0,this.scrollAtLeft=e===0;let i=Math.abs(n-t);if(t>2&&n>2&&i<150||(this.lastComputedOffsetY=t,this.display==="paged"))return;let o=this.rect.height-this.headerHeight,u=Math.max(0,Math.floor(t/this.rowHeight)),d=Math.ceil(o/this.rowHeight),f=u+d,p=this.extraRows,v=this.perPage,y=Math.floor((u-p)/this.perPage),M=Math.floor((f+p)/v),b=M>=this.pagesCount-1?d:d/2,x=Math.floor((u+b)/this.perPage);if(this.display==="more"){for(y=Math.min(y,this.lastLoadedPage);!this.loadedPages[y]&&y>0;)y--;for(M=Math.max(M,y);!this.loadedPages[M]&&M>y&&M>0;)M--}this.setViewablePages(y,M,x)},setViewablePages(t=0,e=0,n=0){this.display==="paged"&&(e=t),t=Math.min(Math.max(t,0),this.pagesCount-1),e=Math.min(Math.max(e,t),this.pagesCount-1),n=Math.min(e,Math.max(t,n||0));let i=t!==this.firstPage||e!==this.lastPage;this.firstPage=t,this.lastPage=e,this.currentPage=n,i&&this.scheduleFeching()},buildColumnSpec(t){if(!this.schema.fields)throw new Error("Missing schema.fields!");const e=this.schema.fields.find(i=>i.path===t.path);if(!e)throw new Error(`Missing field schema for path ${t.path}`);const n=this.$L.FieldTypeComponents.get(e,"default");return Object.assign({},e,{width:t.width||null,sortable:e?e.sortable:!1,sticky:e&&e.sticky||t.sticky||!1,align:e&&e.align||"left",column:t,field:e,component:n})},changeSelection({key:t,selected:e}){const{includedIds:n,excludedIds:i}=kce({key:t,selected:e},this);this.includedIds=n,this.excludedIds=i,this.$nextTick(()=>{this.$emit("changeSelection",{includedIds:this.includedIds,excludedIds:this.excludedIds,selectionCount:this.selectionCount,totalCount:this.totalCount})})},scheduleFeching(){for(let t=this.firstPage;t<=this.lastPage;t++)this.fetchPage(t)},async fetchPage(t){let e=this.loadedPages[t];if(e)return e;e=this.$set(this.loadedPages,t,{id:this.id,index:t,startedAt:Date.now(),duration:null,loading:!0,loaded:!1,failed:!1,error:null,data:null});try{this.fetching++;const{hits:n,total:i}=await this.resolvePageData(t);Object.assign(e,{duration:Date.now()-e.startedAt,loading:!1,loaded:!0,data:n});let s=this.loadedPages.indexOf(e)>=0;i!==void 0&&s&&(this.totalCount=i)}catch(n){console.error("LTable","Failed to call `fetch` callback",n),Object.assign(e,{loading:!1,failed:!0,error:n.toString()})}finally{this.id===e.id&&this.fetching--}return e},async resolvePageData(t){if(this.rows){let e=this.perPage,n=t*e;return{data:this.rows.slice(n,n+e),total:this.rows.length}}else{if(this.fetch)return await this.fetch({page:t,offset:t*this.perPage,limit:this.perPage,schema:this.schema,columns:this.columns,perPage:this.perPage,primaryKey:this.primaryKey});throw new Error("Cannot discover data. Either `rows` or `fetch` property must be assigned to table")}}}};var Bce=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"l-table-container",class:e.contentClasses,style:e.contentStyle,on:{scroll:e.onScroll}},[n("table",{staticClass:"l-table-table",attrs:{border:"0"}},[n("caption",{staticStyle:{display:"none"}},[e._v("Table Header")]),n("LTableHeader",{attrs:{height:e.headerHeight,selectable:e.selectable,columnSpecs:e.columnSpecs,loading:!!e.fetching,total:e.totalCount,includedIds:e.includedIds,excludedIds:e.excludedIds,multiselect:e.multiselect},on:{selected:function(i){return e.changeSelection(i)}}}),n("LTableBodySpacer",{attrs:{height:e.spacing.top}}),e._l(e.visiblePages,function(i){return n("LTableBody",{key:i.index,attrs:{page:i,perPage:e.perPage,pagesCount:e.pagesCount,totalCount:e.totalCount,selectable:e.selectable,clickable:e.clickable,columnSpecs:e.columnSpecs,includedIds:e.includedIds,excludedIds:e.excludedIds,multiselect:e.multiselect},on:{"click-item":function(s){return e.$emit("click-item",s)},selected:function(s){return e.changeSelection(s)}}})}),n("LTableBodySpacer",{attrs:{height:e.spacing.bottom}})],2),e.isLoadMoreVisible?n("LTableLoadMore",{attrs:{automatic:e.autoLoadMore},on:{click:function(i){return e.loadMore(!0)},appeared:function(i){return e.loadMore()}}}):e._e(),n("LTableEndspace"),n("transition",{attrs:{name:"scale-up"}},[e.hasVisibleFailedPages?n("LTableReloader",{on:{reload:function(i){return e.reloadFailedPages()}}}):e._e()],1),e.isPaginationVisible?n("LTablePagination",{attrs:{currentPage:e.currentPage,pagesCount:e.pagesCount,totalCount:e.totalCount},on:{goto:function(i){return e.gotoPage(i)}}}):e._e()],1)},Uce=[],Vce=Qe(Fce,Bce,Uce,!1,null,null,null,null);const Yce=Vce.exports,Hce=Object.freeze(Object.defineProperty({__proto__:null,default:Yce},Symbol.toStringTag,{value:"Module"})),fIe="",Wce={tagName:"l-tabs",extends:Nt.Tabs,methods:{calcPaneInstances(t=!1){if(this.$slots.default){const n=this.$slots.default.filter(s=>s.tag&&s.componentOptions&&s.componentOptions.Ctor.options.tagName==="l-tab-pane").map(({componentInstance:s})=>s),i=!(n.length===this.panes.length&&n.every((s,o)=>s===this.panes[o]));(t||i)&&(this.panes=n)}else this.panes.length!==0&&(this.panes=[])}}};var Qce=Qe(Wce,null,null,!1,null,null,null,null);const Gce=Qce.exports,Kce=Object.freeze(Object.defineProperty({__proto__:null,default:Gce},Symbol.toStringTag,{value:"Module"})),qce={tagName:"l-target-chip",name:"LTargetChip",props:{kind:{type:String,required:!0},closeable:{type:Boolean,default:!1},name:{type:String,required:!0},count:{type:Number}},computed:{color:function(){return{member:"purple",group:"aqua",user:"link",tag:"warning",community:"danger",role:"lead-light"}[this.kind]||"lead"},icon:function(){return{member:"uil-graduation-cap",group:"uil-users-alt",user:"uil-user",tag:"uil-tag-alt",role:"uil-user",community:"uil-channel"}[this.kind]}}};var Xce=function(){var e=this,n=e._self._c;return n("l-chip",{staticStyle:{height:"24px"},attrs:{bold:"",fill:"",color:e.color,icon:e.icon}},[n("div",{staticClass:"l-d-flex l-align-items"},[e._v(" "+e._s(e.count)+" "+e._s(e.name)+" "),e.closeable?n("l-icon",{staticClass:"l-d-flex l-align-items-center ml-1 mr-0",staticStyle:{cursor:"pointer"},attrs:{size:"15"},on:{click:function(i){return e.$emit("remove")}}},[e._v(" uis-times-circle ")]):e._e()],1)])},Zce=[],Jce=Qe(qce,Xce,Zce,!1,null,null,null,null);const ede=Jce.exports,tde=Object.freeze(Object.defineProperty({__proto__:null,default:ede},Symbol.toStringTag,{value:"Module"})),mIe="",nde={tagName:"l-target-input",name:"LTargetInput",props:{topics:{type:Array,required:!0},limit:{type:Number,default:3},editable:{type:Boolean,default:!1}},computed:{topicsToShow(){return this.topics.slice(0,this.limit)},moreTopicsText(){const t=this.topics.length-this.limit>1;return`+ ${this.topics.length-this.limit} destinatário`+(t?"s":"")}}};var ide=function(){var e=this,n=e._self._c;return e.topics&&e.topics.length?n("div",{class:"l-target-input"+(e.editable?" editable":"")},[e._l(e.topicsToShow,function(i){return n("l-target-chip",{key:i.id,staticClass:"mr-2 mb-2",attrs:{kind:i.kind,name:i.name}})}),e.topics.length>this.limit?n("l-chip",{staticClass:"mb-2",attrs:{color:"purple",fill:"","hide-icon":""}},[e._v(" "+e._s(e.moreTopicsText)+" ")]):e._e()],2):e._e()},rde=[],sde=Qe(nde,ide,rde,!1,null,"69080a2f",null,null);const ade=sde.exports,ode=Object.freeze(Object.defineProperty({__proto__:null,default:ade},Symbol.toStringTag,{value:"Module"}));function si(t){this.content=t}si.prototype={constructor:si,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var i=n&&n!=t?this.remove(n):this,s=i.find(t),o=i.content.slice();return s==-1?o.push(n||t,e):(o[s+1]=e,n&&(o[s]=n)),new si(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new si(n)},addToStart:function(t,e){return new si([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new si(n)},addBefore:function(t,e,n){var i=this.remove(e),s=i.content.slice(),o=i.find(t);return s.splice(o==-1?s.length:o,0,e,n),new si(s)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=si.from(t),t.size?new si(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=si.from(t),t.size?new si(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=si.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},si.from=function(t){if(t instanceof si)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new si(e)};function Z$(t,e,n){for(let i=0;;i++){if(i==t.childCount||i==e.childCount)return t.childCount==e.childCount?null:n;let s=t.child(i),o=e.child(i);if(s==o){n+=s.nodeSize;continue}if(!s.sameMarkup(o))return n;if(s.isText&&s.text!=o.text){for(let u=0;s.text[u]==o.text[u];u++)n++;return n}if(s.content.size||o.content.size){let u=Z$(s.content,o.content,n+1);if(u!=null)return u}n+=s.nodeSize}}function J$(t,e,n,i){for(let s=t.childCount,o=e.childCount;;){if(s==0||o==0)return s==o?null:{a:n,b:i};let u=t.child(--s),d=e.child(--o),f=u.nodeSize;if(u==d){n-=f,i-=f;continue}if(!u.sameMarkup(d))return{a:n,b:i};if(u.isText&&u.text!=d.text){let p=0,v=Math.min(u.text.length,d.text.length);for(;p<v&&u.text[u.text.length-p-1]==d.text[d.text.length-p-1];)p++,n--,i--;return{a:n,b:i}}if(u.content.size||d.content.size){let p=J$(u.content,d.content,n-1,i-1);if(p)return p}n-=f,i-=f}}class Ve{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let i=0;i<e.length;i++)this.size+=e[i].nodeSize}nodesBetween(e,n,i,s=0,o){for(let u=0,d=0;d<n;u++){let f=this.content[u],p=d+f.nodeSize;if(p>e&&i(f,s+d,o||null,u)!==!1&&f.content.size){let v=d+1;f.nodesBetween(Math.max(0,e-v),Math.min(f.content.size,n-v),i,s+v)}d=p}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,i,s){let o="",u=!0;return this.nodesBetween(e,n,(d,f)=>{d.isText?(o+=d.text.slice(Math.max(e,f)-f,n-f),u=!i):d.isLeaf?(s?o+=typeof s=="function"?s(d):s:d.type.spec.leafText&&(o+=d.type.spec.leafText(d)),u=!i):!u&&d.isBlock&&(o+=i,u=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,i=e.firstChild,s=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(i)&&(s[s.length-1]=n.withText(n.text+i.text),o=1);o<e.content.length;o++)s.push(e.content[o]);return new Ve(s,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let i=[],s=0;if(n>e)for(let o=0,u=0;u<n;o++){let d=this.content[o],f=u+d.nodeSize;f>e&&((u<e||f>n)&&(d.isText?d=d.cut(Math.max(0,e-u),Math.min(d.text.length,n-u)):d=d.cut(Math.max(0,e-u-1),Math.min(d.content.size,n-u-1))),i.push(d),s+=d.nodeSize),u=f}return new Ve(i,s)}cutByIndex(e,n){return e==n?Ve.empty:e==0&&n==this.content.length?this:new Ve(this.content.slice(e,n))}replaceChild(e,n){let i=this.content[e];if(i==n)return this;let s=this.content.slice(),o=this.size+n.nodeSize-i.nodeSize;return s[e]=n,new Ve(s,o)}addToStart(e){return new Ve([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ve(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,i=0;n<this.content.length;n++){let s=this.content[n];e(s,i,n),i+=s.nodeSize}}findDiffStart(e,n=0){return Z$(this,e,n)}findDiffEnd(e,n=this.size,i=e.size){return J$(this,e,n,i)}findIndex(e,n=-1){if(e==0)return bv(0,e);if(e==this.size)return bv(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let i=0,s=0;;i++){let o=this.child(i),u=s+o.nodeSize;if(u>=e)return u==e||n>0?bv(i+1,u):bv(i,s);s=u}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Ve.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ve(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ve.empty;let n,i=0;for(let s=0;s<e.length;s++){let o=e[s];i+=o.nodeSize,s&&o.isText&&e[s-1].sameMarkup(o)?(n||(n=e.slice(0,s)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Ve(n||e,i)}static from(e){if(!e)return Ve.empty;if(e instanceof Ve)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ve([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ve.empty=new Ve([],0);const qS={index:0,offset:0};function bv(t,e){return qS.index=t,qS.offset=e,qS}function _v(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!_v(t[i],e[i]))return!1}else{for(let i in t)if(!(i in e)||!_v(t[i],e[i]))return!1;for(let i in e)if(!(i in t))return!1}return!0}let nn=class xE{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,i=!1;for(let s=0;s<e.length;s++){let o=e[s];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,s));else{if(o.type.excludes(this.type))return e;!i&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,s)),n.push(this),i=!0),n&&n.push(o)}}return n||(n=e.slice()),i||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&_v(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=e.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);return i.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].eq(n[i]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return xE.none;if(e instanceof xE)return[e];let n=e.slice();return n.sort((i,s)=>i.type.rank-s.type.rank),n}};nn.none=[];class Mv extends Error{}class it{constructor(e,n,i){this.content=e,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let i=tL(this.content,e+this.openStart,n);return i&&new it(i,this.openStart,this.openEnd)}removeBetween(e,n){return new it(eL(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return it.empty;let i=n.openStart||0,s=n.openEnd||0;if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new it(Ve.fromJSON(e,n.content),i,s)}static maxOpen(e,n=!0){let i=0,s=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)s++;return new it(e,i,s)}}it.empty=new it(Ve.empty,0,0);function eL(t,e,n){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i),{index:u,offset:d}=t.findIndex(n);if(s==e||o.isText){if(d!=n&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(i!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(i,o.copy(eL(o.content,e-s-1,n-s-1)))}function tL(t,e,n,i){let{index:s,offset:o}=t.findIndex(e),u=t.maybeChild(s);if(o==e||u.isText)return i&&!i.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let d=tL(u.content,e-o-1,n);return d&&t.replaceChild(s,u.copy(d))}function lde(t,e,n){if(n.openStart>t.depth)throw new Mv("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mv("Inconsistent open depths");return nL(t,e,n,0)}function nL(t,e,n,i){let s=t.index(i),o=t.node(i);if(s==e.index(i)&&i<t.depth-n.openStart){let u=nL(t,e,n,i+1);return o.copy(o.content.replaceChild(s,u))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==i&&e.depth==i){let u=t.parent,d=u.content;return Wl(u,d.cut(0,t.parentOffset).append(n.content).append(d.cut(e.parentOffset)))}else{let{start:u,end:d}=ude(n,t);return Wl(o,rL(t,u,d,e,i))}else return Wl(o,xv(t,e,i))}function iL(t,e){if(!e.type.compatibleContent(t.type))throw new Mv("Cannot join "+e.type.name+" onto "+t.type.name)}function XS(t,e,n){let i=t.node(n);return iL(i,e.node(n)),i}function Hl(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function dh(t,e,n,i){let s=(e||t).node(n),o=0,u=e?e.index(n):s.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(Hl(t.nodeAfter,i),o++));for(let d=o;d<u;d++)Hl(s.child(d),i);e&&e.depth==n&&e.textOffset&&Hl(e.nodeBefore,i)}function Wl(t,e){return t.type.checkContent(e),t.copy(e)}function rL(t,e,n,i,s){let o=t.depth>s&&XS(t,e,s+1),u=i.depth>s&&XS(n,i,s+1),d=[];return dh(null,t,s,d),o&&u&&e.index(s)==n.index(s)?(iL(o,u),Hl(Wl(o,rL(t,e,n,i,s+1)),d)):(o&&Hl(Wl(o,xv(t,e,s+1)),d),dh(e,n,s,d),u&&Hl(Wl(u,xv(n,i,s+1)),d)),dh(i,null,s,d),new Ve(d)}function xv(t,e,n){let i=[];if(dh(null,t,n,i),t.depth>n){let s=XS(t,e,n+1);Hl(Wl(s,xv(t,e,n+1)),i)}return dh(e,null,n,i),new Ve(i)}function ude(t,e){let n=e.depth-t.openStart,s=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)s=e.node(o).copy(Ve.from(s));return{start:s.resolveNoCache(t.openStart+n),end:s.resolveNoCache(s.content.size-t.openEnd-n)}}class fh{constructor(e,n,i){this.pos=e,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let i=this.pos-this.path[this.path.length-1],s=e.child(n);return i?e.child(n).cut(i):s}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let i=this.path[n*3],s=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)s+=i.child(o).nodeSize;return s}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return nn.none;if(this.textOffset)return e.child(n).marks;let i=e.maybeChild(n-1),s=e.maybeChild(n);if(!i){let d=i;i=s,s=d}let o=i.marks;for(var u=0;u<o.length;u++)o[u].type.spec.inclusive===!1&&(!s||!o[u].isInSet(s.marks))&&(o=o[u--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,s=e.parent.maybeChild(e.index());for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);i>=0;i--)if(e.pos<=this.end(i)&&(!n||n(this.node(i))))return new Cv(this,e,i);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let i=[],s=0,o=n;for(let u=e;;){let{index:d,offset:f}=u.content.findIndex(o),p=o-f;if(i.push(u,d,s+f),!p||(u=u.child(d),u.isText))break;o=p-1,s+=f+1}return new fh(n,i,o)}static resolveCached(e,n){for(let s=0;s<ZS.length;s++){let o=ZS[s];if(o.pos==n&&o.doc==e)return o}let i=ZS[JS]=fh.resolve(e,n);return JS=(JS+1)%cde,i}}let ZS=[],JS=0,cde=12;class Cv{constructor(e,n,i){this.$from=e,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const dde=Object.create(null);let Ql=class CE{constructor(e,n,i,s=nn.none){this.type=e,this.attrs=n,this.marks=s,this.content=i||Ve.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,i,s=0){this.content.nodesBetween(e,n,i,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,i,s){return this.content.textBetween(e,n,i,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,i){return this.type==e&&_v(this.attrs,n||e.defaultAttrs||dde)&&nn.sameSet(this.marks,i||nn.none)}copy(e=null){return e==this.content?this:new CE(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new CE(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,i=!1){if(e==n)return it.empty;let s=this.resolve(e),o=this.resolve(n),u=i?0:s.sharedDepth(n),d=s.start(u),p=s.node(u).content.cut(s.pos-d,o.pos-d);return new it(p,s.depth-u,o.depth-u)}replace(e,n,i){return lde(this.resolve(e),this.resolve(n),i)}nodeAt(e){for(let n=this;;){let{index:i,offset:s}=n.content.findIndex(e);if(n=n.maybeChild(i),!n)return null;if(s==e||n.isText)return n;e-=s+1}}childAfter(e){let{index:n,offset:i}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(e);if(i<e)return{node:this.content.child(n),index:n,offset:i};let s=this.content.child(n-1);return{node:s,index:n-1,offset:i-s.nodeSize}}resolve(e){return fh.resolveCached(this,e)}resolveNoCache(e){return fh.resolve(this,e)}rangeHasMark(e,n,i){let s=!1;return n>e&&this.nodesBetween(e,n,o=>(i.isInSet(o.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),sL(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,i=Ve.empty,s=0,o=i.childCount){let u=this.contentMatchAt(e).matchFragment(i,s,o),d=u&&u.matchFragment(this.content,n);if(!d||!d.validEnd)return!1;for(let f=s;f<o;f++)if(!this.type.allowsMarks(i.child(f).marks))return!1;return!0}canReplaceWith(e,n,i,s){if(s&&!this.type.allowsMarks(s))return!1;let o=this.contentMatchAt(e).matchType(i),u=o&&o.matchFragment(this.content,n);return u?u.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=nn.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!nn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,i)}let s=Ve.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,s,i)}};Ql.prototype.text=void 0;class Sv extends Ql{constructor(e,n,i,s){if(super(e,n,null,s),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):sL(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Sv(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Sv(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function sL(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Gl{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let i=new fde(e,n);if(i.next==null)return Gl.empty;let s=aL(i);i.next&&i.err("Unexpected trailing text");let o=bde(yde(s));return _de(o,i),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,i=e.childCount){let s=this;for(let o=n;s&&o<i;o++)s=s.matchType(e.child(o).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let i=0;i<e.next.length;i++)if(this.next[n].type==e.next[i].type)return!0;return!1}fillBefore(e,n=!1,i=0){let s=[this];function o(u,d){let f=u.matchFragment(e,i);if(f&&(!n||f.validEnd))return Ve.from(d.map(p=>p.createAndFill()));for(let p=0;p<u.next.length;p++){let{type:v,next:y}=u.next[p];if(!(v.isText||v.hasRequiredAttrs())&&s.indexOf(y)==-1){s.push(y);let M=o(y,d.concat(v));if(M)return M}}return null}return o(this,[])}findWrapping(e){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==e)return this.wrapCache[i+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let s=i.shift(),o=s.match;if(o.matchType(e)){let u=[];for(let d=s;d.type;d=d.via)u.push(d.type);return u.reverse()}for(let u=0;u<o.next.length;u++){let{type:d,next:f}=o.next[u];!d.isLeaf&&!d.hasRequiredAttrs()&&!(d.name in n)&&(!s.type||f.validEnd)&&(i.push({match:d.contentMatch,type:d,via:s}),n[d.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(i){e.push(i);for(let s=0;s<i.next.length;s++)e.indexOf(i.next[s].next)==-1&&n(i.next[s].next)}return n(this),e.map((i,s)=>{let o=s+(i.validEnd?"*":" ")+" ";for(let u=0;u<i.next.length;u++)o+=(u?", ":"")+i.next[u].type.name+"->"+e.indexOf(i.next[u].next);return o}).join(`
162
+ `)},ji.prototype.renderPartial=function(e,n,i,s){if(i){var o=this.getConfigTags(s),u=QS(i)?i(e[1]):i[e[1]];if(u!=null){var d=e[6],f=e[5],p=e[4],v=u;f==0&&p&&(v=this.indentPartial(u,p,d));var y=this.parse(v,o);return this.renderTokens(y,n,i,v,s)}}},ji.prototype.unescapedValue=function(e,n){var i=n.lookup(e[1]);if(i!=null)return i},ji.prototype.escapedValue=function(e,n,i){var s=this.getConfigEscape(i)||Ur.escape,o=n.lookup(e[1]);if(o!=null)return typeof o=="number"&&s===Ur.escape?String(o):s(o)},ji.prototype.rawValue=function(e){return e[1]},ji.prototype.getConfigTags=function(e){return Ec(e)?e:e&&typeof e=="object"?e.tags:void 0},ji.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Ec(e))return e.escape};var Ur={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){ch.templateCache=t},get templateCache(){return ch.templateCache}},ch=new ji;Ur.clearCache=function(){return ch.clearCache()},Ur.parse=function(e,n){return ch.parse(e,n)},Ur.render=function(e,n,i,s){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+wle(e)+'" was given as the first argument for mustache#render(template, view, partials)');return ch.render(e,n,i,s)},Ur.escape=jle,Ur.Scanner=uh,Ur.Context=Ic,Ur.Writer=ji;const Ule={props:["value","schema","entity"],methods:{hasRouterLink(t){return vn(t.schema,"options.routerLink")},getRouterLink(t){const e=vn(t.schema,"options.routerLink");return Ur.render(e,t.entity)}}};var Vle=function(e,n){return n.$options.methods.hasRouterLink(n.props)?e("router-link",{attrs:{to:n.$options.methods.getRouterLink(n.props)}},[n._v(n._s(n.props.value))]):e("span",[n._v(n._s(n.props.value))])},Yle=[],Hle=Qe(Ule,Vle,Yle,!0,null,null,null,null);const Wle=Hle.exports,Qle={props:["value","schema"],methods:{formatValue(t){return t}}};var Gle=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value)))])},Kle=[],qle=Qe(Qle,Gle,Kle,!0,null,null,null,null);const Xle=qle.exports,Zle={props:["value","schema"],methods:{formatValue(t,e){return isNaN(t)||t===null||t===void 0?"-":e.$n?e.$n(t/100,"currency"):Number(t/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"})}}};var Jle=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value,n.parent)))])},eue=[],tue=Qe(Zle,Jle,eue,!0,null,null,null,null);const nue=tue.exports,iue={props:["value","schema"]};var rue=function(e,n){return e("a",{attrs:{target:"_blank",href:`mailto:${n.props.value}`}},[n._v(n._s(n.props.value))])},sue=[],aue=Qe(iue,rue,sue,!0,null,null,null,null);const oue=aue.exports,lue={props:["value","schema"],methods:{formatValue(t,e){if(!t)return"-";const n=vn(e,"options.format","dd/MM/yyyy hh:mm:ss");return HS(t,{locale:"pt-br"}).format(n)}}};var uue=function(e,n){return e("span",[n._v(n._s(n.$options.methods.formatValue(n.props.value,n.props.schema)))])},cue=[],due=Qe(lue,uue,cue,!0,null,null,null,null);const fue=due.exports,X$={};X$.register=function(){rr.register({type:"String"},"default",Wle),rr.register({type:"Date"},"default",fue),rr.register({type:"Number"},"default",Xle),rr.register({format:"Amount"},"default",nue),rr.register({format:"Email"},"default",oue)};const nIe="",hue={props:{perPage:Number,pagesCount:Number,totalCount:Number,columnSpecs:{type:Array},includedIds:{type:Array},excludedIds:{type:Array},selectable:Boolean,clickable:Boolean,multiselect:Boolean,page:Object},computed:{includedAll(){return this.includedIds.toString()==="*"},estimatedRows(){return this.page&&this.pagesCount>1&&this.page.index>=this.pagesCount-1?this.totalCount%this.perPage:this.perPage},checked(){if(!this.page||!this.page.data)return[];let t=this.includedIds,e=this.excludedIds,n=this.includedAll;return this.page.data.map(i=>n&&!e.includes(i.id)||t.includes(i.id))}},methods:{getColumnComponent(t){return t.component},getColumnValue(t,e){return vn(t,e.path)}}};var pue=function(){var e=this,n=e._self._c;return n("tbody",{staticClass:"l-table-tbody"},[e.page&&e.page.loaded?e._l(e.page.data,function(i,s){return n("tr",{key:s,class:{"l-table-selected":e.checked[s]}},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{type:e.multiselect?"checkbox":"radio",value:e.checked[s]},on:{change:function(o){return e.$emit("selected",{key:i.id,selected:o})}}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}${e.clickable?" cursor-pointer":""}`,on:{click:function(d){return e.$emit("click-item",i)}}},[n(e.getColumnComponent(o),{tag:"component",attrs:{value:e.getColumnValue(i,o),schema:o,entity:i}})],1)})],2)}):e.page&&e.page.loading?e._l(e.estimatedRows,function(i,s){return n("tr",{key:s},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{disabled:"",type:e.multiselect?"checkbox":"radio",value:e.includedAll}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}`},[n("span",{staticClass:"l-table-skeleton"})])})],2)}):e._l(e.estimatedRows,function(i,s){return n("tr",{key:s},[e.selectable?n("td",{key:"selector",staticClass:"l-table-cell l-table-column-selector"},[n("l-checkbox",{staticClass:"l-table-selector",attrs:{disabled:"",type:e.multiselect?"checkbox":"radio",value:e.includedAll}})],1):e._e(),e._l(e.columnSpecs,function(o,u){return n("td",{key:u,staticClass:"l-table-cell",class:`align-${o.align}`},[n("span",{staticClass:"l-table-skeleton error"})])})],2)})],2)},mue=[],gue=Qe(hue,pue,mue,!1,null,null,null,null);const vue=gue.exports,iIe="",yue={props:{title:String,maxWidth:{type:Number,default:null},minWidth:{type:Number,default:50}},data(){return{dragging:!1,deltaX:0}},computed:{handleStyle(){return this.dragging?{transform:`translateX(${this.deltaX}px)`}:null}},methods:{currentWidth(){return this.$el.parentElement.getBoundingClientRect().width},limitDeltaX(t){let e=this.currentWidth();return this.limitWidth(e+t)-e},limitWidth(t){return t?this.maxWidth&&this.maxWidth<t?this.maxWidth:this.minWidth&&this.minWidth>t?this.minWidth:t:null},resize(t){this.$emit("resize",this.limitWidth(t))},drag(t){this.dragging||this.unregisterDocumentHandlers();let e=t.clientX-this.dragStartClientX;this.deltaX=this.limitDeltaX(e),console.log("drag",this.deltaX)},dragStart(t){this.registerDocumentHandlers(),this.deltaX=0,this.dragging=!0,this.dragStartClientX=t.clientX,console.log("dragStart",t)},dragEnd(t){if(this.deltaX){let e=this.currentWidth()+this.deltaX;this.resize(e)}this.unregisterDocumentHandlers(),this.deltaX=0,this.dragging=!1,this.dragStartClientX=0,console.log("dragEnd",t)},registerDocumentHandlers(){this.unregisterDocumentHandlers(),this._documentMouseMove=t=>this.drag(t),this._documentMouseUp=t=>this.dragEnd(t),document.body.style.cursor="col-resize",document.addEventListener("mousemove",this._documentMouseMove),document.addEventListener("mouseup",this._documentMouseUp),document.onselectstart=()=>!1,document.ondragstart=()=>!1},unregisterDocumentHandlers(){document.removeEventListener("mousemove",this._documentMouseMove),document.removeEventListener("mouseup",this._documentMouseUp),document.body.style.cursor="",document.onselectstart=null,document.ondragstart=null}}};var bue=function(){var e=this,n=e._self._c;return n("div",{staticClass:"mt-handle",class:e.dragging?"dragging":"",style:e.handleStyle,on:{dblclick:function(i){return e.resize(null)},mousedown:e.dragStart}})},_ue=[],Mue=Qe(yue,bue,_ue,!1,null,null,null,null);const xue=Mue.exports,rIe="",Cue={components:{LTableHeaderResizer:xue},props:{spec:{type:Object}},computed:{resizable(){return this.spec.field&&this.spec.field.resizable},reordable(){return!0},icon(){return this.$L.Icons.get(this.spec.field)}},methods:{resizeColumn(t,e){this.$set(t,"width",e)},toggleSorting(t){let e=this.spec.column.sortDirection,n="asc";e?e.toLowerCase()==="asc"&&(n="desc"):n="asc",this.$emit("sort",{direction:n,cumulative:t})}}};var Sue=function(){var e=this,n=e._self._c;return n("th",{staticClass:"l-table-header-cell l-table-cell",style:{"--l-table-col-width":e.spec.column.width?`${e.spec.column.width}px`:"auto"}},[e.spec.sortable?n("a",{staticClass:"l-table-header-cell-content",class:[e.spec.column.sortDirection?"active":null,`l-table-header-align-${e.spec.align}`],attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.toggleSorting()}}},[n("l-tooltip",{key:"tooltip",attrs:{disabled:!e.spec.description,content:e.spec.description,placement:"top","open-delay":600,offset:0}},[n("span",[e.icon?n("l-icon",{staticClass:"l-table-header-icon"},[e._v(e._s(e.icon))]):e._e(),e._v("   "+e._s(e.spec.title)+" ")],1)]),n("i",{staticClass:"l-table-sorter-icon uil uil-arrow-down",class:`l-table-sorter-${e.spec.column.sortDirection||"default"}`})],1):n("span",{staticClass:"l-table-header-cell-content"},[n("l-tooltip",{attrs:{disabled:!e.spec.description,content:e.spec.description,placement:"top","open-delay":600,offset:0}},[n("span",[e.icon?n("l-icon",{staticClass:"l-table-header-icon"},[e._v(e._s(e.icon))]):e._e(),e._v("   "+e._s(e.spec.title)+" ")],1)])],1),n("span",{staticStyle:{width:"12px"}}),e.resizable?n("LTableHeaderResizer",{on:{resize:function(i){return e.resizeColumn(e.spec.column,i)}}}):e._e()],1)},Tue=[],Due=Qe(Cue,Sue,Tue,!1,null,null,null,null);const wue=Due.exports,sIe="",Nue={props:["loading"]};var kue=function(e,n){return e("div",{staticClass:"l-table-header-loader",class:{loading:n.props.loading}})},Oue=[],Eue=Qe(Nue,kue,Oue,!0,null,null,null,null);const Iue=Eue.exports,aIe="",Aue={components:{LTableHeaderCell:wue,LTableHeaderLoader:Iue},props:{columnSpecs:{type:Array},loading:{type:Boolean,default:!1},includedIds:{type:Array},excludedIds:{type:Array},total:{type:Number},selectable:{type:Boolean},multiselect:{type:Boolean}},computed:{selectedEverything(){let t=this.includedIds.length===this.total&&this.total>0,e=this.includedIds.toString()==="*"&&this.excludedIds.length==0;return t||e},selectedNothing(){return this.includedIds.length===0},selectedSomethings(){return!this.selectedNothing&&!this.selectedEverything}},methods:{changeSpecSort(t,{direction:e,cumulative:n}){if(n){let s=this.columnSpecs.reduce((o,u)=>Math.max(o,u.column.sortOrder),0)+1;this.$set(t.column,"sortDirection",e),this.$set(t.column,"sortOrder",s)}else{for(let i of this.columnSpecs)this.$set(i.column,"sortDirection",null),this.$set(i.column,"sortOrder",null);this.$set(t.column,"sortDirection",e),this.$set(t.column,"sortOrder",1)}},changeSelection(t){this.$emit("selected",{key:"*",selected:t})}}};var jue=function(){var e=this,n=e._self._c;return n("thead",{staticClass:"l-table-header"},[n("tr",[e.selectable?n("th",{staticClass:"l-table-header-cell l-table-cell l-table-column-selector",attrs:{scope:"col"}},[e.multiselect?n("l-checkbox",{staticClass:"l-table-selector",attrs:{type:"checkbox",value:e.selectedEverything,indeterminate:e.selectedSomethings},on:{change:function(i){return e.changeSelection(i)}}}):e._e()],1):e._e(),e._l(e.columnSpecs,function(i,s){return n("LTableHeaderCell",{key:s,ref:"headers",refInFor:!0,attrs:{spec:i},on:{sort:function(o){return e.changeSpecSort(i,o)}}})})],2),n("tr",{staticClass:"l-table-header-extras"},[n("td",{attrs:{colspan:"999"}},[n("LTableHeaderLoader",{attrs:{loading:e.loading}}),n("div",{staticClass:"l-table-header-shadow-top"})],1)])])},$ue=[],Lue=Qe(Aue,jue,$ue,!1,null,null,null,null);const zue=Lue.exports,oIe="",Pue={};var Rue=function(e,n){return e("div",{staticClass:"l-table-endspace"})},Fue=[],Bue=Qe(Pue,Rue,Fue,!0,null,null,null,null);const Uue=Bue.exports,lIe="",Vue={props:{loading:Boolean,automatic:Boolean},mounted(){this.intersectionObserver=new IntersectionObserver(([t])=>{t&&t.isIntersecting&&this.automatic&&this.$emit("appeared")}),this.intersectionObserver.observe(this.$el)},destroyed(){this.intersectionObserver&&this.intersectionObserver.disconnect()}};var Yue=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-loadmore",class:{loading:e.loading},on:{click:function(i){return e.$emit("click")}}},[n("a",{staticClass:"l-table-loadmore-link",attrs:{href:"#"}},[e._v("Carregar mais")])])},Hue=[],Wue=Qe(Vue,Yue,Hue,!1,null,null,null,null);const Que=Wue.exports,uIe="",Gue=2e3,Kue={name:"LTableReloader",data(){return{canReload:!0}},methods:{reload(){this.canReload=!1,this.$emit("reload"),setTimeout(()=>this.canReload=!0,Gue)}}};var que=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-reloader"},[n("div",{staticClass:"l-table-reloader-content"},[n("l-icon",{attrs:{size:"22"}},[e._v("uil-cloud-exclamation")]),n("span",{staticStyle:{"margin-left":"8px",flex:"1 1"}},[e._v("Algumas informações não puderam ser carregadas.")]),n("l-button",{attrs:{size:"mini"},on:{click:function(i){return e.reload()}}},[e._v("Recarregar")])],1)])},Xue=[],Zue=Qe(Kue,que,Xue,!1,null,null,null,null);const Jue=Zue.exports,cIe="",ece={props:{height:{type:Number}}};var tce=function(e,n){return e("tbody",{staticClass:"l-table-spacer"},[e("tr",{style:{height:`${n.props.height}px`}},[e("td",{staticClass:"l-table-spacer-bg",attrs:{colspan:"999"}})])])},nce=[],ice=Qe(ece,tce,nce,!0,null,null,null,null);const rce=ice.exports;var sce=V$;function ace(t){var e=t==null?0:t.length;return e?sce(t,1):[]}var oce=ace;const lce=bi(oce);function uce(){}var cce=uce,KS=Dj,dce=cce,fce=zS,hce=1/0,pce=KS&&1/fce(new KS([,-0]))[1]==hce?function(t){return new KS(t)}:dce,mce=pce,gce=$S,vce=P$,yce=R$,bce=LS,_ce=mce,Mce=zS,xce=200;function Cce(t,e,n){var i=-1,s=vce,o=t.length,u=!0,d=[],f=d;if(n)u=!1,s=yce;else if(o>=xce){var p=e?null:_ce(t);if(p)return Mce(p);u=!1,s=bce,f=new gce}else f=e?[]:d;e:for(;++i<o;){var v=t[i],y=e?e(v):v;if(v=n||v!==0?v:0,u&&y===y){for(var M=f.length;M--;)if(f[M]===y)continue e;e&&f.push(y),d.push(v)}else s(f,y,n)||(f!==d&&f.push(y),d.push(v))}return d}var Sce=Cce,Tce=Sce;function Dce(t){return t&&t.length?Tce(t):[]}var wce=Dce;const Nce=bi(wce);function kce({key:t,selected:e},n){let{loadedPages:i,allowInvertedSelection:s,includedIds:o,excludedIds:u,multiselect:d,itemToId:f=b=>b}=n;if(!t===void 0||t===null)return{includedIds:o,excludedIds:u};if(t==="*"){if(o.splice(0,o.length),u.splice(0,u.length),e&&d&&s&&o.push("*"),e&&d&&!s){let b=lce(i.filter(N=>N.data).map(N=>N.data));o=Nce(b.map(N=>f(N)))}return{includedIds:o,excludedIds:u}}let v=o.includes("*"),y=o.includes(t),M=u.includes(t);if(d||(o.splice(0,o.length),u.splice(0,u.length)),v&&d){if(e&&M){let b=u.indexOf(t);u.splice(b,1)}!e&&!M&&d&&u.push(t)}else if(e&&!y&&(d?o.push(t):o=[t]),!e&&y){let b=o.indexOf(t);o.splice(b,1)}return{includedIds:o,excludedIds:u}}function Oce({pagesCount:t,currentPage:e,endingAdjacents:n=1,adjacents:i=2,next:s=!0,previous:o=!0,last:u=!1,first:d=!1,fixedWidth:f=!0}){const p=[];if(!t)return p;const v=f?n*2+i*2+3:n*2+1;if(t<=v)for(let y=0;y<t;y++)p.push(y);else{let y=0;for(let N=0;N<Math.min(n,t);N++)p.push(y=N);let M=n+i*2,b=i,x=i;f&&e<M&&(x+=M-e),f&&t-e-1<M&&(b+=M-(t-e-1));for(let N=Math.max(y+1,e-b);N<Math.min(e+x+1,t);N++)y+2===N&&p.push(y=y+1),y+1!==N&&p.push("...1"),p.push(y=N);for(let N=Math.max(y+1,t-n);N<t;N++)y+2===N&&p.push(y=y+1),y+1!==N&&p.push("...2"),p.push(y=N)}return o&&p.unshift("<"),s&&p.push(">"),d&&p.unshift("<<"),u&&p.push(">>"),p}const dIe="",Ece={name:"LTablePagination",props:{pagesCount:Number,totalCount:Number,currentPage:{type:Number,default:2}},computed:{visiblePages(){return this.totalCount?Oce({pagesCount:this.pagesCount,currentPage:this.currentPage,adjacents:1,endingAdjacents:1,fixedWidth:!0}):["...1"]}},methods:{clicked(t){typeof t=="number"?this.goto(parseInt(t)):t==="<"?this.goto(this.currentPage-1):t===">"?this.goto(this.currentPage+1):t==="<<"?this.goto(0):t===">>"&&this.goto(this.pagesCount-1)},goto(t){this.currentPage!=t&&(t=Math.max(0,Math.min(t,this.pagesCount-1)),this.$emit("goto",t))}}};var Ice=function(){var e=this,n=e._self._c;return n("div",{staticClass:"l-table-pagination"},[n("transition-group",{staticClass:"l-table-pagination-pages",attrs:{tag:"div",name:"l-table-pagination-transition"}},e._l(e.visiblePages,function(i){return n("span",{key:i,staticClass:"l-table-pagination-page-item",class:{active:i==e.currentPage},on:{click:function(s){return e.clicked(i)}}},[i==="<"?[n("l-icon",{attrs:{size:"20"}},[e._v("uil-angle-left")])]:i===">"?[n("l-icon",{attrs:{size:"20"}},[e._v("uil-angle-right")])]:i==="...1"||i==="...2"?[e._v(" ... ")]:[e._v(" "+e._s(i+1)+" ")]],2)}),0)],1)},Ace=[],jce=Qe(Ece,Ice,Ace,!1,null,null,null,null);const $ce=jce.exports,fIe="";X$.register();const Lce=100,zce=3e4,Pce=3,Rce="scrollBehavior"in document.documentElement.style,Fce={name:"LTable",tagName:"l-table",components:{LTableHeader:zue,LTableBody:vue,LTableReloader:Jue,LTableLoadMore:Que,LTableEndspace:Uue,LTableBodySpacer:rce,LTablePagination:$ce},props:{rows:{type:Array},primaryKey:{type:String,default:"id"},fetch:{type:Function},columns:{type:Array},pagination:{type:Boolean,default:!1},display:{type:String,enum:["all","more","paged"],default:"all"},autoLoadMore:{type:Boolean,default:!1},schema:{type:Object,required:!0},selectable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},multiselect:{type:Boolean,default:!0},allowInvertedSelection:{type:Boolean,default:!0},rowHeight:{type:Number,default:32},borderTick:{type:Number,default:1},snapToPageOnMore:{type:Boolean,default:!0},stickyColumnLeft:{type:Boolean,default:!1},recycle:{type:Boolean,default:!0},limitPerPage:{type:Number,default:50}},mounted(){this.computeVisibleRows()},data(){return{fetching:0,headerHeight:56,nonce:0,id:0,extraRows:15,lastComputedOffsetY:0,includedIds:[],excludedIds:[],scrollAtTop:!0,scrollAtLeft:!0,totalCount:0,firstPage:null,currentPage:null,lastPage:null,loadedPages:[]}},watch:{totalCount(t){this.$emit("changeSelection",{includedIds:this.includedIds,excludedIds:this.excludedIds,selectionCount:this.selectionCount,totalCount:t})},somePageIsLoading(t){this.$emit("loading",t)}},computed:{perPage(){return Number(this.limitPerPage)},pagesCount(){return Math.floor(this.totalCount/this.perPage)+1},selectionCount(){return this.includedIds.toString()==="*"?this.totalCount-this.excludedIds.length:this.includedIds.length},lastLoadedPage(){return this.loadedPages.length},isLoadMoreVisible(){return this.display==="more"&&this.lastLoadedPage<this.pagesCount},isPaginationVisible(){return(this.display==="page"||!!this.pagination)&&this.display!=="more"&&this.pagesCount!==null},isLeftColumnSticky(){return this.stickyColumnLeft||this.columns&&this.columns[0]&&this.columns[0].sticky},usingRecycledLayout(){return this.display!=="paged"&&this.recycle},hasVisibleFailedPages(){for(let t=this.firstPageRendered;t<=this.lastPageRendered;t++)if(this.loadedPages[t]&&this.loadedPages[t].failed)return!0;return!1},firstPageRendered(){return!this.usingRecycledLayout&&this.display!=="paged"?0:this.firstPage},lastPageRendered(){return this.display==="paged"?this.firstPage:this.usingRecycledLayout?this.lastPage:Math.max(0,this.lastLoadedPage-1)},visiblePages(){let t=[];for(let e=this.firstPageRendered;e<=this.lastPageRendered;e++){let n=this.loadedPages[e]||{index:e};t.push(n)}return t},contentStyle(){return{"--l-table-primary-color":"#2F8AF5","--l-table-warning-color":"#fd3a57","--l-table-bg-color":"white","--l-table-header-height":`${this.headerHeight}px`,"--l-table-header-text-color":"#232B34","--l-table-header-border-color":"#E8E8E8","--l-table-skeleton-height":`${Math.min(this.rowHeight-8,8)}px`,"--l-table-loader-height":"3px","--l-table-loader-color":"var(--l-table-primary-color)","--l-table-row-height":`${this.rowHeight}px`,"--l-table-cell-padding":"0 8px","--l-table-row-hover-color":"#fafbfd","--l-table-row-selected-color":"#eef5fa","--l-table-row-selected-hover-color":"#e6f0f8","--l-table-border-color":"#D3DAE6","--l-table-border-tick":`${this.borderTick}px`,"--l-table-selector-width":`${this.selectable?Math.min(this.headerHeight,this.rowHeight):0}px`,"--l-table-loadmore-height":"46px","--l-table-pagination-height":"48px","--l-table-pagination-color":"var(--l-table-primary-color)","--l-table-pagination-bg-color":"white","--l-table-reloader-margin":"16px","--l-table-endspace-bg-color":"#f5f5f5","--l-table-link-color":"var(--l-table-primary-color)"}},contentClasses(){return{"l-table-at-top":this.scrollAtTop,"l-table-at-left":this.scrollAtLeft,"l-table-sticky-column-left":this.isLeftColumnSticky}},spacing(){let t=0,e=0,n=this.display,i=this.totalCount;return n==="more"&&(i=this.loadedPages.length*this.perPage),(n==="all"||n==="more")&&(t=this.firstPageRendered*this.perPage*this.rowHeight,e=Math.max(0,(i-(this.lastPageRendered+1)*this.perPage)*this.rowHeight)),{top:Math.max(0,t),bottom:Math.max(0,e)}},columnSpecs(){return this.columns?this.columns.map(t=>this.buildColumnSpec(t)):[]},rect(){return this.$refs.container.getBoundingClientRect()},somePageIsLoading(){return this.loadedPages.map(t=>t.loading).some(t=>t)}},methods:{itemToId(t){return t?this.primaryKey?t[this.primaryKey]:t:null},scrollTo(t=0,e){let n="auto";if(e){let i=this.$refs.container.scrollTop,s=this.perPage*this.rowHeight+1;n=Math.abs(i-t)<s?"smooth":"auto"}this.$refs.container.scrollTo({top:t,behavior:n})},gotoPage(t,e){if(t=Math.max(0,Math.min(this.pagesCount,t)),this.display==="paged"){this.setViewablePages(t,t,t),this.scrollTo(0,!0);return}this.display==="more"?this.setViewablePages(t-1,t,t):this.setViewablePages(t,t,t);let n=t*this.rowHeight*this.perPage;this.scrollTo(n,e)},async loadMore(t){let e=this.loadedPages[this.loadedPages.length-1];if(!e||e.loading)return!1;let n=this.loadedPages.length;this.setViewablePages(this.firstPage,n),t&&this.snapToPageOnMore&&Rce&&setTimeout(()=>this.gotoPage(n,!0),100)},reload(){this.id++,this.fetching=0,this.firstPage=null,this.lastPage=null,this.totalCount=null,this.loadedPages=[],this.includedIds=[],this.excludedIds=[],this.gotoPage(0),this.computeVisibleRows()},reloadFailedPages(){let t=0;for(let e=this.firstPageRendered;e<=this.lastPageRendered&&!(!(!this.loadedPages[e]||!this.loadedPages[e].failed)&&(this.$set(this.loadedPages,e,null),this.fetchPage(e),++t>=Pce));e++);},onScroll(){if(!(this.getScrollSpeed()>zce)&&!this._scrollDebounce)return this.computeVisibleRows();clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>{this.computeVisibleRows(),this._scrollDebounce=null},Lce)},getScrollSpeed(){let t=this._lastOffsetY||0,e=this._lastOffsetYTime||0,n=this._lastOffsetY=this.$refs.container.scrollTop,i=this._lastOffsetYTime=Date.now();return Math.abs(1e3*(t-n)/(i-e))},computeVisibleRows(){let t=this.$refs.container.scrollTop,e=this.$refs.container.scrollLeft,n=this.lastComputedOffsetY;this.scrollAtTop=t===0,this.scrollAtLeft=e===0;let i=Math.abs(n-t);if(t>2&&n>2&&i<150||(this.lastComputedOffsetY=t,this.display==="paged"))return;let o=this.rect.height-this.headerHeight,u=Math.max(0,Math.floor(t/this.rowHeight)),d=Math.ceil(o/this.rowHeight),f=u+d,p=this.extraRows,v=this.perPage,y=Math.floor((u-p)/this.perPage),M=Math.floor((f+p)/v),b=M>=this.pagesCount-1?d:d/2,x=Math.floor((u+b)/this.perPage);if(this.display==="more"){for(y=Math.min(y,this.lastLoadedPage);!this.loadedPages[y]&&y>0;)y--;for(M=Math.max(M,y);!this.loadedPages[M]&&M>y&&M>0;)M--}this.setViewablePages(y,M,x)},setViewablePages(t=0,e=0,n=0){this.display==="paged"&&(e=t),t=Math.min(Math.max(t,0),this.pagesCount-1),e=Math.min(Math.max(e,t),this.pagesCount-1),n=Math.min(e,Math.max(t,n||0));let i=t!==this.firstPage||e!==this.lastPage;this.firstPage=t,this.lastPage=e,this.currentPage=n,i&&this.scheduleFeching()},buildColumnSpec(t){if(!this.schema.fields)throw new Error("Missing schema.fields!");const e=this.schema.fields.find(i=>i.path===t.path);if(!e)throw new Error(`Missing field schema for path ${t.path}`);const n=this.$L.FieldTypeComponents.get(e,"default");return Object.assign({},e,{width:t.width||null,sortable:e?e.sortable:!1,sticky:e&&e.sticky||t.sticky||!1,align:e&&e.align||"left",column:t,field:e,component:n})},changeSelection({key:t,selected:e}){const{includedIds:n,excludedIds:i}=kce({key:t,selected:e},this);this.includedIds=n,this.excludedIds=i,this.$nextTick(()=>{this.$emit("changeSelection",{includedIds:this.includedIds,excludedIds:this.excludedIds,selectionCount:this.selectionCount,totalCount:this.totalCount})})},scheduleFeching(){for(let t=this.firstPage;t<=this.lastPage;t++)this.fetchPage(t)},async fetchPage(t){let e=this.loadedPages[t];if(e)return e;e=this.$set(this.loadedPages,t,{id:this.id,index:t,startedAt:Date.now(),duration:null,loading:!0,loaded:!1,failed:!1,error:null,data:null});try{this.fetching++;const{hits:n,total:i}=await this.resolvePageData(t);Object.assign(e,{duration:Date.now()-e.startedAt,loading:!1,loaded:!0,data:n});let s=this.loadedPages.indexOf(e)>=0;i!==void 0&&s&&(this.totalCount=i)}catch(n){console.error("LTable","Failed to call `fetch` callback",n),Object.assign(e,{loading:!1,failed:!0,error:n.toString()})}finally{this.id===e.id&&this.fetching--}return e},async resolvePageData(t){if(this.rows){let e=this.perPage,n=t*e;return{data:this.rows.slice(n,n+e),total:this.rows.length}}else{if(this.fetch)return await this.fetch({page:t,offset:t*this.perPage,limit:this.perPage,schema:this.schema,columns:this.columns,perPage:this.perPage,primaryKey:this.primaryKey});throw new Error("Cannot discover data. Either `rows` or `fetch` property must be assigned to table")}}}};var Bce=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"l-table-container",class:e.contentClasses,style:e.contentStyle,on:{scroll:e.onScroll}},[n("table",{staticClass:"l-table-table",attrs:{border:"0"}},[n("caption",{staticStyle:{display:"none"}},[e._v("Table Header")]),n("LTableHeader",{attrs:{height:e.headerHeight,selectable:e.selectable,columnSpecs:e.columnSpecs,loading:!!e.fetching,total:e.totalCount,includedIds:e.includedIds,excludedIds:e.excludedIds,multiselect:e.multiselect},on:{selected:function(i){return e.changeSelection(i)}}}),n("LTableBodySpacer",{attrs:{height:e.spacing.top}}),e._l(e.visiblePages,function(i){return n("LTableBody",{key:i.index,attrs:{page:i,perPage:e.perPage,pagesCount:e.pagesCount,totalCount:e.totalCount,selectable:e.selectable,clickable:e.clickable,columnSpecs:e.columnSpecs,includedIds:e.includedIds,excludedIds:e.excludedIds,multiselect:e.multiselect},on:{"click-item":function(s){return e.$emit("click-item",s)},selected:function(s){return e.changeSelection(s)}}})}),n("LTableBodySpacer",{attrs:{height:e.spacing.bottom}})],2),e.isLoadMoreVisible?n("LTableLoadMore",{attrs:{automatic:e.autoLoadMore},on:{click:function(i){return e.loadMore(!0)},appeared:function(i){return e.loadMore()}}}):e._e(),n("LTableEndspace"),n("transition",{attrs:{name:"scale-up"}},[e.hasVisibleFailedPages?n("LTableReloader",{on:{reload:function(i){return e.reloadFailedPages()}}}):e._e()],1),e.isPaginationVisible?n("LTablePagination",{attrs:{currentPage:e.currentPage,pagesCount:e.pagesCount,totalCount:e.totalCount},on:{goto:function(i){return e.gotoPage(i)}}}):e._e()],1)},Uce=[],Vce=Qe(Fce,Bce,Uce,!1,null,null,null,null);const Yce=Vce.exports,Hce=Object.freeze(Object.defineProperty({__proto__:null,default:Yce},Symbol.toStringTag,{value:"Module"})),hIe="",Wce={tagName:"l-tabs",extends:Nt.Tabs,methods:{calcPaneInstances(t=!1){if(this.$slots.default){const n=this.$slots.default.filter(s=>s.tag&&s.componentOptions&&s.componentOptions.Ctor.options.tagName==="l-tab-pane").map(({componentInstance:s})=>s),i=!(n.length===this.panes.length&&n.every((s,o)=>s===this.panes[o]));(t||i)&&(this.panes=n)}else this.panes.length!==0&&(this.panes=[])}}};var Qce=Qe(Wce,null,null,!1,null,null,null,null);const Gce=Qce.exports,Kce=Object.freeze(Object.defineProperty({__proto__:null,default:Gce},Symbol.toStringTag,{value:"Module"})),qce={tagName:"l-target-chip",name:"LTargetChip",props:{kind:{type:String,required:!0},closeable:{type:Boolean,default:!1},name:{type:String,required:!0},count:{type:Number}},computed:{color:function(){return{member:"purple",group:"aqua",user:"link",tag:"warning",community:"danger",role:"lead-light"}[this.kind]||"lead"},icon:function(){return{member:"uil-graduation-cap",group:"uil-users-alt",user:"uil-user",tag:"uil-tag-alt",role:"uil-user",community:"uil-channel"}[this.kind]}}};var Xce=function(){var e=this,n=e._self._c;return n("l-chip",{staticStyle:{height:"24px"},attrs:{bold:"",fill:"",color:e.color,icon:e.icon}},[n("div",{staticClass:"l-d-flex l-align-items"},[e._v(" "+e._s(e.count)+" "+e._s(e.name)+" "),e.closeable?n("l-icon",{staticClass:"l-d-flex l-align-items-center ml-1 mr-0",staticStyle:{cursor:"pointer"},attrs:{size:"15"},on:{click:function(i){return e.$emit("remove")}}},[e._v(" uis-times-circle ")]):e._e()],1)])},Zce=[],Jce=Qe(qce,Xce,Zce,!1,null,null,null,null);const ede=Jce.exports,tde=Object.freeze(Object.defineProperty({__proto__:null,default:ede},Symbol.toStringTag,{value:"Module"})),gIe="",nde={tagName:"l-target-input",name:"LTargetInput",props:{topics:{type:Array,required:!0},limit:{type:Number,default:3},editable:{type:Boolean,default:!1}},computed:{topicsToShow(){return this.topics.slice(0,this.limit)},moreTopicsText(){const t=this.topics.length-this.limit>1;return`+ ${this.topics.length-this.limit} destinatário`+(t?"s":"")}}};var ide=function(){var e=this,n=e._self._c;return e.topics&&e.topics.length?n("div",{class:"l-target-input"+(e.editable?" editable":"")},[e._l(e.topicsToShow,function(i){return n("l-target-chip",{key:i.id,staticClass:"mr-2 mb-2",attrs:{kind:i.kind,name:i.name}})}),e.topics.length>this.limit?n("l-chip",{staticClass:"mb-2",attrs:{color:"purple",fill:"","hide-icon":""}},[e._v(" "+e._s(e.moreTopicsText)+" ")]):e._e()],2):e._e()},rde=[],sde=Qe(nde,ide,rde,!1,null,"69080a2f",null,null);const ade=sde.exports,ode=Object.freeze(Object.defineProperty({__proto__:null,default:ade},Symbol.toStringTag,{value:"Module"}));function si(t){this.content=t}si.prototype={constructor:si,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var i=n&&n!=t?this.remove(n):this,s=i.find(t),o=i.content.slice();return s==-1?o.push(n||t,e):(o[s+1]=e,n&&(o[s]=n)),new si(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new si(n)},addToStart:function(t,e){return new si([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new si(n)},addBefore:function(t,e,n){var i=this.remove(e),s=i.content.slice(),o=i.find(t);return s.splice(o==-1?s.length:o,0,e,n),new si(s)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=si.from(t),t.size?new si(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=si.from(t),t.size?new si(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=si.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},si.from=function(t){if(t instanceof si)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new si(e)};function Z$(t,e,n){for(let i=0;;i++){if(i==t.childCount||i==e.childCount)return t.childCount==e.childCount?null:n;let s=t.child(i),o=e.child(i);if(s==o){n+=s.nodeSize;continue}if(!s.sameMarkup(o))return n;if(s.isText&&s.text!=o.text){for(let u=0;s.text[u]==o.text[u];u++)n++;return n}if(s.content.size||o.content.size){let u=Z$(s.content,o.content,n+1);if(u!=null)return u}n+=s.nodeSize}}function J$(t,e,n,i){for(let s=t.childCount,o=e.childCount;;){if(s==0||o==0)return s==o?null:{a:n,b:i};let u=t.child(--s),d=e.child(--o),f=u.nodeSize;if(u==d){n-=f,i-=f;continue}if(!u.sameMarkup(d))return{a:n,b:i};if(u.isText&&u.text!=d.text){let p=0,v=Math.min(u.text.length,d.text.length);for(;p<v&&u.text[u.text.length-p-1]==d.text[d.text.length-p-1];)p++,n--,i--;return{a:n,b:i}}if(u.content.size||d.content.size){let p=J$(u.content,d.content,n-1,i-1);if(p)return p}n-=f,i-=f}}class Ve{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let i=0;i<e.length;i++)this.size+=e[i].nodeSize}nodesBetween(e,n,i,s=0,o){for(let u=0,d=0;d<n;u++){let f=this.content[u],p=d+f.nodeSize;if(p>e&&i(f,s+d,o||null,u)!==!1&&f.content.size){let v=d+1;f.nodesBetween(Math.max(0,e-v),Math.min(f.content.size,n-v),i,s+v)}d=p}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,i,s){let o="",u=!0;return this.nodesBetween(e,n,(d,f)=>{d.isText?(o+=d.text.slice(Math.max(e,f)-f,n-f),u=!i):d.isLeaf?(s?o+=typeof s=="function"?s(d):s:d.type.spec.leafText&&(o+=d.type.spec.leafText(d)),u=!i):!u&&d.isBlock&&(o+=i,u=!0)},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,i=e.firstChild,s=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(i)&&(s[s.length-1]=n.withText(n.text+i.text),o=1);o<e.content.length;o++)s.push(e.content[o]);return new Ve(s,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let i=[],s=0;if(n>e)for(let o=0,u=0;u<n;o++){let d=this.content[o],f=u+d.nodeSize;f>e&&((u<e||f>n)&&(d.isText?d=d.cut(Math.max(0,e-u),Math.min(d.text.length,n-u)):d=d.cut(Math.max(0,e-u-1),Math.min(d.content.size,n-u-1))),i.push(d),s+=d.nodeSize),u=f}return new Ve(i,s)}cutByIndex(e,n){return e==n?Ve.empty:e==0&&n==this.content.length?this:new Ve(this.content.slice(e,n))}replaceChild(e,n){let i=this.content[e];if(i==n)return this;let s=this.content.slice(),o=this.size+n.nodeSize-i.nodeSize;return s[e]=n,new Ve(s,o)}addToStart(e){return new Ve([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ve(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,i=0;n<this.content.length;n++){let s=this.content[n];e(s,i,n),i+=s.nodeSize}}findDiffStart(e,n=0){return Z$(this,e,n)}findDiffEnd(e,n=this.size,i=e.size){return J$(this,e,n,i)}findIndex(e,n=-1){if(e==0)return bv(0,e);if(e==this.size)return bv(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let i=0,s=0;;i++){let o=this.child(i),u=s+o.nodeSize;if(u>=e)return u==e||n>0?bv(i+1,u):bv(i,s);s=u}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Ve.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ve(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ve.empty;let n,i=0;for(let s=0;s<e.length;s++){let o=e[s];i+=o.nodeSize,s&&o.isText&&e[s-1].sameMarkup(o)?(n||(n=e.slice(0,s)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Ve(n||e,i)}static from(e){if(!e)return Ve.empty;if(e instanceof Ve)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ve([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ve.empty=new Ve([],0);const qS={index:0,offset:0};function bv(t,e){return qS.index=t,qS.offset=e,qS}function _v(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!_v(t[i],e[i]))return!1}else{for(let i in t)if(!(i in e)||!_v(t[i],e[i]))return!1;for(let i in e)if(!(i in t))return!1}return!0}let nn=class xE{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,i=!1;for(let s=0;s<e.length;s++){let o=e[s];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,s));else{if(o.type.excludes(this.type))return e;!i&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,s)),n.push(this),i=!0),n&&n.push(o)}}return n||(n=e.slice()),i||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&_v(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=e.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);return i.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].eq(n[i]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return xE.none;if(e instanceof xE)return[e];let n=e.slice();return n.sort((i,s)=>i.type.rank-s.type.rank),n}};nn.none=[];class Mv extends Error{}class it{constructor(e,n,i){this.content=e,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let i=tL(this.content,e+this.openStart,n);return i&&new it(i,this.openStart,this.openEnd)}removeBetween(e,n){return new it(eL(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return it.empty;let i=n.openStart||0,s=n.openEnd||0;if(typeof i!="number"||typeof s!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new it(Ve.fromJSON(e,n.content),i,s)}static maxOpen(e,n=!0){let i=0,s=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)s++;return new it(e,i,s)}}it.empty=new it(Ve.empty,0,0);function eL(t,e,n){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i),{index:u,offset:d}=t.findIndex(n);if(s==e||o.isText){if(d!=n&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(i!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(i,o.copy(eL(o.content,e-s-1,n-s-1)))}function tL(t,e,n,i){let{index:s,offset:o}=t.findIndex(e),u=t.maybeChild(s);if(o==e||u.isText)return i&&!i.canReplace(s,s,n)?null:t.cut(0,e).append(n).append(t.cut(e));let d=tL(u.content,e-o-1,n);return d&&t.replaceChild(s,u.copy(d))}function lde(t,e,n){if(n.openStart>t.depth)throw new Mv("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mv("Inconsistent open depths");return nL(t,e,n,0)}function nL(t,e,n,i){let s=t.index(i),o=t.node(i);if(s==e.index(i)&&i<t.depth-n.openStart){let u=nL(t,e,n,i+1);return o.copy(o.content.replaceChild(s,u))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==i&&e.depth==i){let u=t.parent,d=u.content;return Wl(u,d.cut(0,t.parentOffset).append(n.content).append(d.cut(e.parentOffset)))}else{let{start:u,end:d}=ude(n,t);return Wl(o,rL(t,u,d,e,i))}else return Wl(o,xv(t,e,i))}function iL(t,e){if(!e.type.compatibleContent(t.type))throw new Mv("Cannot join "+e.type.name+" onto "+t.type.name)}function XS(t,e,n){let i=t.node(n);return iL(i,e.node(n)),i}function Hl(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function dh(t,e,n,i){let s=(e||t).node(n),o=0,u=e?e.index(n):s.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(Hl(t.nodeAfter,i),o++));for(let d=o;d<u;d++)Hl(s.child(d),i);e&&e.depth==n&&e.textOffset&&Hl(e.nodeBefore,i)}function Wl(t,e){return t.type.checkContent(e),t.copy(e)}function rL(t,e,n,i,s){let o=t.depth>s&&XS(t,e,s+1),u=i.depth>s&&XS(n,i,s+1),d=[];return dh(null,t,s,d),o&&u&&e.index(s)==n.index(s)?(iL(o,u),Hl(Wl(o,rL(t,e,n,i,s+1)),d)):(o&&Hl(Wl(o,xv(t,e,s+1)),d),dh(e,n,s,d),u&&Hl(Wl(u,xv(n,i,s+1)),d)),dh(i,null,s,d),new Ve(d)}function xv(t,e,n){let i=[];if(dh(null,t,n,i),t.depth>n){let s=XS(t,e,n+1);Hl(Wl(s,xv(t,e,n+1)),i)}return dh(e,null,n,i),new Ve(i)}function ude(t,e){let n=e.depth-t.openStart,s=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)s=e.node(o).copy(Ve.from(s));return{start:s.resolveNoCache(t.openStart+n),end:s.resolveNoCache(s.content.size-t.openEnd-n)}}class fh{constructor(e,n,i){this.pos=e,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let i=this.pos-this.path[this.path.length-1],s=e.child(n);return i?e.child(n).cut(i):s}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let i=this.path[n*3],s=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)s+=i.child(o).nodeSize;return s}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return nn.none;if(this.textOffset)return e.child(n).marks;let i=e.maybeChild(n-1),s=e.maybeChild(n);if(!i){let d=i;i=s,s=d}let o=i.marks;for(var u=0;u<o.length;u++)o[u].type.spec.inclusive===!1&&(!s||!o[u].isInSet(s.marks))&&(o=o[u--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,s=e.parent.maybeChild(e.index());for(var o=0;o<i.length;o++)i[o].type.spec.inclusive===!1&&(!s||!i[o].isInSet(s.marks))&&(i=i[o--].removeFromSet(i));return i}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);i>=0;i--)if(e.pos<=this.end(i)&&(!n||n(this.node(i))))return new Cv(this,e,i);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let i=[],s=0,o=n;for(let u=e;;){let{index:d,offset:f}=u.content.findIndex(o),p=o-f;if(i.push(u,d,s+f),!p||(u=u.child(d),u.isText))break;o=p-1,s+=f+1}return new fh(n,i,o)}static resolveCached(e,n){for(let s=0;s<ZS.length;s++){let o=ZS[s];if(o.pos==n&&o.doc==e)return o}let i=ZS[JS]=fh.resolve(e,n);return JS=(JS+1)%cde,i}}let ZS=[],JS=0,cde=12;class Cv{constructor(e,n,i){this.$from=e,this.$to=n,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const dde=Object.create(null);let Ql=class CE{constructor(e,n,i,s=nn.none){this.type=e,this.attrs=n,this.marks=s,this.content=i||Ve.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,i,s=0){this.content.nodesBetween(e,n,i,s,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,i,s){return this.content.textBetween(e,n,i,s)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,i){return this.type==e&&_v(this.attrs,n||e.defaultAttrs||dde)&&nn.sameSet(this.marks,i||nn.none)}copy(e=null){return e==this.content?this:new CE(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new CE(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,i=!1){if(e==n)return it.empty;let s=this.resolve(e),o=this.resolve(n),u=i?0:s.sharedDepth(n),d=s.start(u),p=s.node(u).content.cut(s.pos-d,o.pos-d);return new it(p,s.depth-u,o.depth-u)}replace(e,n,i){return lde(this.resolve(e),this.resolve(n),i)}nodeAt(e){for(let n=this;;){let{index:i,offset:s}=n.content.findIndex(e);if(n=n.maybeChild(i),!n)return null;if(s==e||n.isText)return n;e-=s+1}}childAfter(e){let{index:n,offset:i}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(e);if(i<e)return{node:this.content.child(n),index:n,offset:i};let s=this.content.child(n-1);return{node:s,index:n-1,offset:i-s.nodeSize}}resolve(e){return fh.resolveCached(this,e)}resolveNoCache(e){return fh.resolve(this,e)}rangeHasMark(e,n,i){let s=!1;return n>e&&this.nodesBetween(e,n,o=>(i.isInSet(o.marks)&&(s=!0),!s)),s}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),sL(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,i=Ve.empty,s=0,o=i.childCount){let u=this.contentMatchAt(e).matchFragment(i,s,o),d=u&&u.matchFragment(this.content,n);if(!d||!d.validEnd)return!1;for(let f=s;f<o;f++)if(!this.type.allowsMarks(i.child(f).marks))return!1;return!0}canReplaceWith(e,n,i,s){if(s&&!this.type.allowsMarks(s))return!1;let o=this.contentMatchAt(e).matchType(i),u=o&&o.matchFragment(this.content,n);return u?u.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=nn.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!nn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,i)}let s=Ve.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,s,i)}};Ql.prototype.text=void 0;class Sv extends Ql{constructor(e,n,i,s){if(super(e,n,null,s),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):sL(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Sv(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Sv(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function sL(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Gl{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let i=new fde(e,n);if(i.next==null)return Gl.empty;let s=aL(i);i.next&&i.err("Unexpected trailing text");let o=bde(yde(s));return _de(o,i),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,i=e.childCount){let s=this;for(let o=n;s&&o<i;o++)s=s.matchType(e.child(o).type);return s}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let i=0;i<e.next.length;i++)if(this.next[n].type==e.next[i].type)return!0;return!1}fillBefore(e,n=!1,i=0){let s=[this];function o(u,d){let f=u.matchFragment(e,i);if(f&&(!n||f.validEnd))return Ve.from(d.map(p=>p.createAndFill()));for(let p=0;p<u.next.length;p++){let{type:v,next:y}=u.next[p];if(!(v.isText||v.hasRequiredAttrs())&&s.indexOf(y)==-1){s.push(y);let M=o(y,d.concat(v));if(M)return M}}return null}return o(this,[])}findWrapping(e){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==e)return this.wrapCache[i+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let s=i.shift(),o=s.match;if(o.matchType(e)){let u=[];for(let d=s;d.type;d=d.via)u.push(d.type);return u.reverse()}for(let u=0;u<o.next.length;u++){let{type:d,next:f}=o.next[u];!d.isLeaf&&!d.hasRequiredAttrs()&&!(d.name in n)&&(!s.type||f.validEnd)&&(i.push({match:d.contentMatch,type:d,via:s}),n[d.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(i){e.push(i);for(let s=0;s<i.next.length;s++)e.indexOf(i.next[s].next)==-1&&n(i.next[s].next)}return n(this),e.map((i,s)=>{let o=s+(i.validEnd?"*":" ")+" ";for(let u=0;u<i.next.length;u++)o+=(u?", ":"")+i.next[u].type.name+"->"+e.indexOf(i.next[u].next);return o}).join(`
163
163
  `)}}Gl.empty=new Gl(!0);class fde{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function aL(t){let e=[];do e.push(hde(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function hde(t){let e=[];do e.push(pde(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function pde(t){let e=vde(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=mde(t,e);else break;return e}function oL(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function mde(t,e){let n=oL(t),i=n;return t.eat(",")&&(t.next!="}"?i=oL(t):i=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:e}}function gde(t,e){let n=t.nodeTypes,i=n[e];if(i)return[i];let s=[];for(let o in n){let u=n[o];u.groups.indexOf(e)>-1&&s.push(u)}return s.length==0&&t.err("No node type or group '"+e+"' found"),s}function vde(t){if(t.eat("(")){let e=aL(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=gde(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function yde(t){let e=[[]];return s(o(t,0),n()),e;function n(){return e.push([])-1}function i(u,d,f){let p={term:f,to:d};return e[u].push(p),p}function s(u,d){u.forEach(f=>f.to=d)}function o(u,d){if(u.type=="choice")return u.exprs.reduce((f,p)=>f.concat(o(p,d)),[]);if(u.type=="seq")for(let f=0;;f++){let p=o(u.exprs[f],d);if(f==u.exprs.length-1)return p;s(p,d=n())}else if(u.type=="star"){let f=n();return i(d,f),s(o(u.expr,f),f),[i(f)]}else if(u.type=="plus"){let f=n();return s(o(u.expr,d),f),s(o(u.expr,f),f),[i(f)]}else{if(u.type=="opt")return[i(d)].concat(o(u.expr,d));if(u.type=="range"){let f=d;for(let p=0;p<u.min;p++){let v=n();s(o(u.expr,f),v),f=v}if(u.max==-1)s(o(u.expr,f),f);else for(let p=u.min;p<u.max;p++){let v=n();i(f,v),s(o(u.expr,f),v),f=v}return[i(f)]}else{if(u.type=="name")return[i(d,void 0,u.value)];throw new Error("Unknown expr type")}}}}function lL(t,e){return e-t}function uL(t,e){let n=[];return i(e),n.sort(lL);function i(s){let o=t[s];if(o.length==1&&!o[0].term)return i(o[0].to);n.push(s);for(let u=0;u<o.length;u++){let{term:d,to:f}=o[u];!d&&n.indexOf(f)==-1&&i(f)}}}function bde(t){let e=Object.create(null);return n(uL(t,0));function n(i){let s=[];i.forEach(u=>{t[u].forEach(({term:d,to:f})=>{if(!d)return;let p;for(let v=0;v<s.length;v++)s[v][0]==d&&(p=s[v][1]);uL(t,f).forEach(v=>{p||s.push([d,p=[]]),p.indexOf(v)==-1&&p.push(v)})})});let o=e[i.join(",")]=new Gl(i.indexOf(t.length-1)>-1);for(let u=0;u<s.length;u++){let d=s[u][1].sort(lL);o.next.push({type:s[u][0],next:e[d.join(",")]||n(d)})}return o}}function _de(t,e){for(let n=0,i=[t];n<i.length;n++){let s=i[n],o=!s.validEnd,u=[];for(let d=0;d<s.next.length;d++){let{type:f,next:p}=s.next[d];u.push(f.name),o&&!(f.isText||f.hasRequiredAttrs())&&(o=!1),i.indexOf(p)==-1&&i.push(p)}o&&e.err("Only non-generatable nodes ("+u.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cL(t){let e=Object.create(null);for(let n in t){let i=t[n];if(!i.hasDefault)return null;e[n]=i.default}return e}function dL(t,e){let n=Object.create(null);for(let i in t){let s=e&&e[i];if(s===void 0){let o=t[i];if(o.hasDefault)s=o.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=s}return n}function fL(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new Mde(t[n]);return e}let hL=class SU{constructor(e,n,i){this.name=e,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=fL(i.attrs),this.defaultAttrs=cL(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Gl.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:dL(this.attrs,e)}create(e=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ql(this,this.computeAttrs(e),Ve.from(n),nn.setFrom(i))}createChecked(e=null,n,i){return n=Ve.from(n),this.checkContent(n),new Ql(this,this.computeAttrs(e),n,nn.setFrom(i))}createAndFill(e=null,n,i){if(e=this.computeAttrs(e),n=Ve.from(n),n.size){let u=this.contentMatch.fillBefore(n);if(!u)return null;n=u.append(n)}let s=this.contentMatch.matchFragment(n),o=s&&s.fillBefore(Ve.empty,!0);return o?new Ql(this,e,n.append(o),nn.setFrom(i)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let i=0;i<e.childCount;i++)if(!this.allowsMarks(e.child(i).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let i=0;i<e.length;i++)this.allowsMarkType(e[i].type)?n&&n.push(e[i]):n||(n=e.slice(0,i));return n?n.length?n:nn.none:e}static compile(e,n){let i=Object.create(null);e.forEach((o,u)=>i[o]=new SU(o,n,u));let s=n.spec.topNode||"doc";if(!i[s])throw new RangeError("Schema is missing its top node type ('"+s+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};class Mde{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Tv{constructor(e,n,i,s){this.name=e,this.rank=n,this.schema=i,this.spec=s,this.attrs=fL(s.attrs),this.excluded=null;let o=cL(this.attrs);this.instance=o?new nn(this,o):null}create(e=null){return!e&&this.instance?this.instance:new nn(this,dL(this.attrs,e))}static compile(e,n){let i=Object.create(null),s=0;return e.forEach((o,u)=>i[o]=new Tv(o,s++,n,u)),i}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class xde{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let s in e)n[s]=e[s];n.nodes=si.from(e.nodes),n.marks=si.from(e.marks||{}),this.nodes=hL.compile(this.spec.nodes,this),this.marks=Tv.compile(this.spec.marks,this);let i=Object.create(null);for(let s in this.nodes){if(s in this.marks)throw new RangeError(s+" can not be both a node and a mark");let o=this.nodes[s],u=o.spec.content||"",d=o.spec.marks;o.contentMatch=i[u]||(i[u]=Gl.parse(u,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet=d=="_"?null:d?pL(this,d.split(" ")):d==""||!o.inlineContent?[]:null}for(let s in this.marks){let o=this.marks[s],u=o.spec.excludes;o.excluded=u==null?[o]:u==""?[]:pL(this,u.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,i,s){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof hL){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,i,s)}text(e,n){let i=this.nodes.text;return new Sv(i,i.defaultAttrs,e,nn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Ql.fromJSON(this,e)}markFromJSON(e){return nn.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function pL(t,e){let n=[];for(let i=0;i<e.length;i++){let s=e[i],o=t.marks[s],u=o;if(o)n.push(o);else for(let d in t.marks){let f=t.marks[d];(s=="_"||f.spec.group&&f.spec.group.split(" ").indexOf(s)>-1)&&n.push(u=f)}if(!u)throw new SyntaxError("Unknown mark type: '"+e[i]+"'")}return n}class Ac{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let i=new yL(this,n,!1);return i.addAll(e,n.from,n.to),i.finish()}parseSlice(e,n={}){let i=new yL(this,n,!0);return i.addAll(e,n.from,n.to),it.maxOpen(i.finish())}matchTag(e,n,i){for(let s=i?this.tags.indexOf(i)+1:0;s<this.tags.length;s++){let o=this.tags[s];if(Tde(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let u=o.getAttrs(e);if(u===!1)continue;o.attrs=u||void 0}return o}}}matchStyle(e,n,i,s){for(let o=s?this.styles.indexOf(s)+1:0;o<this.styles.length;o++){let u=this.styles[o],d=u.style;if(!(d.indexOf(e)!=0||u.context&&!i.matchesContext(u.context)||d.length>e.length&&(d.charCodeAt(e.length)!=61||d.slice(e.length+1)!=n))){if(u.getAttrs){let f=u.getAttrs(n);if(f===!1)continue;u.attrs=f||void 0}return u}}}static schemaRules(e){let n=[];function i(s){let o=s.priority==null?50:s.priority,u=0;for(;u<n.length;u++){let d=n[u];if((d.priority==null?50:d.priority)<o)break}n.splice(u,0,s)}for(let s in e.marks){let o=e.marks[s].spec.parseDOM;o&&o.forEach(u=>{i(u=bL(u)),u.mark||u.ignore||u.clearMark||(u.mark=s)})}for(let s in e.nodes){let o=e.nodes[s].spec.parseDOM;o&&o.forEach(u=>{i(u=bL(u)),u.node||u.ignore||u.mark||(u.node=s)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ac(e,Ac.schemaRules(e)))}}const mL={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Cde={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},gL={ol:!0,ul:!0},Dv=1,wv=2,hh=4;function vL(t,e,n){return e!=null?(e?Dv:0)|(e==="full"?wv:0):t&&t.whitespace=="pre"?Dv|wv:n&~hh}class Nv{constructor(e,n,i,s,o,u,d){this.type=e,this.attrs=n,this.marks=i,this.pendingMarks=s,this.solid=o,this.options=d,this.content=[],this.activeMarks=nn.none,this.stashMarks=[],this.match=u||(d&hh?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ve.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,s;return(s=i.findWrapping(e.type))?(this.match=i,s):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Dv)){let i=this.content[this.content.length-1],s;if(i&&i.isText&&(s=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==s[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-s[0].length))}}let n=Ve.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Ve.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,i=this.pendingMarks;n<i.length;n++){let s=i[n];(this.type?this.type.allowsMarkType(s.type):wde(s.type,e))&&!s.isInSet(this.activeMarks)&&(this.activeMarks=s.addToSet(this.activeMarks),this.pendingMarks=s.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!mL.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class yL{constructor(e,n,i){this.parser=e,this.options=n,this.isOpen=i,this.open=0;let s=n.topNode,o,u=vL(null,n.preserveWhitespace,0)|(i?hh:0);s?o=new Nv(s.type,s.attrs,nn.none,nn.none,!0,n.topMatch||s.type.contentMatch,u):i?o=new Nv(null,null,nn.none,nn.none,!0,null,u):o=new Nv(e.schema.topNodeType,null,nn.none,nn.none,!0,null,u),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let i=e.getAttribute("style");if(!i)return n();let s=this.readStyles(Dde(i));if(!s)return;let[o,u]=s,d=this.top;for(let f=0;f<u.length;f++)this.removePendingMark(u[f],d);for(let f=0;f<o.length;f++)this.addPendingMark(o[f]);n();for(let f=0;f<o.length;f++)this.removePendingMark(o[f],d);for(let f=0;f<u.length;f++)this.addPendingMark(u[f])}addTextNode(e){let n=e.nodeValue,i=this.top;if(i.options&wv||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i.options&Dv)i.options&wv?n=n.replace(/\r\n?/g,`
164
164
  `):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],o=e.previousSibling;(!s||o&&o.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let i=e.nodeName.toLowerCase(),s;gL.hasOwnProperty(i)&&this.parser.normalizeLists&&Sde(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));if(o?o.ignore:Cde.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let u,d=this.top,f=this.needsBlock;if(mL.hasOwnProperty(i))d.content.length&&d.content[0].isInline&&this.open&&(this.open--,d=this.top),u=!0,d.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}o&&o.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),u&&this.sync(d),this.needsBlock=f}else this.withStyleRules(e,()=>{this.addElementByRule(e,o,o.consuming===!1?s:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
165
165
  `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=nn.none,i=nn.none;for(let s=0;s<e.length;s+=2)for(let o=void 0;;){let u=this.parser.matchStyle(e[s],e[s+1],this,o);if(!u)break;if(u.ignore)return null;if(u.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(d=>{u.clearMark(d)&&(i=d.addToSet(i))}):n=this.parser.schema.marks[u.mark].create(u.attrs).addToSet(n),u.consuming===!1)o=u;else break}return[n,i]}addElementByRule(e,n,i){let s,o,u;n.node?(o=this.parser.schema.nodes[n.node],o.isLeaf?this.insertNode(o.create(n.attrs))||this.leafFallback(e):s=this.enter(o,n.attrs||null,n.preserveWhitespace)):(u=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(u));let d=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(f=>this.insertNode(f));else{let f=e;typeof n.contentElement=="string"?f=e.querySelector(n.contentElement):typeof n.contentElement=="function"?f=n.contentElement(e):n.contentElement&&(f=n.contentElement),this.findAround(e,f,!0),this.addAll(f)}s&&this.sync(d)&&this.open--,u&&this.removePendingMark(u,d)}addAll(e,n,i){let s=n||0;for(let o=n?e.childNodes[n]:e.firstChild,u=i==null?null:e.childNodes[i];o!=u;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o);this.findAtPoint(e,s)}findPlace(e){let n,i;for(let s=this.open;s>=0;s--){let o=this.nodes[s],u=o.findWrapping(e);if(u&&(!n||n.length>u.length)&&(n=u,i=o,!u.length)||o.solid)break}if(!n)return!1;this.sync(i);for(let s=0;s<n.length;s++)this.enterInner(n[s],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let i=n.activeMarks;for(let s=0;s<e.marks.length;s++)(!n.type||n.type.allowsMarkType(e.marks[s].type))&&(i=e.marks[s].addToSet(i));return n.content.push(e.mark(i)),!0}return!1}enter(e,n,i){let s=this.findPlace(e.create(n));return s&&this.enterInner(e,n,!0,i),s}enterInner(e,n=null,i=!1,s){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let u=vL(e,s,o.options);o.options&hh&&o.content.length==0&&(u|=hh),this.nodes.push(new Nv(e,n,o.activeMarks,o.pendingMarks,i,null,u)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let s=i.length-1;s>=0;s--)e+=i[s].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==e&&this.find[i].offset==n&&(this.find[i].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,i){if(e!=n&&this.find)for(let s=0;s<this.find.length;s++)this.find[s].pos==null&&e.nodeType==1&&e.contains(this.find[s].node)&&n.compareDocumentPosition(this.find[s].node)&(i?2:4)&&(this.find[s].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),i=this.options.context,s=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),o=-(i?i.depth+1:0)+(s?0:1),u=(d,f)=>{for(;d>=0;d--){let p=n[d];if(p==""){if(d==n.length-1||d==0)continue;for(;f>=o;f--)if(u(d-1,f))return!0;return!1}else{let v=f>0||f==0&&s?this.nodes[f].type:i&&f>=o?i.node(f-o).type:null;if(!v||v.name!=p&&v.groups.indexOf(p)==-1)return!1;f--}}return!0};return u(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(e){let n=Nde(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let i=this.open;i>=0;i--){let s=this.nodes[i];if(s.pendingMarks.lastIndexOf(e)>-1)s.pendingMarks=e.removeFromSet(s.pendingMarks);else{s.activeMarks=e.removeFromSet(s.activeMarks);let u=s.popFromStashMark(e);u&&s.type&&s.type.allowsMarkType(u.type)&&(s.activeMarks=u.addToSet(s.activeMarks))}if(s==n)break}}}function Sde(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let i=e.nodeType==1?e.nodeName.toLowerCase():null;i&&gL.hasOwnProperty(i)&&n?(n.appendChild(e),e=n):i=="li"?n=e:i&&(n=null)}}function Tde(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Dde(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,i=[];for(;n=e.exec(t);)i.push(n[1],n[2].trim());return i}function bL(t){let e={};for(let n in t)e[n]=t[n];return e}function wde(t,e){let n=e.schema.nodes;for(let i in n){let s=n[i];if(!s.allowsMarkType(t))continue;let o=[],u=d=>{o.push(d);for(let f=0;f<d.edgeCount;f++){let{type:p,next:v}=d.edge(f);if(p==e||o.indexOf(v)<0&&u(v))return!0}};if(u(s.contentMatch))return!0}}function Nde(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class sa{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},i){i||(i=e1(n).createDocumentFragment());let s=i,o=[];return e.forEach(u=>{if(o.length||u.marks.length){let d=0,f=0;for(;d<o.length&&f<u.marks.length;){let p=u.marks[f];if(!this.marks[p.type.name]){f++;continue}if(!p.eq(o[d][0])||p.type.spec.spanning===!1)break;d++,f++}for(;d<o.length;)s=o.pop()[1];for(;f<u.marks.length;){let p=u.marks[f++],v=this.serializeMark(p,u.isInline,n);v&&(o.push([p,s]),s.appendChild(v.dom),s=v.contentDOM||v.dom)}}s.appendChild(this.serializeNodeInner(u,n))}),i}serializeNodeInner(e,n){let{dom:i,contentDOM:s}=sa.renderSpec(e1(n),this.nodes[e.type.name](e));if(s){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,s)}return i}serializeNode(e,n={}){let i=this.serializeNodeInner(e,n);for(let s=e.marks.length-1;s>=0;s--){let o=this.serializeMark(e.marks[s],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(e,n,i={}){let s=this.marks[e.type.name];return s&&sa.renderSpec(e1(i),s(e,n))}static renderSpec(e,n,i=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let s=n[0],o=s.indexOf(" ");o>0&&(i=s.slice(0,o),s=s.slice(o+1));let u,d=i?e.createElementNS(i,s):e.createElement(s),f=n[1],p=1;if(f&&typeof f=="object"&&f.nodeType==null&&!Array.isArray(f)){p=2;for(let v in f)if(f[v]!=null){let y=v.indexOf(" ");y>0?d.setAttributeNS(v.slice(0,y),v.slice(y+1),f[v]):d.setAttribute(v,f[v])}}for(let v=p;v<n.length;v++){let y=n[v];if(y===0){if(v<n.length-1||v>p)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else{let{dom:M,contentDOM:b}=sa.renderSpec(e,y,i);if(d.appendChild(M),b){if(u)throw new RangeError("Multiple content holes");u=b}}}return{dom:d,contentDOM:u}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new sa(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=_L(e.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(e){return _L(e.marks)}}function _L(t){let e={};for(let n in t){let i=t[n].spec.toDOM;i&&(e[n]=i)}return e}function e1(t){return t.document||window.document}const ML=65535,xL=Math.pow(2,16);function kde(t,e){return t+e*xL}function CL(t){return t&ML}function Ode(t){return(t-(t&ML))/xL}const SL=1,TL=2,kv=4,DL=8;class t1{constructor(e,n,i){this.pos=e,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&DL)>0}get deletedBefore(){return(this.delInfo&(SL|kv))>0}get deletedAfter(){return(this.delInfo&(TL|kv))>0}get deletedAcross(){return(this.delInfo&kv)>0}}class wr{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&wr.empty)return wr.empty}recover(e){let n=0,i=CL(e);if(!this.inverted)for(let s=0;s<i;s++)n+=this.ranges[s*3+2]-this.ranges[s*3+1];return this.ranges[i*3]+n+Ode(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,i){let s=0,o=this.inverted?2:1,u=this.inverted?1:2;for(let d=0;d<this.ranges.length;d+=3){let f=this.ranges[d]-(this.inverted?s:0);if(f>e)break;let p=this.ranges[d+o],v=this.ranges[d+u],y=f+p;if(e<=y){let M=p?e==f?-1:e==y?1:n:n,b=f+s+(M<0?0:v);if(i)return b;let x=e==(n<0?f:y)?null:kde(d/3,e-f),N=e==f?TL:e==y?SL:kv;return(n<0?e!=f:e!=y)&&(N|=DL),new t1(b,N,x)}s+=v-p}return i?e+s:new t1(e+s,0,null)}touches(e,n){let i=0,s=CL(n),o=this.inverted?2:1,u=this.inverted?1:2;for(let d=0;d<this.ranges.length;d+=3){let f=this.ranges[d]-(this.inverted?i:0);if(f>e)break;let p=this.ranges[d+o],v=f+p;if(e<=v&&d==s*3)return!0;i+=this.ranges[d+u]-p}return!1}forEach(e){let n=this.inverted?2:1,i=this.inverted?1:2;for(let s=0,o=0;s<this.ranges.length;s+=3){let u=this.ranges[s],d=u-(this.inverted?o:0),f=u+(this.inverted?0:o),p=this.ranges[s+n],v=this.ranges[s+i];e(d,d+p,f,f+v),o+=v-p}}invert(){return new wr(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?wr.empty:new wr(e<0?[0,-e,0]:[0,0,e])}}wr.empty=new wr([]);class jc{constructor(e=[],n,i=0,s=e.length){this.maps=e,this.mirror=n,this.from=i,this.to=s}slice(e=0,n=this.maps.length){return new jc(this.maps,this.mirror,e,n)}copy(){return new jc(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,i=this.maps.length;n<e.maps.length;n++){let s=e.getMirror(n);this.appendMap(e.maps[n],s!=null&&s<n?i+s:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,i=this.maps.length+e.maps.length;n>=0;n--){let s=e.getMirror(n);this.appendMap(e.maps[n].invert(),s!=null&&s>n?i-s-1:void 0)}}invert(){let e=new jc;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let i=this.from;i<this.to;i++)e=this.maps[i].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,i){let s=0;for(let o=this.from;o<this.to;o++){let u=this.maps[o],d=u.mapResult(e,n);if(d.recover!=null){let f=this.getMirror(o);if(f!=null&&f>o&&f<this.to){o=f,e=this.maps[f].recover(d.recover);continue}}s|=d.delInfo,e=d.pos}return i?e:new t1(e,s,null)}}const n1=Object.create(null);let xi=class{getMap(){return wr.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let i=n1[n.stepType];if(!i)throw new RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(e,n)}static jsonID(e,n){if(e in n1)throw new RangeError("Duplicate use of step JSON ID "+e);return n1[e]=n,n.prototype.jsonID=e,n}};class In{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new In(e,null)}static fail(e){return new In(null,e)}static fromReplace(e,n,i,s){try{return In.ok(e.replace(n,i,s))}catch(o){if(o instanceof Mv)return In.fail(o.message);throw o}}}function i1(t,e,n){let i=[];for(let s=0;s<t.childCount;s++){let o=t.child(s);o.content.size&&(o=o.copy(i1(o.content,e,o))),o.isInline&&(o=e(o,n,s)),i.push(o)}return Ve.fromArray(i)}class To extends xi{constructor(e,n,i){super(),this.from=e,this.to=n,this.mark=i}apply(e){let n=e.slice(this.from,this.to),i=e.resolve(this.from),s=i.node(i.sharedDepth(this.to)),o=new it(i1(n.content,(u,d)=>!u.isAtom||!d.type.allowsMarkType(this.mark.type)?u:u.mark(this.mark.addToSet(u.marks)),s),n.openStart,n.openEnd);return In.fromReplace(e,this.from,this.to,o)}invert(){return new aa(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new To(n.pos,i.pos,this.mark)}merge(e){return e instanceof To&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new To(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new To(n.from,n.to,e.markFromJSON(n.mark))}}xi.jsonID("addMark",To);class aa extends xi{constructor(e,n,i){super(),this.from=e,this.to=n,this.mark=i}apply(e){let n=e.slice(this.from,this.to),i=new it(i1(n.content,s=>s.mark(this.mark.removeFromSet(s.marks)),e),n.openStart,n.openEnd);return In.fromReplace(e,this.from,this.to,i)}invert(){return new To(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new aa(n.pos,i.pos,this.mark)}merge(e){return e instanceof aa&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new aa(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new aa(n.from,n.to,e.markFromJSON(n.mark))}}xi.jsonID("removeMark",aa);class Do extends xi{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return In.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return In.fromReplace(e,this.pos,this.pos+1,new it(Ve.from(i),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let s=0;s<n.marks.length;s++)if(!n.marks[s].isInSet(i))return new Do(this.pos,n.marks[s]);return new Do(this.pos,this.mark)}}return new $c(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Do(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Do(n.pos,e.markFromJSON(n.mark))}}xi.jsonID("addNodeMark",Do);class $c extends xi{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return In.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return In.fromReplace(e,this.pos,this.pos+1,new it(Ve.from(i),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Do(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new $c(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new $c(n.pos,e.markFromJSON(n.mark))}}xi.jsonID("removeNodeMark",$c);class ai extends xi{constructor(e,n,i,s=!1){super(),this.from=e,this.to=n,this.slice=i,this.structure=s}apply(e){return this.structure&&r1(e,this.from,this.to)?In.fail("Structure replace would overwrite content"):In.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new wr([this.from,this.to-this.from,this.slice.size])}invert(e){return new ai(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deletedAcross&&i.deletedAcross?null:new ai(n.pos,Math.max(n.pos,i.pos),this.slice)}merge(e){if(!(e instanceof ai)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?it.empty:new it(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ai(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?it.empty:new it(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ai(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ai(n.from,n.to,it.fromJSON(e,n.slice),!!n.structure)}}xi.jsonID("replace",ai);class qn extends xi{constructor(e,n,i,s,o,u,d=!1){super(),this.from=e,this.to=n,this.gapFrom=i,this.gapTo=s,this.slice=o,this.insert=u,this.structure=d}apply(e){if(this.structure&&(r1(e,this.from,this.gapFrom)||r1(e,this.gapTo,this.to)))return In.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return In.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?In.fromReplace(e,this.from,this.to,i):In.fail("Content does not fit in gap")}getMap(){return new wr([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new qn(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1),s=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||s<n.pos||o>i.pos?null:new qn(n.pos,i.pos,s,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new qn(n.from,n.to,n.gapFrom,n.gapTo,it.fromJSON(e,n.slice),n.insert,!!n.structure)}}xi.jsonID("replaceAround",qn);function r1(t,e,n){let i=t.resolve(e),s=n-e,o=i.depth;for(;s>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,s--;if(s>0){let u=i.node(o).maybeChild(i.indexAfter(o));for(;s>0;){if(!u||u.isLeaf)return!0;u=u.firstChild,s--}}return!1}function Ede(t,e,n,i){let s=[],o=[],u,d;t.doc.nodesBetween(e,n,(f,p,v)=>{if(!f.isInline)return;let y=f.marks;if(!i.isInSet(y)&&v.type.allowsMarkType(i.type)){let M=Math.max(p,e),b=Math.min(p+f.nodeSize,n),x=i.addToSet(y);for(let N=0;N<y.length;N++)y[N].isInSet(x)||(u&&u.to==M&&u.mark.eq(y[N])?u.to=b:s.push(u=new aa(M,b,y[N])));d&&d.to==M?d.to=b:o.push(d=new To(M,b,i))}}),s.forEach(f=>t.step(f)),o.forEach(f=>t.step(f))}function Ide(t,e,n,i){let s=[],o=0;t.doc.nodesBetween(e,n,(u,d)=>{if(!u.isInline)return;o++;let f=null;if(i instanceof Tv){let p=u.marks,v;for(;v=i.isInSet(p);)(f||(f=[])).push(v),p=v.removeFromSet(p)}else i?i.isInSet(u.marks)&&(f=[i]):f=u.marks;if(f&&f.length){let p=Math.min(d+u.nodeSize,n);for(let v=0;v<f.length;v++){let y=f[v],M;for(let b=0;b<s.length;b++){let x=s[b];x.step==o-1&&y.eq(s[b].style)&&(M=x)}M?(M.to=p,M.step=o):s.push({style:y,from:Math.max(d,e),to:p,step:o})}}}),s.forEach(u=>t.step(new aa(u.from,u.to,u.style)))}function Ade(t,e,n,i=n.contentMatch){let s=t.doc.nodeAt(e),o=[],u=e+1;for(let d=0;d<s.childCount;d++){let f=s.child(d),p=u+f.nodeSize,v=i.matchType(f.type);if(!v)o.push(new ai(u,p,it.empty));else{i=v;for(let y=0;y<f.marks.length;y++)n.allowsMarkType(f.marks[y].type)||t.step(new aa(u,p,f.marks[y]));if(f.isText&&!n.spec.code){let y,M=/\r?\n|\r/g,b;for(;y=M.exec(f.text);)b||(b=new it(Ve.from(n.schema.text(" ",n.allowedMarks(f.marks))),0,0)),o.push(new ai(u+y.index,u+y.index+y[0].length,b))}}u=p}if(!i.validEnd){let d=i.fillBefore(Ve.empty,!0);t.replace(u,u,new it(d,0,0))}for(let d=o.length-1;d>=0;d--)t.step(o[d])}function jde(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Lc(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let i=t.depth;;--i){let s=t.$from.node(i),o=t.$from.index(i),u=t.$to.indexAfter(i);if(i<t.depth&&s.canReplace(o,u,n))return i;if(i==0||s.type.spec.isolating||!jde(s,o,u))break}return null}function $de(t,e,n){let{$from:i,$to:s,depth:o}=e,u=i.before(o+1),d=s.after(o+1),f=u,p=d,v=Ve.empty,y=0;for(let x=o,N=!1;x>n;x--)N||i.index(x)>0?(N=!0,v=Ve.from(i.node(x).copy(v)),y++):f--;let M=Ve.empty,b=0;for(let x=o,N=!1;x>n;x--)N||s.after(x+1)<s.end(x)?(N=!0,M=Ve.from(s.node(x).copy(M)),b++):p++;t.step(new qn(f,p,u,d,new it(v.append(M),y,b),v.size-y,!0))}function s1(t,e,n=null,i=t){let s=Lde(t,e),o=s&&zde(i,e);return o?s.map(wL).concat({type:e,attrs:n}).concat(o.map(wL)):null}function wL(t){return{type:t,attrs:null}}function Lde(t,e){let{parent:n,startIndex:i,endIndex:s}=t,o=n.contentMatchAt(i).findWrapping(e);if(!o)return null;let u=o.length?o[0]:e;return n.canReplaceWith(i,s,u)?o:null}function zde(t,e){let{parent:n,startIndex:i,endIndex:s}=t,o=n.child(i),u=e.contentMatch.findWrapping(o.type);if(!u)return null;let f=(u.length?u[u.length-1]:e).contentMatch;for(let p=i;f&&p<s;p++)f=f.matchType(n.child(p).type);return!f||!f.validEnd?null:u}function Pde(t,e,n){let i=Ve.empty;for(let u=n.length-1;u>=0;u--){if(i.size){let d=n[u].type.contentMatch.matchFragment(i);if(!d||!d.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=Ve.from(n[u].type.create(n[u].attrs,i))}let s=e.start,o=e.end;t.step(new qn(s,o,s,o,new it(i,0,0),n.length,!0))}function Rde(t,e,n,i,s){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(u,d)=>{if(u.isTextblock&&!u.hasMarkup(i,s)&&Fde(t.doc,t.mapping.slice(o).map(d),i)){t.clearIncompatible(t.mapping.slice(o).map(d,1),i);let f=t.mapping.slice(o),p=f.map(d,1),v=f.map(d+u.nodeSize,1);return t.step(new qn(p,v,p+1,v-1,new it(Ve.from(i.create(s,null,u.marks)),0,0),1,!0)),!1}})}function Fde(t,e,n){let i=t.resolve(e),s=i.index();return i.parent.canReplaceWith(s,s+1,n)}function Bde(t,e,n,i,s){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let u=n.create(i,null,s||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,u);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new qn(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new it(Ve.from(u),0,0),1,!0))}function zc(t,e,n=1,i){let s=t.resolve(e),o=s.depth-n,u=i&&i[i.length-1]||s.parent;if(o<0||s.parent.type.spec.isolating||!s.parent.canReplace(s.index(),s.parent.childCount)||!u.type.validContent(s.parent.content.cutByIndex(s.index(),s.parent.childCount)))return!1;for(let p=s.depth-1,v=n-2;p>o;p--,v--){let y=s.node(p),M=s.index(p);if(y.type.spec.isolating)return!1;let b=y.content.cutByIndex(M,y.childCount),x=i&&i[v+1];x&&(b=b.replaceChild(0,x.type.create(x.attrs)));let N=i&&i[v]||y;if(!y.canReplace(M+1,y.childCount)||!N.type.validContent(b))return!1}let d=s.indexAfter(o),f=i&&i[0];return s.node(o).canReplaceWith(d,d,f?f.type:s.node(o+1).type)}function Ude(t,e,n=1,i){let s=t.doc.resolve(e),o=Ve.empty,u=Ve.empty;for(let d=s.depth,f=s.depth-n,p=n-1;d>f;d--,p--){o=Ve.from(s.node(d).copy(o));let v=i&&i[p];u=Ve.from(v?v.type.create(v.attrs,u):s.node(d).copy(u))}t.step(new ai(e,e,new it(o.append(u),n,n),!0))}function wo(t,e){let n=t.resolve(e),i=n.index();return NL(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function NL(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Ov(t,e,n=-1){let i=t.resolve(e);for(let s=i.depth;;s--){let o,u,d=i.index(s);if(s==i.depth?(o=i.nodeBefore,u=i.nodeAfter):n>0?(o=i.node(s+1),d++,u=i.node(s).maybeChild(d)):(o=i.node(s).maybeChild(d-1),u=i.node(s+1)),o&&!o.isTextblock&&NL(o,u)&&i.node(s).canReplace(d,d+1))return e;if(s==0)break;e=n<0?i.before(s):i.after(s)}}function Vde(t,e,n){let i=new ai(e-n,e+n,it.empty,!0);t.step(i)}function Yde(t,e,n){let i=t.resolve(e);if(i.parent.canReplaceWith(i.index(),i.index(),n))return e;if(i.parentOffset==0)for(let s=i.depth-1;s>=0;s--){let o=i.index(s);if(i.node(s).canReplaceWith(o,o,n))return i.before(s+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let s=i.depth-1;s>=0;s--){let o=i.indexAfter(s);if(i.node(s).canReplaceWith(o,o,n))return i.after(s+1);if(o<i.node(s).childCount)return null}return null}function Hde(t,e,n){let i=t.resolve(e);if(!n.content.size)return e;let s=n.content;for(let o=0;o<n.openStart;o++)s=s.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let u=i.depth;u>=0;u--){let d=u==i.depth?0:i.pos<=(i.start(u+1)+i.end(u+1))/2?-1:1,f=i.index(u)+(d>0?1:0),p=i.node(u),v=!1;if(o==1)v=p.canReplace(f,f,s);else{let y=p.contentMatchAt(f).findWrapping(s.firstChild.type);v=y&&p.canReplaceWith(f,f,y[0])}if(v)return d==0?i.pos:d<0?i.before(u+1):i.after(u+1)}return null}function a1(t,e,n=e,i=it.empty){if(e==n&&!i.size)return null;let s=t.resolve(e),o=t.resolve(n);return kL(s,o,i)?new ai(e,n,i):new Wde(s,o,i).fit()}function kL(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Wde{constructor(e,n,i){this.$from=e,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=Ve.empty;for(let s=0;s<=e.depth;s++){let o=e.node(s);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(s))})}for(let s=e.depth;s>0;s--)this.placed=Ve.from(e.node(s).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let p=this.findFittable();p?this.placeNodes(p):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,s=this.close(e<0?this.$to:i.doc.resolve(e));if(!s)return null;let o=this.placed,u=i.depth,d=s.depth;for(;u&&d&&o.childCount==1;)o=o.firstChild.content,u--,d--;let f=new it(o,u,d);return e>-1?new qn(i.pos,e,this.$to.pos,this.$to.end(),f,n):f.size||i.pos!=this.$to.pos?new ai(i.pos,s.pos,f):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,s=this.unplaced.openEnd;i<e;i++){let o=n.firstChild;if(n.childCount>1&&(s=0),o.type.spec.isolating&&s<=i){e=i;break}n=o.content}for(let n=1;n<=2;n++)for(let i=n==1?e:this.unplaced.openStart;i>=0;i--){let s,o=null;i?(o=o1(this.unplaced.content,i-1).firstChild,s=o.content):s=this.unplaced.content;let u=s.firstChild;for(let d=this.depth;d>=0;d--){let{type:f,match:p}=this.frontier[d],v,y=null;if(n==1&&(u?p.matchType(u.type)||(y=p.fillBefore(Ve.from(u),!1)):o&&f.compatibleContent(o.type)))return{sliceDepth:i,frontierDepth:d,parent:o,inject:y};if(n==2&&u&&(v=p.findWrapping(u.type)))return{sliceDepth:i,frontierDepth:d,parent:o,wrap:v};if(o&&p.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:i}=this.unplaced,s=o1(e,n);return!s.childCount||s.firstChild.isLeaf?!1:(this.unplaced=new it(e,n+1,Math.max(i,s.size+n>=e.size-i?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:i}=this.unplaced,s=o1(e,n);if(s.childCount<=1&&n>0){let o=e.size-n<=n+s.size;this.unplaced=new it(ph(e,n-1,1),n-1,o?n-1:i)}else this.unplaced=new it(ph(e,n,1),n,i)}placeNodes({sliceDepth:e,frontierDepth:n,parent:i,inject:s,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let N=0;N<o.length;N++)this.openFrontierNode(o[N]);let u=this.unplaced,d=i?i.content:u.content,f=u.openStart-e,p=0,v=[],{match:y,type:M}=this.frontier[n];if(s){for(let N=0;N<s.childCount;N++)v.push(s.child(N));y=y.matchFragment(s)}let b=d.size+e-(u.content.size-u.openEnd);for(;p<d.childCount;){let N=d.child(p),w=y.matchType(N.type);if(!w)break;p++,(p>1||f==0||N.content.size)&&(y=w,v.push(OL(N.mark(M.allowedMarks(N.marks)),p==1?f:0,p==d.childCount?b:-1)))}let x=p==d.childCount;x||(b=-1),this.placed=mh(this.placed,n,Ve.from(v)),this.frontier[n].match=y,x&&b<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let N=0,w=d;N<b;N++){let k=w.lastChild;this.frontier.push({type:k.type,match:k.contentMatchAt(k.childCount)}),w=k.content}this.unplaced=x?e==0?it.empty:new it(ph(u.content,e-1,1),e-1,b<0?u.openEnd:e-1):new it(ph(u.content,e,p),u.openStart,u.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!l1(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:i}=this.$to,s=this.$to.after(i);for(;i>1&&s==this.$to.end(--i);)++s;return s}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:i,type:s}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),u=l1(e,n,s,i,o);if(u){for(let d=n-1;d>=0;d--){let{match:f,type:p}=this.frontier[d],v=l1(e,d,p,f,!0);if(!v||v.childCount)continue e}return{depth:n,fit:u,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=mh(this.placed,n.depth,n.fit)),e=n.move;for(let i=n.depth+1;i<=e.depth;i++){let s=e.node(i),o=s.type.contentMatch.fillBefore(s.content,!0,e.index(i));this.openFrontierNode(s.type,s.attrs,o)}return e}openFrontierNode(e,n=null,i){let s=this.frontier[this.depth];s.match=s.match.matchType(e),this.placed=mh(this.placed,this.depth,Ve.from(e.create(n,i))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ve.empty,!0);n.childCount&&(this.placed=mh(this.placed,this.frontier.length,n))}}function ph(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(ph(t.firstChild.content,e-1,n)))}function mh(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(mh(t.lastChild.content,e-1,n)))}function o1(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function OL(t,e,n){if(e<=0)return t;let i=t.content;return e>1&&(i=i.replaceChild(0,OL(i.firstChild,e-1,i.childCount==1?n-1:0))),e>0&&(i=t.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(Ve.empty,!0)))),t.copy(i)}function l1(t,e,n,i,s){let o=t.node(e),u=s?t.indexAfter(e):t.index(e);if(u==o.childCount&&!n.compatibleContent(o.type))return null;let d=i.fillBefore(o.content,!0,u);return d&&!Qde(n,o.content,u)?d:null}function Qde(t,e,n){for(let i=n;i<e.childCount;i++)if(!t.allowsMarks(e.child(i).marks))return!0;return!1}function Gde(t){return t.spec.defining||t.spec.definingForContent}function Kde(t,e,n,i){if(!i.size)return t.deleteRange(e,n);let s=t.doc.resolve(e),o=t.doc.resolve(n);if(kL(s,o,i))return t.step(new ai(e,n,i));let u=IL(s,t.doc.resolve(n));u[u.length-1]==0&&u.pop();let d=-(s.depth+1);u.unshift(d);for(let M=s.depth,b=s.pos-1;M>0;M--,b--){let x=s.node(M).type.spec;if(x.defining||x.definingAsContext||x.isolating)break;u.indexOf(M)>-1?d=M:s.before(M)==b&&u.splice(1,0,-M)}let f=u.indexOf(d),p=[],v=i.openStart;for(let M=i.content,b=0;;b++){let x=M.firstChild;if(p.push(x),b==i.openStart)break;M=x.content}for(let M=v-1;M>=0;M--){let b=p[M],x=Gde(b.type);if(x&&!b.sameMarkup(s.node(Math.abs(d)-1)))v=M;else if(x||!b.type.isTextblock)break}for(let M=i.openStart;M>=0;M--){let b=(M+v+1)%(i.openStart+1),x=p[b];if(x)for(let N=0;N<u.length;N++){let w=u[(N+f)%u.length],k=!0;w<0&&(k=!1,w=-w);let E=s.node(w-1),S=s.index(w-1);if(E.canReplaceWith(S,S,x.type,x.marks))return t.replace(s.before(w),k?o.after(w):n,new it(EL(i.content,0,i.openStart,b),b,i.openEnd))}}let y=t.steps.length;for(let M=u.length-1;M>=0&&(t.replace(e,n,i),!(t.steps.length>y));M--){let b=u[M];b<0||(e=s.before(b),n=o.after(b))}}function EL(t,e,n,i,s){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(EL(o.content,e+1,n,i,o)))}if(e>i){let o=s.contentMatchAt(0),u=o.fillBefore(t).append(t);t=u.append(o.matchFragment(u).fillBefore(Ve.empty,!0))}return t}function qde(t,e,n,i){if(!i.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let s=Yde(t.doc,e,i.type);s!=null&&(e=n=s)}t.replaceRange(e,n,new it(Ve.from(i),0,0))}function Xde(t,e,n){let i=t.doc.resolve(e),s=t.doc.resolve(n),o=IL(i,s);for(let u=0;u<o.length;u++){let d=o[u],f=u==o.length-1;if(f&&d==0||i.node(d).type.contentMatch.validEnd)return t.delete(i.start(d),s.end(d));if(d>0&&(f||i.node(d-1).canReplace(i.index(d-1),s.indexAfter(d-1))))return t.delete(i.before(d),s.after(d))}for(let u=1;u<=i.depth&&u<=s.depth;u++)if(e-i.start(u)==i.depth-u&&n>i.end(u)&&s.end(u)-n!=s.depth-u)return t.delete(i.before(u),n);t.delete(e,n)}function IL(t,e){let n=[],i=Math.min(t.depth,e.depth);for(let s=i;s>=0;s--){let o=t.start(s);if(o<t.pos-(t.depth-s)||e.end(s)>e.pos+(e.depth-s)||t.node(s).type.spec.isolating||e.node(s).type.spec.isolating)break;(o==e.start(s)||s==t.depth&&s==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&s&&e.start(s-1)==o-1)&&n.push(s)}return n}class Pc extends xi{constructor(e,n,i){super(),this.pos=e,this.attr=n,this.value=i}apply(e){let n=e.nodeAt(this.pos);if(!n)return In.fail("No node at attribute step's position");let i=Object.create(null);for(let o in n.attrs)i[o]=n.attrs[o];i[this.attr]=this.value;let s=n.type.create(i,null,n.marks);return In.fromReplace(e,this.pos,this.pos+1,new it(Ve.from(s),0,n.isLeaf?0:1))}getMap(){return wr.empty}invert(e){return new Pc(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Pc(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Pc(n.pos,n.attr,n.value)}}xi.jsonID("attr",Pc);class gh extends xi{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let s in e.attrs)n[s]=e.attrs[s];n[this.attr]=this.value;let i=e.type.create(n,e.content,e.marks);return In.ok(i)}getMap(){return wr.empty}invert(e){return new gh(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new gh(n.attr,n.value)}}xi.jsonID("docAttr",gh);let Rc=class extends Error{};Rc=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Rc.prototype=Object.create(Error.prototype),Rc.prototype.constructor=Rc,Rc.prototype.name="TransformError";class AL{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new jc}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Rc(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,i=it.empty){let s=a1(this.doc,e,n,i);return s&&this.step(s),this}replaceWith(e,n,i){return this.replace(e,n,new it(Ve.from(i),0,0))}delete(e,n){return this.replace(e,n,it.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,i){return Kde(this,e,n,i),this}replaceRangeWith(e,n,i){return qde(this,e,n,i),this}deleteRange(e,n){return Xde(this,e,n),this}lift(e,n){return $de(this,e,n),this}join(e,n=1){return Vde(this,e,n),this}wrap(e,n){return Pde(this,e,n),this}setBlockType(e,n=e,i,s=null){return Rde(this,e,n,i,s),this}setNodeMarkup(e,n,i=null,s){return Bde(this,e,n,i,s),this}setNodeAttribute(e,n,i){return this.step(new Pc(e,n,i)),this}setDocAttribute(e,n){return this.step(new gh(e,n)),this}addNodeMark(e,n){return this.step(new Do(e,n)),this}removeNodeMark(e,n){if(!(n instanceof nn)){let i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at position "+e);if(n=n.isInSet(i.marks),!n)return this}return this.step(new $c(e,n)),this}split(e,n=1,i){return Ude(this,e,n,i),this}addMark(e,n,i){return Ede(this,e,n,i),this}removeMark(e,n,i){return Ide(this,e,n,i),this}clearIncompatible(e,n,i){return Ade(this,e,n,i),this}}const u1=Object.create(null);class Ft{constructor(e,n,i){this.$anchor=e,this.$head=n,this.ranges=i||[new Zde(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=it.empty){let i=n.content.lastChild,s=null;for(let d=0;d<n.openEnd;d++)s=i,i=i.lastChild;let o=e.steps.length,u=this.ranges;for(let d=0;d<u.length;d++){let{$from:f,$to:p}=u[d],v=e.mapping.slice(o);e.replaceRange(v.map(f.pos),v.map(p.pos),d?it.empty:n),d==0&&LL(e,o,(i?i.isInline:s&&s.isTextblock)?-1:1)}}replaceWith(e,n){let i=e.steps.length,s=this.ranges;for(let o=0;o<s.length;o++){let{$from:u,$to:d}=s[o],f=e.mapping.slice(i),p=f.map(u.pos),v=f.map(d.pos);o?e.deleteRange(p,v):(e.replaceRangeWith(p,v,n),LL(e,i,n.isInline?-1:1))}}static findFrom(e,n,i=!1){let s=e.parent.inlineContent?new Bt(e):Fc(e.node(0),e.parent,e.pos,e.index(),n,i);if(s)return s;for(let o=e.depth-1;o>=0;o--){let u=n<0?Fc(e.node(0),e.node(o),e.before(o+1),e.index(o),n,i):Fc(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,i);if(u)return u}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Ds(e.node(0))}static atStart(e){return Fc(e,e,0,0,1)||new Ds(e)}static atEnd(e){return Fc(e,e,e.content.size,e.childCount,-1)||new Ds(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=u1[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(e,n)}static jsonID(e,n){if(e in u1)throw new RangeError("Duplicate use of selection JSON ID "+e);return u1[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Bt.between(this.$anchor,this.$head).getBookmark()}}Ft.prototype.visible=!0;class Zde{constructor(e,n){this.$from=e,this.$to=n}}let jL=!1;function $L(t){!jL&&!t.parent.inlineContent&&(jL=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Bt extends Ft{constructor(e,n=e){$L(e),$L(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let i=e.resolve(n.map(this.head));if(!i.parent.inlineContent)return Ft.near(i);let s=e.resolve(n.map(this.anchor));return new Bt(s.parent.inlineContent?s:i,i)}replace(e,n=it.empty){if(super.replace(e,n),n==it.empty){let i=this.$from.marksAcross(this.$to);i&&e.ensureMarks(i)}}eq(e){return e instanceof Bt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ev(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Bt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,i=n){let s=e.resolve(n);return new this(s,i==n?s:e.resolve(i))}static between(e,n,i){let s=e.pos-n.pos;if((!i||s)&&(i=s>=0?1:-1),!n.parent.inlineContent){let o=Ft.findFrom(n,i,!0)||Ft.findFrom(n,-i,!0);if(o)n=o.$head;else return Ft.near(n,i)}return e.parent.inlineContent||(s==0?e=n:(e=(Ft.findFrom(e,-i,!0)||Ft.findFrom(e,i,!0)).$anchor,e.pos<n.pos!=s<0&&(e=n))),new Bt(e,n)}}Ft.jsonID("text",Bt);class Ev{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Ev(e.map(this.anchor),e.map(this.head))}resolve(e){return Bt.between(e.resolve(this.anchor),e.resolve(this.head))}}class Mt extends Ft{constructor(e){let n=e.nodeAfter,i=e.node(0).resolve(e.pos+n.nodeSize);super(e,i),this.node=n}map(e,n){let{deleted:i,pos:s}=n.mapResult(this.anchor),o=e.resolve(s);return i?Ft.near(o):new Mt(o)}content(){return new it(Ve.from(this.node),0,0)}eq(e){return e instanceof Mt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new c1(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Mt(e.resolve(n.anchor))}static create(e,n){return new Mt(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Mt.prototype.visible=!1,Ft.jsonID("node",Mt);class c1{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:i}=e.mapResult(this.anchor);return n?new Ev(i,i):new c1(i)}resolve(e){let n=e.resolve(this.anchor),i=n.nodeAfter;return i&&Mt.isSelectable(i)?new Mt(n):Ft.near(n)}}class Ds extends Ft{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=it.empty){if(n==it.empty){e.delete(0,e.doc.content.size);let i=Ft.atStart(e.doc);i.eq(e.selection)||e.setSelection(i)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ds(e)}map(e){return new Ds(e)}eq(e){return e instanceof Ds}getBookmark(){return Jde}}Ft.jsonID("all",Ds);const Jde={map(){return this},resolve(t){return new Ds(t)}};function Fc(t,e,n,i,s,o=!1){if(e.inlineContent)return Bt.create(t,n);for(let u=i-(s>0?0:1);s>0?u<e.childCount:u>=0;u+=s){let d=e.child(u);if(d.isAtom){if(!o&&Mt.isSelectable(d))return Mt.create(t,n-(s<0?d.nodeSize:0))}else{let f=Fc(t,d,n+s,s<0?d.childCount:0,s,o);if(f)return f}n+=d.nodeSize*s}return null}function LL(t,e,n){let i=t.steps.length-1;if(i<e)return;let s=t.steps[i];if(!(s instanceof ai||s instanceof qn))return;let o=t.mapping.maps[i],u;o.forEach((d,f,p,v)=>{u==null&&(u=v)}),t.setSelection(Ft.near(t.doc.resolve(u),n))}const zL=1,Iv=2,PL=4;class efe extends AL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|zL)&~Iv,this.storedMarks=null,this}get selectionSet(){return(this.updated&zL)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Iv,this}ensureMarks(e){return nn.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Iv)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Iv,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let i=this.selection;return n&&(e=e.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||nn.none))),i.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,i){let s=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(s.text(e),!0):this.deleteSelection();{if(i==null&&(i=n),i=i??n,!e)return this.deleteRange(n,i);let o=this.storedMarks;if(!o){let u=this.doc.resolve(n);o=i==n?u.marks():u.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(n,i,s.text(e,o)),this.selection.empty||this.setSelection(Ft.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=PL,this}get scrolledIntoView(){return(this.updated&PL)>0}}function RL(t,e){return!e||!t?t:t.bind(e)}class vh{constructor(e,n,i){this.name=e,this.init=RL(n.init,i),this.apply=RL(n.apply,i)}}const tfe=[new vh("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new vh("selection",{init(t,e){return t.selection||Ft.atStart(e.doc)},apply(t){return t.selection}}),new vh("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,i){return i.selection.$cursor?t.storedMarks:null}}),new vh("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class d1{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=tfe.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new vh(i.key,i.spec.state,i))})}}class Bc{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let i=0;i<this.config.plugins.length;i++)if(i!=n){let s=this.config.plugins[i];if(s.spec.filterTransaction&&!s.spec.filterTransaction.call(s,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],i=this.applyInner(e),s=null;for(;;){let o=!1;for(let u=0;u<this.config.plugins.length;u++){let d=this.config.plugins[u];if(d.spec.appendTransaction){let f=s?s[u].n:0,p=s?s[u].state:this,v=f<n.length&&d.spec.appendTransaction.call(d,f?n.slice(f):n,p,i);if(v&&i.filterTransaction(v,u)){if(v.setMeta("appendedTransaction",e),!s){s=[];for(let y=0;y<this.config.plugins.length;y++)s.push(y<u?{state:i,n:n.length}:{state:this,n:0})}n.push(v),i=i.applyInner(v),o=!0}s&&(s[u]={state:i,n:n.length})}}if(!o)return{state:i,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Bc(this.config),i=this.config.fields;for(let s=0;s<i.length;s++){let o=i[s];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new efe(this)}static create(e){let n=new d1(e.doc?e.doc.type.schema:e.schema,e.plugins),i=new Bc(n);for(let s=0;s<n.fields.length;s++)i[n.fields[s].name]=n.fields[s].init(e,i);return i}reconfigure(e){let n=new d1(this.schema,e.plugins),i=n.fields,s=new Bc(n);for(let o=0;o<i.length;o++){let u=i[o].name;s[u]=this.hasOwnProperty(u)?this[u]:i[o].init(e,s)}return s}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(i=>i.toJSON())),e&&typeof e=="object")for(let i in e){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let s=e[i],o=s.spec.state;o&&o.toJSON&&(n[i]=o.toJSON.call(s,this[s.key]))}return n}static fromJSON(e,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let s=new d1(e.schema,e.plugins),o=new Bc(s);return s.fields.forEach(u=>{if(u.name=="doc")o.doc=Ql.fromJSON(e.schema,n.doc);else if(u.name=="selection")o.selection=Ft.fromJSON(o.doc,n.selection);else if(u.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(i)for(let d in i){let f=i[d],p=f.spec.state;if(f.key==u.name&&p&&p.fromJSON&&Object.prototype.hasOwnProperty.call(n,d)){o[u.name]=p.fromJSON.call(f,e,n[d],o);return}}o[u.name]=u.init(e,o)}}),o}}function FL(t,e,n){for(let i in t){let s=t[i];s instanceof Function?s=s.bind(e):i=="handleDOMEvents"&&(s=FL(s,e,{})),n[i]=s}return n}let sr=class{constructor(e){this.spec=e,this.props={},e.props&&FL(e.props,this,this.props),this.key=e.key?e.key.key:BL("plugin")}getState(e){return e[this.key]}};const f1=Object.create(null);function BL(t){return t in f1?t+"$"+ ++f1[t]:(f1[t]=0,t+"$")}class Vr{constructor(e="key"){this.key=BL(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $i=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},yh=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let UL=null;const Pa=function(t,e,n){let i=UL||(UL=document.createRange());return i.setEnd(t,n??t.nodeValue.length),i.setStart(t,e||0),i},Kl=function(t,e,n,i){return n&&(VL(t,e,n,i,-1)||VL(t,e,n,i,1))},nfe=/^(img|br|input|textarea|hr)$/i;function VL(t,e,n,i,s){for(;;){if(t==n&&e==i)return!0;if(e==(s<0?0:oa(t))){let o=t.parentNode;if(!o||o.nodeType!=1||h1(t)||nfe.test(t.nodeName)||t.contentEditable=="false")return!1;e=$i(t)+(s<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(s<0?-1:0)],t.contentEditable=="false")return!1;e=s<0?oa(t):0}else return!1}}function oa(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ife(t,e,n){for(let i=e==0,s=e==oa(t);i||s;){if(t==n)return!0;let o=$i(t);if(t=t.parentNode,!t)return!1;i=i&&o==0,s=s&&o==oa(t)}}function h1(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Av=function(t){return t.focusNode&&Kl(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function ql(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function rfe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function sfe(t,e,n){if(t.caretPositionFromPoint)try{let i=t.caretPositionFromPoint(e,n);if(i)return{node:i.offsetNode,offset:i.offset}}catch{}if(t.caretRangeFromPoint){let i=t.caretRangeFromPoint(e,n);if(i)return{node:i.startContainer,offset:i.startOffset}}}const la=typeof navigator<"u"?navigator:null,YL=typeof document<"u"?document:null,No=la&&la.userAgent||"",p1=/Edge\/(\d+)/.exec(No),HL=/MSIE \d/.exec(No),m1=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(No),ar=!!(HL||m1||p1),ko=HL?document.documentMode:m1?+m1[1]:p1?+p1[1]:0,ws=!ar&&/gecko\/(\d+)/i.test(No);ws&&+(/Firefox\/(\d+)/.exec(No)||[0,0])[1];const g1=!ar&&/Chrome\/(\d+)/.exec(No),Ci=!!g1,afe=g1?+g1[1]:0,Li=!ar&&!!la&&/Apple Computer/.test(la.vendor),Uc=Li&&(/Mobile\/\w+/.test(No)||!!la&&la.maxTouchPoints>2),Yr=Uc||(la?/Mac/.test(la.platform):!1),ofe=la?/Win/.test(la.platform):!1,Ns=/Android \d/.test(No),bh=!!YL&&"webkitFontSmoothing"in YL.documentElement.style,lfe=bh?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ufe(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ra(t,e){return typeof t=="number"?t:t[e]}function cfe(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,i=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*i}}function WL(t,e,n){let i=t.someProp("scrollThreshold")||0,s=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let u=n||t.dom;u;u=yh(u)){if(u.nodeType!=1)continue;let d=u,f=d==o.body,p=f?ufe(o):cfe(d),v=0,y=0;if(e.top<p.top+Ra(i,"top")?y=-(p.top-e.top+Ra(s,"top")):e.bottom>p.bottom-Ra(i,"bottom")&&(y=e.bottom-e.top>p.bottom-p.top?e.top+Ra(s,"top")-p.top:e.bottom-p.bottom+Ra(s,"bottom")),e.left<p.left+Ra(i,"left")?v=-(p.left-e.left+Ra(s,"left")):e.right>p.right-Ra(i,"right")&&(v=e.right-p.right+Ra(s,"right")),v||y)if(f)o.defaultView.scrollBy(v,y);else{let M=d.scrollLeft,b=d.scrollTop;y&&(d.scrollTop+=y),v&&(d.scrollLeft+=v);let x=d.scrollLeft-M,N=d.scrollTop-b;e={left:e.left-x,top:e.top-N,right:e.right-x,bottom:e.bottom-N}}if(f||/^(fixed|sticky)$/.test(getComputedStyle(u).position))break}}function dfe(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),i,s;for(let o=(e.left+e.right)/2,u=n+1;u<Math.min(innerHeight,e.bottom);u+=5){let d=t.root.elementFromPoint(o,u);if(!d||d==t.dom||!t.dom.contains(d))continue;let f=d.getBoundingClientRect();if(f.top>=n-20){i=d,s=f.top;break}}return{refDOM:i,refTop:s,stack:QL(t.dom)}}function QL(t){let e=[],n=t.ownerDocument;for(let i=t;i&&(e.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),t!=n);i=yh(i));return e}function ffe({refDOM:t,refTop:e,stack:n}){let i=t?t.getBoundingClientRect().top:0;GL(n,i==0?0:i-e)}function GL(t,e){for(let n=0;n<t.length;n++){let{dom:i,top:s,left:o}=t[n];i.scrollTop!=s+e&&(i.scrollTop=s+e),i.scrollLeft!=o&&(i.scrollLeft=o)}}let Vc=null;function hfe(t){if(t.setActive)return t.setActive();if(Vc)return t.focus(Vc);let e=QL(t);t.focus(Vc==null?{get preventScroll(){return Vc={preventScroll:!0},!0}}:void 0),Vc||(Vc=!1,GL(e,0))}function KL(t,e){let n,i=2e8,s,o=0,u=e.top,d=e.top,f,p;for(let v=t.firstChild,y=0;v;v=v.nextSibling,y++){let M;if(v.nodeType==1)M=v.getClientRects();else if(v.nodeType==3)M=Pa(v).getClientRects();else continue;for(let b=0;b<M.length;b++){let x=M[b];if(x.top<=u&&x.bottom>=d){u=Math.max(x.bottom,u),d=Math.min(x.top,d);let N=x.left>e.left?x.left-e.left:x.right<e.left?e.left-x.right:0;if(N<i){n=v,i=N,s=N&&n.nodeType==3?{left:x.right<e.left?x.right:x.left,top:e.top}:e,v.nodeType==1&&N&&(o=y+(e.left>=(x.left+x.right)/2?1:0));continue}}else x.top>e.top&&!f&&x.left<=e.left&&x.right>=e.left&&(f=v,p={left:Math.max(x.left,Math.min(x.right,e.left)),top:x.top});!n&&(e.left>=x.right&&e.top>=x.top||e.left>=x.left&&e.top>=x.bottom)&&(o=y+1)}}return!n&&f&&(n=f,s=p,i=0),n&&n.nodeType==3?pfe(n,s):!n||i&&n.nodeType==1?{node:t,offset:o}:KL(n,s)}function pfe(t,e){let n=t.nodeValue.length,i=document.createRange();for(let s=0;s<n;s++){i.setEnd(t,s+1),i.setStart(t,s);let o=Oo(i,1);if(o.top!=o.bottom&&v1(e,o))return{node:t,offset:s+(e.left>=(o.left+o.right)/2?1:0)}}return{node:t,offset:0}}function v1(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function mfe(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function gfe(t,e,n){let{node:i,offset:s}=KL(e,n),o=-1;if(i.nodeType==1&&!i.firstChild){let u=i.getBoundingClientRect();o=u.left!=u.right&&n.left>(u.left+u.right)/2?1:-1}return t.docView.posFromDOM(i,s,o)}function vfe(t,e,n,i){let s=-1;for(let o=e,u=!1;o!=t.dom;){let d=t.docView.nearestDesc(o,!0);if(!d)return null;if(d.dom.nodeType==1&&(d.node.isBlock&&d.parent&&!u||!d.contentDOM)){let f=d.dom.getBoundingClientRect();if(d.node.isBlock&&d.parent&&!u&&(u=!0,f.left>i.left||f.top>i.top?s=d.posBefore:(f.right<i.left||f.bottom<i.top)&&(s=d.posAfter)),!d.contentDOM&&s<0&&!d.node.isText)return(d.node.isBlock?i.top<(f.top+f.bottom)/2:i.left<(f.left+f.right)/2)?d.posBefore:d.posAfter}o=d.dom.parentNode}return s>-1?s:t.docView.posFromDOM(e,n,-1)}function qL(t,e,n){let i=t.childNodes.length;if(i&&n.top<n.bottom)for(let s=Math.max(0,Math.min(i-1,Math.floor(i*(e.top-n.top)/(n.bottom-n.top))-2)),o=s;;){let u=t.childNodes[o];if(u.nodeType==1){let d=u.getClientRects();for(let f=0;f<d.length;f++){let p=d[f];if(v1(e,p))return qL(u,e,p)}}if((o=(o+1)%i)==s)break}return t}function yfe(t,e){let n=t.dom.ownerDocument,i,s=0,o=sfe(n,e.left,e.top);o&&({node:i,offset:s}=o);let u=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),d;if(!u||!t.dom.contains(u.nodeType!=1?u.parentNode:u)){let p=t.dom.getBoundingClientRect();if(!v1(e,p)||(u=qL(t.dom,e,p),!u))return null}if(Li)for(let p=u;i&&p;p=yh(p))p.draggable&&(i=void 0);if(u=mfe(u,e),i){if(ws&&i.nodeType==1&&(s=Math.min(s,i.childNodes.length),s<i.childNodes.length)){let v=i.childNodes[s],y;v.nodeName=="IMG"&&(y=v.getBoundingClientRect()).right<=e.left&&y.bottom>e.top&&s++}let p;bh&&s&&i.nodeType==1&&(p=i.childNodes[s-1]).nodeType==1&&p.contentEditable=="false"&&p.getBoundingClientRect().top>=e.top&&s--,i==t.dom&&s==i.childNodes.length-1&&i.lastChild.nodeType==1&&e.top>i.lastChild.getBoundingClientRect().bottom?d=t.state.doc.content.size:(s==0||i.nodeType!=1||i.childNodes[s-1].nodeName!="BR")&&(d=vfe(t,i,s,e))}d==null&&(d=gfe(t,u,e));let f=t.docView.nearestDesc(u,!0);return{pos:d,inside:f?f.posAtStart-f.border:-1}}function XL(t){return t.top<t.bottom||t.left<t.right}function Oo(t,e){let n=t.getClientRects();if(n.length){let i=n[e<0?0:n.length-1];if(XL(i))return i}return Array.prototype.find.call(n,XL)||t.getBoundingClientRect()}const bfe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ZL(t,e,n){let{node:i,offset:s,atom:o}=t.docView.domFromPos(e,n<0?-1:1),u=bh||ws;if(i.nodeType==3)if(u&&(bfe.test(i.nodeValue)||(n<0?!s:s==i.nodeValue.length))){let f=Oo(Pa(i,s,s),n);if(ws&&s&&/\s/.test(i.nodeValue[s-1])&&s<i.nodeValue.length){let p=Oo(Pa(i,s-1,s-1),-1);if(p.top==f.top){let v=Oo(Pa(i,s,s+1),-1);if(v.top!=f.top)return _h(v,v.left<p.left)}}return f}else{let f=s,p=s,v=n<0?1:-1;return n<0&&!s?(p++,v=-1):n>=0&&s==i.nodeValue.length?(f--,v=1):n<0?f--:p++,_h(Oo(Pa(i,f,p),v),v<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&s&&(n<0||s==oa(i))){let f=i.childNodes[s-1];if(f.nodeType==1)return y1(f.getBoundingClientRect(),!1)}if(o==null&&s<oa(i)){let f=i.childNodes[s];if(f.nodeType==1)return y1(f.getBoundingClientRect(),!0)}return y1(i.getBoundingClientRect(),n>=0)}if(o==null&&s&&(n<0||s==oa(i))){let f=i.childNodes[s-1],p=f.nodeType==3?Pa(f,oa(f)-(u?0:1)):f.nodeType==1&&(f.nodeName!="BR"||!f.nextSibling)?f:null;if(p)return _h(Oo(p,1),!1)}if(o==null&&s<oa(i)){let f=i.childNodes[s];for(;f.pmViewDesc&&f.pmViewDesc.ignoreForCoords;)f=f.nextSibling;let p=f?f.nodeType==3?Pa(f,0,u?0:1):f.nodeType==1?f:null:null;if(p)return _h(Oo(p,-1),!0)}return _h(Oo(i.nodeType==3?Pa(i):i,-n),n>=0)}function _h(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function y1(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function JL(t,e,n){let i=t.state,s=t.root.activeElement;i!=e&&t.updateState(e),s!=t.dom&&t.focus();try{return n()}finally{i!=e&&t.updateState(i),s!=t.dom&&s&&s.focus()}}function _fe(t,e,n){let i=e.selection,s=n=="up"?i.$from:i.$to;return JL(t,e,()=>{let{node:o}=t.docView.domFromPos(s.pos,n=="up"?-1:1);for(;;){let d=t.docView.nearestDesc(o,!0);if(!d)break;if(d.node.isBlock){o=d.contentDOM||d.dom;break}o=d.dom.parentNode}let u=ZL(t,s.pos,1);for(let d=o.firstChild;d;d=d.nextSibling){let f;if(d.nodeType==1)f=d.getClientRects();else if(d.nodeType==3)f=Pa(d,0,d.nodeValue.length).getClientRects();else continue;for(let p=0;p<f.length;p++){let v=f[p];if(v.bottom>v.top+1&&(n=="up"?u.top-v.top>(v.bottom-u.top)*2:v.bottom-u.bottom>(u.bottom-v.top)*2))return!1}}return!0})}const Mfe=/[\u0590-\u08ac]/;function xfe(t,e,n){let{$head:i}=e.selection;if(!i.parent.isTextblock)return!1;let s=i.parentOffset,o=!s,u=s==i.parent.content.size,d=t.domSelection();return!Mfe.test(i.parent.textContent)||!d.modify?n=="left"||n=="backward"?o:u:JL(t,e,()=>{let{focusNode:f,focusOffset:p,anchorNode:v,anchorOffset:y}=t.domSelectionRange(),M=d.caretBidiLevel;d.modify("move",n,"character");let b=i.depth?t.docView.domAfterPos(i.before()):t.dom,{focusNode:x,focusOffset:N}=t.domSelectionRange(),w=x&&!b.contains(x.nodeType==1?x:x.parentNode)||f==x&&p==N;try{d.collapse(v,y),f&&(f!=v||p!=y)&&d.extend&&d.extend(f,p)}catch{}return M!=null&&(d.caretBidiLevel=M),w})}let ez=null,tz=null,nz=!1;function Cfe(t,e,n){return ez==e&&tz==n?nz:(ez=e,tz=n,nz=n=="up"||n=="down"?_fe(t,e,n):xfe(t,e,n))}const Hr=0,iz=1,Xl=2,ua=3;class Mh{constructor(e,n,i,s){this.parent=e,this.children=n,this.dom=i,this.contentDOM=s,this.dirty=Hr,i.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,i){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,i=this.posAtStart;;n++){let s=this.children[n];if(s==e)return i;i+=s.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,i){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(i<0){let o,u;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((u=o.pmViewDesc)&&u.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(u)+u.size:this.posAtStart}else{let o,u;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((u=o.pmViewDesc)&&u.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(u):this.posAtEnd}let s;if(e==this.dom&&this.contentDOM)s=n>$i(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))s=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){s=!1;break}if(o.previousSibling)break}if(s==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){s=!0;break}if(o.nextSibling)break}}return s??i>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let i=!0,s=e;s;s=s.parentNode){let o=this.getDesc(s),u;if(o&&(!n||o.node))if(i&&(u=o.nodeDOM)&&!(u.nodeType==1?u.contains(e.nodeType==1?e:e.parentNode):u==e))i=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(e,n,i){for(let s=e;s;s=s.parentNode){let o=this.getDesc(s);if(o)return o.localPosFromDOM(e,n,i)}return-1}descAt(e){for(let n=0,i=0;n<this.children.length;n++){let s=this.children[n],o=i+s.size;if(i==e&&o!=i){for(;!s.border&&s.children.length;)s=s.children[0];return s}if(e<o)return s.descAt(e-i-s.border);i=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let i=0,s=0;for(let o=0;i<this.children.length;i++){let u=this.children[i],d=o+u.size;if(d>e||u instanceof az){s=e-o;break}o=d}if(s)return this.children[i].domFromPos(s-this.children[i].border,n);for(let o;i&&!(o=this.children[i-1]).size&&o instanceof rz&&o.side>=0;i--);if(n<=0){let o,u=!0;for(;o=i?this.children[i-1]:null,!(!o||o.dom.parentNode==this.contentDOM);i--,u=!1);return o&&n&&u&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?$i(o.dom)+1:0}}else{let o,u=!0;for(;o=i<this.children.length?this.children[i]:null,!(!o||o.dom.parentNode==this.contentDOM);i++,u=!1);return o&&u&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?$i(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,i=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let s=-1,o=-1;for(let u=i,d=0;;d++){let f=this.children[d],p=u+f.size;if(s==-1&&e<=p){let v=u+f.border;if(e>=v&&n<=p-f.border&&f.node&&f.contentDOM&&this.contentDOM.contains(f.contentDOM))return f.parseRange(e,n,v);e=u;for(let y=d;y>0;y--){let M=this.children[y-1];if(M.size&&M.dom.parentNode==this.contentDOM&&!M.emptyChildAt(1)){s=$i(M.dom)+1;break}e-=M.size}s==-1&&(s=0)}if(s>-1&&(p>n||d==this.children.length-1)){n=p;for(let v=d+1;v<this.children.length;v++){let y=this.children[v];if(y.size&&y.dom.parentNode==this.contentDOM&&!y.emptyChildAt(-1)){o=$i(y.dom);break}n+=y.size}o==-1&&(o=this.contentDOM.childNodes.length);break}u=p}return{node:this.contentDOM,from:e,to:n,fromOffset:s,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:i}=this.domFromPos(e,0);if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]}setSelection(e,n,i,s=!1){let o=Math.min(e,n),u=Math.max(e,n);for(let M=0,b=0;M<this.children.length;M++){let x=this.children[M],N=b+x.size;if(o>b&&u<N)return x.setSelection(e-b-x.border,n-b-x.border,i,s);b=N}let d=this.domFromPos(e,e?-1:1),f=n==e?d:this.domFromPos(n,n?-1:1),p=i.getSelection(),v=!1;if((ws||Li)&&e==n){let{node:M,offset:b}=d;if(M.nodeType==3){if(v=!!(b&&M.nodeValue[b-1]==`
@@ -271,13 +271,13 @@ img.ProseMirror-separator {
271
271
  1. Must only contain digits, lowercase ASCII letters or "-"
272
272
  2. Cannot start or end with "-"
273
273
  3. "-" cannot repeat`);Sn.customSchemes.push([t,e])}function sbe(){Sn.scanner=qye(Sn.customSchemes);for(let t=0;t<Sn.tokenQueue.length;t++)Sn.tokenQueue[t][1]({scanner:Sn.scanner});Sn.parser=ebe(Sn.scanner.tokens);for(let t=0;t<Sn.pluginQueue.length;t++)Sn.pluginQueue[t][1]({scanner:Sn.scanner,parser:Sn.parser});Sn.initialized=!0}function abe(t){return Sn.initialized||sbe(),tbe(Sn.parser.start,t,Xye(Sn.scanner.start,t))}function $T(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const i=new AT(n),s=abe(t),o=[];for(let u=0;u<s.length;u++){const d=s[u];d.isLink&&(!e||d.t===e)&&i.check(d)&&o.push(d.toFormattedObject(i))}return o}function obe(t){return new sr({key:new Vr("autolink"),appendTransaction:(e,n,i)=>{const s=e.some(p=>p.docChanged)&&!n.doc.eq(i.doc),o=e.some(p=>p.getMeta("preventAutolink"));if(!s||o)return;const{tr:u}=i,d=pme(n.doc,[...e]);if(Cme(d).forEach(({newRange:p})=>{const v=gme(i.doc,p,b=>b.isTextblock);let y,M;if(v.length>1?(y=v[0],M=i.doc.textBetween(y.pos,y.pos+y.node.nodeSize,void 0," ")):v.length&&i.doc.textBetween(p.from,p.to," "," ").endsWith(" ")&&(y=v[0],M=i.doc.textBetween(y.pos,p.to,void 0," ")),y&&M){const b=M.split(" ").filter(w=>w!=="");if(b.length<=0)return!1;const x=b[b.length-1],N=y.pos+M.lastIndexOf(x);if(!x)return!1;$T(x).filter(w=>w.isLink).map(w=>({...w,from:N+w.start+1,to:N+w.end+1})).filter(w=>i.schema.marks.code?!i.doc.rangeHasMark(w.from,w.to,i.schema.marks.code):!0).filter(w=>t.validate?t.validate(w.value):!0).forEach(w=>{K1(w.from,w.to,i.doc).some(k=>k.mark.type===t.type)||u.addMark(w.from,w.to,t.type.create({href:w.href}))})}}),!!u.steps.length)return u}})}function lbe(t){return new sr({key:new Vr("handleClickLink"),props:{handleClick:(e,n,i)=>{var s,o;if(i.button!==0||i.target.nodeName!=="A")return!1;const d=y4(e.state,t.type.name),f=i.target,p=(s=f==null?void 0:f.href)!==null&&s!==void 0?s:d.href,v=(o=f==null?void 0:f.target)!==null&&o!==void 0?o:d.target;return f&&p?(e.editable&&window.open(p,v),!0):!1}}})}function ube(t){return new sr({key:new Vr("handlePasteLink"),props:{handlePaste:(e,n,i)=>{var s;const{state:o}=e,{selection:u}=o,{empty:d}=u;if(d)return!1;let f="";i.content.forEach(x=>{f+=x.textContent});const p=$T(f).find(x=>x.isLink&&x.value===f);if(!f||!p)return!1;const v=(s=n.clipboardData)===null||s===void 0?void 0:s.getData("text/html"),y=/href="([^"]*)"/,M=v==null?void 0:v.match(y),b=M?M[1]:p.href;return t.editor.commands.setMark(t.type,{href:b}),!0}}})}const k2=ca.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){N2(t);return}N2(t.scheme,t.optionalSlashes)})},onDestroy(){rbe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",li(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[kh({find:t=>$T(t).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(t,e)=>{var n,i;const s=(n=e==null?void 0:e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),o=/href="([^"]*)"/,u=s==null?void 0:s.match(o);return u?{href:u[1]}:{href:(i=t.data)===null||i===void 0?void 0:i.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(obe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(lbe({type:this.type})),this.options.linkOnPaste&&t.push(ube({editor:this.editor,type:this.type})),t}}),O2="color-link",E2="text-decoration: underline",cbe=k2.extend({defaultOptions:{...k2.options,openOnClick:!1},priority:1,addAttributes(){return{class:{default:O2,parseHTML:t=>t.class=O2},style:{default:E2,parseHTML:t=>t.style=E2},href:{default:""}}}}),I2=Qr.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new sr({key:new Vr("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=e,s=[];if(!n)return null;const o=t.type.createAndFill(),u=(o==null?void 0:o.sameMarkup(t))&&o.content.findDiffStart(t.content)===null;return t.descendants((d,f)=>{const p=i>=f&&i<=f+d.nodeSize,v=!d.isLeaf&&!d.childCount;if((p||!this.options.showOnlyCurrent)&&v){const y=[this.options.emptyNodeClass];u&&y.push(this.options.emptyEditorClass);const M=Wr.node(f,f+d.nodeSize,{class:y.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:d,pos:f,hasAnchor:p}):this.options.placeholder});s.push(M)}return this.options.includeChildren}),Fn.create(t,s)}}})]}}),dbe=I2.extend({defaultOptions:{...I2.options,emptyEditorClass:"is-editor-empty color-gray-60",placeholder:"Escreva a descrição aqui"}}),A2=ks.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",li(this.options.HTMLAttributes,t)]},renderText(){return`
274
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:i})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:s,storedMarks:o}=n;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:u}=this.options,{splittableMarks:d}=i.extensionManager,f=o||s.$to.parentOffset&&s.$from.marks();return e().insertContent({type:this.name}).command(({tr:p,dispatch:v})=>{if(v&&f&&u){const y=f.filter(M=>d.includes(M.type.name));p.ensureMarks(y)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),fbe=A2.extend({defaultOptions:{...A2.options,keepMarks:!1},addKeyboardShortcuts(){return{"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Wy=200,Jn=function(){};Jn.prototype.append=function(e){return e.length?(e=Jn.from(e),!this.length&&e||e.length<Wy&&this.leafAppend(e)||this.length<Wy&&e.leafPrepend(this)||this.appendInner(e)):this},Jn.prototype.prepend=function(e){return e.length?Jn.from(e).append(this):this},Jn.prototype.appendInner=function(e){return new hbe(this,e)},Jn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Jn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Jn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Jn.prototype.forEach=function(e,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length),n<=i?this.forEachInner(e,n,i,0):this.forEachInvertedInner(e,n,i,0)},Jn.prototype.map=function(e,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length);var s=[];return this.forEach(function(o,u){return s.push(e(o,u))},n,i),s},Jn.from=function(e){return e instanceof Jn?e:e&&e.length?new j2(e):Jn.empty};var j2=function(t){function e(i){t.call(this),this.values=i}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(s,o){return s==0&&o==this.length?this:new e(this.values.slice(s,o))},e.prototype.getInner=function(s){return this.values[s]},e.prototype.forEachInner=function(s,o,u,d){for(var f=o;f<u;f++)if(s(this.values[f],d+f)===!1)return!1},e.prototype.forEachInvertedInner=function(s,o,u,d){for(var f=o-1;f>=u;f--)if(s(this.values[f],d+f)===!1)return!1},e.prototype.leafAppend=function(s){if(this.length+s.length<=Wy)return new e(this.values.concat(s.flatten()))},e.prototype.leafPrepend=function(s){if(this.length+s.length<=Wy)return new e(s.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Jn);Jn.empty=new j2([]);var hbe=function(t){function e(n,i){t.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(i){return i<this.left.length?this.left.get(i):this.right.get(i-this.left.length)},e.prototype.forEachInner=function(i,s,o,u){var d=this.left.length;if(s<d&&this.left.forEachInner(i,s,Math.min(o,d),u)===!1||o>d&&this.right.forEachInner(i,Math.max(s-d,0),Math.min(this.length,o)-d,u+d)===!1)return!1},e.prototype.forEachInvertedInner=function(i,s,o,u){var d=this.left.length;if(s>d&&this.right.forEachInvertedInner(i,s-d,Math.max(o,d)-d,u+d)===!1||o<d&&this.left.forEachInvertedInner(i,Math.min(s,d),o,u)===!1)return!1},e.prototype.sliceInner=function(i,s){if(i==0&&s==this.length)return this;var o=this.left.length;return s<=o?this.left.slice(i,s):i>=o?this.right.slice(i-o,s-o):this.left.slice(i,o).append(this.right.slice(0,s-o))},e.prototype.leafAppend=function(i){var s=this.right.leafAppend(i);if(s)return new e(this.left,s)},e.prototype.leafPrepend=function(i){var s=this.left.leafPrepend(i);if(s)return new e(s,this.right)},e.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new e(this.left,new e(this.right,i)):new e(this,i)},e}(Jn);const pbe=500;class Os{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let s,o;n&&(s=this.remapping(i,this.items.length),o=s.maps.length);let u=e.tr,d,f,p=[],v=[];return this.items.forEach((y,M)=>{if(!y.step){s||(s=this.remapping(i,M+1),o=s.maps.length),o--,v.push(y);return}if(s){v.push(new va(y.map));let b=y.step.map(s.slice(o)),x;b&&u.maybeStep(b).doc&&(x=u.mapping.maps[u.mapping.maps.length-1],p.push(new va(x,void 0,void 0,p.length+v.length))),o--,x&&s.appendMap(x,o)}else u.maybeStep(y.step);if(y.selection)return d=s?y.selection.map(s.slice(o)):y.selection,f=new Os(this.items.slice(0,i).append(v.reverse().concat(p)),this.eventCount-1),!1},this.items.length,0),{remaining:f,transform:u,selection:d}}addTransform(e,n,i,s){let o=[],u=this.eventCount,d=this.items,f=!s&&d.length?d.get(d.length-1):null;for(let v=0;v<e.steps.length;v++){let y=e.steps[v].invert(e.docs[v]),M=new va(e.mapping.maps[v],y,n),b;(b=f&&f.merge(M))&&(M=b,v?o.pop():d=d.slice(0,d.length-1)),o.push(M),n&&(u++,n=void 0),s||(f=M)}let p=u-i.depth;return p>gbe&&(d=mbe(d,p),u-=p),new Os(d.append(o),u)}remapping(e,n){let i=new jc;return this.items.forEach((s,o)=>{let u=s.mirrorOffset!=null&&o-s.mirrorOffset>=e?i.maps.length-s.mirrorOffset:void 0;i.appendMap(s.map,u)},e,n),i}addMaps(e){return this.eventCount==0?this:new Os(this.items.append(e.map(n=>new va(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let i=[],s=Math.max(0,this.items.length-n),o=e.mapping,u=e.steps.length,d=this.eventCount;this.items.forEach(M=>{M.selection&&d--},s);let f=n;this.items.forEach(M=>{let b=o.getMirror(--f);if(b==null)return;u=Math.min(u,b);let x=o.maps[b];if(M.step){let N=e.steps[b].invert(e.docs[b]),w=M.selection&&M.selection.map(o.slice(f+1,b));w&&d++,i.push(new va(x,N,w))}else i.push(new va(x))},s);let p=[];for(let M=n;M<u;M++)p.push(new va(o.maps[M]));let v=this.items.slice(0,s).append(p).append(i),y=new Os(v,d);return y.emptyItemCount()>pbe&&(y=y.compress(this.items.length-i.length)),y}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),i=n.maps.length,s=[],o=0;return this.items.forEach((u,d)=>{if(d>=e)s.push(u),u.selection&&o++;else if(u.step){let f=u.step.map(n.slice(i)),p=f&&f.getMap();if(i--,p&&n.appendMap(p,i),f){let v=u.selection&&u.selection.map(n.slice(i));v&&o++;let y=new va(p.invert(),f,v),M,b=s.length-1;(M=s.length&&s[b].merge(y))?s[b]=M:s.push(y)}}else u.map&&i--},this.items.length,0),new Os(Jn.from(s.reverse()),o)}}Os.empty=new Os(Jn.empty,0);function mbe(t,e){let n;return t.forEach((i,s)=>{if(i.selection&&e--==0)return n=s,!1}),t.slice(n)}class va{constructor(e,n,i,s){this.map=e,this.step=n,this.selection=i,this.mirrorOffset=s}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new va(n.getMap().invert(),n,this.selection)}}}class Uo{constructor(e,n,i,s,o){this.done=e,this.undone=n,this.prevRanges=i,this.prevTime=s,this.prevComposition=o}}const gbe=20;function vbe(t,e,n,i){let s=n.getMeta(Vo),o;if(s)return s.historyState;n.getMeta(bbe)&&(t=new Uo(t.done,t.undone,null,0,-1));let u=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(u&&u.getMeta(Vo))return u.getMeta(Vo).redo?new Uo(t.done.addTransform(n,void 0,i,Qy(e)),t.undone,$2(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new Uo(t.done,t.undone.addTransform(n,void 0,i,Qy(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(u&&u.getMeta("addToHistory")===!1)){let d=n.getMeta("composition"),f=t.prevTime==0||!u&&t.prevComposition!=d&&(t.prevTime<(n.time||0)-i.newGroupDelay||!ybe(n,t.prevRanges)),p=u?LT(t.prevRanges,n.mapping):$2(n.mapping.maps[n.steps.length-1]);return new Uo(t.done.addTransform(n,f?e.selection.getBookmark():void 0,i,Qy(e)),Os.empty,p,n.time,d??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Uo(t.done.rebased(n,o),t.undone.rebased(n,o),LT(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Uo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),LT(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function ybe(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((i,s)=>{for(let o=0;o<e.length;o+=2)i<=e[o+1]&&s>=e[o]&&(n=!0)}),n}function $2(t){let e=[];return t.forEach((n,i,s,o)=>e.push(s,o)),e}function LT(t,e){if(!t)return null;let n=[];for(let i=0;i<t.length;i+=2){let s=e.map(t[i],1),o=e.map(t[i+1],-1);s<=o&&n.push(s,o)}return n}function L2(t,e,n,i){let s=Qy(e),o=Vo.get(e).spec.config,u=(i?t.undone:t.done).popEvent(e,s);if(!u)return;let d=u.selection.resolve(u.transform.doc),f=(i?t.done:t.undone).addTransform(u.transform,e.selection.getBookmark(),o,s),p=new Uo(i?f:u.remaining,i?u.remaining:f,null,0,-1);n(u.transform.setSelection(d).setMeta(Vo,{redo:i,historyState:p}).scrollIntoView())}let zT=!1,z2=null;function Qy(t){let e=t.plugins;if(z2!=e){zT=!1,z2=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){zT=!0;break}}return zT}const Vo=new Vr("history"),bbe=new Vr("closeHistory");function _be(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new sr({key:Vo,state:{init(){return new Uo(Os.empty,Os.empty,null,0,-1)},apply(e,n,i){return vbe(n,i,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let i=n.inputType,s=i=="historyUndo"?P2:i=="historyRedo"?R2:null;return s?(n.preventDefault(),s(e.state,e.dispatch)):!1}}}})}const P2=(t,e)=>{let n=Vo.getState(t);return!n||n.done.eventCount==0?!1:(e&&L2(n,t,e,!1),!0)},R2=(t,e)=>{let n=Vo.getState(t);return!n||n.undone.eventCount==0?!1:(e&&L2(n,t,e,!0),!0)},F2=Qr.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>P2(t,e),redo:()=>({state:t,dispatch:e})=>R2(t,e)}},addProseMirrorPlugins(){return[_be(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Mbe=F2.extend({defaultOptions:{...F2.options,newGroupDelay:150}});var xbe="4.0.0";function Cbe(t){return t===void 0}function Zr(t){return typeof t=="boolean"}function Sbe(t,e){for(var n in e)e.hasOwnProperty(n)&&Cbe(t[n])&&(t[n]=e[n]);return t}function Tbe(t,e,n){var i;return t.length>e&&(n==null?(n="&hellip;",i=3):i=n.length,t=t.substring(0,e-i)+n),t}function cn(t,e){for(var n=t.length-1;n>=0;n--)t[n]===e&&t.splice(n,1)}function cu(t,e){for(var n=t.length-1;n>=0;n--)e(t[n])===!0&&t.splice(n,1)}function Gh(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var od=/[A-Za-z]/,Ti=/[\d]/,Es=/\s/,PT=/['"]/,Dbe=/[\x00-\x1F\x7F]/,wbe=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,Nbe=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,kbe=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,Obe=wbe+Nbe+kbe,Ebe=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,B2=Obe+Ebe,du=new RegExp("[".concat(B2,"]")),U2=function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,n){var i=this.getAttrs();return i[e]=n,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var n=this.getClass(),i=n?n.split(Es):[],s=e.split(Es),o;o=s.shift();)i.indexOf(o)===-1&&i.push(o);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(e){for(var n=this.getClass(),i=n?n.split(Es):[],s=e.split(Es),o;i.length&&(o=s.shift());){var u=i.indexOf(o);u!==-1&&i.splice(u,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),n=this.buildAttrsStr();return n=n?" "+n:"",["<",e,n,">",this.getInnerHtml(),"</",e,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),n=[];for(var i in e)e.hasOwnProperty(i)&&n.push(i+'="'+e[i]+'"');return n.join(" ")},t}();function Ibe(t,e,n){var i,s;n==null?(n="&hellip;",s=3,i=8):(s=n.length,i=n.length);var o=function(E){var S={},T=E,O=T.match(/^([a-z]+):\/\//i);return O&&(S.scheme=O[1],T=T.substr(O[0].length)),O=T.match(/^(.*?)(?=(\?|#|\/|$))/i),O&&(S.host=O[1],T=T.substr(O[0].length)),O=T.match(/^\/(.*?)(?=(\?|#|$))/i),O&&(S.path=O[1],T=T.substr(O[0].length)),O=T.match(/^\?(.*?)(?=(#|$))/i),O&&(S.query=O[1],T=T.substr(O[0].length)),O=T.match(/^#(.*?)$/i),O&&(S.fragment=O[1]),S},u=function(E){var S="";return E.scheme&&E.host&&(S+=E.scheme+"://"),E.host&&(S+=E.host),E.path&&(S+="/"+E.path),E.query&&(S+="?"+E.query),E.fragment&&(S+="#"+E.fragment),S},d=function(E,S){var T=S/2,O=Math.ceil(T),j=-1*Math.floor(T),$="";return j<0&&($=E.substr(j)),E.substr(0,O)+n+$};if(t.length<=e)return t;var f=e-s,p=o(t);if(p.query){var v=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);v&&(p.query=p.query.substr(0,v[1].length),t=u(p))}if(t.length<=e||(p.host&&(p.host=p.host.replace(/^www\./,""),t=u(p)),t.length<=e))return t;var y="";if(p.host&&(y+=p.host),y.length>=f)return p.host.length==e?(p.host.substr(0,e-s)+n).substr(0,f+i):d(y,f).substr(0,f+i);var M="";if(p.path&&(M+="/"+p.path),p.query&&(M+="?"+p.query),M)if((y+M).length>=f){if((y+M).length==e)return(y+M).substr(0,e);var b=f-y.length;return(y+d(M,b)).substr(0,f+i)}else y+=M;if(p.fragment){var x="#"+p.fragment;if((y+x).length>=f){if((y+x).length==e)return(y+x).substr(0,e);var N=f-y.length;return(y+d(x,N)).substr(0,f+i)}else y+=x}if(p.scheme&&p.host){var w=p.scheme+"://";if((y+w).length<f)return(w+y).substr(0,e)}if(y.length<=e)return y;var k="";return f>0&&(k=y.substr(-1*Math.floor(f/2))),(y.substr(0,Math.ceil(f/2))+n+k).substr(0,f+i)}function Abe(t,e,n){if(t.length<=e)return t;var i,s;n==null?(n="&hellip;",i=8,s=3):(i=n.length,s=n.length);var o=e-s,u="";return o>0&&(u=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+n+u).substr(0,o+i)}function jbe(t,e,n){return Tbe(t,e,n)}var $be=function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new U2({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var n={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(n.class=i),this.newWindow&&(n.target="_blank",n.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(n.title=e.getAnchorHref()),n},t.prototype.createCssClass=function(e){var n=this.className;if(n){for(var i=[n],s=e.getCssClassSuffixes(),o=0,u=s.length;o<u;o++)i.push(n+"-"+s[o]);return i.join(" ")}else return""},t.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},t.prototype.doTruncate=function(e){var n=this.truncate;if(!n||!n.length)return e;var i=n.length,s=n.location;return s==="smart"?Ibe(e,i):s==="middle"?Abe(e,i):jbe(e,i)},t}(),RT=function(t,e){return RT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},RT(t,e)};function Kh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");RT(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ei=function(){return ei=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ei.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var qh=function(){function t(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),Lbe="(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)",zbe=new RegExp("^"+Lbe+"$"),Pbe=/[\/?#]/,Rbe=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,V2=/[?!:,.;^]/,Y2=/https?:\/\//i,Fbe=new RegExp("^"+Y2.source,"i"),Bbe=new RegExp(V2.source+"$"),Ube=/^(javascript|vbscript):/i,Vbe=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,Ybe=/^(?:\/\/)?([^/#?:]+)/;function FT(t){return od.test(t)}function H2(t){return od.test(t)||Ti.test(t)||t==="+"||t==="-"||t==="."}function Yo(t){return du.test(t)}function BT(t){return t==="_"||Yo(t)}function W2(t){return du.test(t)||Rbe.test(t)||V2.test(t)}function UT(t){return Pbe.test(t)}function Q2(t){return zbe.test(t.toLowerCase())}function Hbe(t){if(Ube.test(t))return!1;var e=t.match(Vbe);if(!e)return!1;var n=!!e[1],i=e[2];return n?!0:!(i.indexOf(".")===-1||!od.test(i))}function Wbe(t){var e=t.match(Ybe);if(!e)return!1;var n=e[0],i=n.split(".");if(i.length<2)return!1;var s=i[i.length-1];return!!Q2(s)}var Qbe=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Gbe=/[:/?#]/;function Kbe(t){var e=t.split(Gbe,1)[0];return Qbe.test(e)}var qbe=/^(https?:\/\/)?(www\.)?/i,Xbe=/^\/\//,Zbe=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=n.urlMatchType,i.url=n.url,i.protocolRelativeMatch=n.protocolRelativeMatch,i.stripPrefix=n.stripPrefix,i.stripTrailingSlash=n.stripTrailingSlash,i.decodePercentEncoding=n.decodePercentEncoding,i}return e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var n=this.url;return!this.protocolRelativeMatch&&this.urlMatchType!=="scheme"&&!this.protocolPrepended&&(n=this.url="http://"+n,this.protocolPrepended=!0),n},e.prototype.getAnchorHref=function(){var n=this.getUrl();return n.replace(/&amp;/g,"&")},e.prototype.getAnchorText=function(){var n=this.getMatchedText();return this.protocolRelativeMatch&&(n=t_e(n)),this.stripPrefix.scheme&&(n=Jbe(n)),this.stripPrefix.www&&(n=e_e(n)),this.stripTrailingSlash&&(n=n_e(n)),this.decodePercentEncoding&&(n=i_e(n)),n},e}(qh);function Jbe(t){return t.replace(Fbe,"")}function e_e(t){return t.replace(qbe,"$1")}function t_e(t){return t.replace(Xbe,"")}function n_e(t){return t.charAt(t.length-1)==="/"&&(t=t.slice(0,-1)),t}function i_e(t){var e=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(e)}catch{return e}}var r_e=/^mailto:/i,s_e=new RegExp("[".concat(B2,"!#$%&'*+/=?^_`{|}~-]"));function a_e(t){return du.test(t)}function VT(t){return s_e.test(t)}function o_e(t){var e=t.split(".").pop()||"";return Q2(e)}var l_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="email",i.email="",i.email=n.email,i}return e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e}(qh);function G2(t){return t==="_"||du.test(t)}function u_e(t){return t.length<=140}var c_e=["twitter","facebook","instagram","tiktok"],d_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=n.serviceName,i.hashtag=n.hashtag,i}return e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var n=this.serviceName,i=this.hashtag;switch(n){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw Gh(n),new Error("Invalid hashtag service: ".concat(n))}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&n.push(i),n},e}(qh),f_e={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},h_e=/[-\w.]/;function K2(t){return h_e.test(t)}function p_e(t,e){var n=f_e[e];return n.test(t)}var m_e=["twitter","instagram","soundcloud","tiktok"],g_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=n.mention,i.serviceName=n.serviceName,i}return e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&n.push(i),n},e}(qh),v_e=/[-. ]/,y_e=/[-. ()]/,b_e=/[,;]/,M_e=/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/,x_e=/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,C_e=new RegExp("^".concat(M_e.source,"|").concat(x_e.source,"$"));function q2(t){return v_e.test(t)}function YT(t){return b_e.test(t)}function S_e(t){var e=t.charAt(0)==="+"||y_e.test(t);return e&&C_e.test(t)}var T_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=n.number,i.plusSign=n.plusSign,i}return e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e}(qh);function D_e(t,e){for(var n=e.tagBuilder,i=e.stripPrefix,s=e.stripTrailingSlash,o=e.decodePercentEncoding,u=e.hashtagServiceName,d=e.mentionServiceName,f=[],p=t.length,v=[],y=0;y<p;y++){var M=t.charAt(y);if(v.length===0)w(M);else for(var b=v.length-1;b>=0;b--){var x=v[b];switch(x.state){case 11:j(x,M);break;case 12:$(x,M);break;case 0:k(x,M);break;case 1:E(x,M);break;case 2:S(x,M);break;case 3:T(x,M);break;case 4:O(x,M);break;case 5:R(x,M);break;case 6:W(x,M);break;case 7:ee(x,M);break;case 13:q(x,M);break;case 14:G(x,M);break;case 8:Y(x,M);break;case 9:J(x,M);break;case 10:Z(x,M);break;case 15:X(x,M);break;case 16:te(x,M);break;case 17:oe(x,M);break;case 18:be(x,M);break;case 19:xe(x,M);break;case 20:De(x,M);break;case 21:$e(x,M);break;case 22:Ke(x,M);break;case 23:Ie(x,M);break;case 24:ve(x,M);break;case 25:H(x,M);break;case 26:ue(x,M);break;case 27:me(x,M);break;case 28:ge(x,M);break;case 29:ie(x,M);break;case 30:pe(x,M);break;case 31:Ee(x,M);break;case 32:Ge(x,M);break;case 33:ct(x,M);break;case 34:bt(x,M);break;case 35:et(x,M);break;case 36:pt(x,M);break;case 37:Re(x,M);break;case 38:Qt(x,M);break;case 39:Dt(x,M);break;case 40:Ot(x,M);break;case 41:qt(x,M);break;default:Gh(x.state)}}}for(var N=v.length-1;N>=0;N--)v.forEach(function(P){return ce(P)});return f;function w(P){if(P==="#")v.push(E_e(y,28));else if(P==="@")v.push(I_e(y,30));else if(P==="/")v.push(WT(y,11));else if(P==="+")v.push(QT(y,37));else if(P==="(")v.push(QT(y,32));else{if(Ti.test(P)&&(v.push(QT(y,38)),v.push(k_e(y,13))),a_e(P)){var B=P.toLowerCase()==="m"?15:22;v.push(O_e(y,B))}FT(P)&&v.push(HT(y,0)),du.test(P)&&v.push(WT(y,5))}}function k(P,B){B===":"?P.state=2:B==="-"?P.state=1:H2(B)||cn(v,P)}function E(P,B){B==="-"||(B==="/"?(cn(v,P),v.push(WT(y,11))):H2(B)?P.state=0:cn(v,P))}function S(P,B){B==="/"?P.state=3:B==="."?cn(v,P):Yo(B)?(P.state=5,FT(B)&&v.push(HT(y,0))):cn(v,P)}function T(P,B){B==="/"?P.state=4:W2(B)?(P.state=10,P.acceptStateReached=!0):ce(P)}function O(P,B){B==="/"?P.state=10:Yo(B)?(P.state=5,P.acceptStateReached=!0):cn(v,P)}function j(P,B){B==="/"?P.state=12:cn(v,P)}function $(P,B){Yo(B)?P.state=5:cn(v,P)}function R(P,B){B==="."?P.state=7:B==="-"?P.state=6:B===":"?P.state=8:UT(B)?P.state=10:BT(B)||ce(P)}function W(P,B){B==="-"||(B==="."?ce(P):Yo(B)?P.state=5:ce(P))}function ee(P,B){B==="."?ce(P):Yo(B)?(P.state=5,P.acceptStateReached=!0):ce(P)}function q(P,B){B==="."?P.state=14:B===":"?P.state=8:Ti.test(B)||(UT(B)?P.state=10:du.test(B)?cn(v,P):ce(P))}function G(P,B){Ti.test(B)?(P.octetsEncountered++,P.octetsEncountered===4&&(P.acceptStateReached=!0),P.state=13):ce(P)}function Y(P,B){Ti.test(B)?P.state=9:ce(P)}function J(P,B){Ti.test(B)||(UT(B)?P.state=10:ce(P))}function Z(P,B){W2(B)||ce(P)}function X(P,B){B.toLowerCase()==="a"?P.state=16:Ke(P,B)}function te(P,B){B.toLowerCase()==="i"?P.state=17:Ke(P,B)}function oe(P,B){B.toLowerCase()==="l"?P.state=18:Ke(P,B)}function be(P,B){B.toLowerCase()==="t"?P.state=19:Ke(P,B)}function xe(P,B){B.toLowerCase()==="o"?P.state=20:Ke(P,B)}function De(P,B){B.toLowerCase()===":"?P.state=21:Ke(P,B)}function $e(P,B){VT(B)?P.state=22:cn(v,P)}function Ke(P,B){B==="."?P.state=23:B==="@"?P.state=24:VT(B)?P.state=22:cn(v,P)}function Ie(P,B){B==="."||B==="@"?cn(v,P):VT(B)?P.state=22:cn(v,P)}function ve(P,B){Yo(B)?P.state=25:cn(v,P)}function H(P,B){B==="."?P.state=27:B==="-"?P.state=26:BT(B)||ce(P)}function ue(P,B){B==="-"||B==="."?ce(P):BT(B)?P.state=25:ce(P)}function me(P,B){B==="."||B==="-"?ce(P):Yo(B)?(P.state=25,P.acceptStateReached=!0):ce(P)}function ge(P,B){G2(B)?(P.state=29,P.acceptStateReached=!0):cn(v,P)}function ie(P,B){G2(B)||ce(P)}function pe(P,B){K2(B)?(P.state=31,P.acceptStateReached=!0):cn(v,P)}function Ee(P,B){K2(B)||(du.test(B)?cn(v,P):ce(P))}function Re(P,B){Ti.test(B)?P.state=38:(cn(v,P),w(B))}function Ge(P,B){Ti.test(B)?P.state=33:cn(v,P),w(B)}function ct(P,B){Ti.test(B)?P.state=34:cn(v,P)}function bt(P,B){Ti.test(B)?P.state=35:cn(v,P)}function et(P,B){B===")"?P.state=36:cn(v,P)}function pt(P,B){Ti.test(B)?P.state=38:q2(B)?P.state=39:cn(v,P)}function Qt(P,B){P.acceptStateReached=!0,YT(B)?P.state=40:B==="#"?P.state=41:Ti.test(B)||(B==="("?P.state=32:q2(B)?P.state=39:(ce(P),FT(B)&&v.push(HT(y,0))))}function Dt(P,B){Ti.test(B)?P.state=38:B==="("?P.state=32:(ce(P),w(B))}function Ot(P,B){YT(B)||(B==="#"?P.state=41:Ti.test(B)?P.state=38:ce(P))}function qt(P,B){YT(B)?P.state=40:Ti.test(B)?cn(v,P):ce(P)}function ce(P){if(cn(v,P),!!P.acceptStateReached){var B=P.startIdx,re=t.slice(P.startIdx,y);if(re=N_e(re),P.type==="url"){var we=t.charAt(P.startIdx-1);if(we==="@")return;var ze=P.matchType;if(ze==="scheme"){var ot=Y2.exec(re);if(ot&&(B=B+ot.index,re=re.slice(ot.index)),!Hbe(re))return}else if(ze==="tld"){if(!Wbe(re))return}else if(ze==="ipV4"){if(!Kbe(re))return}else Gh(ze);f.push(new Zbe({tagBuilder:n,matchedText:re,offset:B,urlMatchType:ze,url:re,protocolRelativeMatch:re.slice(0,2)==="//",stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:o}))}else if(P.type==="email")o_e(re)&&f.push(new l_e({tagBuilder:n,matchedText:re,offset:B,email:re.replace(r_e,"")}));else if(P.type==="hashtag")u_e(re)&&f.push(new d_e({tagBuilder:n,matchedText:re,offset:B,serviceName:u,hashtag:re.slice(1)}));else if(P.type==="mention")p_e(re,d)&&f.push(new g_e({tagBuilder:n,matchedText:re,offset:B,serviceName:d,mention:re.slice(1)}));else if(P.type==="phone"){if(re=re.replace(/ +$/g,""),S_e(re)){var lt=re.replace(/[^0-9,;#]/g,"");f.push(new T_e({tagBuilder:n,matchedText:re,offset:B,number:lt,plusSign:re.charAt(0)==="+"}))}}else Gh(P)}}}var w_e=/[\(\{\[]/,X2=/[\)\}\]]/,Z2={")":"(","}":"{","]":"["};function N_e(t){for(var e={"(":0,"{":0,"[":0},n=0;n<t.length;n++){var i=t.charAt(n);w_e.test(i)?e[i]++:X2.test(i)&&e[Z2[i]]--}for(var s=t.length-1,o;s>=0;)if(o=t.charAt(s),X2.test(o)){var u=Z2[o];if(e[u]<0)e[u]++,s--;else break}else if(Bbe.test(o))s--;else break;return t.slice(0,s+1)}function HT(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"scheme"}}function WT(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"tld"}}function k_e(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}function O_e(t,e){return{type:"email",startIdx:t,state:e,acceptStateReached:!1}}function E_e(t,e){return{type:"hashtag",startIdx:t,state:e,acceptStateReached:!1}}function I_e(t,e){return{type:"mention",startIdx:t,state:e,acceptStateReached:!1}}function QT(t,e){return{type:"phone",startIdx:t,state:e,acceptStateReached:!1}}function A_e(t,e){for(var n=e.onOpenTag,i=e.onCloseTag,s=e.onText,o=e.onComment,u=e.onDoctype,d=new ya,f=0,p=t.length,v=0,y=0,M=d;f<p;){var b=t.charAt(f);switch(v){case 0:x(b);break;case 1:N(b);break;case 2:k(b);break;case 3:w(b);break;case 4:E(b);break;case 5:S(b);break;case 6:T(b);break;case 7:O(b);break;case 8:j(b);break;case 9:$(b);break;case 10:R(b);break;case 11:W(b);break;case 12:ee(b);break;case 13:q();break;case 14:G(b);break;case 15:Y(b);break;case 16:J(b);break;case 17:Z(b);break;case 18:X(b);break;case 19:te(b);break;case 20:oe(b);break;default:Gh(v)}f++}y<f&&$e();function x(ve){ve==="<"&&xe()}function N(ve){ve==="!"?v=13:ve==="/"?(v=2,M=new ya(ei(ei({},M),{isClosing:!0}))):ve==="<"?xe():od.test(ve)?(v=3,M=new ya(ei(ei({},M),{isOpening:!0}))):(v=0,M=d)}function w(ve){Es.test(ve)?(M=new ya(ei(ei({},M),{name:Ke()})),v=4):ve==="<"?xe():ve==="/"?(M=new ya(ei(ei({},M),{name:Ke()})),v=12):ve===">"?(M=new ya(ei(ei({},M),{name:Ke()})),De()):!od.test(ve)&&!Ti.test(ve)&&ve!==":"&&be()}function k(ve){ve===">"?be():od.test(ve)?v=3:be()}function E(ve){Es.test(ve)||(ve==="/"?v=12:ve===">"?De():ve==="<"?xe():ve==="="||PT.test(ve)||Dbe.test(ve)?be():v=5)}function S(ve){Es.test(ve)?v=6:ve==="/"?v=12:ve==="="?v=7:ve===">"?De():ve==="<"?xe():PT.test(ve)&&be()}function T(ve){Es.test(ve)||(ve==="/"?v=12:ve==="="?v=7:ve===">"?De():ve==="<"?xe():PT.test(ve)?be():v=5)}function O(ve){Es.test(ve)||(ve==='"'?v=8:ve==="'"?v=9:/[>=`]/.test(ve)?be():ve==="<"?xe():v=10)}function j(ve){ve==='"'&&(v=11)}function $(ve){ve==="'"&&(v=11)}function R(ve){Es.test(ve)?v=4:ve===">"?De():ve==="<"&&xe()}function W(ve){Es.test(ve)?v=4:ve==="/"?v=12:ve===">"?De():ve==="<"?xe():(v=4,Ie())}function ee(ve){ve===">"?(M=new ya(ei(ei({},M),{isClosing:!0})),De()):v=4}function q(ve){t.substr(f,2)==="--"?(f+=2,M=new ya(ei(ei({},M),{type:"comment"})),v=14):t.substr(f,7).toUpperCase()==="DOCTYPE"?(f+=7,M=new ya(ei(ei({},M),{type:"doctype"})),v=20):be()}function G(ve){ve==="-"?v=15:ve===">"?be():v=16}function Y(ve){ve==="-"?v=18:ve===">"?be():v=16}function J(ve){ve==="-"&&(v=17)}function Z(ve){ve==="-"?v=18:v=16}function X(ve){ve===">"?De():ve==="!"?v=19:ve==="-"||(v=16)}function te(ve){ve==="-"?v=17:ve===">"?De():v=16}function oe(ve){ve===">"?De():ve==="<"&&xe()}function be(){v=0,M=d}function xe(){v=1,M=new ya({idx:f})}function De(){var ve=t.slice(y,M.idx);ve&&s(ve,y),M.type==="comment"?o(M.idx):M.type==="doctype"?u(M.idx):(M.isOpening&&n(M.name,M.idx),M.isClosing&&i(M.name,M.idx)),be(),y=f+1}function $e(){var ve=t.slice(y,f);s(ve,y),y=f+1}function Ke(){var ve=M.idx+(M.isClosing?2:1);return t.slice(ve,f).toLowerCase()}function Ie(){f--}}var ya=function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return t}(),GT=function(){function t(e){e===void 0&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=j_e(e.urls),this.email=Zr(e.email)?e.email:this.email,this.phone=Zr(e.phone)?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=Zr(e.newWindow)?e.newWindow:this.newWindow,this.stripPrefix=$_e(e.stripPrefix),this.stripTrailingSlash=Zr(e.stripTrailingSlash)?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Zr(e.decodePercentEncoding)?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var n=this.mention;if(n!==!1&&m_e.indexOf(n)===-1)throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var i=this.hashtag;if(i!==!1&&c_e.indexOf(i)===-1)throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=L_e(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,n){var i=new t(n);return i.link(e)},t.parse=function(e,n){var i=new t(n);return i.parse(e)},t.prototype.parse=function(e){var n=this,i=["a","style","script"],s=0,o=[];return A_e(e,{onOpenTag:function(u){i.indexOf(u)>=0&&s++},onText:function(u,d){if(s===0){var f=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,p=u.split(f),v=d;p.forEach(function(y,M){if(M%2===0){var b=n.parseText(y,v);o.push.apply(o,b)}v+=y.length})}},onCloseTag:function(u){i.indexOf(u)>=0&&(s=Math.max(s-1,0))},onComment:function(u){},onDoctype:function(u){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o),o},t.prototype.compactMatches=function(e){e.sort(function(f,p){return f.getOffset()-p.getOffset()});for(var n=0;n<e.length-1;){var i=e[n],s=i.getOffset(),o=i.getMatchedText().length,u=s+o;if(n+1<e.length){if(e[n+1].getOffset()===s){var d=e[n+1].getMatchedText().length>o?n:n+1;e.splice(d,1);continue}if(e[n+1].getOffset()<u){e.splice(n+1,1);continue}}n++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||cu(e,function(n){return n.getType()==="hashtag"}),this.email||cu(e,function(n){return n.getType()==="email"}),this.phone||cu(e,function(n){return n.getType()==="phone"}),this.mention||cu(e,function(n){return n.getType()==="mention"}),this.urls.schemeMatches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="scheme"}),this.urls.tldMatches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="tld"}),this.urls.ipV4Matches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="ipV4"}),e},t.prototype.parseText=function(e,n){n===void 0&&(n=0),n=n||0;for(var i=D_e(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),s=0,o=i.length;s<o;s++)i[s].setOffset(n+i[s].getOffset());return i},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var n=this.parse(e),i=[],s=0,o=0,u=n.length;o<u;o++){var d=n[o];i.push(e.substring(s,d.getOffset())),i.push(this.createMatchReturnVal(d)),s=d.getOffset()+d.getMatchedText().length}return i.push(e.substring(s)),i.join("")},t.prototype.createMatchReturnVal=function(e){var n;if(this.replaceFn&&(n=this.replaceFn.call(this.context,e)),typeof n=="string")return n;if(n===!1)return e.getMatchedText();if(n instanceof U2)return n.toAnchorString();var i=e.buildTag();return i.toAnchorString()},t.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new $be({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=xbe,t}();function j_e(t){return t==null&&(t=!0),Zr(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:Zr(t.schemeMatches)?t.schemeMatches:!0,tldMatches:Zr(t.tldMatches)?t.tldMatches:!0,ipV4Matches:Zr(t.ipV4Matches)?t.ipV4Matches:!0}}function $_e(t){return t==null&&(t=!0),Zr(t)?{scheme:t,www:t}:{scheme:Zr(t.scheme)?t.scheme:!0,www:Zr(t.www)?t.www:!0}}function L_e(t){return typeof t=="number"?{length:t,location:"end"}:Sbe(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}function z_e(t){return t.startsWith("http://")||t.startsWith("https://")?t:"https://"+t}const EIe="",P_e={props:{previousURL:String},data(){return{linkToAppend:this.previousURL,linkError:""}},methods:{insertLink(){this.isLinkValid(this.linkToAppend)?(this.linkError=!1,this.$emit("setLink",{url:z_e(this.linkToAppend),insertedText:this.linkToAppend}),this.$emit("close")):this.linkError=!0},isLinkValid(t){return GT.link(t,{email:!1}).includes("href")}},computed:{disableButton(){return this.linkToAppend===""||this.linkToAppend===void 0}}};var R_e=function(){var e=this,n=e._self._c;return n("l-box",{staticClass:"link-box column"},[n("div",{staticClass:"wrapper-input mb-3"},[n("l-input",{staticStyle:{"box-sizing":"border-box"},attrs:{placeholder:"Insira um link",error:e.linkError,autofocus:""},model:{value:e.linkToAppend,callback:function(i){e.linkToAppend=i},expression:"linkToAppend"}}),e.linkError?n("div",{staticClass:"l-input-error-message"},[e._v(" Insira um link válido ")]):e._e()],1),n("div",{staticClass:"wrapper-buttons row l-justify-content-end"},[n("l-button",{attrs:{size:"small"},on:{click:function(i){return e.$emit("close")}}},[e._v("Cancelar")]),n("l-button",{attrs:{size:"small",type:"primary",disabled:e.disableButton},on:{click:function(i){return e.insertLink()}}},[e._v("Inserir")])],1)])},F_e=[],B_e=Qe(P_e,R_e,F_e,!1,null,"594513ec",null,null);const U_e=B_e.exports,IIe="",V_e={props:{dataLink:String},data(){return{boxButtons:[{tooltip:"Editar link",icon:"uil-edit",event:"edit"},{tooltip:"Remover link",icon:"uil-link-broken",event:"remove"}],tooltipDelay:125}},methods:{actionButtonBased(t){this.$emit(t)}},computed:{tooltipLink(){return this.dataLink.length>=60?this.dataLink.slice(0,60)+"...":this.dataLink}}};var Y_e=function(){var e=this,n=e._self._c;return n("div",{staticClass:"wrapper-floating-link l-ra-1 px-2 py-2 row l-align-items-center l-align-content-center"},[n("l-icon",{staticClass:"color-lead-light mr-2",attrs:{size:"24",icon:"uil-globe"}}),n("l-tooltip",{staticClass:"item color-link",attrs:{content:e.tooltipLink}},[n("a",{staticClass:"l-flex-grow-1 h6 color-link l-ellipsis",staticStyle:{display:"inline"},attrs:{target:"_blank",rel:"nofollow noopener noreferrer",href:e.dataLink,"open-delay":e.tooltipDelay}},[e._v(" "+e._s(e.dataLink)+" ")])]),e._l(e.boxButtons,function(i,s){return n("l-tooltip",{key:s,staticClass:"item",attrs:{content:i.tooltip,"open-delay":e.tooltipDelay}},[n("l-icon",{staticClass:"color-lead-light ml-2",attrs:{size:"20",icon:i.icon},on:{click:function(o){return e.actionButtonBased(i.event)}}})],1)})],2)},H_e=[],W_e=Qe(V_e,Y_e,H_e,!1,null,"2afc380d",null,null);const Q_e=W_e.exports,G_e=/<(\w+).[^>]*>\s*<\/\1>/g;function K_e(t){return t.replace(G_e,"")}/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Ho(t){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ho(t)}function KT(t,e){return KT=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i},KT(t,e)}function q_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gy(t,e,n){return q_e()?Gy=Reflect.construct:Gy=function(s,o,u){var d=[null];d.push.apply(d,o);var f=Function.bind.apply(s,d),p=new f;return u&&KT(p,u.prototype),p},Gy.apply(null,arguments)}function Is(t){return X_e(t)||Z_e(t)||J_e(t)||eMe()}function X_e(t){if(Array.isArray(t))return qT(t)}function Z_e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function J_e(t,e){if(t){if(typeof t=="string")return qT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qT(t,e)}}function qT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function eMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
274
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:i})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:s,storedMarks:o}=n;if(s.$from.parent.type.spec.isolating)return!1;const{keepMarks:u}=this.options,{splittableMarks:d}=i.extensionManager,f=o||s.$to.parentOffset&&s.$from.marks();return e().insertContent({type:this.name}).command(({tr:p,dispatch:v})=>{if(v&&f&&u){const y=f.filter(M=>d.includes(M.type.name));p.ensureMarks(y)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),fbe=A2.extend({defaultOptions:{...A2.options,keepMarks:!1},addKeyboardShortcuts(){return{"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Wy=200,Jn=function(){};Jn.prototype.append=function(e){return e.length?(e=Jn.from(e),!this.length&&e||e.length<Wy&&this.leafAppend(e)||this.length<Wy&&e.leafPrepend(this)||this.appendInner(e)):this},Jn.prototype.prepend=function(e){return e.length?Jn.from(e).append(this):this},Jn.prototype.appendInner=function(e){return new hbe(this,e)},Jn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Jn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Jn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Jn.prototype.forEach=function(e,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length),n<=i?this.forEachInner(e,n,i,0):this.forEachInvertedInner(e,n,i,0)},Jn.prototype.map=function(e,n,i){n===void 0&&(n=0),i===void 0&&(i=this.length);var s=[];return this.forEach(function(o,u){return s.push(e(o,u))},n,i),s},Jn.from=function(e){return e instanceof Jn?e:e&&e.length?new j2(e):Jn.empty};var j2=function(t){function e(i){t.call(this),this.values=i}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(s,o){return s==0&&o==this.length?this:new e(this.values.slice(s,o))},e.prototype.getInner=function(s){return this.values[s]},e.prototype.forEachInner=function(s,o,u,d){for(var f=o;f<u;f++)if(s(this.values[f],d+f)===!1)return!1},e.prototype.forEachInvertedInner=function(s,o,u,d){for(var f=o-1;f>=u;f--)if(s(this.values[f],d+f)===!1)return!1},e.prototype.leafAppend=function(s){if(this.length+s.length<=Wy)return new e(this.values.concat(s.flatten()))},e.prototype.leafPrepend=function(s){if(this.length+s.length<=Wy)return new e(s.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Jn);Jn.empty=new j2([]);var hbe=function(t){function e(n,i){t.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(i){return i<this.left.length?this.left.get(i):this.right.get(i-this.left.length)},e.prototype.forEachInner=function(i,s,o,u){var d=this.left.length;if(s<d&&this.left.forEachInner(i,s,Math.min(o,d),u)===!1||o>d&&this.right.forEachInner(i,Math.max(s-d,0),Math.min(this.length,o)-d,u+d)===!1)return!1},e.prototype.forEachInvertedInner=function(i,s,o,u){var d=this.left.length;if(s>d&&this.right.forEachInvertedInner(i,s-d,Math.max(o,d)-d,u+d)===!1||o<d&&this.left.forEachInvertedInner(i,Math.min(s,d),o,u)===!1)return!1},e.prototype.sliceInner=function(i,s){if(i==0&&s==this.length)return this;var o=this.left.length;return s<=o?this.left.slice(i,s):i>=o?this.right.slice(i-o,s-o):this.left.slice(i,o).append(this.right.slice(0,s-o))},e.prototype.leafAppend=function(i){var s=this.right.leafAppend(i);if(s)return new e(this.left,s)},e.prototype.leafPrepend=function(i){var s=this.left.leafPrepend(i);if(s)return new e(s,this.right)},e.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new e(this.left,new e(this.right,i)):new e(this,i)},e}(Jn);const pbe=500;class Os{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let s,o;n&&(s=this.remapping(i,this.items.length),o=s.maps.length);let u=e.tr,d,f,p=[],v=[];return this.items.forEach((y,M)=>{if(!y.step){s||(s=this.remapping(i,M+1),o=s.maps.length),o--,v.push(y);return}if(s){v.push(new va(y.map));let b=y.step.map(s.slice(o)),x;b&&u.maybeStep(b).doc&&(x=u.mapping.maps[u.mapping.maps.length-1],p.push(new va(x,void 0,void 0,p.length+v.length))),o--,x&&s.appendMap(x,o)}else u.maybeStep(y.step);if(y.selection)return d=s?y.selection.map(s.slice(o)):y.selection,f=new Os(this.items.slice(0,i).append(v.reverse().concat(p)),this.eventCount-1),!1},this.items.length,0),{remaining:f,transform:u,selection:d}}addTransform(e,n,i,s){let o=[],u=this.eventCount,d=this.items,f=!s&&d.length?d.get(d.length-1):null;for(let v=0;v<e.steps.length;v++){let y=e.steps[v].invert(e.docs[v]),M=new va(e.mapping.maps[v],y,n),b;(b=f&&f.merge(M))&&(M=b,v?o.pop():d=d.slice(0,d.length-1)),o.push(M),n&&(u++,n=void 0),s||(f=M)}let p=u-i.depth;return p>gbe&&(d=mbe(d,p),u-=p),new Os(d.append(o),u)}remapping(e,n){let i=new jc;return this.items.forEach((s,o)=>{let u=s.mirrorOffset!=null&&o-s.mirrorOffset>=e?i.maps.length-s.mirrorOffset:void 0;i.appendMap(s.map,u)},e,n),i}addMaps(e){return this.eventCount==0?this:new Os(this.items.append(e.map(n=>new va(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let i=[],s=Math.max(0,this.items.length-n),o=e.mapping,u=e.steps.length,d=this.eventCount;this.items.forEach(M=>{M.selection&&d--},s);let f=n;this.items.forEach(M=>{let b=o.getMirror(--f);if(b==null)return;u=Math.min(u,b);let x=o.maps[b];if(M.step){let N=e.steps[b].invert(e.docs[b]),w=M.selection&&M.selection.map(o.slice(f+1,b));w&&d++,i.push(new va(x,N,w))}else i.push(new va(x))},s);let p=[];for(let M=n;M<u;M++)p.push(new va(o.maps[M]));let v=this.items.slice(0,s).append(p).append(i),y=new Os(v,d);return y.emptyItemCount()>pbe&&(y=y.compress(this.items.length-i.length)),y}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),i=n.maps.length,s=[],o=0;return this.items.forEach((u,d)=>{if(d>=e)s.push(u),u.selection&&o++;else if(u.step){let f=u.step.map(n.slice(i)),p=f&&f.getMap();if(i--,p&&n.appendMap(p,i),f){let v=u.selection&&u.selection.map(n.slice(i));v&&o++;let y=new va(p.invert(),f,v),M,b=s.length-1;(M=s.length&&s[b].merge(y))?s[b]=M:s.push(y)}}else u.map&&i--},this.items.length,0),new Os(Jn.from(s.reverse()),o)}}Os.empty=new Os(Jn.empty,0);function mbe(t,e){let n;return t.forEach((i,s)=>{if(i.selection&&e--==0)return n=s,!1}),t.slice(n)}class va{constructor(e,n,i,s){this.map=e,this.step=n,this.selection=i,this.mirrorOffset=s}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new va(n.getMap().invert(),n,this.selection)}}}class Uo{constructor(e,n,i,s,o){this.done=e,this.undone=n,this.prevRanges=i,this.prevTime=s,this.prevComposition=o}}const gbe=20;function vbe(t,e,n,i){let s=n.getMeta(Vo),o;if(s)return s.historyState;n.getMeta(bbe)&&(t=new Uo(t.done,t.undone,null,0,-1));let u=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(u&&u.getMeta(Vo))return u.getMeta(Vo).redo?new Uo(t.done.addTransform(n,void 0,i,Qy(e)),t.undone,$2(n.mapping.maps[n.steps.length-1]),t.prevTime,t.prevComposition):new Uo(t.done,t.undone.addTransform(n,void 0,i,Qy(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(u&&u.getMeta("addToHistory")===!1)){let d=n.getMeta("composition"),f=t.prevTime==0||!u&&t.prevComposition!=d&&(t.prevTime<(n.time||0)-i.newGroupDelay||!ybe(n,t.prevRanges)),p=u?LT(t.prevRanges,n.mapping):$2(n.mapping.maps[n.steps.length-1]);return new Uo(t.done.addTransform(n,f?e.selection.getBookmark():void 0,i,Qy(e)),Os.empty,p,n.time,d??t.prevComposition)}else return(o=n.getMeta("rebased"))?new Uo(t.done.rebased(n,o),t.undone.rebased(n,o),LT(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Uo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),LT(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function ybe(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((i,s)=>{for(let o=0;o<e.length;o+=2)i<=e[o+1]&&s>=e[o]&&(n=!0)}),n}function $2(t){let e=[];return t.forEach((n,i,s,o)=>e.push(s,o)),e}function LT(t,e){if(!t)return null;let n=[];for(let i=0;i<t.length;i+=2){let s=e.map(t[i],1),o=e.map(t[i+1],-1);s<=o&&n.push(s,o)}return n}function L2(t,e,n,i){let s=Qy(e),o=Vo.get(e).spec.config,u=(i?t.undone:t.done).popEvent(e,s);if(!u)return;let d=u.selection.resolve(u.transform.doc),f=(i?t.done:t.undone).addTransform(u.transform,e.selection.getBookmark(),o,s),p=new Uo(i?f:u.remaining,i?u.remaining:f,null,0,-1);n(u.transform.setSelection(d).setMeta(Vo,{redo:i,historyState:p}).scrollIntoView())}let zT=!1,z2=null;function Qy(t){let e=t.plugins;if(z2!=e){zT=!1,z2=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){zT=!0;break}}return zT}const Vo=new Vr("history"),bbe=new Vr("closeHistory");function _be(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new sr({key:Vo,state:{init(){return new Uo(Os.empty,Os.empty,null,0,-1)},apply(e,n,i){return vbe(n,i,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let i=n.inputType,s=i=="historyUndo"?P2:i=="historyRedo"?R2:null;return s?(n.preventDefault(),s(e.state,e.dispatch)):!1}}}})}const P2=(t,e)=>{let n=Vo.getState(t);return!n||n.done.eventCount==0?!1:(e&&L2(n,t,e,!1),!0)},R2=(t,e)=>{let n=Vo.getState(t);return!n||n.undone.eventCount==0?!1:(e&&L2(n,t,e,!0),!0)},F2=Qr.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>P2(t,e),redo:()=>({state:t,dispatch:e})=>R2(t,e)}},addProseMirrorPlugins(){return[_be(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Mbe=F2.extend({defaultOptions:{...F2.options,newGroupDelay:150}});var xbe="4.0.0";function Cbe(t){return t===void 0}function Zr(t){return typeof t=="boolean"}function Sbe(t,e){for(var n in e)e.hasOwnProperty(n)&&Cbe(t[n])&&(t[n]=e[n]);return t}function Tbe(t,e,n){var i;return t.length>e&&(n==null?(n="&hellip;",i=3):i=n.length,t=t.substring(0,e-i)+n),t}function cn(t,e){for(var n=t.length-1;n>=0;n--)t[n]===e&&t.splice(n,1)}function cu(t,e){for(var n=t.length-1;n>=0;n--)e(t[n])===!0&&t.splice(n,1)}function Gh(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var od=/[A-Za-z]/,Ti=/[\d]/,Es=/\s/,PT=/['"]/,Dbe=/[\x00-\x1F\x7F]/,wbe=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,Nbe=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,kbe=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,Obe=wbe+Nbe+kbe,Ebe=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,B2=Obe+Ebe,du=new RegExp("[".concat(B2,"]")),U2=function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,n){var i=this.getAttrs();return i[e]=n,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var n=this.getClass(),i=n?n.split(Es):[],s=e.split(Es),o;o=s.shift();)i.indexOf(o)===-1&&i.push(o);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(e){for(var n=this.getClass(),i=n?n.split(Es):[],s=e.split(Es),o;i.length&&(o=s.shift());){var u=i.indexOf(o);u!==-1&&i.splice(u,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),n=this.buildAttrsStr();return n=n?" "+n:"",["<",e,n,">",this.getInnerHtml(),"</",e,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),n=[];for(var i in e)e.hasOwnProperty(i)&&n.push(i+'="'+e[i]+'"');return n.join(" ")},t}();function Ibe(t,e,n){var i,s;n==null?(n="&hellip;",s=3,i=8):(s=n.length,i=n.length);var o=function(E){var S={},T=E,O=T.match(/^([a-z]+):\/\//i);return O&&(S.scheme=O[1],T=T.substr(O[0].length)),O=T.match(/^(.*?)(?=(\?|#|\/|$))/i),O&&(S.host=O[1],T=T.substr(O[0].length)),O=T.match(/^\/(.*?)(?=(\?|#|$))/i),O&&(S.path=O[1],T=T.substr(O[0].length)),O=T.match(/^\?(.*?)(?=(#|$))/i),O&&(S.query=O[1],T=T.substr(O[0].length)),O=T.match(/^#(.*?)$/i),O&&(S.fragment=O[1]),S},u=function(E){var S="";return E.scheme&&E.host&&(S+=E.scheme+"://"),E.host&&(S+=E.host),E.path&&(S+="/"+E.path),E.query&&(S+="?"+E.query),E.fragment&&(S+="#"+E.fragment),S},d=function(E,S){var T=S/2,O=Math.ceil(T),j=-1*Math.floor(T),$="";return j<0&&($=E.substr(j)),E.substr(0,O)+n+$};if(t.length<=e)return t;var f=e-s,p=o(t);if(p.query){var v=p.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);v&&(p.query=p.query.substr(0,v[1].length),t=u(p))}if(t.length<=e||(p.host&&(p.host=p.host.replace(/^www\./,""),t=u(p)),t.length<=e))return t;var y="";if(p.host&&(y+=p.host),y.length>=f)return p.host.length==e?(p.host.substr(0,e-s)+n).substr(0,f+i):d(y,f).substr(0,f+i);var M="";if(p.path&&(M+="/"+p.path),p.query&&(M+="?"+p.query),M)if((y+M).length>=f){if((y+M).length==e)return(y+M).substr(0,e);var b=f-y.length;return(y+d(M,b)).substr(0,f+i)}else y+=M;if(p.fragment){var x="#"+p.fragment;if((y+x).length>=f){if((y+x).length==e)return(y+x).substr(0,e);var N=f-y.length;return(y+d(x,N)).substr(0,f+i)}else y+=x}if(p.scheme&&p.host){var w=p.scheme+"://";if((y+w).length<f)return(w+y).substr(0,e)}if(y.length<=e)return y;var k="";return f>0&&(k=y.substr(-1*Math.floor(f/2))),(y.substr(0,Math.ceil(f/2))+n+k).substr(0,f+i)}function Abe(t,e,n){if(t.length<=e)return t;var i,s;n==null?(n="&hellip;",i=8,s=3):(i=n.length,s=n.length);var o=e-s,u="";return o>0&&(u=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+n+u).substr(0,o+i)}function jbe(t,e,n){return Tbe(t,e,n)}var $be=function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new U2({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var n={href:e.getAnchorHref()},i=this.createCssClass(e);return i&&(n.class=i),this.newWindow&&(n.target="_blank",n.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(n.title=e.getAnchorHref()),n},t.prototype.createCssClass=function(e){var n=this.className;if(n){for(var i=[n],s=e.getCssClassSuffixes(),o=0,u=s.length;o<u;o++)i.push(n+"-"+s[o]);return i.join(" ")}else return""},t.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},t.prototype.doTruncate=function(e){var n=this.truncate;if(!n||!n.length)return e;var i=n.length,s=n.location;return s==="smart"?Ibe(e,i):s==="middle"?Abe(e,i):jbe(e,i)},t}(),RT=function(t,e){return RT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},RT(t,e)};function Kh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");RT(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ei=function(){return ei=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ei.apply(this,arguments)};typeof SuppressedError=="function"&&SuppressedError;var qh=function(){function t(e){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),Lbe="(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)",zbe=new RegExp("^"+Lbe+"$"),Pbe=/[\/?#]/,Rbe=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,V2=/[?!:,.;^]/,Y2=/https?:\/\//i,Fbe=new RegExp("^"+Y2.source,"i"),Bbe=new RegExp(V2.source+"$"),Ube=/^(javascript|vbscript):/i,Vbe=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,Ybe=/^(?:\/\/)?([^/#?:]+)/;function FT(t){return od.test(t)}function H2(t){return od.test(t)||Ti.test(t)||t==="+"||t==="-"||t==="."}function Yo(t){return du.test(t)}function BT(t){return t==="_"||Yo(t)}function W2(t){return du.test(t)||Rbe.test(t)||V2.test(t)}function UT(t){return Pbe.test(t)}function Q2(t){return zbe.test(t.toLowerCase())}function Hbe(t){if(Ube.test(t))return!1;var e=t.match(Vbe);if(!e)return!1;var n=!!e[1],i=e[2];return n?!0:!(i.indexOf(".")===-1||!od.test(i))}function Wbe(t){var e=t.match(Ybe);if(!e)return!1;var n=e[0],i=n.split(".");if(i.length<2)return!1;var s=i[i.length-1];return!!Q2(s)}var Qbe=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,Gbe=/[:/?#]/;function Kbe(t){var e=t.split(Gbe,1)[0];return Qbe.test(e)}var qbe=/^(https?:\/\/)?(www\.)?/i,Xbe=/^\/\//,Zbe=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=n.urlMatchType,i.url=n.url,i.protocolRelativeMatch=n.protocolRelativeMatch,i.stripPrefix=n.stripPrefix,i.stripTrailingSlash=n.stripTrailingSlash,i.decodePercentEncoding=n.decodePercentEncoding,i}return e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var n=this.url;return!this.protocolRelativeMatch&&this.urlMatchType!=="scheme"&&!this.protocolPrepended&&(n=this.url="http://"+n,this.protocolPrepended=!0),n},e.prototype.getAnchorHref=function(){var n=this.getUrl();return n.replace(/&amp;/g,"&")},e.prototype.getAnchorText=function(){var n=this.getMatchedText();return this.protocolRelativeMatch&&(n=t_e(n)),this.stripPrefix.scheme&&(n=Jbe(n)),this.stripPrefix.www&&(n=e_e(n)),this.stripTrailingSlash&&(n=n_e(n)),this.decodePercentEncoding&&(n=i_e(n)),n},e}(qh);function Jbe(t){return t.replace(Fbe,"")}function e_e(t){return t.replace(qbe,"$1")}function t_e(t){return t.replace(Xbe,"")}function n_e(t){return t.charAt(t.length-1)==="/"&&(t=t.slice(0,-1)),t}function i_e(t){var e=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(e)}catch{return e}}var r_e=/^mailto:/i,s_e=new RegExp("[".concat(B2,"!#$%&'*+/=?^_`{|}~-]"));function a_e(t){return du.test(t)}function VT(t){return s_e.test(t)}function o_e(t){var e=t.split(".").pop()||"";return Q2(e)}var l_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="email",i.email="",i.email=n.email,i}return e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e}(qh);function G2(t){return t==="_"||du.test(t)}function u_e(t){return t.length<=140}var c_e=["twitter","facebook","instagram","tiktok"],d_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=n.serviceName,i.hashtag=n.hashtag,i}return e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var n=this.serviceName,i=this.hashtag;switch(n){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw Gh(n),new Error("Invalid hashtag service: ".concat(n))}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&n.push(i),n},e}(qh),f_e={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},h_e=/[-\w.]/;function K2(t){return h_e.test(t)}function p_e(t,e){var n=f_e[e];return n.test(t)}var m_e=["twitter","instagram","soundcloud","tiktok"],g_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=n.mention,i.serviceName=n.serviceName,i}return e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var n=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&n.push(i),n},e}(qh),v_e=/[-. ]/,y_e=/[-. ()]/,b_e=/[,;]/,M_e=/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/,x_e=/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,C_e=new RegExp("^".concat(M_e.source,"|").concat(x_e.source,"$"));function q2(t){return v_e.test(t)}function YT(t){return b_e.test(t)}function S_e(t){var e=t.charAt(0)==="+"||y_e.test(t);return e&&C_e.test(t)}var T_e=function(t){Kh(e,t);function e(n){var i=t.call(this,n)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=n.number,i.plusSign=n.plusSign,i}return e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e}(qh);function D_e(t,e){for(var n=e.tagBuilder,i=e.stripPrefix,s=e.stripTrailingSlash,o=e.decodePercentEncoding,u=e.hashtagServiceName,d=e.mentionServiceName,f=[],p=t.length,v=[],y=0;y<p;y++){var M=t.charAt(y);if(v.length===0)w(M);else for(var b=v.length-1;b>=0;b--){var x=v[b];switch(x.state){case 11:j(x,M);break;case 12:$(x,M);break;case 0:k(x,M);break;case 1:E(x,M);break;case 2:S(x,M);break;case 3:T(x,M);break;case 4:O(x,M);break;case 5:R(x,M);break;case 6:W(x,M);break;case 7:ee(x,M);break;case 13:q(x,M);break;case 14:G(x,M);break;case 8:Y(x,M);break;case 9:J(x,M);break;case 10:Z(x,M);break;case 15:X(x,M);break;case 16:te(x,M);break;case 17:oe(x,M);break;case 18:be(x,M);break;case 19:xe(x,M);break;case 20:De(x,M);break;case 21:$e(x,M);break;case 22:Ke(x,M);break;case 23:Ie(x,M);break;case 24:ve(x,M);break;case 25:H(x,M);break;case 26:ue(x,M);break;case 27:me(x,M);break;case 28:ge(x,M);break;case 29:ie(x,M);break;case 30:pe(x,M);break;case 31:Ee(x,M);break;case 32:Ge(x,M);break;case 33:ct(x,M);break;case 34:bt(x,M);break;case 35:et(x,M);break;case 36:pt(x,M);break;case 37:Re(x,M);break;case 38:Qt(x,M);break;case 39:Dt(x,M);break;case 40:Ot(x,M);break;case 41:qt(x,M);break;default:Gh(x.state)}}}for(var N=v.length-1;N>=0;N--)v.forEach(function(P){return ce(P)});return f;function w(P){if(P==="#")v.push(E_e(y,28));else if(P==="@")v.push(I_e(y,30));else if(P==="/")v.push(WT(y,11));else if(P==="+")v.push(QT(y,37));else if(P==="(")v.push(QT(y,32));else{if(Ti.test(P)&&(v.push(QT(y,38)),v.push(k_e(y,13))),a_e(P)){var B=P.toLowerCase()==="m"?15:22;v.push(O_e(y,B))}FT(P)&&v.push(HT(y,0)),du.test(P)&&v.push(WT(y,5))}}function k(P,B){B===":"?P.state=2:B==="-"?P.state=1:H2(B)||cn(v,P)}function E(P,B){B==="-"||(B==="/"?(cn(v,P),v.push(WT(y,11))):H2(B)?P.state=0:cn(v,P))}function S(P,B){B==="/"?P.state=3:B==="."?cn(v,P):Yo(B)?(P.state=5,FT(B)&&v.push(HT(y,0))):cn(v,P)}function T(P,B){B==="/"?P.state=4:W2(B)?(P.state=10,P.acceptStateReached=!0):ce(P)}function O(P,B){B==="/"?P.state=10:Yo(B)?(P.state=5,P.acceptStateReached=!0):cn(v,P)}function j(P,B){B==="/"?P.state=12:cn(v,P)}function $(P,B){Yo(B)?P.state=5:cn(v,P)}function R(P,B){B==="."?P.state=7:B==="-"?P.state=6:B===":"?P.state=8:UT(B)?P.state=10:BT(B)||ce(P)}function W(P,B){B==="-"||(B==="."?ce(P):Yo(B)?P.state=5:ce(P))}function ee(P,B){B==="."?ce(P):Yo(B)?(P.state=5,P.acceptStateReached=!0):ce(P)}function q(P,B){B==="."?P.state=14:B===":"?P.state=8:Ti.test(B)||(UT(B)?P.state=10:du.test(B)?cn(v,P):ce(P))}function G(P,B){Ti.test(B)?(P.octetsEncountered++,P.octetsEncountered===4&&(P.acceptStateReached=!0),P.state=13):ce(P)}function Y(P,B){Ti.test(B)?P.state=9:ce(P)}function J(P,B){Ti.test(B)||(UT(B)?P.state=10:ce(P))}function Z(P,B){W2(B)||ce(P)}function X(P,B){B.toLowerCase()==="a"?P.state=16:Ke(P,B)}function te(P,B){B.toLowerCase()==="i"?P.state=17:Ke(P,B)}function oe(P,B){B.toLowerCase()==="l"?P.state=18:Ke(P,B)}function be(P,B){B.toLowerCase()==="t"?P.state=19:Ke(P,B)}function xe(P,B){B.toLowerCase()==="o"?P.state=20:Ke(P,B)}function De(P,B){B.toLowerCase()===":"?P.state=21:Ke(P,B)}function $e(P,B){VT(B)?P.state=22:cn(v,P)}function Ke(P,B){B==="."?P.state=23:B==="@"?P.state=24:VT(B)?P.state=22:cn(v,P)}function Ie(P,B){B==="."||B==="@"?cn(v,P):VT(B)?P.state=22:cn(v,P)}function ve(P,B){Yo(B)?P.state=25:cn(v,P)}function H(P,B){B==="."?P.state=27:B==="-"?P.state=26:BT(B)||ce(P)}function ue(P,B){B==="-"||B==="."?ce(P):BT(B)?P.state=25:ce(P)}function me(P,B){B==="."||B==="-"?ce(P):Yo(B)?(P.state=25,P.acceptStateReached=!0):ce(P)}function ge(P,B){G2(B)?(P.state=29,P.acceptStateReached=!0):cn(v,P)}function ie(P,B){G2(B)||ce(P)}function pe(P,B){K2(B)?(P.state=31,P.acceptStateReached=!0):cn(v,P)}function Ee(P,B){K2(B)||(du.test(B)?cn(v,P):ce(P))}function Re(P,B){Ti.test(B)?P.state=38:(cn(v,P),w(B))}function Ge(P,B){Ti.test(B)?P.state=33:cn(v,P),w(B)}function ct(P,B){Ti.test(B)?P.state=34:cn(v,P)}function bt(P,B){Ti.test(B)?P.state=35:cn(v,P)}function et(P,B){B===")"?P.state=36:cn(v,P)}function pt(P,B){Ti.test(B)?P.state=38:q2(B)?P.state=39:cn(v,P)}function Qt(P,B){P.acceptStateReached=!0,YT(B)?P.state=40:B==="#"?P.state=41:Ti.test(B)||(B==="("?P.state=32:q2(B)?P.state=39:(ce(P),FT(B)&&v.push(HT(y,0))))}function Dt(P,B){Ti.test(B)?P.state=38:B==="("?P.state=32:(ce(P),w(B))}function Ot(P,B){YT(B)||(B==="#"?P.state=41:Ti.test(B)?P.state=38:ce(P))}function qt(P,B){YT(B)?P.state=40:Ti.test(B)?cn(v,P):ce(P)}function ce(P){if(cn(v,P),!!P.acceptStateReached){var B=P.startIdx,re=t.slice(P.startIdx,y);if(re=N_e(re),P.type==="url"){var we=t.charAt(P.startIdx-1);if(we==="@")return;var ze=P.matchType;if(ze==="scheme"){var ot=Y2.exec(re);if(ot&&(B=B+ot.index,re=re.slice(ot.index)),!Hbe(re))return}else if(ze==="tld"){if(!Wbe(re))return}else if(ze==="ipV4"){if(!Kbe(re))return}else Gh(ze);f.push(new Zbe({tagBuilder:n,matchedText:re,offset:B,urlMatchType:ze,url:re,protocolRelativeMatch:re.slice(0,2)==="//",stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:o}))}else if(P.type==="email")o_e(re)&&f.push(new l_e({tagBuilder:n,matchedText:re,offset:B,email:re.replace(r_e,"")}));else if(P.type==="hashtag")u_e(re)&&f.push(new d_e({tagBuilder:n,matchedText:re,offset:B,serviceName:u,hashtag:re.slice(1)}));else if(P.type==="mention")p_e(re,d)&&f.push(new g_e({tagBuilder:n,matchedText:re,offset:B,serviceName:d,mention:re.slice(1)}));else if(P.type==="phone"){if(re=re.replace(/ +$/g,""),S_e(re)){var lt=re.replace(/[^0-9,;#]/g,"");f.push(new T_e({tagBuilder:n,matchedText:re,offset:B,number:lt,plusSign:re.charAt(0)==="+"}))}}else Gh(P)}}}var w_e=/[\(\{\[]/,X2=/[\)\}\]]/,Z2={")":"(","}":"{","]":"["};function N_e(t){for(var e={"(":0,"{":0,"[":0},n=0;n<t.length;n++){var i=t.charAt(n);w_e.test(i)?e[i]++:X2.test(i)&&e[Z2[i]]--}for(var s=t.length-1,o;s>=0;)if(o=t.charAt(s),X2.test(o)){var u=Z2[o];if(e[u]<0)e[u]++,s--;else break}else if(Bbe.test(o))s--;else break;return t.slice(0,s+1)}function HT(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"scheme"}}function WT(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"tld"}}function k_e(t,e){return{type:"url",startIdx:t,state:e,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}function O_e(t,e){return{type:"email",startIdx:t,state:e,acceptStateReached:!1}}function E_e(t,e){return{type:"hashtag",startIdx:t,state:e,acceptStateReached:!1}}function I_e(t,e){return{type:"mention",startIdx:t,state:e,acceptStateReached:!1}}function QT(t,e){return{type:"phone",startIdx:t,state:e,acceptStateReached:!1}}function A_e(t,e){for(var n=e.onOpenTag,i=e.onCloseTag,s=e.onText,o=e.onComment,u=e.onDoctype,d=new ya,f=0,p=t.length,v=0,y=0,M=d;f<p;){var b=t.charAt(f);switch(v){case 0:x(b);break;case 1:N(b);break;case 2:k(b);break;case 3:w(b);break;case 4:E(b);break;case 5:S(b);break;case 6:T(b);break;case 7:O(b);break;case 8:j(b);break;case 9:$(b);break;case 10:R(b);break;case 11:W(b);break;case 12:ee(b);break;case 13:q();break;case 14:G(b);break;case 15:Y(b);break;case 16:J(b);break;case 17:Z(b);break;case 18:X(b);break;case 19:te(b);break;case 20:oe(b);break;default:Gh(v)}f++}y<f&&$e();function x(ve){ve==="<"&&xe()}function N(ve){ve==="!"?v=13:ve==="/"?(v=2,M=new ya(ei(ei({},M),{isClosing:!0}))):ve==="<"?xe():od.test(ve)?(v=3,M=new ya(ei(ei({},M),{isOpening:!0}))):(v=0,M=d)}function w(ve){Es.test(ve)?(M=new ya(ei(ei({},M),{name:Ke()})),v=4):ve==="<"?xe():ve==="/"?(M=new ya(ei(ei({},M),{name:Ke()})),v=12):ve===">"?(M=new ya(ei(ei({},M),{name:Ke()})),De()):!od.test(ve)&&!Ti.test(ve)&&ve!==":"&&be()}function k(ve){ve===">"?be():od.test(ve)?v=3:be()}function E(ve){Es.test(ve)||(ve==="/"?v=12:ve===">"?De():ve==="<"?xe():ve==="="||PT.test(ve)||Dbe.test(ve)?be():v=5)}function S(ve){Es.test(ve)?v=6:ve==="/"?v=12:ve==="="?v=7:ve===">"?De():ve==="<"?xe():PT.test(ve)&&be()}function T(ve){Es.test(ve)||(ve==="/"?v=12:ve==="="?v=7:ve===">"?De():ve==="<"?xe():PT.test(ve)?be():v=5)}function O(ve){Es.test(ve)||(ve==='"'?v=8:ve==="'"?v=9:/[>=`]/.test(ve)?be():ve==="<"?xe():v=10)}function j(ve){ve==='"'&&(v=11)}function $(ve){ve==="'"&&(v=11)}function R(ve){Es.test(ve)?v=4:ve===">"?De():ve==="<"&&xe()}function W(ve){Es.test(ve)?v=4:ve==="/"?v=12:ve===">"?De():ve==="<"?xe():(v=4,Ie())}function ee(ve){ve===">"?(M=new ya(ei(ei({},M),{isClosing:!0})),De()):v=4}function q(ve){t.substr(f,2)==="--"?(f+=2,M=new ya(ei(ei({},M),{type:"comment"})),v=14):t.substr(f,7).toUpperCase()==="DOCTYPE"?(f+=7,M=new ya(ei(ei({},M),{type:"doctype"})),v=20):be()}function G(ve){ve==="-"?v=15:ve===">"?be():v=16}function Y(ve){ve==="-"?v=18:ve===">"?be():v=16}function J(ve){ve==="-"&&(v=17)}function Z(ve){ve==="-"?v=18:v=16}function X(ve){ve===">"?De():ve==="!"?v=19:ve==="-"||(v=16)}function te(ve){ve==="-"?v=17:ve===">"?De():v=16}function oe(ve){ve===">"?De():ve==="<"&&xe()}function be(){v=0,M=d}function xe(){v=1,M=new ya({idx:f})}function De(){var ve=t.slice(y,M.idx);ve&&s(ve,y),M.type==="comment"?o(M.idx):M.type==="doctype"?u(M.idx):(M.isOpening&&n(M.name,M.idx),M.isClosing&&i(M.name,M.idx)),be(),y=f+1}function $e(){var ve=t.slice(y,f);s(ve,y),y=f+1}function Ke(){var ve=M.idx+(M.isClosing?2:1);return t.slice(ve,f).toLowerCase()}function Ie(){f--}}var ya=function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return t}(),GT=function(){function t(e){e===void 0&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=j_e(e.urls),this.email=Zr(e.email)?e.email:this.email,this.phone=Zr(e.phone)?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=Zr(e.newWindow)?e.newWindow:this.newWindow,this.stripPrefix=$_e(e.stripPrefix),this.stripTrailingSlash=Zr(e.stripTrailingSlash)?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Zr(e.decodePercentEncoding)?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var n=this.mention;if(n!==!1&&m_e.indexOf(n)===-1)throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var i=this.hashtag;if(i!==!1&&c_e.indexOf(i)===-1)throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=L_e(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,n){var i=new t(n);return i.link(e)},t.parse=function(e,n){var i=new t(n);return i.parse(e)},t.prototype.parse=function(e){var n=this,i=["a","style","script"],s=0,o=[];return A_e(e,{onOpenTag:function(u){i.indexOf(u)>=0&&s++},onText:function(u,d){if(s===0){var f=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,p=u.split(f),v=d;p.forEach(function(y,M){if(M%2===0){var b=n.parseText(y,v);o.push.apply(o,b)}v+=y.length})}},onCloseTag:function(u){i.indexOf(u)>=0&&(s=Math.max(s-1,0))},onComment:function(u){},onDoctype:function(u){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o),o},t.prototype.compactMatches=function(e){e.sort(function(f,p){return f.getOffset()-p.getOffset()});for(var n=0;n<e.length-1;){var i=e[n],s=i.getOffset(),o=i.getMatchedText().length,u=s+o;if(n+1<e.length){if(e[n+1].getOffset()===s){var d=e[n+1].getMatchedText().length>o?n:n+1;e.splice(d,1);continue}if(e[n+1].getOffset()<u){e.splice(n+1,1);continue}}n++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||cu(e,function(n){return n.getType()==="hashtag"}),this.email||cu(e,function(n){return n.getType()==="email"}),this.phone||cu(e,function(n){return n.getType()==="phone"}),this.mention||cu(e,function(n){return n.getType()==="mention"}),this.urls.schemeMatches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="scheme"}),this.urls.tldMatches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="tld"}),this.urls.ipV4Matches||cu(e,function(n){return n.getType()==="url"&&n.getUrlMatchType()==="ipV4"}),e},t.prototype.parseText=function(e,n){n===void 0&&(n=0),n=n||0;for(var i=D_e(e,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),s=0,o=i.length;s<o;s++)i[s].setOffset(n+i[s].getOffset());return i},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var n=this.parse(e),i=[],s=0,o=0,u=n.length;o<u;o++){var d=n[o];i.push(e.substring(s,d.getOffset())),i.push(this.createMatchReturnVal(d)),s=d.getOffset()+d.getMatchedText().length}return i.push(e.substring(s)),i.join("")},t.prototype.createMatchReturnVal=function(e){var n;if(this.replaceFn&&(n=this.replaceFn.call(this.context,e)),typeof n=="string")return n;if(n===!1)return e.getMatchedText();if(n instanceof U2)return n.toAnchorString();var i=e.buildTag();return i.toAnchorString()},t.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new $be({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=xbe,t}();function j_e(t){return t==null&&(t=!0),Zr(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:Zr(t.schemeMatches)?t.schemeMatches:!0,tldMatches:Zr(t.tldMatches)?t.tldMatches:!0,ipV4Matches:Zr(t.ipV4Matches)?t.ipV4Matches:!0}}function $_e(t){return t==null&&(t=!0),Zr(t)?{scheme:t,www:t}:{scheme:Zr(t.scheme)?t.scheme:!0,www:Zr(t.www)?t.www:!0}}function L_e(t){return typeof t=="number"?{length:t,location:"end"}:Sbe(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}function z_e(t){return t.startsWith("http://")||t.startsWith("https://")?t:"https://"+t}const IIe="",P_e={props:{previousURL:String},data(){return{linkToAppend:this.previousURL,linkError:""}},methods:{insertLink(){this.isLinkValid(this.linkToAppend)?(this.linkError=!1,this.$emit("setLink",{url:z_e(this.linkToAppend),insertedText:this.linkToAppend}),this.$emit("close")):this.linkError=!0},isLinkValid(t){return GT.link(t,{email:!1}).includes("href")}},computed:{disableButton(){return this.linkToAppend===""||this.linkToAppend===void 0}}};var R_e=function(){var e=this,n=e._self._c;return n("l-box",{staticClass:"link-box column"},[n("div",{staticClass:"wrapper-input mb-3"},[n("l-input",{staticStyle:{"box-sizing":"border-box"},attrs:{placeholder:"Insira um link",error:e.linkError,autofocus:""},model:{value:e.linkToAppend,callback:function(i){e.linkToAppend=i},expression:"linkToAppend"}}),e.linkError?n("div",{staticClass:"l-input-error-message"},[e._v(" Insira um link válido ")]):e._e()],1),n("div",{staticClass:"wrapper-buttons row l-justify-content-end"},[n("l-button",{attrs:{size:"small"},on:{click:function(i){return e.$emit("close")}}},[e._v("Cancelar")]),n("l-button",{attrs:{size:"small",type:"primary",disabled:e.disableButton},on:{click:function(i){return e.insertLink()}}},[e._v("Inserir")])],1)])},F_e=[],B_e=Qe(P_e,R_e,F_e,!1,null,"594513ec",null,null);const U_e=B_e.exports,AIe="",V_e={props:{dataLink:String},data(){return{boxButtons:[{tooltip:"Editar link",icon:"uil-edit",event:"edit"},{tooltip:"Remover link",icon:"uil-link-broken",event:"remove"}],tooltipDelay:125}},methods:{actionButtonBased(t){this.$emit(t)}},computed:{tooltipLink(){return this.dataLink.length>=60?this.dataLink.slice(0,60)+"...":this.dataLink}}};var Y_e=function(){var e=this,n=e._self._c;return n("div",{staticClass:"wrapper-floating-link l-ra-1 px-2 py-2 row l-align-items-center l-align-content-center"},[n("l-icon",{staticClass:"color-lead-light mr-2",attrs:{size:"24",icon:"uil-globe"}}),n("l-tooltip",{staticClass:"item color-link",attrs:{content:e.tooltipLink}},[n("a",{staticClass:"l-flex-grow-1 h6 color-link l-ellipsis",staticStyle:{display:"inline"},attrs:{target:"_blank",rel:"nofollow noopener noreferrer",href:e.dataLink,"open-delay":e.tooltipDelay}},[e._v(" "+e._s(e.dataLink)+" ")])]),e._l(e.boxButtons,function(i,s){return n("l-tooltip",{key:s,staticClass:"item",attrs:{content:i.tooltip,"open-delay":e.tooltipDelay}},[n("l-icon",{staticClass:"color-lead-light ml-2",attrs:{size:"20",icon:i.icon},on:{click:function(o){return e.actionButtonBased(i.event)}}})],1)})],2)},H_e=[],W_e=Qe(V_e,Y_e,H_e,!1,null,"2afc380d",null,null);const Q_e=W_e.exports,G_e=/<(\w+).[^>]*>\s*<\/\1>/g;function K_e(t){return t.replace(G_e,"")}/*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */function Ho(t){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ho(t)}function KT(t,e){return KT=Object.setPrototypeOf||function(i,s){return i.__proto__=s,i},KT(t,e)}function q_e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gy(t,e,n){return q_e()?Gy=Reflect.construct:Gy=function(s,o,u){var d=[null];d.push.apply(d,o);var f=Function.bind.apply(s,d),p=new f;return u&&KT(p,u.prototype),p},Gy.apply(null,arguments)}function Is(t){return X_e(t)||Z_e(t)||J_e(t)||eMe()}function X_e(t){if(Array.isArray(t))return qT(t)}function Z_e(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function J_e(t,e){if(t){if(typeof t=="string")return qT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qT(t,e)}}function qT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function eMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
275
275
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tMe=Object.hasOwnProperty,J2=Object.setPrototypeOf,nMe=Object.isFrozen,iMe=Object.getPrototypeOf,rMe=Object.getOwnPropertyDescriptor,Fi=Object.freeze,As=Object.seal,sMe=Object.create,eP=typeof Reflect<"u"&&Reflect,Ky=eP.apply,XT=eP.construct;Ky||(Ky=function(e,n,i){return e.apply(n,i)}),Fi||(Fi=function(e){return e}),As||(As=function(e){return e}),XT||(XT=function(e,n){return Gy(e,Is(n))});var aMe=Jr(Array.prototype.forEach),tP=Jr(Array.prototype.pop),Xh=Jr(Array.prototype.push),qy=Jr(String.prototype.toLowerCase),ZT=Jr(String.prototype.toString),oMe=Jr(String.prototype.match),js=Jr(String.prototype.replace),lMe=Jr(String.prototype.indexOf),uMe=Jr(String.prototype.trim),Bi=Jr(RegExp.prototype.test),JT=cMe(TypeError);function Jr(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return Ky(t,e,i)}}function cMe(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return XT(t,n)}}function kt(t,e,n){var i;n=(i=n)!==null&&i!==void 0?i:qy,J2&&J2(t,null);for(var s=e.length;s--;){var o=e[s];if(typeof o=="string"){var u=n(o);u!==o&&(nMe(e)||(e[s]=u),o=u)}t[o]=!0}return t}function fu(t){var e=sMe(null),n;for(n in t)Ky(tMe,t,[n])===!0&&(e[n]=t[n]);return e}function Xy(t,e){for(;t!==null;){var n=rMe(t,e);if(n){if(n.get)return Jr(n.get);if(typeof n.value=="function")return Jr(n.value)}t=iMe(t)}function i(s){return console.warn("fallback value for",s),null}return i}var nP=Fi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eD=Fi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tD=Fi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dMe=Fi(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nD=Fi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),fMe=Fi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),iP=Fi(["#text"]),rP=Fi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),iD=Fi(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sP=Fi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zy=Fi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hMe=As(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pMe=As(/<%[\w\W]*|[\w\W]*%>/gm),mMe=As(/\${[\w\W]*}/gm),gMe=As(/^data-[\-\w.\u00B7-\uFFFF]/),vMe=As(/^aria-[\-\w]+$/),yMe=As(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bMe=As(/^(?:\w+script|data):/i),_Me=As(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MMe=As(/^html$/i),xMe=function(){return typeof window>"u"?null:window},CMe=function(e,n){if(Ho(e)!=="object"||typeof e.createPolicy!="function")return null;var i=null,s="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(s)&&(i=n.currentScript.getAttribute(s));var o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:function(d){return d},createScriptURL:function(d){return d}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function aP(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xMe(),e=function(le){return aP(le)};if(e.version="2.4.7",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;var n=t.document,i=t.document,s=t.DocumentFragment,o=t.HTMLTemplateElement,u=t.Node,d=t.Element,f=t.NodeFilter,p=t.NamedNodeMap,v=p===void 0?t.NamedNodeMap||t.MozNamedAttrMap:p,y=t.HTMLFormElement,M=t.DOMParser,b=t.trustedTypes,x=d.prototype,N=Xy(x,"cloneNode"),w=Xy(x,"nextSibling"),k=Xy(x,"childNodes"),E=Xy(x,"parentNode");if(typeof o=="function"){var S=i.createElement("template");S.content&&S.content.ownerDocument&&(i=S.content.ownerDocument)}var T=CMe(b,n),O=T?T.createHTML(""):"",j=i,$=j.implementation,R=j.createNodeIterator,W=j.createDocumentFragment,ee=j.getElementsByTagName,q=n.importNode,G={};try{G=fu(i).documentMode?i.documentMode:{}}catch{}var Y={};e.isSupported=typeof E=="function"&&$&&$.createHTMLDocument!==void 0&&G!==9;var J=hMe,Z=pMe,X=mMe,te=gMe,oe=vMe,be=bMe,xe=_Me,De=yMe,$e=null,Ke=kt({},[].concat(Is(nP),Is(eD),Is(tD),Is(nD),Is(iP))),Ie=null,ve=kt({},[].concat(Is(rP),Is(iD),Is(sP),Is(Zy))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,me=null,ge=!0,ie=!0,pe=!1,Ee=!0,Re=!1,Ge=!1,ct=!1,bt=!1,et=!1,pt=!1,Qt=!1,Dt=!0,Ot=!1,qt="user-content-",ce=!0,P=!1,B={},re=null,we=kt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ze=null,ot=kt({},["audio","video","img","source","image","track"]),lt=null,Fe=kt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",se="http://www.w3.org/1999/xhtml",ye=se,Me=!1,Pe=null,Ye=kt({},[je,rt,se],ZT),st,At=["application/xhtml+xml","text/html"],dn="text/html",Rt,Xt=null,Ni=i.createElement("form"),Yn=function(le){return le instanceof RegExp||le instanceof Function},fi=function(le){Xt&&Xt===le||((!le||Ho(le)!=="object")&&(le={}),le=fu(le),st=At.indexOf(le.PARSER_MEDIA_TYPE)===-1?st=dn:st=le.PARSER_MEDIA_TYPE,Rt=st==="application/xhtml+xml"?ZT:qy,$e="ALLOWED_TAGS"in le?kt({},le.ALLOWED_TAGS,Rt):Ke,Ie="ALLOWED_ATTR"in le?kt({},le.ALLOWED_ATTR,Rt):ve,Pe="ALLOWED_NAMESPACES"in le?kt({},le.ALLOWED_NAMESPACES,ZT):Ye,lt="ADD_URI_SAFE_ATTR"in le?kt(fu(Fe),le.ADD_URI_SAFE_ATTR,Rt):Fe,ze="ADD_DATA_URI_TAGS"in le?kt(fu(ot),le.ADD_DATA_URI_TAGS,Rt):ot,re="FORBID_CONTENTS"in le?kt({},le.FORBID_CONTENTS,Rt):we,ue="FORBID_TAGS"in le?kt({},le.FORBID_TAGS,Rt):{},me="FORBID_ATTR"in le?kt({},le.FORBID_ATTR,Rt):{},B="USE_PROFILES"in le?le.USE_PROFILES:!1,ge=le.ALLOW_ARIA_ATTR!==!1,ie=le.ALLOW_DATA_ATTR!==!1,pe=le.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=le.SAFE_FOR_TEMPLATES||!1,Ge=le.WHOLE_DOCUMENT||!1,et=le.RETURN_DOM||!1,pt=le.RETURN_DOM_FRAGMENT||!1,Qt=le.RETURN_TRUSTED_TYPE||!1,bt=le.FORCE_BODY||!1,Dt=le.SANITIZE_DOM!==!1,Ot=le.SANITIZE_NAMED_PROPS||!1,ce=le.KEEP_CONTENT!==!1,P=le.IN_PLACE||!1,De=le.ALLOWED_URI_REGEXP||De,ye=le.NAMESPACE||se,H=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&Yn(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&Yn(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ie=!1),pt&&(et=!0),B&&($e=kt({},Is(iP)),Ie=[],B.html===!0&&(kt($e,nP),kt(Ie,rP)),B.svg===!0&&(kt($e,eD),kt(Ie,iD),kt(Ie,Zy)),B.svgFilters===!0&&(kt($e,tD),kt(Ie,iD),kt(Ie,Zy)),B.mathMl===!0&&(kt($e,nD),kt(Ie,sP),kt(Ie,Zy))),le.ADD_TAGS&&($e===Ke&&($e=fu($e)),kt($e,le.ADD_TAGS,Rt)),le.ADD_ATTR&&(Ie===ve&&(Ie=fu(Ie)),kt(Ie,le.ADD_ATTR,Rt)),le.ADD_URI_SAFE_ATTR&&kt(lt,le.ADD_URI_SAFE_ATTR,Rt),le.FORBID_CONTENTS&&(re===we&&(re=fu(re)),kt(re,le.FORBID_CONTENTS,Rt)),ce&&($e["#text"]=!0),Ge&&kt($e,["html","head","body"]),$e.table&&(kt($e,["tbody"]),delete ue.tbody),Fi&&Fi(le),Xt=le)},mn=kt({},["mi","mo","mn","ms","mtext"]),Yi=kt({},["foreignobject","desc","title","annotation-xml"]),Ir=kt({},["title","style","font","a","script"]),nl=kt({},eD);kt(nl,tD),kt(nl,dMe);var Ws=kt({},nD);kt(Ws,fMe);var vp=function(le){var Ue=E(le);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:ye,tagName:"template"});var Ze=qy(le.tagName),$t=qy(Ue.tagName);return Pe[le.namespaceURI]?le.namespaceURI===rt?Ue.namespaceURI===se?Ze==="svg":Ue.namespaceURI===je?Ze==="svg"&&($t==="annotation-xml"||mn[$t]):!!nl[Ze]:le.namespaceURI===je?Ue.namespaceURI===se?Ze==="math":Ue.namespaceURI===rt?Ze==="math"&&Yi[$t]:!!Ws[Ze]:le.namespaceURI===se?Ue.namespaceURI===rt&&!Yi[$t]||Ue.namespaceURI===je&&!mn[$t]?!1:!Ws[Ze]&&(Ir[Ze]||!nl[Ze]):!!(st==="application/xhtml+xml"&&Pe[le.namespaceURI]):!1},Hi=function(le){Xh(e.removed,{element:le});try{le.parentNode.removeChild(le)}catch{try{le.outerHTML=O}catch{le.remove()}}},il=function(le,Ue){try{Xh(e.removed,{attribute:Ue.getAttributeNode(le),from:Ue})}catch{Xh(e.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(le),le==="is"&&!Ie[le])if(et||pt)try{Hi(Ue)}catch{}else try{Ue.setAttribute(le,"")}catch{}},Ne=function(le){var Ue,Ze;if(bt)le="<remove></remove>"+le;else{var $t=oMe(le,/^[\r\n\t ]+/);Ze=$t&&$t[0]}st==="application/xhtml+xml"&&ye===se&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");var ii=T?T.createHTML(le):le;if(ye===se)try{Ue=new M().parseFromString(ii,st)}catch{}if(!Ue||!Ue.documentElement){Ue=$.createDocument(ye,"template",null);try{Ue.documentElement.innerHTML=Me?O:ii}catch{}}var yn=Ue.body||Ue.documentElement;return le&&Ze&&yn.insertBefore(i.createTextNode(Ze),yn.childNodes[0]||null),ye===se?ee.call(Ue,Ge?"html":"body")[0]:Ge?Ue.documentElement:yn},_d=function(le){return R.call(le.ownerDocument||le,le,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},yp=function(le){return le instanceof y&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof v)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},Za=function(le){return Ho(u)==="object"?le instanceof u:le&&Ho(le)==="object"&&typeof le.nodeType=="number"&&typeof le.nodeName=="string"},Ar=function(le,Ue,Ze){Y[le]&&aMe(Y[le],function($t){$t.call(e,Ue,Ze,Xt)})},Su=function(le){var Ue;if(Ar("beforeSanitizeElements",le,null),yp(le)||Bi(/[\u0080-\uFFFF]/,le.nodeName))return Hi(le),!0;var Ze=Rt(le.nodeName);if(Ar("uponSanitizeElement",le,{tagName:Ze,allowedTags:$e}),le.hasChildNodes()&&!Za(le.firstElementChild)&&(!Za(le.content)||!Za(le.content.firstElementChild))&&Bi(/<[/\w]/g,le.innerHTML)&&Bi(/<[/\w]/g,le.textContent)||Ze==="select"&&Bi(/<template/i,le.innerHTML))return Hi(le),!0;if(!$e[Ze]||ue[Ze]){if(!ue[Ze]&&rl(Ze)&&(H.tagNameCheck instanceof RegExp&&Bi(H.tagNameCheck,Ze)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Ze)))return!1;if(ce&&!re[Ze]){var $t=E(le)||le.parentNode,ii=k(le)||le.childNodes;if(ii&&$t)for(var yn=ii.length,bn=yn-1;bn>=0;--bn)$t.insertBefore(N(ii[bn],!0),w(le))}return Hi(le),!0}return le instanceof d&&!vp(le)||(Ze==="noscript"||Ze==="noembed"||Ze==="noframes")&&Bi(/<\/no(script|embed|frames)/i,le.innerHTML)?(Hi(le),!0):(Re&&le.nodeType===3&&(Ue=le.textContent,Ue=js(Ue,J," "),Ue=js(Ue,Z," "),Ue=js(Ue,X," "),le.textContent!==Ue&&(Xh(e.removed,{element:le.cloneNode()}),le.textContent=Ue)),Ar("afterSanitizeElements",le,null),!1)},Ja=function(le,Ue,Ze){if(Dt&&(Ue==="id"||Ue==="name")&&(Ze in i||Ze in Ni))return!1;if(!(ie&&!me[Ue]&&Bi(te,Ue))){if(!(ge&&Bi(oe,Ue))){if(!Ie[Ue]||me[Ue]){if(!(rl(le)&&(H.tagNameCheck instanceof RegExp&&Bi(H.tagNameCheck,le)||H.tagNameCheck instanceof Function&&H.tagNameCheck(le))&&(H.attributeNameCheck instanceof RegExp&&Bi(H.attributeNameCheck,Ue)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(Ue))||Ue==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Bi(H.tagNameCheck,Ze)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Ze))))return!1}else if(!lt[Ue]){if(!Bi(De,js(Ze,xe,""))){if(!((Ue==="src"||Ue==="xlink:href"||Ue==="href")&&le!=="script"&&lMe(Ze,"data:")===0&&ze[le])){if(!(pe&&!Bi(be,js(Ze,xe,"")))){if(Ze)return!1}}}}}}return!0},rl=function(le){return le.indexOf("-")>0},Md=function(le){var Ue,Ze,$t,ii;Ar("beforeSanitizeAttributes",le,null);var yn=le.attributes;if(yn){var bn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie};for(ii=yn.length;ii--;){Ue=yn[ii];var to=Ue,Tn=to.name,sl=to.namespaceURI;if(Ze=Tn==="value"?Ue.value:uMe(Ue.value),$t=Rt(Tn),bn.attrName=$t,bn.attrValue=Ze,bn.keepAttr=!0,bn.forceKeepAttr=void 0,Ar("uponSanitizeAttribute",le,bn),Ze=bn.attrValue,!bn.forceKeepAttr&&(il(Tn,le),!!bn.keepAttr)){if(!Ee&&Bi(/\/>/i,Ze)){il(Tn,le);continue}Re&&(Ze=js(Ze,J," "),Ze=js(Ze,Z," "),Ze=js(Ze,X," "));var Tu=Rt(le.nodeName);if(Ja(Tu,$t,Ze)){if(Ot&&($t==="id"||$t==="name")&&(il(Tn,le),Ze=qt+Ze),T&&Ho(b)==="object"&&typeof b.getAttributeType=="function"&&!sl)switch(b.getAttributeType(Tu,$t)){case"TrustedHTML":{Ze=T.createHTML(Ze);break}case"TrustedScriptURL":{Ze=T.createScriptURL(Ze);break}}try{sl?le.setAttributeNS(sl,Tn,Ze):le.setAttribute(Tn,Ze),tP(e.removed)}catch{}}}}Ar("afterSanitizeAttributes",le,null)}},eo=function dt(le){var Ue,Ze=_d(le);for(Ar("beforeSanitizeShadowDOM",le,null);Ue=Ze.nextNode();)Ar("uponSanitizeShadowNode",Ue,null),!Su(Ue)&&(Ue.content instanceof s&&dt(Ue.content),Md(Ue));Ar("afterSanitizeShadowDOM",le,null)};return e.sanitize=function(dt){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue,Ze,$t,ii,yn;if(Me=!dt,Me&&(dt="<!-->"),typeof dt!="string"&&!Za(dt))if(typeof dt.toString=="function"){if(dt=dt.toString(),typeof dt!="string")throw JT("dirty is not a string, aborting")}else throw JT("toString is not a function");if(!e.isSupported){if(Ho(t.toStaticHTML)==="object"||typeof t.toStaticHTML=="function"){if(typeof dt=="string")return t.toStaticHTML(dt);if(Za(dt))return t.toStaticHTML(dt.outerHTML)}return dt}if(ct||fi(le),e.removed=[],typeof dt=="string"&&(P=!1),P){if(dt.nodeName){var bn=Rt(dt.nodeName);if(!$e[bn]||ue[bn])throw JT("root node is forbidden and cannot be sanitized in-place")}}else if(dt instanceof u)Ue=Ne("<!---->"),Ze=Ue.ownerDocument.importNode(dt,!0),Ze.nodeType===1&&Ze.nodeName==="BODY"||Ze.nodeName==="HTML"?Ue=Ze:Ue.appendChild(Ze);else{if(!et&&!Re&&!Ge&&dt.indexOf("<")===-1)return T&&Qt?T.createHTML(dt):dt;if(Ue=Ne(dt),!Ue)return et?null:Qt?O:""}Ue&&bt&&Hi(Ue.firstChild);for(var to=_d(P?dt:Ue);$t=to.nextNode();)$t.nodeType===3&&$t===ii||Su($t)||($t.content instanceof s&&eo($t.content),Md($t),ii=$t);if(ii=null,P)return dt;if(et){if(pt)for(yn=W.call(Ue.ownerDocument);Ue.firstChild;)yn.appendChild(Ue.firstChild);else yn=Ue;return(Ie.shadowroot||Ie.shadowrootmod)&&(yn=q.call(n,yn,!0)),yn}var Tn=Ge?Ue.outerHTML:Ue.innerHTML;return Ge&&$e["!doctype"]&&Ue.ownerDocument&&Ue.ownerDocument.doctype&&Ue.ownerDocument.doctype.name&&Bi(MMe,Ue.ownerDocument.doctype.name)&&(Tn="<!DOCTYPE "+Ue.ownerDocument.doctype.name+`>
276
- `+Tn),Re&&(Tn=js(Tn,J," "),Tn=js(Tn,Z," "),Tn=js(Tn,X," ")),T&&Qt?T.createHTML(Tn):Tn},e.setConfig=function(dt){fi(dt),ct=!0},e.clearConfig=function(){Xt=null,ct=!1},e.isValidAttribute=function(dt,le,Ue){Xt||fi({});var Ze=Rt(dt),$t=Rt(le);return Ja(Ze,$t,Ue)},e.addHook=function(dt,le){typeof le=="function"&&(Y[dt]=Y[dt]||[],Xh(Y[dt],le))},e.removeHook=function(dt){if(Y[dt])return tP(Y[dt])},e.removeHooks=function(dt){Y[dt]&&(Y[dt]=[])},e.removeAllHooks=function(){Y={}},e}var SMe=aP();const TMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNyAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMjM3MjQgMC44MzMyNTJDNy41NjcyNiAwLjgzMzI1MiA3LjgyODg3IDAuOTM5OTQgOC4wMjIwNSAxLjE1MzMyQzguMjIzMjggMS4zNTgxNiA4LjMyMzkgMS42MzU1NSA4LjMyMzkgMS45ODU0OVY4LjgzNDg4QzguMzIzOSA5LjE4NDgyIDguMjIzMjggOS40NjY0OCA4LjAyMjA1IDkuNjc5ODVDNy44Mjg4NyA5Ljg5MzIzIDcuNTY3MjYgOS45OTk5MiA3LjIzNzI0IDkuOTk5OTJDNi45MDcyMiA5Ljk5OTkyIDYuNjQxNiA5Ljg5NzUgNi40NDAzNyA5LjY5MjY2QzYuMjQ3MTggOS40NzkyOCA2LjE1MDU5IDkuMTkzMzUgNi4xNTA1OSA4LjgzNDg4VjYuMjc0MzZIMi42NzMzVjguODM0ODhDMi42NzMzIDkuMTg0ODIgMi41NzI2OSA5LjQ2NjQ4IDIuMzcxNDYgOS42Nzk4NUMyLjE3ODI3IDkuODkzMjMgMS45MTY2NyA5Ljk5OTkyIDEuNTg2NjUgOS45OTk5MkMxLjI1NjYzIDkuOTk5OTIgMC45OTEwMDYgOS44OTc1IDAuNzg5Nzc0IDkuNjkyNjZDMC41OTY1OTEgOS40NzkyOCAwLjUgOS4xOTMzNSAwLjUgOC44MzQ4OFYxLjk4NTQ5QzAuNSAxLjYzNTU1IDAuNTk2NTkxIDEuMzU4MTYgMC43ODk3NzQgMS4xNTMzMkMwLjk5MTAwNiAwLjkzOTk0IDEuMjU2NjMgMC44MzMyNTIgMS41ODY2NSAwLjgzMzI1MkMxLjkxNjY3IDAuODMzMjUyIDIuMTc4MjcgMC45Mzk5NCAyLjM3MTQ2IDEuMTUzMzJDMi41NzI2OSAxLjM1ODE2IDIuNjczMyAxLjYzNTU1IDIuNjczMyAxLjk4NTQ5VjQuNDA1MThINi4xNTA1OVYxLjk4NTQ5QzYuMTUwNTkgMS42MzU1NSA2LjI0NzE4IDEuMzU4MTYgNi40NDAzNyAxLjE1MzMyQzYuNjQxNiAwLjkzOTk0IDYuOTA3MjIgMC44MzMyNTIgNy4yMzcyNCAwLjgzMzI1MloiIGZpbGw9IiM0MzRFNUIiLz4KPHBhdGggZD0iTTE1LjI4MjkgOC4wNTM5MkMxNS42NDUxIDguMDUzOTIgMTUuOTEwNyA4LjEzMDc0IDE2LjA3OTggOC4yODQzN0MxNi4yNDg4IDguNDM4IDE2LjMzMzMgOC42Njg0NSAxNi4zMzMzIDguOTc1NzFDMTYuMzMzMyA5LjYwNzMxIDE1Ljk4MzIgOS45MjMxIDE1LjI4MjkgOS45MjMxSDExLjA5MzNDMTAuMzkzIDkuOTIzMSAxMC4wNDI4IDkuNjA3MzEgMTAuMDQyOCA4Ljk3NTcxQzEwLjA0MjggOC42Njg0NSAxMC4xMjczIDguNDM4IDEwLjI5NjQgOC4yODQzN0MxMC40NjU0IDguMTMwNzQgMTAuNzMxIDguMDUzOTIgMTEuMDkzMyA4LjA1MzkySDEyLjA3MTJWMy40MzIxOEwxMS4xMDUzIDQuMDMzOUMxMC45Njg1IDQuMTE5MjUgMTAuODI3NiA0LjE2MTkzIDEwLjY4MjcgNC4xNjE5M0MxMC40NTc0IDQuMTYxOTMgMTAuMjY0MiA0LjA1OTUxIDEwLjEwMzIgMy44NTQ2N0M5Ljk0MjIxIDMuNjQxMjkgOS44NjE3MiAzLjQwNjU4IDkuODYxNzIgMy4xNTA1MkM5Ljg2MTcyIDIuODAwNTkgMTAuMDAyNiAyLjUzNiAxMC4yODQzIDIuMzU2NzZMMTIuMjE2MSAxLjE2NjEyQzEyLjU3MDMgMC45NTI3NDMgMTIuOTA0MyAwLjg0NjA1NCAxMy4yMTgzIDAuODQ2MDU0QzEzLjU0MDIgMC44NDYwNTQgMTMuNzk3OCAwLjk0ODQ3NSAxMy45OTEgMS4xNTMzMkMxNC4xOTIyIDEuMzU4MTYgMTQuMjkyOCAxLjYzNTU1IDE0LjI5MjggMS45ODU0OVY4LjA1MzkySDE1LjI4MjlaIiBmaWxsPSIjNDM0RTVCIi8+Cjwvc3ZnPgo=",DMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxOCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNjU3MjkgNC4xNjIxNEM4LjY1NzI5IDEuOTYwMTMgNi44NjM5IDAuMTY2NzQ4IDQuNjYxOSAwLjE2Njc0OEMyLjQ1OTg5IDAuMTY2NzQ4IDAuNjY2NTA0IDEuOTYwMTMgMC42NjY1MDQgNC4xNjIxNEMwLjY2NjUwNCA2LjM2NDE0IDIuNDU5ODkgOC4xNTc1MyA0LjY2MTkgOC4xNTc1M0M1LjEzODYyIDguMTU3NTMgNS42MTUzNCA4LjA2NjczIDYuMDQ2NjYgNy45MDc4MkM1Ljk1NTg2IDguOTA2NjcgNS42NjA3NCA5LjkyODIyIDUuMTYxMzIgMTAuODgxN0M1LjExNTkyIDEwLjk0OTggNS4xMTU5MiAxMS4wNDA2IDUuMTM4NjIgMTEuMTA4N0M1LjE2MTMyIDExLjE1NDEgNS4yMDY3MiAxMS4xOTk1IDUuMjUyMTIgMTEuMTk5NUM1LjMyMDIzIDExLjIyMjIgNS4zODgzMyAxMS4xOTk1IDUuNDc5MTQgMTEuMTMxNEM2LjQzMjU4IDEwLjMxNDEgNy4yNDk4MiA5LjI0NzE4IDcuNzk0NjUgOC4wNjY3M0M4LjI5NDA3IDYuOTc3MDcgOC41ODkxOCA1LjgxOTMyIDguNjM0NTkgNC41OTM0NkM4LjY1NzI5IDQuNDU3MjUgOC42NTcyOSA0LjI5ODM1IDguNjU3MjkgNC4xNjIxNFoiIGZpbGw9IiM0MzRFNUIiLz4KPHBhdGggZD0iTTE3LjM1MTYgNC4xNjIxNEMxNy4zNTE2IDEuOTYwMTMgMTUuNTU4MiAwLjE2Njc0OCAxMy4zNTYyIDAuMTY2NzQ4QzExLjE1NDIgMC4xNjY3NDggOS4zNjA4NCAxLjk2MDEzIDkuMzYwODQgNC4xNjIxNEM5LjM2MDg0IDYuMzY0MTQgMTEuMTU0MiA4LjE1NzUzIDEzLjM1NjIgOC4xNTc1M0MxMy44MzMgOC4xNTc1MyAxNC4zMDk3IDguMDY2NzMgMTQuNzQxIDcuOTA3ODJDMTQuNjUwMiA4LjkwNjY3IDE0LjM1NTEgOS45MjgyMiAxMy44NTU3IDEwLjg4MTdDMTMuODEwMyAxMC45NDk4IDEzLjgxMDMgMTEuMDQwNiAxMy44MzMgMTEuMTA4N0MxMy44NTU3IDExLjE1NDEgMTMuOTAxMSAxMS4xOTk1IDEzLjk0NjUgMTEuMTk5NUMxNC4wMTQ2IDExLjIyMjIgMTQuMDgyNyAxMS4xOTk1IDE0LjE3MzUgMTEuMTMxNEMxNS4xMjY5IDEwLjMxNDEgMTUuOTQ0MiA5LjI0NzE4IDE2LjQ4OSA4LjA2NjczQzE2Ljk4ODQgNi45NzcwNyAxNy4yODM1IDUuODE5MzIgMTcuMzI4OSA0LjU5MzQ2QzE3LjM1MTYgNC40NTcyNSAxNy4zNTE2IDQuMjk4MzUgMTcuMzUxNiA0LjE2MjE0WiIgZmlsbD0iIzQzNEU1QiIvPgo8L3N2Zz4K",wMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuMzkyMDkgNy40MjQ4VjExLjE5OUM1LjM5MjA5IDExLjQ4OTMgNS40ODg4NiAxMS42ODI5IDUuNjgyNDEgMTEuODc2NEM1Ljg3NTk2IDEyLjA3IDYuMDY5NTEgMTIuMTY2NyA2LjM1OTgzIDEyLjE2NjdDNi42NTAxNSAxMi4xNjY3IDYuODQzNyAxMi4wNyA3LjAzNzI1IDExLjg3NjRDNy4yMzA4IDExLjY4MjkgNy4zMjc1NyAxMS40ODkzIDcuMzI3NTcgMTEuMTk5VjkuNDU3MDZMNS4zOTIwOSA3LjQyNDhaIiBmaWxsPSIjNDM0RTVCIi8+CjxwYXRoIGQ9Ik00LjMyNzU3IDIuNDg5NDRINS4zOTIwOVYzLjY1MDczTDcuMzI3NTcgNS42ODI5OVYyLjQ4OTQ0SDExLjE5ODVDMTEuNDg4OSAyLjQ4OTQ0IDExLjY4MjQgMi4zOTI2NiAxMS44NzYgMi4xOTkxMkMxMi4wNjk1IDIuMDA1NTcgMTIuMTY2MyAxLjgxMjAyIDEyLjE2NjMgMS41MjE3QzEyLjE2NjMgMS4yMzEzNyAxMi4wNjk1IDEuMDM3ODMgMTEuODc2IDAuODQ0Mjc4QzExLjY4MjQgMC42NTA3MjkgMTEuNDg4OSAwLjU1Mzk1NSAxMS4xOTg1IDAuNTUzOTU1SDIuMzkyMDlMNC4zMjc1NyAyLjQ4OTQ0WiIgZmlsbD0iIzQzNEU1QiIvPgo8cGF0aCBkPSJNMTAuNjE4MSAxMS44NzY0QzEwLjMyNzggMTEuODc2NCAxMC4xMzQyIDExLjc3OTcgOS45NDA3IDExLjU4NjFMMC40NTY4MjcgMS44MTE5MUMwLjI2MzI3OCAxLjYxODM2IDAuMTY2NTA0IDEuMzI4MDQgMC4xNjY1MDQgMS4xMzQ0OUMwLjE2NjUwNCAwLjg0NDE2NyAwLjI2MzI3OCAwLjY1MDYxOSAwLjQ1NjgyNyAwLjQ1NzA3MUMwLjY1MDM3NSAwLjI2MzUyMiAwLjg0MzkyMyAwLjE2Njc0OCAxLjEzNDI1IDAuMTY2NzQ4QzEuNDI0NTcgMC4xNjY3NDggMS42MTgxMiAwLjI2MzUyMiAxLjgxMTY3IDAuNDU3MDcxTDExLjI5NTUgMTAuMjMxM0MxMS40ODkxIDEwLjQyNDggMTEuNTg1OSAxMC42MTg0IDExLjU4NTkgMTAuOTA4N0MxMS41ODU5IDExLjE5OSAxMS40ODkxIDExLjM5MjYgMTEuMjk1NSAxMS41ODYxQzExLjEwMiAxMS43Nzk3IDEwLjkwODQgMTEuODc2NCAxMC42MTgxIDExLjg3NjRaIiBmaWxsPSIjNDM0RTVCIi8+Cjwvc3ZnPgo=",AIe="",NMe={tagName:"l-text-editor",props:{value:String},components:{EditorContent:vye,LinkBox:U_e,BubbleMenu:mye,FloatingLink:Q_e},data(){return{editor:null,markUps:[{name:"bold",tooltip:"Negrito",icon:"uil-bold"},{name:"italic",tooltip:"Itálico",icon:"uil-italic"},{name:"underline",tooltip:"Sublinhado",icon:"uil-underline"},{name:"heading",tooltip:"Título",icon:TMe},{name:"bulletList",tooltip:"Lista com marcadores",icon:"uil-list-ul"},{name:"orderedList",tooltip:"Lista numerada",icon:"uil-list-ol-alt"},{name:"link",tooltip:"Inserir link",icon:"uil-link-alt"},{name:"blockquote",tooltip:"Citação",icon:DMe},{name:"removeFormatting",tooltip:"Remover formatação",icon:wMe}],showLinkBox:!1,isEditorFocused:null,tooltipDelay:125}},methods:{isUnicon(t){return t.startsWith("uil-")},markUpText(t){if(t==="link"){this.toggleLinkBox();return}this.editor.chain().focus().setMarkUp(t).run()},toggleLinkBox(){this.showLinkBox=!this.showLinkBox},closeLinkBox(){this.editor.commands.focus(),this.toggleLinkBox()},markUpLink(t){this.currentTextSelection||this.previousURL?this.editor.chain().focus().extendMarkRange("link").setLink({href:t.url,target:"_blank"}).run():this.editor.commands.insertContent(GT.link(t.insertedText))},markOffLink(){this.editor.chain().focus().extendMarkRange("link").unsetLink().run()},hasSomeMarkUpActive(){const t=this.editor.getJSON().content,e=this.markUps.map(o=>o.name),i=t.map(o=>o.type).some(o=>e.includes(o)),s=t.some(o=>{if(o.hasOwnProperty("content"))return o.content.some(u=>u.hasOwnProperty("marks"))});return i||s},addSpaceToFinalParagraphTag(t){return t.replace(/<\/p>/g," </p>")}},computed:{previousURL(){return this.editor.getAttributes("link").href},showFloatingLink(){return this.editor.isActive("link")},finalText(){const t=this.editor.getHTML(),e=this.addSpaceToFinalParagraphTag(t),n=GT.link(e);return SMe.sanitize(K_e(n),{ADD_ATTR:["target"]})},currentTextSelection(){const{view:t,state:e}=this.editor,{from:n,to:i}=t.state.selection;return e.doc.textBetween(n,i,"")},arrowXPosition(){const e=this.$refs.link[0].$el;return{left:`${e.offsetLeft+(e.offsetWidth-16.8)/2}px`}},linkBoxPosition(){const e=this.$refs.texteditor.$el.offsetWidth,n=this.$refs.link[0].$el;let i;return e>500?i=`${n.offsetLeft+n.offsetWidth/2-456/2}px`:i="1rem",{left:i}}},beforeMount(){this.editor=new gye({extensions:[yye,bye,_ye,xye,wye,Iye,jye,$ye,zye,Rye,Bye,cbe,dbe,fbe,Mbe],content:this.value,autofocus:!1,onUpdate:()=>{this.$emit("input",this.finalText),this.$emit("useMarkUp",this.hasSomeMarkUpActive())},onFocus:()=>{this.isEditorFocused=!0,this.$emit("focus",!0)},onBlur:()=>{this.isEditorFocused=!1}})},beforeDestroy(){this.editor.destroy()}};var kMe=function(){var e=this,n=e._self._c;return n("section",{staticClass:"wrapper-text-editor"},[e.showFloatingLink?n("BubbleMenu",{attrs:{editor:e.editor,tippyOptions:{zIndex:1e3},shouldShow:({editor:i})=>i.isActive("link")}},[n("FloatingLink",{attrs:{"data-link":e.editor.getAttributes("link").href},on:{edit:function(i){return e.toggleLinkBox()},remove:function(i){return e.markOffLink()}}})],1):e._e(),n("EditorContent",{ref:"texteditor",attrs:{editor:e.editor}}),n("div",{staticClass:"wrapper-editor-features"},[n("div",{staticClass:"wrapper-scroll"},[n("div",{staticClass:"wrapper-buttons py-2 pl-3 pr-4 l-d-flex row l-d-justify-content-start l-d-align-item-center"},e._l(e.markUps,function(i){return n("l-tooltip",{key:i.name,staticClass:"item",attrs:{content:i.tooltip,"open-delay":e.tooltipDelay}},[n("l-button",{ref:i.name,refInFor:!0,staticClass:"button-text-editor",class:{"is-active":e.editor.isActive(i.name)},attrs:{size:"small",square:""},on:{click:function(s){return e.markUpText(i.name)}}},[e.isUnicon(i.icon)?n("l-icon",{attrs:{size:"24",icon:i.icon}}):n("img",{class:{"icon-active":e.editor.isActive(i.name)},attrs:{alt:i.name,src:i.icon}})],1)],1)}),1)]),e.showLinkBox?[n("span",{staticClass:"link-box-arrow",style:[e.arrowXPosition]}),n("LinkBox",{staticClass:"link-box-position",style:[e.linkBoxPosition],attrs:{previousURL:e.previousURL},on:{close:function(i){return e.closeLinkBox()},setLink:function(i){return e.markUpLink(i)}}})]:e._e()],2)],1)},OMe=[],EMe=Qe(NMe,kMe,OMe,!1,null,"29547478",null,null);const IMe=EMe.exports,AMe=Object.freeze(Object.defineProperty({__proto__:null,default:IMe},Symbol.toStringTag,{value:"Module"})),jIe="",jMe={tagName:"l-time-select",extends:Nt.TimeSelect,props:{prefixIcon:{type:String,default:()=>"uil-clock"},clearIcon:{type:String,default:()=>"uil-multiply"},hideIcon:{type:Boolean,default:()=>!1},placeholder:{type:String,default:()=>"Horário"},clearable:{type:Boolean,default:()=>!1}},mounted(){this.hideIcon&&this.$el.classList.add("hide-icon")}};var $Me=Qe(jMe,null,null,!1,null,null,null,null);const LMe=$Me.exports,zMe=Object.freeze(Object.defineProperty({__proto__:null,default:LMe},Symbol.toStringTag,{value:"Module"})),zIe="",PMe={tagName:"l-toggle-button-group",model:{prop:"modelValue",event:"change"},props:{options:Array,modelValue:String,disabled:{type:Boolean,default:!1}},data(){return{value:this.modelValue}},watch:{modelValue(t){this.value!==t&&(this.value=t,this.$emit("change",this.value))}},methods:{optionType(t){return this.disabled?"default":t.value===this.value?"primary":"default"},selectOption(t){this.value=t.value,this.$emit("change",this.value)}}};var RMe=function(){var e=this,n=e._self._c;return n("l-button-group",{staticClass:"l-toggle-button-group"},e._l(e.options,function(i){return n("l-tooltip",{key:i.value,attrs:{effect:"dark",content:i.title,placement:"bottom"}},[n("l-button",{attrs:{disabled:e.disabled,type:e.optionType(i),icon:i.icon,size:"small",plain:""},on:{click:function(s){return e.selectOption(i)}}})],1)}),1)},FMe=[],BMe=Qe(PMe,RMe,FMe,!1,null,null,null,null);const UMe=BMe.exports,VMe=Object.freeze(Object.defineProperty({__proto__:null,default:UMe},Symbol.toStringTag,{value:"Module"})),PIe="",oP=lh(Nt.Tooltip);delete oP.props.popperClass;var YMe=Qe({tagName:"l-tooltip",extends:oP,props:["tooltipClass"],computed:{popperClass(){return this.tooltipClass||"l-tooltip-popper"}}},null,null,!1,null,null,null,null);const HMe=YMe.exports,WMe=Object.freeze(Object.defineProperty({__proto__:null,default:HMe},Symbol.toStringTag,{value:"Module"})),UIe="",QMe={tagName:"l-transition-expand",methods:{enter(t){const e=getComputedStyle(t).width;t.style.width=e,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const n=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=n})},afterEnter(t){t.style.height="auto"},leave(t){const e=getComputedStyle(t).height;t.style.height=e,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}};var GMe=function(){var e=this,n=e._self._c;return n("transition",{staticClass:"l-transition-expand",attrs:{name:"expand"},on:{enter:e.enter,"after-enter":e.afterEnter,leave:e.leave}},[e._t("default")],2)},KMe=[],qMe=Qe(QMe,GMe,KMe,!1,null,"fc95fe01",null,null);const XMe=qMe.exports,ZMe=Object.freeze(Object.defineProperty({__proto__:null,default:XMe},Symbol.toStringTag,{value:"Module"})),JMe={tagName:"l-upload",extends:Nt.Upload};var exe=Qe(JMe,null,null,!1,null,null,null,null);const txe=exe.exports,nxe=Object.freeze(Object.defineProperty({__proto__:null,default:txe},Symbol.toStringTag,{value:"Module"}));var ixe={el:{colorpicker:{confirm:"Confirmar",clear:"Limpar"},datepicker:{now:"Agora",today:"Hoje",cancel:"Cancelar",clear:"Limpar",confirm:"Confirmar",selectDate:"Selecione a data",selectTime:"Selecione a hora",startDate:"Data inicial",startTime:"Hora inicial",endDate:"Data final",endTime:"Hora final",prevYear:"Ano anterior",nextYear:"Próximo ano",prevMonth:"Mês anterior",nextMonth:"Próximo mês",year:"",month1:"Janeiro",month2:"Fevereiro",month3:"Março",month4:"Abril",month5:"Maio",month6:"Junho",month7:"Julho",month8:"Agosto",month9:"Setembro",month10:"Outubro",month11:"Novembro",month12:"Dezembro",weeks:{sun:"Dom",mon:"Seg",tue:"Ter",wed:"Qua",thu:"Qui",fri:"Sex",sat:"Sab"},months:{jan:"Jan",feb:"Fev",mar:"Mar",apr:"Abr",may:"Mai",jun:"Jun",jul:"Jul",aug:"Ago",sep:"Set",oct:"Out",nov:"Nov",dec:"Dez"}},select:{loading:"Carregando",noMatch:"Sem resultados",noData:"Sem dados",placeholder:"Selecione"},cascader:{noMatch:"Sem resultados",loading:"Carregando",placeholder:"Selecione",noData:"Sem dados"},pagination:{goto:"Ir para",pagesize:"/página",total:"Total {total}",pageClassifier:""},messagebox:{title:"Mensagem",confirm:"Confirmar",cancel:"Cancelar",error:"Erro!"},upload:{deleteTip:"aperte delete para apagar",delete:"Apagar",preview:"Pré-visualizar",continue:"Continuar"},table:{emptyText:"Sem dados",confirmFilter:"Confirmar",resetFilter:"Limpar",clearFilter:"Todos",sumText:"Total"},tree:{emptyText:"Sem dados"},transfer:{noMatch:"Sem resultados",noData:"Sem dados",titles:["Lista 1","Lista 2"],filterPlaceholder:"Digite uma palavra-chave",noCheckedFormat:"{total} itens",hasCheckedFormat:"{checked}/{total} selecionados"},image:{error:"Erro ao carregar imagem"},pageHeader:{title:"Voltar"},popconfirm:{confirmButtonText:"Sim",cancelButtonText:"Não"},empty:{description:"Sem dados"}}},rxe={exports:{}};(function(t,e){(function(n,i){t.exports=i($$())})(Gn,function(n){function i(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var s=i(n),o={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(u){return u+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return s.default.locale(o,null,!0),o})})(rxe);var lP={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Gn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,s,o){var u=s.prototype,d=u.format;o.en.formats=n,u.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,v=function(y,M){return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,N){var w=N&&N.toUpperCase();return x||M[N]||n[N]||M[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,E,S){return E||S.slice(1)})})}(f,p===void 0?{}:p);return d.call(this,v)}}})})(lP);var sxe=lP.exports;const axe=bi(sxe),HIe="",Zh={"type:String":"uil-text","type:Number":"uil-star","type:Date":"uil-calender","format:Email":"uil-at","format:Amount":"uil-usd-circle","format:PaymentStatus":"uil-bolt-alt",amount:"uil-usd-circle",recurrence:"uil-repeat",date:"uil-calender",user:"uil-user-circle",email:"uil-at",key:"uil-key-skeleton"};function oxe(t){return t?(t.icon?t=t.icon:t.format?t=`format:${t.format}`:t.type&&(t=`type:${t.type}`),t in Zh&&(t=Zh[t]),t):null}function lxe(t,e){Zh[t]=e}function uxe(t,e){Zh[`type:${t}`]=e}function cxe(t,e){Zh[`format:${t}`]=e}const uP={};uP.install=function(t){t.prototype.$L.Icons={get:oxe,register:lxe,registerForType:uxe,registerForFormat:cxe}};const cP=new Map;function dxe(t){return cP.get(t)}function fxe(t,e){cP.set(t,e)}const dP={};dP.install=function(t){t.prototype.$L.Schemas={get:dxe,register:fxe}};function hxe(t){for(let e=1,n=arguments.length;e<n;e++){let i=arguments[e]||{};for(let s in i)if(i.hasOwnProperty(s)){let o=i[s];o!==void 0&&(t[s]=o)}}return t}ft.prototype.$isServer;const pxe=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function fP(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function Jy(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),s=0,o=i.length;s<o;s++){var u=i[s];u&&(t.classList?t.classList.add(u):fP(t,u)||(n+=" "+u))}t.classList||t.setAttribute("class",n)}}function rD(t,e){if(!(!t||!e)){for(var n=e.split(" "),i=" "+t.className+" ",s=0,o=n.length;s<o;s++){var u=n[s];u&&(t.classList?t.classList.remove(u):fP(t,u)&&(i=i.replace(" "+u+" "," ")))}t.classList||t.setAttribute("class",pxe(i))}}let sD=!1,hP=!1,eb;const pP=function(){if(ft.prototype.$isServer)return;let t=Ui.modalDom;return t?sD=!0:(sD=!1,t=document.createElement("div"),Ui.modalDom=t,t.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),t.addEventListener("click",function(){Ui.doOnModalClick&&Ui.doOnModalClick()})),t},tb={},Ui={modalFade:!0,getInstance:function(t){return tb[t]},register:function(t,e){t&&e&&(tb[t]=e)},deregister:function(t){t&&(tb[t]=null,delete tb[t])},nextZIndex:function(){return Ui.zIndex++},modalStack:[],doOnModalClick:function(){const t=Ui.modalStack[Ui.modalStack.length-1];if(!t)return;const e=Ui.getInstance(t.id);e&&e.closeOnClickModal&&e.close()},openModal:function(t,e,n,i,s){if(ft.prototype.$isServer||!t||e===void 0)return;this.modalFade=s;const o=this.modalStack;for(let d=0,f=o.length;d<f;d++)if(o[d].id===t)return;const u=pP();Jy(u,"v-modal"),this.modalFade&&!sD&&Jy(u,"v-modal-enter"),i&&i.trim().split(/\s+/).forEach(f=>Jy(u,f)),setTimeout(()=>{rD(u,"v-modal-enter")},200),n&&n.parentNode&&n.parentNode.nodeType!==11?n.parentNode.appendChild(u):document.body.appendChild(u),e&&(u.style.zIndex=e),u.tabIndex=0,u.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:i})},closeModal:function(t){const e=this.modalStack,n=pP();if(e.length>0){const i=e[e.length-1];if(i.id===t)i.modalClass&&i.modalClass.trim().split(/\s+/).forEach(o=>rD(n,o)),e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex);else for(let s=e.length-1;s>=0;s--)if(e[s].id===t){e.splice(s,1);break}}e.length===0&&(this.modalFade&&Jy(n,"v-modal-leave"),setTimeout(()=>{e.length===0&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",Ui.modalDom=void 0),rD(n,"v-modal-leave")},200))}};Object.defineProperty(Ui,"zIndex",{configurable:!0,get(){return hP||(eb=eb||(ft.prototype.$ELEMENT||{}).zIndex||2e3,hP=!0),eb},set(t){eb=t}});const mxe=function(){if(!ft.prototype.$isServer&&Ui.modalStack.length>0){const t=Ui.modalStack[Ui.modalStack.length-1];return t?Ui.getInstance(t.id):void 0}};ft.prototype.$isServer||window.addEventListener("keydown",function(t){if(t.keyCode===27){const e=mxe();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}}),typeof/./!="function"&&typeof Int8Array!="object"&&(ft.prototype.$isServer||document.childNodes);const gxe=Object.prototype.hasOwnProperty;function vxe(t,e){return gxe.call(t,e)}function mP(t){return t!==null&&typeof t=="object"&&vxe(t,"componentOptions")}const yxe=ft.extend(Xj);let es,ba=[],bxe=1;const hu=function(t){if(ft.prototype.$isServer)return;t=hxe({},t);const e=t.onClose,n="notification_"+bxe++,i=t.position||"top-right";t.onClose=function(){hu.close(n,e)},es=new yxe({data:t}),mP(t.message)&&(es.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),es.id=n,es.$mount(),document.body.appendChild(es.$el),es.visible=!0,es.dom=es.$el,es.dom.style.zIndex=Ui.nextZIndex();let s=t.offset||0;return ba.filter(o=>o.position===i).forEach(o=>{s+=o.$el.offsetHeight+16}),s+=16,es.verticalOffset=s,ba.push(es),es};["success","warning","info","error"].forEach(t=>{hu[t]=e=>((typeof e=="string"||mP(e))&&(e={message:e}),e.type=t,hu(e))}),hu.close=function(t,e){let n=-1;const i=ba.length,s=ba.filter((d,f)=>d.id===t?(n=f,!0):!1)[0];if(!s||(typeof e=="function"&&e(s),ba.splice(n,1),i<=1))return;const o=s.position,u=s.dom.offsetHeight;for(let d=n;d<i-1;d++)ba[d].position===o&&(ba[d].dom.style[s.verticalProperty]=parseInt(ba[d].dom.style[s.verticalProperty],10)-u-16+"px")},hu.closeAll=function(){for(let t=ba.length-1;t>=0;t--)ba[t].close()};const gP={};gP.install=function(t){t.component(Nt.Input.name,Nt.Input)};function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qe.apply(this,arguments)}function aD(){return aD=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aD.apply(this,arguments)}var _xe=["attrs","props","domProps"],Mxe=["class","style","directives"],xxe=["on","nativeOn"],Cxe=function(t){return t.reduce(function(e,n){for(var i in n)if(!e[i])e[i]=n[i];else if(_xe.indexOf(i)!==-1)e[i]=aD({},e[i],n[i]);else if(Mxe.indexOf(i)!==-1){var s=e[i]instanceof Array?e[i]:[e[i]],o=n[i]instanceof Array?n[i]:[n[i]];e[i]=[].concat(s,o)}else if(xxe.indexOf(i)!==-1)for(var u in n[i])if(e[i][u]){var d=e[i][u]instanceof Array?e[i][u]:[e[i][u]],f=n[i][u]instanceof Array?n[i][u]:[n[i][u]];e[i][u]=[].concat(d,f)}else e[i][u]=n[i][u];else if(i==="hook")for(var p in n[i])e[i][p]=e[i][p]?Sxe(e[i][p],n[i][p]):n[i][p];else e[i]=n[i];return e},{})},Sxe=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}},Txe=Cxe;const Pt=bi(Txe);function oD(t,e){return e?typeof e=="string"?" "+t+"--"+e:Array.isArray(e)?e.reduce(function(n,i){return n+oD(t,i)},""):Object.keys(e).reduce(function(n,i){return n+(e[i]?oD(t,i):"")},""):""}function Dxe(t){return function(e,n){return e&&typeof e!="string"&&(n=e,e=""),e=e?t+"__"+e:t,""+e+oD(e,n)}}var wxe=Object.prototype.hasOwnProperty;function Nxe(t,e,n){var i=e[n];Ut(i)&&(!wxe.call(t,n)||!$s(i)?t[n]=i:t[n]=vP(Object(t[n]),e[n]))}function vP(t,e){return Object.keys(e).forEach(function(n){Nxe(t,e,n)}),t}const kxe={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,n){return e+"年"+n+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}};var ld=ft.prototype,yP=ft.util.defineReactive;yP(ld,"$vantLang","zh-CN"),yP(ld,"$vantMessages",{"zh-CN":kxe});const lD={messages:function(){return ld.$vantMessages[ld.$vantLang]},use:function(e,n){var i;ld.$vantLang=e,this.add((i={},i[e]=n,i))},add:function(e){e===void 0&&(e={}),vP(ld.$vantMessages,e)}};var Oxe=/-(\w)/g;function bP(t){return t.replace(Oxe,function(e,n){return n.toUpperCase()})}function An(t,e){e===void 0&&(e=2);for(var n=t+"";n.length<e;)n="0"+n;return n}var Exe={methods:{slots:function(e,n){e===void 0&&(e="default");var i=this.$slots,s=this.$scopedSlots,o=s[e];return o?o(n):i[e]}}};function Ixe(t){var e=this.name;t.component(e,this),t.component(bP("-"+e),this)}function Axe(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(i){e[i]||(e[i]=function(){return n[i]})}),e}function jxe(t){return{functional:!0,props:t.props,model:t.model,render:function(n,i){return t(n,i.props,Axe(i),i)}}}function $xe(t){return function(e){return ud(e)&&(e=jxe(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(Exe)),e.name=t,e.install=Ixe,e}}function Lxe(t){var e=bP(t)+".";return function(n){for(var i=lD.messages(),s=_P(i,e+n)||_P(i,n),o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return ud(s)?s.apply(void 0,u):s}}function Ae(t){return t="van-"+t,[$xe(t),Dxe(t),Lxe(t)]}function uD(t){return/^\d+(\.\d+)?$/.test(t)}function cD(t){return Number.isNaN?Number.isNaN(t):t!==t}function Wt(t){if(Ut(t))return t=String(t),uD(t)?t+"px":t}var dD;function zxe(){if(!dD){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;dD=parseFloat(e)}return dD}function Pxe(t){return t=t.replace(/rem/g,""),+t*zxe()}function Rxe(t){return t=t.replace(/vw/g,""),+t*window.innerWidth/100}function Fxe(t){return t=t.replace(/vh/g,""),+t*window.innerHeight/100}function fD(t){if(typeof t=="number")return t;if(nb){if(t.indexOf("rem")!==-1)return Pxe(t);if(t.indexOf("vw")!==-1)return Rxe(t);if(t.indexOf("vh")!==-1)return Fxe(t)}return parseFloat(t)}var nb=typeof window<"u",cr=ft.prototype.$isServer;function Jh(){}function Ut(t){return t!=null}function ud(t){return typeof t=="function"}function $s(t){return t!==null&&typeof t=="object"}function ib(t){return $s(t)&&ud(t.then)&&ud(t.catch)}function _P(t,e){var n=e.split("."),i=t;return n.forEach(function(s){var o;i=$s(i)&&(o=i[s])!=null?o:""}),i}function Bxe(t){return t==null||typeof t!="object"?!0:Object.keys(t).length===0}var Uxe=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],Vxe={nativeOn:"on"};function on(t,e){var n=Uxe.reduce(function(i,s){return t.data[s]&&(i[Vxe[s]||s]=t.data[s]),i},{});return e&&(n.on=n.on||{},qe(n.on,t.data.on)),n}function Yt(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach(function(u){u.apply(void 0,i)}):o.apply(void 0,i))}function MP(t,e){var n=new ft({el:document.createElement("div"),props:t.props,render:function(s){return s(t,qe({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var dr={zIndex:2e3,lockCount:0,stack:[],find:function(e){return this.stack.filter(function(n){return n.vm===e})[0]},remove:function(e){var n=this.find(e);if(n){n.vm=null,n.overlay=null;var i=this.stack.indexOf(n);this.stack.splice(i,1)}}},xP=!1;if(!cr)try{var CP={};Object.defineProperty(CP,"passive",{get:function(){xP=!0}}),window.addEventListener("test-passive",null,CP)}catch{}function ts(t,e,n,i){i===void 0&&(i=!1),cr||t.addEventListener(e,n,xP?{capture:!1,passive:i}:!1)}function Wo(t,e,n){cr||t.removeEventListener(e,n)}function SP(t){t.stopPropagation()}function ui(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&SP(t)}var TP=Ae("overlay"),Yxe=TP[0],Hxe=TP[1];function Wxe(t){ui(t,!0)}function DP(t,e,n,i){var s=qe({zIndex:e.zIndex},e.customStyle);return Ut(e.duration)&&(s.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",Pt([{directives:[{name:"show",value:e.show}],style:s,class:[Hxe(),e.className],on:{touchmove:e.lockScroll?Wxe:Jh}},on(i,!0)]),[n.default==null?void 0:n.default()])])}DP.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};const wP=Yxe(DP);function hD(t){var e=t.parentNode;e&&e.removeChild(t)}var Qxe={className:"",customStyle:{}};function Gxe(t){return MP(wP,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function NP(t){var e=dr.find(t);if(e){var n=t.$el,i=e.config,s=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(s.$el,n),qe(s,Qxe,i,{show:!0})}}function Kxe(t,e){var n=dr.find(t);if(n)n.config=e;else{var i=Gxe(t);dr.stack.push({vm:t,config:e,overlay:i})}NP(t)}function kP(t){var e=dr.find(t);e&&(e.overlay.show=!1)}function qxe(t){var e=dr.find(t);e&&(hD(e.overlay.$el),dr.remove(t))}function pD(t){return t===window}var Xxe=/scroll|auto|overlay/i;function pu(t,e){e===void 0&&(e=window);for(var n=t;n&&n.tagName!=="HTML"&&n.tagName!=="BODY"&&n.nodeType===1&&n!==e;){var i=window.getComputedStyle(n),s=i.overflowY;if(Xxe.test(s))return n;n=n.parentNode}return e}function mu(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function rb(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function ep(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function sb(t){rb(window,t),rb(document.body,t)}function mD(t,e){if(pD(t))return 0;var n=e?mu(e):ep();return t.getBoundingClientRect().top+n}function Zxe(t){return pD(t)?t.innerHeight:t.getBoundingClientRect().height}function Jxe(t){return pD(t)?0:t.getBoundingClientRect().top}function e0e(t,e){return t>e?"horizontal":e>t?"vertical":""}var ns={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var n=e.touches[0];this.deltaX=n.clientX<0?0:n.clientX-this.startX,this.deltaY=n.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var i=10;(!this.direction||this.offsetX<i&&this.offsetY<i)&&(this.direction=e0e(this.offsetX,this.offsetY))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var n=this.onTouchStart,i=this.onTouchMove,s=this.onTouchEnd;ts(e,"touchstart",n),ts(e,"touchmove",i),s&&(ts(e,"touchend",s),ts(e,"touchcancel",s))}}};function t0e(t){return typeof t=="string"?document.querySelector(t):t()}function gD(t){var e=t===void 0?{}:t,n=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var o=this.getContainer,u=n?this.$refs[n]:this.$el,d;o?d=t0e(o):this.$parent&&(d=this.$parent.$el),d&&d!==u.parentNode&&d.appendChild(u),i&&i.call(this)}}}}var n0e=0;function Ls(t){var e="binded_"+n0e++;function n(){this[e]||(t.call(this,ts,!0),this[e]=!0)}function i(){this[e]&&(t.call(this,Wo,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}}var i0e={mixins:[Ls(function(t,e){this.handlePopstate(e&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(e){this.handlePopstate(e)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(e){if(!this.$isServer&&this.bindStatus!==e){this.bindStatus=e;var n=e?ts:Wo;n(window,"popstate",this.onPopstate)}}}},ab={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function ob(t){return t===void 0&&(t={}),{mixins:[ns,i0e,gD({afterPortal:function(){this.overlay&&NP()}})],provide:function(){return{vanPopup:this}},props:ab,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(n){var i=n?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){qxe(this),this.opened&&this.removeLock(),this.getContainer&&hD(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(this.zIndex!==void 0&&(dr.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach(function(n){n()}))},addLock:function(){this.lockScroll&&(ts(document,"touchstart",this.touchStart),ts(document,"touchmove",this.onTouchMove),dr.lockCount||document.body.classList.add("van-overflow-hidden"),dr.lockCount++)},removeLock:function(){this.lockScroll&&dr.lockCount&&(dr.lockCount--,Wo(document,"touchstart",this.touchStart),Wo(document,"touchmove",this.onTouchMove),dr.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(kP(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(n){this.touchMove(n);var i=this.deltaY>0?"10":"01",s=pu(n.target,this.$el),o=s.scrollHeight,u=s.offsetHeight,d=s.scrollTop,f="11";d===0?f=u>=o?"00":"01":d+u>=o&&(f="10"),f!=="11"&&this.direction==="vertical"&&!(parseInt(f,2)&parseInt(i,2))&&ui(n,!0)},renderOverlay:function(){var n=this;this.$isServer||!this.value||this.$nextTick(function(){n.updateZIndex(n.overlay?1:0),n.overlay?Kxe(n,{zIndex:dr.zIndex++,duration:n.duration,className:n.overlayClass,customStyle:n.overlayStyle}):kP(n)})},updateZIndex:function(n){n===void 0&&(n=0),this.$el.style.zIndex=++dr.zIndex+n},onReopen:function(n){this.onReopenCallback.push(n)}}}}var OP=Ae("info"),r0e=OP[0],s0e=OP[1];function EP(t,e,n,i){var s=e.dot,o=e.info,u=Ut(o)&&o!=="";if(!(!s&&!u))return t("div",Pt([{class:s0e({dot:s})},on(i,!0)]),[s?"":e.info])}EP.props={dot:Boolean,info:[Number,String]};const gu=r0e(EP);var IP=Ae("icon"),a0e=IP[0],AP=IP[1];function o0e(t){return t?t.indexOf("/")!==-1:!1}var l0e={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function u0e(t){return t&&l0e[t]||t}function jP(t,e,n,i){var s,o=u0e(e.name),u=o0e(o);return process.env.NODE_ENV==="development"&&e.info&&console.warn('[Vant] Icon: "info" prop is deprecated, use "badge" prop instead.'),t(e.tag,Pt([{class:[e.classPrefix,u?"":e.classPrefix+"-"+o],style:{color:e.color,fontSize:Wt(e.size)}},on(i,!0)]),[n.default&&n.default(),u&&t("img",{class:AP("image"),attrs:{src:o}}),t(gu,{attrs:{dot:e.dot,info:(s=e.badge)!=null?s:e.info}})])}jP.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:AP()}};const It=a0e(jP);var $P=Ae("popup"),c0e=$P[0],LP=$P[1];const _a=c0e({mixins:[ob()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var e=this,n=function(s){return function(o){return e.$emit(s,o)}};this.onClick=n("click"),this.onOpened=n("opened"),this.onClosed=n("closed")},methods:{onClickCloseIcon:function(e){this.$emit("click-close-icon",e),this.close()}},render:function(){var e,n=arguments[0];if(this.shouldRender){var i=this.round,s=this.position,o=this.duration,u=s==="center",d=this.transition||(u?"van-fade":"van-popup-slide-"+s),f={};if(Ut(o)){var p=u?"animationDuration":"transitionDuration";f[p]=o+"s"}return n("transition",{attrs:{appear:this.transitionAppear,name:d},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[n("div",{directives:[{name:"show",value:this.value}],style:f,class:LP((e={round:i},e[s]=s,e["safe-area-inset-bottom"]=this.safeAreaInsetBottom,e)),on:{click:this.onClick}},[this.slots(),this.closeable&&n(It,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:LP("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}});var zP=Ae("loading"),d0e=zP[0],lb=zP[1];function f0e(t,e){if(e.type==="spinner"){for(var n=[],i=0;i<12;i++)n.push(t("i"));return n}return t("svg",{class:lb("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h0e(t,e,n){if(n.default){var i,s={fontSize:Wt(e.textSize),color:(i=e.textColor)!=null?i:e.color};return t("span",{class:lb("text"),style:s},[n.default()])}}function PP(t,e,n,i){var s=e.color,o=e.size,u=e.type,d={color:s};if(o){var f=Wt(o);d.width=f,d.height=f}return t("div",Pt([{class:lb([u,{vertical:e.vertical}])},on(i,!0)]),[t("span",{class:lb("spinner",u),style:d},[f0e(t,e)]),h0e(t,e,n)])}PP.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};const zs=d0e(PP);var RP=Ae("action-sheet"),p0e=RP[0],Ps=RP[1];function FP(t,e,n,i){var s=e.title,o=e.cancelText,u=e.closeable;function d(){Yt(i,"input",!1),Yt(i,"cancel")}function f(){if(s)return t("div",{class:Ps("header")},[s,u&&t(It,{attrs:{name:e.closeIcon},class:Ps("close"),on:{click:d}})])}function p(M,b){var x=M.disabled,N=M.loading,w=M.callback;function k(S){S.stopPropagation(),!(x||N)&&(w&&w(M),e.closeOnClickAction&&Yt(i,"input",!1),ft.nextTick(function(){Yt(i,"select",M,b)}))}function E(){return N?t(zs,{class:Ps("loading-icon")}):[t("span",{class:Ps("name")},[M.name]),M.subname&&t("div",{class:Ps("subname")},[M.subname])]}return t("button",{attrs:{type:"button"},class:[Ps("item",{disabled:x,loading:N}),M.className],style:{color:M.color},on:{click:k}},[E()])}function v(){if(o)return[t("div",{class:Ps("gap")}),t("button",{attrs:{type:"button"},class:Ps("cancel"),on:{click:d}},[o])]}function y(){var M=(n.description==null?void 0:n.description())||e.description;if(M)return t("div",{class:Ps("description")},[M])}return t(_a,Pt([{class:Ps(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},on(i,!0)]),[f(),y(),t("div",{class:Ps("content")},[e.actions&&e.actions.map(p),n.default==null?void 0:n.default()]),v()])}FP.props=qe({},ab,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});const m0e=p0e(FP);function BP(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var g0e=44,ub={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},UP="#ee0a24",Rs="van-hairline",vD=Rs+"--top",VP=Rs+"--left",tp=Rs+"--bottom",YP=Rs+"--surround",cb=Rs+"--top-bottom",v0e=Rs+"-unset--top-bottom";function np(t){if(!Ut(t))return t;if(Array.isArray(t))return t.map(function(n){return np(n)});if(typeof t=="object"){var e={};return Object.keys(t).forEach(function(n){e[n]=np(t[n])}),e}return t}function Di(t,e,n){return Math.min(Math.max(t,e),n)}function HP(t,e,n){var i=t.indexOf(e),s="";return i===-1?t:e==="-"&&i!==0?t.slice(0,i):(e==="."&&t.match(/^(\.|-\.)/)&&(s=i?"-0":"0"),s+t.slice(0,i+1)+t.slice(i).replace(n,""))}function WP(t,e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),e?t=HP(t,".",/\./g):t=t.split(".")[0],n?t=HP(t,"-",/-/g):t=t.replace(/-/,"");var i=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(i,"")}function QP(t,e){var n=Math.pow(10,10);return Math.round((t+e)*n)/n}var GP=200,yD=300,y0e=15,KP=Ae("picker-column"),b0e=KP[0],bD=KP[1];function qP(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}function _D(t){return $s(t)&&t.disabled}var XP=nb&&"onwheel"in window,MD=null;const _0e=b0e({mixins:[ns],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:np(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el),XP&&ts(this.$el,"wheel",this.onMouseWheel,!1)},destroyed:function(){var e=this.$parent.children;e&&e.splice(e.indexOf(this),1),XP&&Wo(this.$el,"wheel")},watch:{initialOptions:"setOptions",defaultIndex:function(e){this.setIndex(e)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(e){JSON.stringify(e)!==JSON.stringify(this.options)&&(this.options=np(e),this.setIndex(this.defaultIndex))},onTouchStart:function(e){if(!this.readonly){if(this.touchStart(e),this.moving){var n=qP(this.$refs.wrapper);this.offset=Math.min(0,n-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(e){if(!this.readonly){this.touchMove(e),this.direction==="vertical"&&(this.moving=!0,ui(e,!0)),this.offset=Di(this.startOffset+this.deltaY,-(this.count*this.itemHeight),this.itemHeight);var n=Date.now();n-this.touchStartTime>yD&&(this.touchStartTime=n,this.momentumOffset=this.offset)}},onTouchEnd:function(){var e=this;if(!this.readonly){var n=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime,s=i<yD&&Math.abs(n)>y0e;if(s){this.momentum(n,i);return}var o=this.getIndexByOffset(this.offset);this.duration=GP,this.setIndex(o,!0),setTimeout(function(){e.moving=!1},0)}},onMouseWheel:function(e){var n=this;if(!this.readonly){ui(e,!0);var i=qP(this.$refs.wrapper);this.startOffset=Math.min(0,i-this.baseOffset),this.momentumOffset=this.startOffset,this.transitionEndTrigger=null;var s=e.deltaY;if(!(this.startOffset===0&&s<0)){var o=this.itemHeight*(s>0?-1:1);this.offset=Di(this.startOffset+o,-(this.count*this.itemHeight),this.itemHeight),MD&&clearTimeout(MD),MD=setTimeout(function(){n.onTouchEnd(),n.touchStartTime=0},yD)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(e){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=GP,this.setIndex(e,!0))},adjustIndex:function(e){e=Di(e,0,this.count);for(var n=e;n<this.count;n++)if(!_D(this.options[n]))return n;for(var i=e-1;i>=0;i--)if(!_D(this.options[i]))return i},getOptionText:function(e){return $s(e)&&this.valueKey in e?e[this.valueKey]:e},setIndex:function(e,n){var i=this;e=this.adjustIndex(e)||0;var s=-e*this.itemHeight,o=function(){e!==i.currentIndex&&(i.currentIndex=e,n&&i.$emit("change",e))};this.moving&&s!==this.offset?this.transitionEndTrigger=o:o(),this.offset=s},setValue:function(e){for(var n=this.options,i=0;i<n.length;i++)if(this.getOptionText(n[i])===e)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(e){return Di(Math.round(-e/this.itemHeight),0,this.count-1)},momentum:function(e,n){var i=Math.abs(e/n);e=this.offset+i/.003*(e<0?-1:1);var s=this.getIndexByOffset(e);this.duration=+this.swipeDuration,this.setIndex(s,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var e=this,n=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map(function(s,o){var u,d=e.getOptionText(s),f=_D(s),p={style:i,attrs:{role:"button",tabindex:f?-1:0},class:[bD("item",{disabled:f,selected:o===e.currentIndex})],on:{click:function(){e.onClickItem(o)}}},v={class:"van-ellipsis",domProps:(u={},u[e.allowHtml?"innerHTML":"textContent"]=d,u)};return n("li",Pt([{},p]),[e.slots("option",s)||n("div",Pt([{},v]))])})}},render:function(){var e=arguments[0],n={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return e("div",{class:[bD(),this.className]},[e("ul",{ref:"wrapper",style:n,class:bD("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}});var xD=Ae("picker"),M0e=xD[0],Wa=xD[1],ZP=xD[2];const CD=M0e({props:qe({},ub,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?fD(this.itemHeight):g0e},dataType:function(){var e=this.columns,n=e[0]||{};return n.children?"cascade":n.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var e=this.columns,n=this.dataType;n==="text"?this.formattedColumns=[{values:e}]:n==="cascade"?this.formatCascade():this.formattedColumns=e},formatCascade:function(){for(var e=[],n={children:this.columns};n&&n.children;){for(var i,s=n,o=s.children,u=(i=n.defaultIndex)!=null?i:+this.defaultIndex;o[u]&&o[u].disabled;)if(u<o.length-1)u++;else{u=0;break}e.push({values:n.children,className:n.className,defaultIndex:u}),n=o[u]}this.formattedColumns=e},emit:function(e){var n=this;if(this.dataType==="text")this.$emit(e,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();this.dataType==="cascade"&&(i=i.map(function(s){return s[n.valueKey]})),this.$emit(e,i,this.getIndexes())}},onCascadeChange:function(e){for(var n={children:this.columns},i=this.getIndexes(),s=0;s<=e;s++)n=n.children[i[s]];for(;n&&n.children;)e++,this.setColumnValues(e,n.children),n=n.children[n.defaultIndex||0]},onChange:function(e){var n=this;if(this.dataType==="cascade"&&this.onCascadeChange(e),this.dataType==="text")this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();this.dataType==="cascade"&&(i=i.map(function(s){return s[n.valueKey]})),this.$emit("change",this,i,e)}},getColumn:function(e){return this.children[e]},getColumnValue:function(e){var n=this.getColumn(e);return n&&n.getValue()},setColumnValue:function(e,n){var i=this.getColumn(e);i&&(i.setValue(n),this.dataType==="cascade"&&this.onCascadeChange(e))},getColumnIndex:function(e){return(this.getColumn(e)||{}).currentIndex},setColumnIndex:function(e,n){var i=this.getColumn(e);i&&(i.setIndex(n),this.dataType==="cascade"&&this.onCascadeChange(e))},getColumnValues:function(e){return(this.children[e]||{}).options},setColumnValues:function(e,n){var i=this.children[e];i&&i.setOptions(n)},getValues:function(){return this.children.map(function(e){return e.getValue()})},setValues:function(e){var n=this;e.forEach(function(i,s){n.setColumnValue(s,i)})},getIndexes:function(){return this.children.map(function(e){return e.currentIndex})},setIndexes:function(e){var n=this;e.forEach(function(i,s){n.setColumnIndex(s,i)})},confirm:function(){this.children.forEach(function(e){return e.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var e=this.$createElement,n=this.slots("title");if(n)return n;if(this.title)return e("div",{class:["van-ellipsis",Wa("title")]},[this.title])},genCancel:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:Wa("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||ZP("cancel")])},genConfirm:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:Wa("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||ZP("confirm")])},genToolbar:function(){var e=this.$createElement;if(this.showToolbar)return e("div",{class:Wa("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var e=this.$createElement,n=this.itemPxHeight,i=n*this.visibleItemCount,s={height:n+"px"},o={height:i+"px"},u={backgroundSize:"100% "+(i-n)/2+"px"};return e("div",{class:Wa("columns"),style:o,on:{touchmove:ui}},[this.genColumnItems(),e("div",{class:Wa("mask"),style:u}),e("div",{class:[v0e,Wa("frame")],style:s})])},genColumnItems:function(){var e=this,n=this.$createElement;return this.formattedColumns.map(function(i,s){var o;return n(_0e,{attrs:{readonly:e.readonly,valueKey:e.valueKey,allowHtml:e.allowHtml,className:i.className,itemHeight:e.itemPxHeight,defaultIndex:(o=i.defaultIndex)!=null?o:+e.defaultIndex,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,initialOptions:i.values},scopedSlots:{option:e.$scopedSlots.option},on:{change:function(){e.onChange(s)}}})})}},render:function(e){return e("div",{class:Wa()},[this.toolbarPosition==="top"?this.genToolbar():e(),this.loading?e(zs,{class:Wa("loading")}):e(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),this.toolbarPosition==="bottom"?this.genToolbar():e()])}});var JP=Ae("area"),x0e=JP[0],C0e=JP[1],SD="000000";function S0e(t){return t[0]==="9"}function T0e(t,e){var n=t.$slots,i=t.$scopedSlots,s={};return e.forEach(function(o){i[o]?s[o]=i[o]:n[o]&&(s[o]=function(){return n[o]})}),s}const e3=x0e({props:qe({},ub,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:S0e},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(e){this.code=e,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var e=this;this.$nextTick(function(){e.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(e,n){var i=[];if(e!=="province"&&!n)return i;var s=this[e];if(i=Object.keys(s).map(function(u){return{code:u,name:s[u]}}),n&&(this.isOverseaCode(n)&&e==="city"&&(n="9"),i=i.filter(function(u){return u.code.indexOf(n)===0})),this.placeholderMap[e]&&i.length){var o="";e==="city"?o=SD.slice(2,4):e==="county"&&(o=SD.slice(4,6)),i.unshift({code:""+n+o,name:this.placeholderMap[e]})}return i},getIndex:function(e,n){var i=e==="province"?2:e==="city"?4:6,s=this.getList(e,n.slice(0,i-2));this.isOverseaCode(n)&&e==="province"&&(i=1),n=n.slice(0,i);for(var o=0;o<s.length;o++)if(s[o].code.slice(0,i)===n)return o;return 0},parseOutputValues:function(e){var n=this;return e.map(function(i,s){return i&&(i=JSON.parse(JSON.stringify(i)),(!i.code||i.name===n.columnsPlaceholder[s])&&(i.code="",i.name=""),i)})},onChange:function(e,n,i){this.code=n[i].code,this.setValues();var s=this.parseOutputValues(e.getValues());this.$emit("change",e,s,i)},onConfirm:function(e,n){e=this.parseOutputValues(e),this.setValues(),this.$emit("confirm",e,n)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return SD;var e=Object.keys(this.county);if(e[0])return e[0];var n=Object.keys(this.city);return n[0]?n[0]:""},setValues:function(){var e=this.code;e||(e=this.getDefaultCode());var n=this.$refs.picker,i=this.getList("province"),s=this.getList("city",e.slice(0,2));n&&(n.setColumnValues(0,i),n.setColumnValues(1,s),s.length&&e.slice(2,4)==="00"&&!this.isOverseaCode(e)&&(e=s[0].code),n.setColumnValues(2,this.getList("county",e.slice(0,4))),n.setIndexes([this.getIndex("province",e),this.getIndex("city",e),this.getIndex("county",e)]))},getValues:function(){var e=this.$refs.picker,n=e?e.getValues().filter(function(i){return!!i}):[];return n=this.parseOutputValues(n),n},getArea:function(){var e=this.getValues(),n={code:"",country:"",province:"",city:"",county:""};if(!e.length)return n;var i=e.map(function(o){return o.name}),s=e.filter(function(o){return!!o.code});return n.code=s.length?s[s.length-1].code:"",this.isOverseaCode(n.code)?(n.country=i[1]||"",n.province=i[2]||""):(n.province=i[0]||"",n.city=i[1]||"",n.county=i[2]||""),n},reset:function(e){this.code=e||"",this.setValues()}},render:function(){var e=arguments[0],n=qe({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return e(CD,{ref:"picker",class:C0e(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:T0e(this,["title","columns-top","columns-bottom"]),on:qe({},n)})}});function D0e(t){return t.name==="NavigationDuplicated"||t.message&&t.message.indexOf("redundant navigation")!==-1}function vu(t,e){var n=e.to,i=e.url,s=e.replace;if(n&&t){var o=t[s?"replace":"push"](n);o&&o.catch&&o.catch(function(u){if(u&&!D0e(u))throw u})}else i&&(s?location.replace(i):location.href=i)}function t3(t){vu(t.parent&&t.parent.$router,t.props)}var Qo={url:String,replace:Boolean,to:[String,Object]},TD={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},n3=Ae("cell"),w0e=n3[0],cd=n3[1];function i3(t,e,n,i){var s,o=e.icon,u=e.size,d=e.title,f=e.label,p=e.value,v=e.isLink,y=n.title||Ut(d);function M(){var T=n.label||Ut(f);if(T)return t("div",{class:[cd("label"),e.labelClass]},[n.label?n.label():f])}function b(){if(y)return t("div",{class:[cd("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[d]),M()])}function x(){var T=n.default||Ut(p);if(T)return t("div",{class:[cd("value",{alone:!y}),e.valueClass]},[n.default?n.default():t("span",[p])])}function N(){if(n.icon)return n.icon();if(o)return t(It,{class:cd("left-icon"),attrs:{name:o,classPrefix:e.iconPrefix}})}function w(){var T=n["right-icon"];if(T)return T();if(v){var O=e.arrowDirection;return t(It,{class:cd("right-icon"),attrs:{name:O?"arrow-"+O:"arrow"}})}}function k(T){Yt(i,"click",T),t3(i)}var E=(s=e.clickable)!=null?s:v,S={clickable:E,center:e.center,required:e.required,borderless:!e.border};return u&&(S[u]=u),t("div",Pt([{class:cd(S),attrs:{role:E?"button":null,tabindex:E?0:null},on:{click:k}},on(i)]),[N(),b(),x(),w(),n.extra==null?void 0:n.extra()])}i3.props=qe({},TD,Qo);const Vi=w0e(i3);function N0e(){return cr?!1:/android/.test(navigator.userAgent.toLowerCase())}function k0e(){return cr?!1:/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var O0e=k0e();function r3(){O0e&&sb(ep())}var s3=Ae("field"),E0e=s3[0],Or=s3[1];const is=E0e({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:qe({},TD,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var e=this.getProp("readonly");if(this.clearable&&!e){var n=Ut(this.value)&&this.value!=="",i=this.clearTrigger==="always"||this.clearTrigger==="focus"&&this.focused;return n&&i}},showError:function(){if(this.error!==null)return this.error;if(this.vanForm&&this.vanForm.showError&&this.validateFailed)return!0},listeners:function(){return qe({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var e=this.getProp("labelWidth");if(e)return{width:Wt(e)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(e,n){return new Promise(function(i){var s=n.validator(e,n);if(ib(s))return s.then(i);i(s)})},isEmptyValue:function(e){return Array.isArray(e)?!e.length:e===0?!1:!e},runSyncRule:function(e,n){return!(n.required&&this.isEmptyValue(e)||n.pattern&&!n.pattern.test(e))},getRuleMessage:function(e,n){var i=n.message;return ud(i)?i(e,n):i},runRules:function(e){var n=this;return e.reduce(function(i,s){return i.then(function(){if(!n.validateFailed){var o=n.formValue;if(s.formatter&&(o=s.formatter(o,s)),!n.runSyncRule(o,s)){n.validateFailed=!0,n.validateMessage=n.getRuleMessage(o,s);return}if(s.validator)return n.runValidator(o,s).then(function(u){u===!1&&(n.validateFailed=!0,n.validateMessage=n.getRuleMessage(o,s))})}})},Promise.resolve())},validate:function(e){var n=this;return e===void 0&&(e=this.rules),new Promise(function(i){e||i(),n.resetValidation(),n.runRules(e).then(function(){n.validateFailed?i({name:n.name,message:n.validateMessage}):i()})})},validateWithTrigger:function(e){if(this.vanForm&&this.rules){var n=this.vanForm.validateTrigger===e,i=this.rules.filter(function(s){return s.trigger?s.trigger===e:n});i.length&&this.validate(i)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(e,n){n===void 0&&(n="onChange"),e=Ut(e)?String(e):"";var i=this.maxlength;if(Ut(i)&&e.length>i&&(this.value&&this.value.length===+i?e=this.value:e=e.slice(0,i)),this.type==="number"||this.type==="digit"){var s=this.type==="number";e=WP(e,s,s)}this.formatter&&n===this.formatTrigger&&(e=this.formatter(e));var o=this.$refs.input;o&&e!==o.value&&(o.value=e),e!==this.value&&this.$emit("input",e)},onInput:function(e){e.target.composing||this.updateValue(e.target.value)},onFocus:function(e){this.focused=!0,this.$emit("focus",e),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(e){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",e),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),r3())},onClick:function(e){this.$emit("click",e)},onClickInput:function(e){this.$emit("click-input",e)},onClickLeftIcon:function(e){this.$emit("click-left-icon",e)},onClickRightIcon:function(e){this.$emit("click-right-icon",e)},onClear:function(e){ui(e),this.$emit("input",""),this.$emit("clear",e)},onKeypress:function(e){var n=13;if(e.keyCode===n){var i=this.getProp("submitOnEnter");!i&&this.type!=="textarea"&&ui(e),this.type==="search"&&this.blur()}this.$emit("keypress",e)},adjustSize:function(){var e=this.$refs.input;if(!(!(this.type==="textarea"&&this.autosize)||!e)){var n=ep();e.style.height="auto";var i=e.scrollHeight;if($s(this.autosize)){var s=this.autosize,o=s.maxHeight,u=s.minHeight;o&&(i=Math.min(i,o)),u&&(i=Math.max(i,u))}i&&(e.style.height=i+"px",sb(n))}},genInput:function(){var e=this.$createElement,n=this.type,i=this.getProp("disabled"),s=this.getProp("readonly"),o=this.slots("input"),u=this.getProp("inputAlign");if(o)return e("div",{class:Or("control",[u,"custom"]),on:{click:this.onClickInput}},[o]);var d={ref:"input",class:Or("control",u),domProps:{value:this.value},attrs:qe({},this.$attrs,{name:this.name,disabled:i,readonly:s,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if(n==="textarea")return e("textarea",Pt([{},d]));var f=n,p;return n==="number"&&(f="text",p="decimal"),n==="digit"&&(f="tel",p="numeric"),e("input",Pt([{attrs:{type:f,inputmode:p}},d]))},genLeftIcon:function(){var e=this.$createElement,n=this.slots("left-icon")||this.leftIcon;if(n)return e("div",{class:Or("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(It,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var e=this.$createElement,n=this.slots,i=n("right-icon")||this.rightIcon;if(i)return e("div",{class:Or("right-icon"),on:{click:this.onClickRightIcon}},[n("right-icon")||e(It,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var e=this.$createElement;if(this.showWordLimit&&this.maxlength){var n=(this.value||"").length;return e("div",{class:Or("word-limit")},[e("span",{class:Or("word-num")},[n]),"/",this.maxlength])}},genMessage:function(){var e=this.$createElement;if(!(this.vanForm&&this.vanForm.showErrorMessage===!1)){var n=this.errorMessage||this.validateMessage;if(n){var i=this.getProp("errorMessageAlign");return e("div",{class:Or("error-message",i)},[n])}}},getProp:function(e){if(Ut(this[e]))return this[e];if(this.vanForm&&Ut(this.vanForm[e]))return this.vanForm[e]},genLabel:function(){var e=this.$createElement,n=this.getProp("colon")?":":"";if(this.slots("label"))return[this.slots("label"),n];if(this.label)return e("span",[this.label+n])}},render:function(){var e,n=arguments[0],i=this.slots,s=this.getProp("disabled"),o=this.getProp("labelAlign"),u={icon:this.genLeftIcon},d=this.genLabel();d&&(u.title=function(){return d});var f=this.slots("extra");return f&&(u.extra=function(){return f}),n(Vi,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:Or("value"),titleClass:[Or("label",o),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:u,class:Or((e={error:this.showError,disabled:s},e["label-"+o]=o,e["min-height"]=this.type==="textarea"&&!this.autosize,e)),on:{click:this.onClick}},[n("div",{class:Or("body")},[this.genInput(),this.showClear&&n(It,{attrs:{name:"clear"},class:Or("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),i("button")&&n("div",{class:Or("button")},[i("button")])]),this.genWordLimit(),this.genMessage()])}});var db=0;function I0e(t){t?(db||document.body.classList.add("van-toast--unclickable"),db++):(db--,db||document.body.classList.remove("van-toast--unclickable"))}var a3=Ae("toast"),A0e=a3[0],ip=a3[1];const o3=A0e({mixins:[ob()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var e=this.value&&this.forbidClick;this.clickable!==e&&(this.clickable=e,I0e(e))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var e=this.$createElement,n=this.icon,i=this.type,s=this.iconPrefix,o=this.loadingType,u=n||i==="success"||i==="fail";if(u)return e(It,{class:ip("icon"),attrs:{classPrefix:s,name:n||i}});if(i==="loading")return e(zs,{class:ip("loading"),attrs:{type:o}})},genMessage:function(){var e=this.$createElement,n=this.type,i=this.message;if(!(!Ut(i)||i===""))return n==="html"?e("div",{class:ip("text"),domProps:{innerHTML:i}}):e("div",{class:ip("text")},[i])}},render:function(){var e,n=arguments[0];return n("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[n("div",{directives:[{name:"show",value:this.value}],class:[ip([this.position,(e={},e[this.type]=!this.icon,e)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}});var l3={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},fb={},Er=[],hb=!1,pb=qe({},l3);function u3(t){return $s(t)?t:{message:t}}function j0e(t){return document.body.contains(t)}function $0e(){if(cr)return{};if(Er=Er.filter(function(e){return!e.$el.parentNode||j0e(e.$el)}),!Er.length||hb){var t=new(ft.extend(o3))({el:document.createElement("div")});t.$on("input",function(e){t.value=e}),Er.push(t)}return Er[Er.length-1]}function L0e(t){return qe({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}function ti(t){t===void 0&&(t={});var e=$0e();return e.value&&e.updateZIndex(),t=u3(t),t=qe({},pb,fb[t.type||pb.type],t),process.env.NODE_ENV==="development"&&t.mask&&console.warn('[Vant] Toast: "mask" option is deprecated, use "overlay" option instead.'),t.clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),hb&&!cr&&e.$on("closed",function(){clearTimeout(e.timer),Er=Er.filter(function(n){return n!==e}),hD(e.$el),e.$destroy()})},qe(e,L0e(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}var z0e=function(e){return function(n){return ti(qe({type:e},u3(n)))}};["loading","success","fail"].forEach(function(t){ti[t]=z0e(t)}),ti.clear=function(t){Er.length&&(t?(Er.forEach(function(e){e.clear()}),Er=[]):hb?Er.shift().clear():Er[0].clear())},ti.setDefaultOptions=function(t,e){typeof t=="string"?fb[t]=e:qe(pb,t)},ti.resetDefaultOptions=function(t){typeof t=="string"?fb[t]=null:(pb=qe({},l3),fb={})},ti.allowMultiple=function(t){t===void 0&&(t=!0),hb=t},ti.install=function(){ft.use(o3)},ft.prototype.$toast=ti;var c3=Ae("button"),P0e=c3[0],dd=c3[1];function d3(t,e,n,i){var s,o=e.tag,u=e.icon,d=e.type,f=e.color,p=e.plain,v=e.disabled,y=e.loading,M=e.hairline,b=e.loadingText,x=e.iconPosition,N={};f&&(N.color=p?f:"white",p||(N.background=f),f.indexOf("gradient")!==-1?N.border=0:N.borderColor=f);function w(O){e.loading&&O.preventDefault(),!y&&!v&&(Yt(i,"click",O),t3(i))}function k(O){Yt(i,"touchstart",O)}var E=[dd([d,e.size,{plain:p,loading:y,disabled:v,hairline:M,block:e.block,round:e.round,square:e.square}]),(s={},s[YP]=M,s)];function S(){if(y)return n.loading?n.loading():t(zs,{class:dd("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}});if(n.icon)return t("div",{class:dd("icon")},[n.icon()]);if(u)return t(It,{attrs:{name:u,classPrefix:e.iconPrefix},class:dd("icon")})}function T(){var O=[];x==="left"&&O.push(S());var j;return y?j=b:j=n.default?n.default():e.text,j&&O.push(t("span",{class:dd("text")},[j])),x==="right"&&O.push(S()),O}return t(o,Pt([{style:N,class:E,attrs:{type:e.nativeType,disabled:v},on:{click:w,touchstart:k}},on(i)]),[t("div",{class:dd("content")},[T()])])}d3.props=qe({},Qo,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});const wi=P0e(d3);function R0e(t){var e=[];function n(i){i.forEach(function(s){e.push(s),s.componentInstance&&n(s.componentInstance.$children.map(function(o){return o.$vnode})),s.children&&n(s.children)})}return n(t),e}function f3(t,e){var n=e.$vnode.componentOptions;if(!(!n||!n.children)){var i=R0e(n.children);t.sort(function(s,o){return i.indexOf(s.$vnode)-i.indexOf(o.$vnode)})}}function fr(t,e){var n,i;e===void 0&&(e={});var s=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[s]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(u){u||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var u=this;this.parent&&(this.parent.children=this.parent.children.filter(function(d){return d!==u}))},methods:{bindRelation:function(){if(!(!this.parent||this.parent.children.indexOf(this)!==-1)){var u=[].concat(this.parent.children,[this]);f3(u,this.parent),this.parent.children=u}}}}}function hr(t){return{provide:function(){var n;return n={},n[t]=this,n},data:function(){return{children:[]}}}}var h3=Ae("goods-action"),F0e=h3[0],B0e=h3[1];const p3=F0e({mixins:[hr("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var e=arguments[0];return e("div",{class:B0e({unfit:!this.safeAreaInsetBottom})},[this.slots()])}});var m3=Ae("goods-action-button"),U0e=m3[0],V0e=m3[1];const DD=U0e({mixins:[fr("vanGoodsAction")],props:qe({},Qo,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var e=this.parent&&this.parent.children[this.index-1];return!e||e.$options.name!==this.$options.name},isLast:function(){var e=this.parent&&this.parent.children[this.index+1];return!e||e.$options.name!==this.$options.name}},methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)}},render:function(){var e=arguments[0];return e(wi,{class:V0e([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}});var wD=Ae("dialog"),Y0e=wD[0],Fs=wD[1],mb=wD[2];const ND=Y0e({mixins:[ob()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(e){var n=this;this.$emit(e),this.value&&(this.beforeClose?(this.loading[e]=!0,this.beforeClose(e,function(i){i!==!1&&n.loading[e]&&n.onClose(e),n.loading.confirm=!1,n.loading.cancel=!1})):this.onClose(e))},onClose:function(e){this.close(),this.callback&&this.callback(e)},onOpened:function(){var e=this;this.$emit("opened"),this.$nextTick(function(){var n;(n=e.$refs.dialog)==null||n.focus()})},onClosed:function(){this.$emit("closed")},onKeydown:function(e){var n=this;if(e.key==="Escape"||e.key==="Enter"){if(e.target!==this.$refs.dialog)return;var i={Enter:this.showConfirmButton?function(){return n.handleAction("confirm")}:Jh,Escape:this.showCancelButton?function(){return n.handleAction("cancel")}:Jh};i[e.key](),this.$emit("keydown",e)}},genRoundButtons:function(){var e=this,n=this.$createElement;return n(p3,{class:Fs("footer")},[this.showCancelButton&&n(DD,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||mb("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Fs("cancel"),on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(DD,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||mb("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Fs("confirm"),on:{click:function(){e.handleAction("confirm")}}})])},genButtons:function(){var e=this,n,i=this.$createElement,s=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[vD,Fs("footer")]},[this.showCancelButton&&i(wi,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||mb("cancel"),nativeType:"button"},class:Fs("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(wi,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||mb("confirm"),nativeType:"button"},class:[Fs("confirm"),(n={},n[VP]=s,n)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(e,n){var i=this.$createElement;if(n)return i("div",{class:Fs("content")},[n]);var s=this.message,o=this.messageAlign;if(s){var u,d,f={class:Fs("message",(u={"has-title":e},u[o]=o,u)),domProps:(d={},d[this.allowHtml?"innerHTML":"textContent"]=s,d)};return i("div",{class:Fs("content",{isolated:!e})},[i("div",Pt([{},f]))])}}},render:function(){var e=arguments[0];if(this.shouldRender){var n=this.message,i=this.slots(),s=this.slots("title")||this.title,o=s&&e("div",{class:Fs("header",{isolated:!n&&!i})},[s]);return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n,tabIndex:0},class:[Fs([this.theme]),this.className],style:{width:Wt(this.width)},ref:"dialog",on:{keydown:this.onKeydown}},[o,this.genContent(s,i),this.theme==="round-button"?this.genRoundButtons():this.genButtons()])])}}});var Bs;function H0e(t){return document.body.contains(t)}function W0e(){Bs&&Bs.$destroy(),Bs=new(ft.extend(ND))({el:document.createElement("div"),propsData:{lazyRender:!1}}),Bs.$on("input",function(t){Bs.value=t})}function Bn(t){return cr?Promise.resolve():new Promise(function(e,n){(!Bs||!H0e(Bs.$el))&&W0e(),qe(Bs,Bn.currentOptions,t,{resolve:e,reject:n})})}Bn.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(e){Bs[e==="confirm"?"resolve":"reject"](e)}},Bn.alert=Bn,Bn.confirm=function(t){return Bn(qe({showCancelButton:!0},t))},Bn.close=function(){Bs&&(Bs.value=!1)},Bn.setDefaultOptions=function(t){qe(Bn.currentOptions,t)},Bn.resetDefaultOptions=function(){Bn.currentOptions=qe({},Bn.defaultOptions)},Bn.resetDefaultOptions(),Bn.install=function(){ft.use(ND)},Bn.Component=ND,ft.prototype.$dialog=Bn;var kD=Ae("address-edit-detail"),Q0e=kD[0],gb=kD[1],OD=kD[2],g3=N0e();const G0e=Q0e({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(e){this.$emit("select-search",e),this.$emit("input",((e.address||"")+" "+(e.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var e=this.$createElement,n=this.value&&this.focused&&g3;if(n)return e("div",{class:gb("finish"),on:{click:this.onFinish}},[OD("complete")])},genSearchResult:function(){var e=this,n=this.$createElement,i=this.value,s=this.shouldShowSearchResult,o=this.searchResult;if(s)return o.map(function(u){return n(Vi,{key:u.name+u.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:u.address},class:gb("search-item"),on:{click:function(){e.onSelect(u)}},scopedSlots:{title:function(){if(u.name){var f=u.name.replace(i,"<span class="+gb("keyword")+">"+i+"</span>");return n("div",{domProps:{innerHTML:f}})}}}})})}},render:function(){var e=arguments[0];return e(Vi,{class:gb()},[e(is,{attrs:{autosize:!0,rows:this.detailRows,clearable:!g3,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:OD("label"),maxlength:this.detailMaxlength,placeholder:OD("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:qe({},this.$listeners)}),this.genSearchResult()])}});var v3={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Go={inject:{vanField:{default:null}},watch:{value:function(){var e=this.vanField;e&&(e.resetValidation(),e.validateWithTrigger("onChange"))}},created:function(){var e=this.vanField;e&&!e.children&&(e.children=this)}},y3=Ae("switch"),K0e=y3[0],ED=y3[1];const vb=K0e({mixins:[Go],props:v3,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Wt(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(e){if(this.$emit("click",e),!this.disabled&&!this.loading){var n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n)}},genLoading:function(){var e=this.$createElement;if(this.loading){var n=this.checked?this.activeColor:this.inactiveColor;return e(zs,{class:ED("loading"),attrs:{color:n}})}}},render:function(){var e=arguments[0],n=this.checked,i=this.loading,s=this.disabled;return e("div",{class:ED({on:n,loading:i,disabled:s}),attrs:{role:"switch","aria-checked":String(n)},style:this.style,on:{click:this.onClick}},[e("div",{class:ED("node")},[this.genLoading()])])}});var ID=Ae("address-edit"),q0e=ID[0],yb=ID[1],ni=ID[2],b3={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};function X0e(t){return/^\d{6}$/.test(t)}const Z0e=q0e({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return qe({},b3)}},telValidator:{type:Function,default:BP},postalValidator:{type:Function,default:X0e},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return $s(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var e=this.data,n=e.country,i=e.province,s=e.city,o=e.county,u=e.areaCode;if(u){var d=[n,i,s,o];return i&&i===s&&d.splice(1,1),d.filter(function(f){return f}).join("/")}return""},hideBottomFields:function(){var e=this.searchResult;return e&&e.length&&this.detailFocused}},watch:{addressInfo:{handler:function(e){this.data=qe({},b3,e),this.setAreaCode(e.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(e){this.errorInfo[e]="",this.detailFocused=e==="addressDetail",this.$emit("focus",e)},onChangeDetail:function(e){this.data.addressDetail=e,this.$emit("change-detail",e)},onAreaConfirm:function(e){if(e=e.filter(function(n){return!!n}),e.some(function(n){return!n.code})){ti(ni("areaEmpty"));return}this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",e)},assignAreaValues:function(){var e=this.$refs.area;if(e){var n=e.getArea();n.areaCode=n.code,delete n.code,qe(this.data,n)}},onSave:function(){var e=this,n=["name","tel"];this.showArea&&n.push("areaCode"),this.showDetail&&n.push("addressDetail"),this.showPostal&&n.push("postalCode");var i=n.every(function(s){var o=e.getErrorMessage(s);return o&&(e.errorInfo[s]=o),!o});i&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(e){var n=String(this.data[e]||"").trim();if(this.validator){var i=this.validator(e,n);if(i)return i}switch(e){case"name":return n?"":ni("nameEmpty");case"tel":return this.telValidator(n)?"":ni("telInvalid");case"areaCode":return n?"":ni("areaEmpty");case"addressDetail":return n?"":ni("addressEmpty");case"postalCode":return n&&!this.postalValidator(n)?ni("postalEmpty"):""}},onDelete:function(){var e=this;Bn.confirm({title:ni("confirmDelete")}).then(function(){e.$emit("delete",e.data)}).catch(function(){e.$emit("cancel-delete",e.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(e){this.data.areaCode=e||"",e&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(e){this.data.addressDetail=e},onDetailBlur:function(){var e=this;setTimeout(function(){e.detailFocused=!1})},genSetDefaultCell:function(e){var n=this;if(this.showSetDefault){var i={"right-icon":function(){return e(vb,{attrs:{size:"24"},on:{change:function(u){n.$emit("change-default",u)}},model:{value:n.data.isDefault,callback:function(u){n.$set(n.data,"isDefault",u)}}})}};return e(Vi,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:ni("defaultAddress")},class:yb("default"),scopedSlots:i})}return e()}},render:function(e){var n=this,i=this.data,s=this.errorInfo,o=this.disableArea,u=this.hideBottomFields,d=function(p){return function(){return n.onFocus(p)}};return e("div",{class:yb()},[e("div",{class:yb("fields")},[e(is,{attrs:{clearable:!0,label:ni("name"),placeholder:ni("namePlaceholder"),errorMessage:s.name},on:{focus:d("name")},model:{value:i.name,callback:function(p){n.$set(i,"name",p)}}}),e(is,{attrs:{clearable:!0,type:"tel",label:ni("tel"),maxlength:this.telMaxlength,placeholder:ni("telPlaceholder"),errorMessage:s.tel},on:{focus:d("tel")},model:{value:i.tel,callback:function(p){n.$set(i,"tel",p)}}}),e(is,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!o,label:ni("area"),placeholder:this.areaPlaceholder||ni("areaPlaceholder"),errorMessage:s.areaCode,rightIcon:o?null:"arrow",value:this.areaText},on:{focus:d("areaCode"),click:function(){n.$emit("click-area"),n.showAreaPopup=!o}}}),e(G0e,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:i.addressDetail,errorMessage:s.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:d("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(p){n.$emit("select-search",p)}}}),this.showPostal&&e(is,{directives:[{name:"show",value:!u}],attrs:{type:"tel",maxlength:"6",label:ni("postal"),placeholder:ni("postal"),errorMessage:s.postalCode},on:{focus:d("postalCode")},model:{value:i.postalCode,callback:function(p){n.$set(i,"postalCode",p)}}}),this.slots()]),this.genSetDefaultCell(e),e("div",{directives:[{name:"show",value:!u}],class:yb("buttons")},[e(wi,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||ni("save")},on:{click:this.onSave}}),this.showDelete&&e(wi,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||ni("delete")},on:{click:this.onDelete}})]),e(_a,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:n.showAreaPopup,callback:function(p){n.showAreaPopup=p}}},[e(e3,{ref:"area",attrs:{value:i.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){n.showAreaPopup=!1}}})])])}});var _3=Ae("radio-group"),J0e=_3[0],eCe=_3[1];const AD=J0e({mixins:[hr("vanRadio"),Go],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(e){this.$emit("change",e)}},render:function(){var e=arguments[0];return e("div",{class:eCe([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}});var M3=Ae("tag"),tCe=M3[0],x3=M3[1];function C3(t,e,n,i){var s,o=e.type,u=e.mark,d=e.plain,f=e.color,p=e.round,v=e.size,y=e.textColor,M=d?"color":"backgroundColor",b=(s={},s[M]=f,s);d?(b.color=y||f,b.borderColor=f):(b.color=y,b.background=f);var x={mark:u,plain:d,round:p};v&&(x[v]=v);var N=e.closeable&&t(It,{attrs:{name:"cross"},class:x3("close"),on:{click:function(k){k.stopPropagation(),Yt(i,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",Pt([{key:"content",style:b,class:x3([x,o])},on(i,!0)]),[n.default==null?void 0:n.default(),N])])}C3.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};const bb=tCe(C3);var S3=function(e){var n=e.parent,i=e.bem,s=e.role;return{mixins:[fr(n),Go],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var u=this.checkedColor||this.parent&&this.parent.checkedColor;if(u&&this.checked&&!this.isDisabled)return{borderColor:u,backgroundColor:u}},tabindex:function(){return this.isDisabled||s==="radio"&&!this.checked?-1:0}},methods:{onClick:function(u){var d=this,f=u.target,p=this.$refs.icon,v=p===f||(p==null?void 0:p.contains(f));!this.isDisabled&&(v||!this.labelDisabled)?(this.toggle(),setTimeout(function(){d.$emit("click",u)})):this.$emit("click",u)},genIcon:function(){var u=this.$createElement,d=this.checked,f=this.iconSize||this.parent&&this.parent.iconSize;return u("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:d}]),style:{fontSize:Wt(f)}},[this.slots("icon",{checked:d})||u(It,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var u=this.$createElement,d=this.slots();if(d)return u("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[d])}},render:function(){var u=arguments[0],d=[this.genIcon()];return this.labelPosition==="left"?d.unshift(this.genLabel()):d.push(this.genLabel()),u("div",{attrs:{role:s,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[d])}}},T3=Ae("radio"),nCe=T3[0],iCe=T3[1];const jD=nCe({mixins:[S3({bem:iCe,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(e){(this.parent||this).$emit("input",e)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}});var D3=Ae("address-item"),rCe=D3[0],fd=D3[1];function w3(t,e,n,i){var s=e.disabled,o=e.switchable;function u(){o&&Yt(i,"select"),Yt(i,"click")}var d=function(){return t(It,{attrs:{name:"edit"},class:fd("edit"),on:{click:function(M){M.stopPropagation(),Yt(i,"edit"),Yt(i,"click")}}})};function f(){if(n.tag)return n.tag(qe({},e.data));if(e.data.isDefault&&e.defaultTagText)return t(bb,{attrs:{type:"danger",round:!0},class:fd("tag")},[e.defaultTagText])}function p(){var v=e.data,y=[t("div",{class:fd("name")},[v.name+" "+v.tel,f()]),t("div",{class:fd("address")},[v.address])];return o&&!s?t(jD,{attrs:{name:v.id,iconSize:18}},[y]):y}return t("div",{class:fd({disabled:s}),on:{click:u}},[t(Vi,Pt([{attrs:{border:!1,valueClass:fd("value")},scopedSlots:{default:p,"right-icon":d}},on(i)])),n.bottom==null?void 0:n.bottom(qe({},e.data,{disabled:s}))])}w3.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};const sCe=rCe(w3);var $D=Ae("address-list"),aCe=$D[0],_b=$D[1],oCe=$D[2];function N3(t,e,n,i){function s(d,f){if(d)return d.map(function(p,v){return t(sCe,{attrs:{data:p,disabled:f,switchable:e.switchable,defaultTagText:e.defaultTagText},key:p.id,scopedSlots:{bottom:n["item-bottom"],tag:n.tag},on:{select:function(){Yt(i,f?"select-disabled":"select",p,v),f||Yt(i,"input",p.id)},edit:function(){Yt(i,f?"edit-disabled":"edit",p,v)},click:function(){Yt(i,"click-item",p,v)}}})})}var o=s(e.list),u=s(e.disabledList,!0);return t("div",Pt([{class:_b()},on(i)]),[n.top==null?void 0:n.top(),t(AD,{attrs:{value:e.value}},[o]),e.disabledText&&t("div",{class:_b("disabled-text")},[e.disabledText]),u,n.default==null?void 0:n.default(),t("div",{class:_b("bottom")},[t(wi,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||oCe("add")},class:_b("add"),on:{click:function(){Yt(i,"add")}}})])])}N3.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};const lCe=aCe(N3);var k3=Ae("badge"),uCe=k3[0],O3=k3[1];const cCe=uCe({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Ut(this.content)&&this.content!=="")},renderContent:function(){var e=this.dot,n=this.max,i=this.content;if(!e&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Ut(n)&&uD(i)&&+i>n?n+"+":i},renderBadge:function(){var e=this.$createElement;if(this.hasContent()||this.dot)return e("div",{class:O3({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var e=arguments[0];if(this.$scopedSlots.default){var n=this.tag;return e(n,{class:O3("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}});var E3=Date.now();function dCe(t){var e=Date.now(),n=Math.max(0,16-(e-E3)),i=setTimeout(t,n);return E3=e+n,i}var rp=cr?global:window,fCe=rp.requestAnimationFrame||dCe,hCe=rp.cancelAnimationFrame||rp.clearTimeout;function rs(t){return fCe.call(rp,t)}function yu(t){rs(function(){rs(t)})}function I3(t){hCe.call(rp,t)}function sp(t){return Object.prototype.toString.call(t)==="[object Date]"&&!cD(t.getTime())}var LD=Ae("calendar"),pCe=LD[0],Un=LD[1],Ko=LD[2];function mCe(t){return Ko("monthTitle",t.getFullYear(),t.getMonth()+1)}function zD(t,e){var n=t.getFullYear(),i=e.getFullYear(),s=t.getMonth(),o=e.getMonth();return n===i?s===o?0:s>o?1:-1:n>i?1:-1}function Ma(t,e){var n=zD(t,e);if(n===0){var i=t.getDate(),s=e.getDate();return i===s?0:i>s?1:-1}return n}function PD(t,e){return t=new Date(t),t.setDate(t.getDate()+e),t}function gCe(t){return PD(t,-1)}function A3(t){return PD(t,1)}function vCe(t){var e=t[0].getTime(),n=t[1].getTime();return(n-e)/(1e3*60*60*24)+1}function RD(t){return new Date(t)}function j3(t){return Array.isArray(t)?t.map(function(e){return e===null?e:RD(e)}):RD(t)}function yCe(t,e){if(t<0)return[];for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function FD(t){if(!t)return 0;for(;cD(parseInt(t,10));)if(t.length>1)t=t.slice(1);else return 0;return parseInt(t,10)}function BD(t,e){return 32-new Date(t,e-1,32).getDate()}var bCe=Ae("calendar-month"),_Ce=bCe[0];const MCe=_Ce({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return mCe(this.date)},rowHeightWithUnit:function(){return Wt(this.rowHeight)},offset:function(){var e=this.firstDayOfWeek,n=this.date.getDay();return e?(n+7-this.firstDayOfWeek)%7:n},totalDay:function(){return BD(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var e=[],n=Math.ceil((this.totalDay+this.offset)/7),i=1;i<=n;i++)e.push({type:"placeholder"});return e},days:function(){for(var e=[],n=this.date.getFullYear(),i=this.date.getMonth(),s=1;s<=this.totalDay;s++){var o=new Date(n,i,s),u=this.getDayType(o),d={date:o,type:u,text:s,bottomInfo:this.getBottomInfo(u)};this.formatter&&(d=this.formatter(d)),e.push(d)}return e}},methods:{getHeight:function(){var e;return((e=this.$el)==null?void 0:e.getBoundingClientRect().height)||0},scrollIntoView:function(e){var n=this.$refs,i=n.days,s=n.month,o=this.showSubtitle?i:s,u=o.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;rb(e,u)},getMultipleDayType:function(e){var n=this,i=function(p){return n.currentDate.some(function(v){return Ma(v,p)===0})};if(i(e)){var s=gCe(e),o=A3(e),u=i(s),d=i(o);return u&&d?"multiple-middle":u?"end":d?"start":"multiple-selected"}return""},getRangeDayType:function(e){var n=this.currentDate,i=n[0],s=n[1];if(!i)return"";var o=Ma(e,i);if(!s)return o===0?"start":"";var u=Ma(e,s);if(o===0&&u===0&&this.allowSameDay)return"start-end";if(o===0)return"start";if(u===0)return"end";if(o>0&&u<0)return"middle"},getDayType:function(e){var n=this.type,i=this.minDate,s=this.maxDate,o=this.currentDate;if(Ma(e,i)<0||Ma(e,s)>0)return"disabled";if(o!==null){if(n==="single")return Ma(e,o)===0?"selected":"";if(n==="multiple")return this.getMultipleDayType(e);if(n==="range")return this.getRangeDayType(e)}},getBottomInfo:function(e){if(this.type==="range"){if(e==="start"||e==="end")return Ko(e);if(e==="start-end")return Ko("startEnd")}},getDayStyle:function(e,n){var i={height:this.rowHeightWithUnit};return e==="placeholder"?(i.width="100%",i):(n===0&&(i.marginLeft=100*this.offset/7+"%"),this.color&&(e==="start"||e==="end"||e==="start-end"||e==="multiple-selected"||e==="multiple-middle"?i.background=this.color:e==="middle"&&(i.color=this.color)),i)},genTitle:function(){var e=this.$createElement;if(this.showMonthTitle)return e("div",{class:Un("month-title")},[this.title])},genMark:function(){var e=this.$createElement;if(this.showMark&&this.shouldRender)return e("div",{class:Un("month-mark")},[this.date.getMonth()+1])},genDays:function(){var e=this.$createElement,n=this.shouldRender?this.days:this.placeholders;return e("div",{ref:"days",attrs:{role:"grid"},class:Un("days")},[this.genMark(),n.map(this.genDay)])},genTopInfo:function(e){var n=this.$createElement,i=this.$scopedSlots["top-info"];if(e.topInfo||i)return n("div",{class:Un("top-info")},[i?i(e):e.topInfo])},genBottomInfo:function(e){var n=this.$createElement,i=this.$scopedSlots["bottom-info"];if(e.bottomInfo||i)return n("div",{class:Un("bottom-info")},[i?i(e):e.bottomInfo])},genDay:function(e,n){var i=this,s=this.$createElement,o=e.type,u=this.getDayStyle(o,n),d=o==="disabled",f=function(){d||i.$emit("click",e)};return o==="selected"?s("div",{attrs:{role:"gridcell",tabindex:-1},style:u,class:[Un("day"),e.className],on:{click:f}},[s("div",{class:Un("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])]):s("div",{attrs:{role:"gridcell",tabindex:d?null:-1},style:u,class:[Un("day",o),e.className],on:{click:f}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])}},render:function(){var e=arguments[0];return e("div",{class:Un("month"),ref:"month"},[this.genTitle(),this.genDays()])}});var xCe=Ae("calendar-header"),CCe=xCe[0];const SCe=CCe({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var e=this.$createElement;if(this.showTitle){var n=this.slots("title")||this.title||Ko("title");return e("div",{class:Un("header-title")},[n])}},genSubtitle:function(){var e=this.$createElement;if(this.showSubtitle)return e("div",{class:Un("header-subtitle")},[this.subtitle])},genWeekDays:function(){var e=this.$createElement,n=Ko("weekdays"),i=this.firstDayOfWeek,s=[].concat(n.slice(i,7),n.slice(0,i));return e("div",{class:Un("weekdays")},[s.map(function(o){return e("span",{class:Un("weekday")},[o])})])}},render:function(){var e=arguments[0];return e("div",{class:Un("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),TCe=pCe({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:sp,default:function(){return new Date}},maxDate:{type:Date,validator:sp,default:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(e){return e>=0&&e<=6}}},inject:{vanPopup:{default:null}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var e=[],n=new Date(this.minDate);n.setDate(1);do e.push(new Date(n)),n.setMonth(n.getMonth()+1);while(zD(n,this.maxDate)!==1);return e},buttonDisabled:function(){var e=this.type,n=this.currentDate;if(n){if(e==="range")return!n[0]||!n[1];if(e==="multiple")return!n.length}return!n},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(e){this.currentDate=e,this.scrollIntoView()}},mounted:function(){if(this.init(),!this.poppable){var e;(e=this.vanPopup)==null||e.$on("opened",this.onScroll)}},activated:function(){this.init()},methods:{reset:function(e){e===void 0&&(e=this.getInitialDate()),this.currentDate=e,this.scrollIntoView()},init:function(){var e=this;this.poppable&&!this.value||this.$nextTick(function(){e.bodyHeight=Math.floor(e.$refs.body.getBoundingClientRect().height),e.onScroll(),e.scrollIntoView()})},scrollToDate:function(e){var n=this;rs(function(){var i=n.value||!n.poppable;!e||!i||(n.months.some(function(s,o){if(zD(s,e)===0){var u=n.$refs,d=u.body,f=u.months;return f[o].scrollIntoView(d),!0}return!1}),n.onScroll())})},scrollIntoView:function(){var e=this.currentDate;if(e){var n=this.type==="single"?e:e[0];this.scrollToDate(n)}},getInitialDate:function(){var e=this.type,n=this.minDate,i=this.maxDate,s=this.defaultDate;if(s===null)return s;var o=new Date;if(Ma(o,n)===-1?o=n:Ma(o,i)===1&&(o=i),e==="range"){var u=s||[],d=u[0],f=u[1];return[d||o,f||A3(o)]}return e==="multiple"?s||[o]:s||o},onScroll:function(){var e=this.$refs,n=e.body,i=e.months,s=mu(n),o=s+this.bodyHeight,u=i.map(function(b){return b.getHeight()}),d=u.reduce(function(b,x){return b+x},0);if(!(o>d&&s>0)){for(var f=0,p,v=[-1,-1],y=0;y<i.length;y++){var M=f<=o&&f+u[y]>=s;M&&(v[1]=y,p||(p=i[y],v[0]=y),i[y].showed||(i[y].showed=!0,this.$emit("month-show",{date:i[y].date,title:i[y].title}))),f+=u[y]}i.forEach(function(b,x){b.visible=x>=v[0]-1&&x<=v[1]+1}),p&&(this.subtitle=p.title)}},onClickDay:function(e){if(!this.readonly){var n=e.date,i=this.type,s=this.currentDate;if(i==="range"){if(!s){this.select([n,null]);return}var o=s[0],u=s[1];if(o&&!u){var d=Ma(n,o);d===1?this.select([o,n],!0):d===-1?this.select([n,null]):this.allowSameDay&&this.select([n,n],!0)}else this.select([n,null])}else if(i==="multiple"){if(!s){this.select([n]);return}var f,p=this.currentDate.some(function(M,b){var x=Ma(M,n)===0;return x&&(f=b),x});if(p){var v=s.splice(f,1),y=v[0];this.$emit("unselect",RD(y))}else this.maxRange&&s.length>=this.maxRange?ti(this.rangePrompt||Ko("rangePrompt",this.maxRange)):this.select([].concat(s,[n]))}else this.select(n,!0)}},togglePopup:function(e){this.$emit("input",e)},select:function(e,n){var i=this,s=function(d){i.currentDate=d,i.$emit("select",j3(i.currentDate))};if(n&&this.type==="range"){var o=this.checkRange(e);if(!o){this.showConfirm?s([e[0],PD(e[0],this.maxRange-1)]):s(e);return}}s(e),n&&!this.showConfirm&&this.onConfirm()},checkRange:function(e){var n=this.maxRange,i=this.rangePrompt;return n&&vCe(e)>n?(ti(i||Ko("rangePrompt",n)),!1):!0},onConfirm:function(){this.$emit("confirm",j3(this.currentDate))},genMonth:function(e,n){var i=this.$createElement,s=n!==0||!this.showSubtitle;return i(MCe,{ref:"months",refInFor:!0,attrs:{date:e,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:s,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var e=this.$createElement,n=this.slots("footer");if(n)return n;if(this.showConfirm){var i=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return e(wi,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Un("confirm"),on:{click:this.onConfirm}},[i||Ko("confirm")])}},genFooter:function(){var e=this.$createElement;return e("div",{class:Un("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var e=this,n=this.$createElement;return n("div",{class:Un()},[n(SCe,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return e.slots("title")}}}),n("div",{ref:"body",class:Un("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var e=this,n=arguments[0];if(this.poppable){var i,s=function(u){return function(){return e.$emit(u)}};return n(_a,{attrs:(i={round:!0,value:this.value},i.round=this.round,i.position=this.position,i.closeable=this.showTitle||this.showSubtitle,i.getContainer=this.getContainer,i.closeOnPopstate=this.closeOnPopstate,i.closeOnClickOverlay=this.closeOnClickOverlay,i),class:Un("popup"),on:{input:this.togglePopup,open:s("open"),opened:s("opened"),close:s("close"),closed:s("closed")}},[this.genCalendar()])}return this.genCalendar()}});var $3=Ae("image"),DCe=$3[0],hd=$3[1];const pd=DCe({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var e={};return Ut(this.width)&&(e.width=Wt(this.width)),Ut(this.height)&&(e.height=Wt(this.height)),Ut(this.radius)&&(e.overflow="hidden",e.borderRadius=Wt(this.radius)),e}},created:function(){var e=this.$Lazyload;e&&nb&&(e.$on("loaded",this.onLazyLoaded),e.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var e=this.$Lazyload;e&&(e.$off("loaded",this.onLazyLoaded),e.$off("error",this.onLazyLoadError))},methods:{onLoad:function(e){this.loading=!1,this.$emit("load",e)},onLazyLoaded:function(e){var n=e.el;n===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(e){var n=e.el;n===this.$refs.image&&!this.error&&this.onError()},onError:function(e){this.error=!0,this.loading=!1,this.$emit("error",e)},onClick:function(e){this.$emit("click",e)},genPlaceholder:function(){var e=this.$createElement;if(this.loading&&this.showLoading)return e("div",{class:hd("loading")},[this.slots("loading")||e(It,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:hd("loading-icon")})]);if(this.error&&this.showError)return e("div",{class:hd("error")},[this.slots("error")||e(It,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:hd("error-icon")})])},genImage:function(){var e=this.$createElement,n={class:hd("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?e("img",Pt([{ref:"image",directives:[{name:"lazy",value:this.src}]},n])):e("img",Pt([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},n]))}},render:function(){var e=arguments[0];return e("div",{class:hd({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}});var L3=Ae("card"),wCe=L3[0],pr=L3[1];function z3(t,e,n,i){var s,o=e.thumb,u=n.num||Ut(e.num),d=n.price||Ut(e.price),f=n["origin-price"]||Ut(e.originPrice),p=u||d||f||n.bottom;function v(T){Yt(i,"click-thumb",T)}function y(){if(n.tag||e.tag)return t("div",{class:pr("tag")},[n.tag?n.tag():t(bb,{attrs:{mark:!0,type:"danger"}},[e.tag])])}function M(){if(n.thumb||o)return t("a",{attrs:{href:e.thumbLink},class:pr("thumb"),on:{click:v}},[n.thumb?n.thumb():t(pd,{attrs:{src:o,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),y()])}function b(){if(n.title)return n.title();if(e.title)return t("div",{class:[pr("title"),"van-multi-ellipsis--l2"]},[e.title])}function x(){if(n.desc)return n.desc();if(e.desc)return t("div",{class:[pr("desc"),"van-ellipsis"]},[e.desc])}function N(){var T=e.price.toString().split(".");return t("div",[t("span",{class:pr("price-currency")},[e.currency]),t("span",{class:pr("price-integer")},[T[0]]),".",t("span",{class:pr("price-decimal")},[T[1]])])}function w(){if(d)return t("div",{class:pr("price")},[n.price?n.price():N()])}function k(){if(f){var T=n["origin-price"];return t("div",{class:pr("origin-price")},[T?T():e.currency+" "+e.originPrice])}}function E(){if(u)return t("div",{class:pr("num")},[n.num?n.num():"x"+e.num])}function S(){if(n.footer)return t("div",{class:pr("footer")},[n.footer()])}return t("div",Pt([{class:pr()},on(i,!0)]),[t("div",{class:pr("header")},[M(),t("div",{class:pr("content",{centered:e.centered})},[t("div",[b(),x(),n.tags==null?void 0:n.tags()]),p&&t("div",{class:"van-card__bottom"},[(s=n["price-top"])==null?void 0:s.call(n),w(),k(),E(),n.bottom==null?void 0:n.bottom()])])]),S()])}z3.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};const NCe=wCe(z3);var P3=Ae("tab"),kCe=P3[0],UD=P3[1];const Mb=kCe({mixins:[fr("vanTabs")],props:qe({},Qo,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var e;return(e=this.name)!=null?e:this.index},isActive:function(){var e=this.computedName===this.parent.currentName;return e&&(this.inited=!0),e}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(e){var n=this;this.parent.lazyRender&&e&&this.$nextTick(function(){n.parent.$emit("rendered",n.computedName,n.title)})}},render:function(e){var n=this.slots,i=this.parent,s=this.isActive,o=n();if(process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] Tab: "info" prop is deprecated, use "badge" prop instead.'),!(!o&&!i.animated)){var u=i.scrollspy||s,d=this.inited||i.scrollspy||!i.lazyRender,f=d?o:e();return i.animated?e("div",{attrs:{role:"tabpanel","aria-hidden":!s},class:UD("pane-wrapper",{inactive:!s})},[e("div",{class:UD("pane")},[f])]):e("div",{directives:[{name:"show",value:u}],attrs:{role:"tabpanel"},class:UD("pane")},[f])}}});function OCe(t,e,n){var i=0,s=t.scrollLeft,o=n===0?1:Math.round(n*1e3/16);function u(){t.scrollLeft+=(e-s)/o,++i<o&&rs(u)}u()}function ECe(t,e,n,i){var s=mu(t),o=s<e,u=n===0?1:Math.round(n*1e3/16),d=(e-s)/u;function f(){s+=d,(o&&s>e||!o&&s<e)&&(s=e),rb(t,s),o&&s<e||!o&&s>e?rs(f):i&&rs(i)}f()}function ap(t){var e=window.getComputedStyle(t),n=e.display==="none",i=t.offsetParent===null&&e.position!=="fixed";return n||i}function R3(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var s=e.apply(void 0,n);ib(s)?s.then(function(o){o&&i()}).catch(Jh):s&&i()}else i()}var F3=Ae("tab"),ICe=F3[0],VD=F3[1];const ACe=ICe({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var e={},n=this.color,i=this.isActive,s=this.type==="card";n&&s&&(e.borderColor=n,this.disabled||(i?e.backgroundColor=n:e.color=n));var o=i?this.activeColor:this.inactiveColor;return o&&(e.color=o),e}},methods:{onClick:function(){this.$emit("click")},genText:function(){var e=this.$createElement,n=e("span",{class:VD("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Ut(this.info)&&this.info!==""?e("span",{class:VD("text-wrapper")},[n,e(gu,{attrs:{dot:this.dot,info:this.info}})]):n}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[VD({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}});var B3=Ae("sticky"),jCe=B3[0],$Ce=B3[1];const U3=jCe({mixins:[Ls(function(t,e){if(this.scroller||(this.scroller=pu(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return fD(this.offsetTop)},style:function(){if(this.fixed){var e={};return Ut(this.zIndex)&&(e.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(e.top=this.offsetTopPx+"px"),this.transform&&(e.transform="translate3d(0, "+this.transform+"px, 0)"),e}}},watch:{fixed:function(e){this.$emit("change",e)}},created:function(){var e=this;!cr&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(n){n[0].intersectionRatio>0&&e.onScroll()},{root:document.body}))},methods:{onScroll:function(){var e=this;if(!ap(this.$el)){this.height=this.$el.offsetHeight;var n=this.container,i=this.offsetTopPx,s=mu(window),o=mD(this.$el),u=function(){e.$emit("scroll",{scrollTop:s,isFixed:e.fixed})};if(n){var d=o+n.offsetHeight;if(s+i+this.height>d){var f=this.height+s-d;f<this.height?(this.fixed=!0,this.transform=-(f+i)):this.fixed=!1,u();return}}s+i>o?(this.fixed=!0,this.transform=0):this.fixed=!1,u()}}},render:function(){var e=arguments[0],n=this.fixed,i={height:n?this.height+"px":null};return e("div",{style:i},[e("div",{class:$Ce({fixed:n}),style:this.style},[this.slots()])])}});var V3=Ae("tabs"),LCe=V3[0],Y3=V3[1],zCe=50;const PCe=LCe({mixins:[ns],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var e=this.direction,n=this.deltaX,i=this.currentIndex;e==="horizontal"&&this.offsetX>=zCe&&(n>0&&i!==0?this.$emit("change",i-1):n<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var e=this.$createElement;return this.animated?e("div",{class:Y3("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var e=arguments[0];return e("div",{class:Y3("content",{animated:this.animated}),on:qe({},this.listeners)},[this.genChildren()])}});var H3=Ae("tabs"),RCe=H3[0],xb=H3[1];const YD=RCe({mixins:[hr("vanTabs"),Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)})],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var e=this.children[this.currentIndex];if(e)return e.computedName},offsetTopPx:function(){return fD(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(e){e!==this.currentName&&this.setCurrentIndexByName(e)},children:function(){var e=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick(function(){e.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&sb(Math.ceil(mD(this.$el)-this.offsetTopPx))},scrollspy:function(e){e?ts(this.scroller,"scroll",this.onScroll,!0):Wo(this.scroller,"scroll",this.onScroll)}},mounted:function(){var e=this;this.init(),this.vanPopup&&this.vanPopup.onReopen(function(){e.setLine()})},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var e=this;this.$nextTick(function(){e.inited=!0,e.tabHeight=Zxe(e.$refs.wrap),e.scrollIntoView(!0)})},setLine:function(){var e=this,n=this.inited;this.$nextTick(function(){var i=e.$refs.titles;if(!(!i||!i[e.currentIndex]||e.type!=="line"||ap(e.$el))){var s=i[e.currentIndex].$el,o=e.lineWidth,u=e.lineHeight,d=s.offsetLeft+s.offsetWidth/2,f={width:Wt(o),backgroundColor:e.color,transform:"translateX("+d+"px) translateX(-50%)"};if(n&&(f.transitionDuration=e.duration+"s"),Ut(u)){var p=Wt(u);f.height=p,f.borderRadius=p}e.lineStyle=f}})},setCurrentIndexByName:function(e){var n=this.children.filter(function(s){return s.computedName===e}),i=(this.children[0]||{}).index||0;this.setCurrentIndex(n.length?n[0].index:i)},setCurrentIndex:function(e){var n=this.findAvailableTab(e);if(Ut(n)){var i=this.children[n],s=i.computedName,o=this.currentIndex!==null;this.currentIndex=n,s!==this.active&&(this.$emit("input",s),o&&this.$emit("change",s,i.title))}},findAvailableTab:function(e){for(var n=e<this.currentIndex?-1:1;e>=0&&e<this.children.length;){if(!this.children[e].disabled)return e;e+=n}},onClick:function(e,n){var i=this,s=this.children[n],o=s.title,u=s.disabled,d=s.computedName;u?this.$emit("disabled",d,o):(R3({interceptor:this.beforeChange,args:[d],done:function(){i.setCurrentIndex(n),i.scrollToCurrentContent()}}),this.$emit("click",d,o),vu(e.$router,e))},scrollIntoView:function(e){var n=this.$refs.titles;if(!(!this.scrollable||!n||!n[this.currentIndex])){var i=this.$refs.nav,s=n[this.currentIndex].$el,o=s.offsetLeft-(i.offsetWidth-s.offsetWidth)/2;OCe(i,o,e?0:+this.duration)}},onSticktScroll:function(e){this.stickyFixed=e.isFixed,this.$emit("scroll",e)},scrollTo:function(e){var n=this;this.$nextTick(function(){n.setCurrentIndexByName(e),n.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(e){var n=this;if(e===void 0&&(e=!1),this.scrollspy){var i=this.children[this.currentIndex],s=i==null?void 0:i.$el;if(s){var o=mD(s,this.scroller)-this.scrollOffset;this.lockScroll=!0,ECe(this.scroller,o,e?0:+this.duration,function(){n.lockScroll=!1})}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var e=this.getCurrentIndexOnScroll();this.setCurrentIndex(e)}},getCurrentIndexOnScroll:function(){for(var e=this.children,n=0;n<e.length;n++){var i=Jxe(e[n].$el);if(i>this.scrollOffset)return n===0?0:n-1}return e.length-1}},render:function(){var e=this,n,i=arguments[0],s=this.type,o=this.animated,u=this.scrollable,d=this.children.map(function(p,v){var y;return i(ACe,{ref:"titles",refInFor:!0,attrs:{type:s,dot:p.dot,info:(y=p.badge)!=null?y:p.info,title:p.title,color:e.color,isActive:v===e.currentIndex,disabled:p.disabled,scrollable:u,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:p.titleStyle,class:p.titleClass,scopedSlots:{default:function(){return p.slots("title")}},on:{click:function(){e.onClick(p,v)}}})}),f=i("div",{ref:"wrap",class:[xb("wrap",{scrollable:u}),(n={},n[cb]=s==="line"&&this.border,n)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:xb("nav",[s,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),d,s==="line"&&i("div",{class:xb("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:xb([s])},[this.sticky?i(U3,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[f]):f,i(PCe,{attrs:{count:this.children.length,animated:o,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}});var HD=Ae("cascader"),FCe=HD[0],Qa=HD[1],BCe=HD[2];const UCe=FCe({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.text)||"text"},valueKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.value)||"value"},childrenKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(e){var n=this;if(e||e===0){var i=this.tabs.map(function(s){var o;return(o=s.selectedOption)==null?void 0:o[n.valueKey]});if(i.indexOf(e)!==-1)return}this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(e,n){for(var i=0;i<e.length;i++){var s=e[i];if(s[this.valueKey]===n)return[s];if(s[this.childrenKey]){var o=this.getSelectedOptionsByValue(s[this.childrenKey],n);if(o)return[s].concat(o)}}},updateTabs:function(){var e=this;if(this.value||this.value===0){var n=this.getSelectedOptionsByValue(this.options,this.value);if(n){var i=this.options;this.tabs=n.map(function(s){var o={options:i,selectedOption:s},u=i.filter(function(d){return d[e.valueKey]===s[e.valueKey]});return u.length&&(i=u[0][e.childrenKey]),o}),i&&this.tabs.push({options:i,selectedOption:null}),this.$nextTick(function(){e.activeTab=e.tabs.length-1});return}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(e,n){var i=this;if(this.tabs[n].selectedOption=e,this.tabs.length>n+1&&(this.tabs=this.tabs.slice(0,n+1)),e[this.childrenKey]){var s={options:e[this.childrenKey],selectedOption:null};this.tabs[n+1]?this.$set(this.tabs,n+1,s):this.tabs.push(s),this.$nextTick(function(){i.activeTab++})}var o=this.tabs.map(function(d){return d.selectedOption}).filter(function(d){return!!d}),u={value:e[this.valueKey],tabIndex:n,selectedOptions:o};this.$emit("input",e[this.valueKey]),this.$emit("change",u),e[this.childrenKey]||this.$emit("finish",u)},onClose:function(){this.$emit("close")},renderHeader:function(){var e=this.$createElement;if(this.showHeader)return e("div",{class:Qa("header")},[e("h2",{class:Qa("title")},[this.slots("title")||this.title]),this.closeable?e(It,{attrs:{name:"cross"},class:Qa("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(e,n,i){var s=this,o=this.$createElement,u=function(f){var p=n&&f[s.valueKey]===n[s.valueKey],v=s.slots("option",{option:f,selected:p})||o("span",[f[s.textKey]]);return o("li",{class:Qa("option",{selected:p}),style:{color:p?s.activeColor:null},on:{click:function(){s.onSelect(f,i)}}},[v,p?o(It,{attrs:{name:"success"},class:Qa("selected-icon")}):null])};return o("ul",{class:Qa("options")},[e.map(u)])},renderTab:function(e,n){var i=this.$createElement,s=e.options,o=e.selectedOption,u=o?o[this.textKey]:this.placeholder||BCe("select");return i(Mb,{attrs:{title:u,titleClass:Qa("tab",{unselected:!o})}},[this.renderOptions(s,o,n)])},renderTabs:function(){var e=this,n=this.$createElement;return n(YD,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Qa("tabs"),model:{value:e.activeTab,callback:function(s){e.activeTab=s}}},[this.tabs.map(this.renderTab)])}},render:function(){var e=arguments[0];return e("div",{class:Qa()},[this.renderHeader(),this.renderTabs()])}});var W3=Ae("cell-group"),VCe=W3[0],Q3=W3[1];function G3(t,e,n,i){var s,o=t("div",Pt([{class:[Q3({inset:e.inset}),(s={},s[cb]=e.border,s)]},on(i,!0)]),[n.default==null?void 0:n.default()]);return e.title||n.title?t("div",{key:i.data.key},[t("div",{class:Q3("title",{inset:e.inset})},[n.title?n.title():e.title]),o]):o}G3.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};const K3=VCe(G3);var q3=Ae("checkbox"),YCe=q3[0],HCe=q3[1];const X3=YCe({mixins:[S3({bem:HCe,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?this.parent.value.indexOf(this.name)!==-1:this.value},set:function(e){this.parent?this.setParentValue(e):this.$emit("input",e)}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggle:function(e){var n=this;e===void 0&&(e=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){n.checked=e})},setParentValue:function(e){var n=this.parent,i=n.value.slice();if(e){if(n.max&&i.length>=n.max)return;i.indexOf(this.name)===-1&&(i.push(this.name),n.$emit("input",i))}else{var s=i.indexOf(this.name);s!==-1&&(i.splice(s,1),n.$emit("input",i))}}}});var Z3=Ae("checkbox-group"),WCe=Z3[0],QCe=Z3[1];const GCe=WCe({mixins:[hr("vanCheckbox"),Go],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggleAll:function(e){e===void 0&&(e={}),typeof e=="boolean"&&(e={checked:e});var n=e,i=n.checked,s=n.skipDisabled,o=this.children.filter(function(d){return d.disabled&&s?d.checked:i??!d.checked}),u=o.map(function(d){return d.name});this.$emit("input",u)}},render:function(){var e=arguments[0];return e("div",{class:QCe([this.direction])},[this.slots()])}});var J3=Ae("circle"),KCe=J3[0],Cb=J3[1],eR=3140,qCe=0;function tR(t){return Math.min(Math.max(t,0),100)}function XCe(t,e){var n=t?1:0;return"M "+e/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+n+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000"}const ZCe=KCe({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+qCe++},computed:{style:function(){var e=Wt(this.size);return{width:e,height:e}},path:function(){return XCe(this.clockwise,this.viewBoxSize)},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var e=eR*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:e+"px "+eR+"px"}},gradient:function(){return $s(this.color)},LinearGradient:function(){var e=this,n=this.$createElement;if(this.gradient){var i=Object.keys(this.color).sort(function(s,o){return parseFloat(s)-parseFloat(o)}).map(function(s,o){return n("stop",{key:o,attrs:{offset:s,"stop-color":e.color[s]}})});return n("defs",[n("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[i])])}}},watch:{rate:{handler:function(e){this.startTime=Date.now(),this.startRate=this.value,this.endRate=tR(e),this.increase=this.endRate>this.startRate,this.duration=Math.abs((this.startRate-this.endRate)*1e3/this.speed),this.speed?(I3(this.rafId),this.rafId=rs(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var e=Date.now(),n=Math.min((e-this.startTime)/this.duration,1),i=n*(this.endRate-this.startRate)+this.startRate;this.$emit("input",tR(parseFloat(i.toFixed(1)))),(this.increase?i<this.endRate:i>this.endRate)&&(this.rafId=rs(this.animate))}},render:function(){var e=arguments[0];return e("div",{class:Cb(),style:this.style},[e("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,e("path",{class:Cb("layer"),style:this.layerStyle,attrs:{d:this.path}}),e("path",{attrs:{d:this.path},class:Cb("hover"),style:this.hoverStyle})]),this.slots()||this.text&&e("div",{class:Cb("text")},[this.text])])}});var nR=Ae("col"),JCe=nR[0],eSe=nR[1];const tSe=JCe({mixins:[fr("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var e=this.index,n=this.parent||{},i=n.spaces;if(i&&i[e]){var s=i[e],o=s.left,u=s.right;return{paddingLeft:o?o+"px":null,paddingRight:u?u+"px":null}}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,n=arguments[0],i=this.span,s=this.offset;return n(this.tag,{style:this.style,class:eSe((e={},e[i]=i,e["offset-"+s]=s,e)),on:{click:this.onClick}},[this.slots()])}});var iR=Ae("collapse"),nSe=iR[0],iSe=iR[1];const rSe=nSe({mixins:[hr("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,n){this.accordion||(e=n?this.value.concat(e):this.value.filter(function(i){return i!==e})),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e,n=arguments[0];return n("div",{class:[iSe(),(e={},e[cb]=this.border,e)]},[this.slots()])}});var rR=Ae("collapse-item"),sSe=rR[0],Sb=rR[1],aSe=["title","icon","right-icon"];const oSe=sSe({mixins:[fr("vanCollapse")],props:qe({},TD,{name:[Number,String],disabled:Boolean,lazyRender:{type:Boolean,default:!0},isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var e;return(e=this.name)!=null?e:this.index},expanded:function(){var e=this;if(!this.parent)return null;var n=this.parent,i=n.value,s=n.accordion;if(process.env.NODE_ENV==="development"&&!s&&!Array.isArray(i)){console.error('[Vant] Collapse: type of prop "value" should be Array');return}return s?i===this.currentName:i.some(function(o){return o===e.currentName})}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(e,n){var i=this;if(n!==null){e&&(this.show=!0,this.inited=!0);var s=e?this.$nextTick:rs;s(function(){var o=i.$refs,u=o.content,d=o.wrapper;if(!(!u||!d)){var f=u.offsetHeight;if(f){var p=f+"px";d.style.height=e?0:p,yu(function(){d.style.height=e?p:0})}else i.onTransitionEnd()}})}}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(e){e===void 0&&(e=!this.expanded);var n=this.parent,i=this.currentName,s=n.accordion&&i===n.value,o=s?"":i;this.parent.switch(o,e)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var e=this,n=this.$createElement,i=this.border,s=this.disabled,o=this.expanded,u=aSe.reduce(function(d,f){return e.slots(f)&&(d[f]=function(){return e.slots(f)}),d},{});return this.slots("value")&&(u.default=function(){return e.slots("value")}),n(Vi,{attrs:{role:"button",tabindex:s?-1:0,"aria-expanded":String(o)},class:Sb("title",{disabled:s,expanded:o,borderless:!i}),on:{click:this.onClick},scopedSlots:u,props:qe({},this.$props)})},genContent:function(){var e=this.$createElement;if(this.inited||!this.lazyRender)return e("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:Sb("wrapper"),on:{transitionend:this.onTransitionEnd}},[e("div",{ref:"content",class:Sb("content")},[this.slots()])])}},render:function(){var e=arguments[0];return e("div",{class:[Sb({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}});var WD=Ae("contact-card"),lSe=WD[0],sR=WD[1],QD=WD[2];function aR(t,e,n,i){var s=e.type,o=e.editable;function u(f){o&&Yt(i,"click",f)}function d(){return s==="add"?e.addText||QD("addText"):[t("div",[QD("name")+":"+e.name]),t("div",[QD("tel")+":"+e.tel])]}return t(Vi,Pt([{attrs:{center:!0,border:!1,isLink:o,valueClass:sR("value"),icon:s==="edit"?"contact":"add-square"},class:sR([s]),on:{click:u}},on(i)]),[d()])}aR.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};const uSe=lSe(aR);var GD=Ae("contact-edit"),cSe=GD[0],Tb=GD[1],Ga=GD[2],KD={tel:"",name:""};const dSe=cSe({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return qe({},KD)}},telValidator:{type:Function,default:BP}},data:function(){return{data:qe({},KD,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(e){this.data=qe({},KD,e)}},methods:{onFocus:function(e){this.errorInfo[e]=""},getErrorMessageByKey:function(e){var n=this.data[e].trim();switch(e){case"name":return n?"":Ga("nameInvalid");case"tel":return this.telValidator(n)?"":Ga("telInvalid")}},onSave:function(){var e=this,n=["name","tel"].every(function(i){var s=e.getErrorMessageByKey(i);return s&&(e.errorInfo[i]=s),!s});n&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var e=this;Bn.confirm({title:Ga("confirmDelete")}).then(function(){e.$emit("delete",e.data)})}},render:function(){var e=this,n=arguments[0],i=this.data,s=this.errorInfo,o=function(d){return function(){return e.onFocus(d)}};return n("div",{class:Tb()},[n("div",{class:Tb("fields")},[n(is,{attrs:{clearable:!0,maxlength:"30",label:Ga("name"),placeholder:Ga("nameEmpty"),errorMessage:s.name},on:{focus:o("name")},model:{value:i.name,callback:function(d){e.$set(i,"name",d)}}}),n(is,{attrs:{clearable:!0,type:"tel",label:Ga("tel"),placeholder:Ga("telEmpty"),errorMessage:s.tel},on:{focus:o("tel")},model:{value:i.tel,callback:function(d){e.$set(i,"tel",d)}}})]),this.showSetDefault&&n(Vi,{attrs:{title:this.setDefaultLabel,border:!1},class:Tb("switch-cell")},[n(vb,{attrs:{size:24},slot:"right-icon",on:{change:function(d){e.$emit("change-default",d)}},model:{value:i.isDefault,callback:function(d){e.$set(i,"isDefault",d)}}})]),n("div",{class:Tb("buttons")},[n(wi,{attrs:{block:!0,round:!0,type:"danger",text:Ga("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&n(wi,{attrs:{block:!0,round:!0,text:Ga("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}});var qD=Ae("contact-list"),fSe=qD[0],qo=qD[1],hSe=qD[2];function oR(t,e,n,i){var s=e.list&&e.list.map(function(o,u){function d(){Yt(i,"input",o.id),Yt(i,"select",o,u)}function f(){return t(jD,{attrs:{name:o.id,iconSize:16,checkedColor:UP},on:{click:d}})}function p(){return t(It,{attrs:{name:"edit"},class:qo("edit"),on:{click:function(M){M.stopPropagation(),Yt(i,"edit",o,u)}}})}function v(){var y=[o.name+","+o.tel];return o.isDefault&&e.defaultTagText&&y.push(t(bb,{attrs:{type:"danger",round:!0},class:qo("item-tag")},[e.defaultTagText])),y}return t(Vi,{key:o.id,attrs:{isLink:!0,center:!0,valueClass:qo("item-value")},class:qo("item"),scopedSlots:{icon:p,default:v,"right-icon":f},on:{click:d}})});return t("div",Pt([{class:qo()},on(i)]),[t(AD,{attrs:{value:e.value},class:qo("group")},[s]),t("div",{class:qo("bottom")},[t(wi,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||hSe("addText")},class:qo("add"),on:{click:function(){Yt(i,"add")}}})])])}oR.props={value:null,list:Array,addText:String,defaultTagText:String};const pSe=fSe(oR);var XD=1e3,ZD=60*XD,JD=60*ZD,lR=24*JD;function mSe(t){var e=Math.floor(t/lR),n=Math.floor(t%lR/JD),i=Math.floor(t%JD/ZD),s=Math.floor(t%ZD/XD),o=Math.floor(t%XD);return{days:e,hours:n,minutes:i,seconds:s,milliseconds:o}}function gSe(t,e){var n=e.days,i=e.hours,s=e.minutes,o=e.seconds,u=e.milliseconds;if(t.indexOf("DD")===-1?i+=n*24:t=t.replace("DD",An(n)),t.indexOf("HH")===-1?s+=i*60:t=t.replace("HH",An(i)),t.indexOf("mm")===-1?o+=s*60:t=t.replace("mm",An(s)),t.indexOf("ss")===-1?u+=o*1e3:t=t.replace("ss",An(o)),t.indexOf("S")!==-1){var d=An(u,3);t.indexOf("SSS")!==-1?t=t.replace("SSS",d):t.indexOf("SS")!==-1?t=t.replace("SS",d.slice(0,2)):t=t.replace("S",d.charAt(0))}return t}function vSe(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)}var uR=Ae("count-down"),ySe=uR[0],bSe=uR[1];const _Se=ySe({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return mSe(this.remain)},formattedTime:function(){return gSe(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,I3(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){nb&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var e=this;this.rafId=rs(function(){e.counting&&(e.setRemain(e.getRemain()),e.remain>0&&e.microTick())})},macroTick:function(){var e=this;this.rafId=rs(function(){if(e.counting){var n=e.getRemain();(!vSe(n,e.remain)||n===0)&&e.setRemain(n),e.remain>0&&e.macroTick()}})},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(e){this.remain=e,this.$emit("change",this.timeData),e===0&&(this.pause(),this.$emit("finish"))}},render:function(){var e=arguments[0];return e("div",{class:bSe()},[this.slots("default",this.timeData)||this.formattedTime])}});var ew=Ae("coupon"),MSe=ew[0],xa=ew[1],tw=ew[2];function xSe(t){return t<Math.pow(10,12)?t*1e3:+t}function cR(t){var e=new Date(xSe(t));return e.getFullYear()+"."+An(e.getMonth()+1)+"."+An(e.getDate())}function CSe(t){return(t/10).toFixed(t%10===0?0:1)}function dR(t){return(t/100).toFixed(t%100===0?0:t%10===0?1:2)}const nw=MSe({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var e=this.coupon,n=e.startAt,i=e.endAt,s=e.customValidPeriod;return s||cR(n)+" - "+cR(i)},faceAmount:function(){var e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var n=dR(e.denominations);return"<span>"+this.currency+"</span> "+n}return e.discount?tw("discount",CSe(e.discount)):""},conditionMessage:function(){var e=dR(this.coupon.originCondition);return e==="0"?tw("unlimited"):tw("condition",e)}},render:function(){var e=arguments[0],n=this.coupon,i=this.disabled,s=i&&n.reason||n.description;return e("div",{class:xa({disabled:i})},[e("div",{class:xa("content")},[e("div",{class:xa("head")},[e("h2",{class:xa("amount"),domProps:{innerHTML:this.faceAmount}}),e("p",{class:xa("condition")},[this.coupon.condition||this.conditionMessage])]),e("div",{class:xa("body")},[e("p",{class:xa("name")},[n.name]),e("p",{class:xa("valid")},[this.validPeriod]),!this.disabled&&e(X3,{attrs:{size:18,value:this.chosen,checkedColor:UP},class:xa("corner")})])]),s&&e("p",{class:xa("description")},[s])])}});var iw=Ae("coupon-cell"),SSe=iw[0],fR=iw[1],rw=iw[2];function TSe(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,s=e[+n];if(s){var o=0;return Ut(s.value)?o=s.value:Ut(s.denominations)&&(o=s.denominations),"-"+i+" "+(o/100).toFixed(2)}return e.length===0?rw("tips"):rw("count",e.length)}function sw(t,e,n,i){var s=e.coupons[+e.chosenCoupon],o=TSe(e);return t(Vi,Pt([{class:fR(),attrs:{value:o,title:e.title||rw("title"),border:e.border,isLink:e.editable,valueClass:fR("value",{selected:s})}},on(i,!0)]))}sw.model={prop:"chosenCoupon"},sw.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};const DSe=SSe(sw);var aw=Ae("coupon-list"),wSe=aw[0],Ca=aw[1],md=aw[2],NSe="https://img01.yzcdn.cn/vant/coupon-empty.png";const kSe=wSe({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:NSe}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(e){this.currentCode=e},currentCode:function(e){this.$emit("input",e)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(e){var n=this;e!==-1&&this.$nextTick(function(){var i=n.$refs,s=i.card,o=i.list;o&&s&&s[e]&&(o.scrollTop=s[e].$el.offsetTop-100)})},genEmpty:function(){var e=this.$createElement;return e("div",{class:Ca("empty")},[e("img",{attrs:{src:this.emptyImage}}),e("p",[md("empty")])])},genExchangeButton:function(){var e=this.$createElement;return e(wi,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||md("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:Ca("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var e=this,n=arguments[0],i=this.coupons,s=this.disabledCoupons,o=this.showCount?" ("+i.length+")":"",u=(this.enabledTitle||md("enable"))+o,d=this.showCount?" ("+s.length+")":"",f=(this.disabledTitle||md("disabled"))+d,p=this.showExchangeBar&&n("div",{class:Ca("exchange-bar")},[n(is,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||md("placeholder"),maxlength:"20"},class:Ca("field"),model:{value:e.currentCode,callback:function(x){e.currentCode=x}}}),this.genExchangeButton()]),v=function(x){return function(){return e.$emit("change",x)}},y=n(Mb,{attrs:{title:u}},[n("div",{class:Ca("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map(function(b,x){return n(nw,{ref:"card",key:b.id,attrs:{coupon:b,currency:e.currency,chosen:x===e.chosenCoupon},nativeOn:{click:v(x)}})}),!i.length&&this.genEmpty(),this.slots("list-footer")])]),M=n(Mb,{attrs:{title:f}},[n("div",{class:Ca("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[s.map(function(b){return n(nw,{attrs:{disabled:!0,coupon:b,currency:e.currency},key:b.id})}),!s.length&&this.genEmpty(),this.slots("disabled-list-footer")])]);return n("div",{class:Ca()},[p,n(YD,{class:Ca("tab"),attrs:{border:!1},model:{value:e.tab,callback:function(x){e.tab=x}}},[y,M]),n("div",{class:Ca("bottom")},[n(wi,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||md("close")},class:Ca("close"),on:{click:v(-1)}})])])}});var hR=qe({},ub,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(e,n){return n}}}),pR={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var e=this;return this.ranges.map(function(n){var i=n.type,s=n.range,o=yCe(s[1]-s[0]+1,function(u){var d=An(s[0]+u);return d});return e.filter&&(o=e.filter(i,o)),{type:i,values:o}})},columns:function(){var e=this;return this.originColumns.map(function(n){return{values:n.values.map(function(i){return e.formatter(n.type,i)})}})}},watch:{columns:"updateColumnValue",innerValue:function(e,n){n?this.$emit("input",e):this.$emit("input",null)}},mounted:function(){var e=this;this.updateColumnValue(),this.$nextTick(function(){e.updateInnerValue()})},methods:{getPicker:function(){return this.$refs.picker},getProxiedPicker:function(){var e=this,n=this.$refs.picker;if(n){var i=function(o){return function(){n[o].apply(n,arguments),e.updateInnerValue()}};return qe({},n,{setValues:i("setValues"),setIndexes:i("setIndexes"),setColumnIndex:i("setColumnIndex"),setColumnValue:i("setColumnValue")})}},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var e=this,n=arguments[0],i={};return Object.keys(ub).forEach(function(s){i[s]=e[s]}),n(CD,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:qe({},i)})}},OSe=Ae("time-picker"),ESe=OSe[0];const mR=ESe({mixins:[pR],props:qe({},hR,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var e=this;this.$nextTick(function(){e.updateInnerValue()})},maxHour:function(e){var n=this.innerValue.split(":"),i=n[0],s=n[1];i>=e?(this.innerValue=this.formatValue(e+":"+s),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(e){var n=this.innerValue.split(":"),i=n[0],s=n[1];s>=e?(this.innerValue=this.formatValue(i+":"+e),this.updateColumnValue()):this.updateInnerValue()},value:function(e){e=this.formatValue(e),e!==this.innerValue&&(this.innerValue=e,this.updateColumnValue())}},methods:{formatValue:function(e){e||(e=An(this.minHour)+":"+An(this.minMinute));var n=e.split(":"),i=n[0],s=n[1];return i=An(Di(i,this.minHour,this.maxHour)),s=An(Di(s,this.minMinute,this.maxMinute)),i+":"+s},updateInnerValue:function(){var e=this.getPicker().getIndexes(),n=e[0],i=e[1],s=this.originColumns,o=s[0],u=s[1],d=o.values[n]||o.values[0],f=u.values[i]||u.values[0];this.innerValue=this.formatValue(d+":"+f),this.updateColumnValue()},onChange:function(e){var n=this;this.updateInnerValue(),this.$nextTick(function(){n.$nextTick(function(){n.updateInnerValue(),n.$emit("change",e)})})},updateColumnValue:function(){var e=this,n=this.formatter,i=this.innerValue.split(":"),s=[n("hour",i[0]),n("minute",i[1])];this.$nextTick(function(){e.getPicker().setValues(s)})}}});function ow(t,e){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},ow(t,e)}function ISe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function op(t,e,n){return ISe()?op=Reflect.construct.bind():op=function(s,o,u){var d=[null];d.push.apply(d,o);var f=Function.bind.apply(s,d),p=new f;return u&&ow(p,u.prototype),p},op.apply(null,arguments)}var gR=new Date().getFullYear(),ASe=Ae("date-picker"),jSe=ASe[0];const vR=jSe({mixins:[pR],props:qe({},hR,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(gR-10,0,1)},validator:sp},maxDate:{type:Date,default:function(){return new Date(gR+10,11,31)},validator:sp}}),watch:{filter:"updateInnerValue",minDate:function(){var e=this;this.$nextTick(function(){e.updateInnerValue()})},maxDate:function(e){this.innerValue.valueOf()>=e.valueOf()?this.innerValue=e:this.updateInnerValue()},value:function(e){e=this.formatValue(e),e&&e.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=e)}},computed:{ranges:function(){var e=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),n=e.maxYear,i=e.maxDate,s=e.maxMonth,o=e.maxHour,u=e.maxMinute,d=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),f=d.minYear,p=d.minDate,v=d.minMonth,y=d.minHour,M=d.minMinute,b=[{type:"year",range:[f,n]},{type:"month",range:[v,s]},{type:"day",range:[p,i]},{type:"hour",range:[y,o]},{type:"minute",range:[M,u]}];switch(this.type){case"date":b=b.slice(0,3);break;case"year-month":b=b.slice(0,2);break;case"month-day":b=b.slice(1,3);break;case"datehour":b=b.slice(0,4);break}if(this.columnsOrder){var x=this.columnsOrder.concat(b.map(function(N){return N.type}));b.sort(function(N,w){return x.indexOf(N.type)-x.indexOf(w.type)})}return b}},methods:{formatValue:function(e){var n=this;if(!sp(e))return null;var i=new Date(this.minDate),s=new Date(this.maxDate),o={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var u=this.originColumns.map(function(p,v){var y=p.type,M=p.values,b=n.ranges[v].range,x=i[o[y]](),N=s[o[y]](),w=y==="month"?+M[0]-1:+M[0],k=y==="month"?+M[M.length-1]-1:+M[M.length-1];return{type:y,values:[x<b[0]?Math.max(x,w):w||x,N>b[1]?Math.min(N,k):k||N]}});if(this.type==="month-day"){var d=(this.innerValue||this.minDate).getFullYear();u.unshift({type:"year",values:[d,d]})}var f=Object.keys(o).map(function(p){var v;return(v=u.filter(function(y){return y.type===p})[0])==null?void 0:v.values}).filter(function(p){return p});i=op(Date,f.map(function(p){return FD(p[0])})),s=op(Date,f.map(function(p){return FD(p[1])}))}return e=Math.max(e,i.getTime()),e=Math.min(e,s.getTime()),new Date(e)},getBoundary:function(e,n){var i,s=this[e+"Date"],o=s.getFullYear(),u=1,d=1,f=0,p=0;return e==="max"&&(u=12,d=BD(n.getFullYear(),n.getMonth()+1),f=23,p=59),n.getFullYear()===o&&(u=s.getMonth()+1,n.getMonth()+1===u&&(d=s.getDate(),n.getDate()===d&&(f=s.getHours(),n.getHours()===f&&(p=s.getMinutes())))),i={},i[e+"Year"]=o,i[e+"Month"]=u,i[e+"Date"]=d,i[e+"Hour"]=f,i[e+"Minute"]=p,i},updateInnerValue:function(){var e=this,n=this.type,i=this.getPicker().getIndexes(),s=function(b){var x=0;e.originColumns.forEach(function(w,k){b===w.type&&(x=k)});var N=e.originColumns[x].values;return FD(N[i[x]])},o,u,d;n==="month-day"?(o=(this.innerValue||this.minDate).getFullYear(),u=s("month"),d=s("day")):(o=s("year"),u=s("month"),d=n==="year-month"?1:s("day"));var f=BD(o,u);d=d>f?f:d;var p=0,v=0;n==="datehour"&&(p=s("hour")),n==="datetime"&&(p=s("hour"),v=s("minute"));var y=new Date(o,u-1,d,p,v);this.innerValue=this.formatValue(y)},onChange:function(e){var n=this;this.updateInnerValue(),this.$nextTick(function(){n.$nextTick(function(){n.updateInnerValue(),n.$emit("change",e)})})},updateColumnValue:function(){var e=this,n=this.innerValue?this.innerValue:this.minDate,i=this.formatter,s=this.originColumns.map(function(o){switch(o.type){case"year":return i("year",""+n.getFullYear());case"month":return i("month",An(n.getMonth()+1));case"day":return i("day",An(n.getDate()));case"hour":return i("hour",An(n.getHours()));case"minute":return i("minute",An(n.getMinutes()));default:return null}});this.$nextTick(function(){e.getPicker().setValues(s)})}}});var yR=Ae("datetime-picker"),$Se=yR[0],LSe=yR[1];const bR=$Se({props:qe({},mR.props,vR.props),methods:{getPicker:function(){return this.$refs.root.getProxiedPicker()}},render:function(){var e=arguments[0],n=this.type==="time"?mR:vR;return e(n,{ref:"root",class:LSe(),scopedSlots:this.$scopedSlots,props:qe({},this.$props),on:qe({},this.$listeners)})}});var _R=Ae("divider"),zSe=_R[0],PSe=_R[1];function MR(t,e,n,i){var s;return t("div",Pt([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:PSe((s={dashed:e.dashed,hairline:e.hairline},s["content-"+e.contentPosition]=n.default,s))},on(i,!0)]),[n.default&&n.default()])}MR.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};const RSe=zSe(MR);var xR=Ae("dropdown-item"),FSe=xR[0],Db=xR[1];const BSe=FSe({mixins:[gD({ref:"wrapper"}),fr("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var e=this;if(this.title)return this.title;var n=this.options.filter(function(i){return i.value===e.value});return n.length?n[0].text:""}},watch:{showPopup:function(e){this.bindScroll(e)}},beforeCreate:function(){var e=this,n=function(s){return function(){return e.$emit(s)}};this.onOpen=n("open"),this.onClose=n("close"),this.onOpened=n("opened")},methods:{toggle:function(e,n){e===void 0&&(e=!this.showPopup),n===void 0&&(n={}),e!==this.showPopup&&(this.transition=!n.immediate,this.showPopup=e,e&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(e){var n=this.parent.scroller,i=e?ts:Wo;i(n,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(e){this.getContainer&&e.stopPropagation()}},render:function(){var e=this,n=arguments[0],i=this.parent,s=i.zIndex,o=i.offset,u=i.overlay,d=i.duration,f=i.direction,p=i.activeColor,v=i.closeOnClickOverlay,y=this.options.map(function(b){var x=b.value===e.value;return n(Vi,{attrs:{clickable:!0,icon:b.icon,title:b.text},key:b.value,class:Db("option",{active:x}),style:{color:x?p:""},on:{click:function(){e.showPopup=!1,b.value!==e.value&&(e.$emit("input",b.value),e.$emit("change",b.value))}}},[x&&n(It,{class:Db("icon"),attrs:{color:p,name:"success"}})])}),M={zIndex:s};return f==="down"?M.top=o+"px":M.bottom=o+"px",n("div",[n("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:M,class:Db([f]),on:{click:this.onClickWrapper}},[n(_a,{attrs:{overlay:u,position:f==="down"?"top":"bottom",duration:this.transition?d:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:v},class:Db("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){e.showWrapper=!1,e.$emit("closed")}},model:{value:e.showPopup,callback:function(x){e.showPopup=x}}},[y,this.slots("default")])])])}});var lw=function(e){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var i=this,s=function(u){i.closeOnClickOutside&&!i.$el.contains(u.target)&&i[e.method]()};return{clickOutsideHandler:s}},mounted:function(){ts(document,e.event,this.clickOutsideHandler)},beforeDestroy:function(){Wo(document,e.event,this.clickOutsideHandler)}}},CR=Ae("dropdown-menu"),USe=CR[0],wb=CR[1];const VSe=USe({mixins:[hr("vanDropdownMenu"),lw({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return pu(this.$el)},opened:function(){return this.children.some(function(e){return e.showWrapper})},barStyle:function(){if(this.opened&&Ut(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var e=this.$refs.bar.getBoundingClientRect();this.direction==="down"?this.offset=e.bottom:this.offset=window.innerHeight-e.top}},toggleItem:function(e){this.children.forEach(function(n,i){i===e?n.toggle():n.showPopup&&n.toggle(!1,{immediate:!0})})},onClickOutside:function(){this.children.forEach(function(e){e.toggle(!1)})}},render:function(){var e=this,n=arguments[0],i=this.children.map(function(s,o){return n("div",{attrs:{role:"button",tabindex:s.disabled?-1:0},class:wb("item",{disabled:s.disabled}),on:{click:function(){s.disabled||e.toggleItem(o)}}},[n("span",{class:[wb("title",{active:s.showPopup,down:s.showPopup===(e.direction==="down")}),s.titleClass],style:{color:s.showPopup?e.activeColor:""}},[n("div",{class:"van-ellipsis"},[s.slots("title")||s.displayTitle])])])});return n("div",{class:wb()},[n("div",{ref:"bar",style:this.barStyle,class:wb("bar",{opened:this.opened})},[i]),this.slots("default")])}});var ci="van-empty-network-";const YSe={render:function(){var e=arguments[0],n=function(s,o,u){return e("stop",{attrs:{"stop-color":s,offset:o+"%","stop-opacity":u}})};return e("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[e("defs",[e("linearGradient",{attrs:{id:ci+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{attrs:{id:ci+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{attrs:{id:ci+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("radialGradient",{attrs:{id:ci+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{opacity:".8"}},[e("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+ci+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),e("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+ci+"1)",transform:"translate(2 7)"}})]),e("path",{attrs:{fill:"url(#"+ci+"7)",d:"M0 139h160v21H0z"}}),e("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+ci+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),e("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[e("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ci+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ci+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ci+"4)",transform:"rotate(-180 76.483 42.257)"}}),e("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ci+"4)",transform:"rotate(-180 89.791 42.146)"}})]),e("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[e("rect",{attrs:{fill:"url(#"+ci+"5)",width:"98",height:"34",rx:"2"}}),e("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),e("rect",{attrs:{fill:"url(#"+ci+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}};var SR=Ae("empty"),HSe=SR[0],Nb=SR[1],WSe=["error","search","default"];const QSe=HSe({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var e=this.$createElement,n=this.slots("image");if(n)return n;if(this.image==="network")return e(YSe);var i=this.image;return WSe.indexOf(i)!==-1&&(i="https://img01.yzcdn.cn/vant/empty-image-"+i+".png"),e("img",{attrs:{src:i}})},genImage:function(){var e=this.$createElement,n={width:Wt(this.imageSize),height:Wt(this.imageSize)};return e("div",{class:Nb("image"),style:n},[this.genImageContent()])},genDescription:function(){var e=this.$createElement,n=this.slots("description")||this.description;if(n)return e("p",{class:Nb("description")},[n])},genBottom:function(){var e=this.$createElement,n=this.slots();if(n)return e("div",{class:Nb("bottom")},[n])}},render:function(){var e=arguments[0];return e("div",{class:Nb()},[this.genImage(),this.genDescription(),this.genBottom()])}});var TR=Ae("form"),GSe=TR[0],KSe=TR[1];const qSe=GSe({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(e){return e?this.fields.filter(function(n){return e.indexOf(n.name)!==-1}):this.fields},validateSeq:function(e){var n=this;return new Promise(function(i,s){var o=[],u=n.getFieldsByNames(e);u.reduce(function(d,f){return d.then(function(){if(!o.length)return f.validate().then(function(p){p&&o.push(p)})})},Promise.resolve()).then(function(){o.length?s(o):i()})})},validateFields:function(e){var n=this;return new Promise(function(i,s){var o=n.getFieldsByNames(e);Promise.all(o.map(function(u){return u.validate()})).then(function(u){u=u.filter(function(d){return d}),u.length?s(u):i()})})},validate:function(e){return e&&!Array.isArray(e)?this.validateField(e):this.validateFirst?this.validateSeq(e):this.validateFields(e)},validateField:function(e){var n=this.fields.filter(function(i){return i.name===e});return n.length?new Promise(function(i,s){n[0].validate().then(function(o){o?s(o):i()})}):Promise.reject()},resetValidation:function(e){e&&!Array.isArray(e)&&(e=[e]);var n=this.getFieldsByNames(e);n.forEach(function(i){i.resetValidation()})},scrollToField:function(e,n){this.fields.some(function(i){return i.name===e?(i.$el.scrollIntoView(n),!0):!1})},addField:function(e){this.fields.push(e),f3(this.fields,this)},removeField:function(e){this.fields=this.fields.filter(function(n){return n!==e})},getValues:function(){return this.fields.reduce(function(e,n){return e[n.name]=n.formValue,e},{})},onSubmit:function(e){e.preventDefault(),this.submit()},submit:function(){var e=this,n=this.getValues();this.validate().then(function(){e.$emit("submit",n)}).catch(function(i){e.$emit("failed",{values:n,errors:i}),e.scrollToError&&e.scrollToField(i[0].name)})}},render:function(){var e=arguments[0];return e("form",{class:KSe(),on:{submit:this.onSubmit}},[this.slots()])}});var DR=Ae("goods-action-icon"),XSe=DR[0],uw=DR[1];const ZSe=XSe({mixins:[fr("vanGoodsAction")],props:qe({},Qo,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)},genIcon:function(){var e,n=this.$createElement,i=this.slots("icon"),s=(e=this.badge)!=null?e:this.info;return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] GoodsActionIcon: "info" prop is deprecated, use "badge" prop instead.'),i?n("div",{class:uw("icon")},[i,n(gu,{attrs:{dot:this.dot,info:s}})]):n(It,{class:[uw("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:s,color:this.color}})}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"button",tabindex:"0"},class:uw(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}});var wR=Ae("grid"),JSe=wR[0],e1e=wR[1];const t1e=JSe({mixins:[hr("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var e=this.gutter;if(e)return{paddingLeft:Wt(e)}}},render:function(){var e,n=arguments[0];return n("div",{style:this.style,class:[e1e(),(e={},e[vD]=this.border&&!this.gutter,e)]},[this.slots()])}});var NR=Ae("grid-item"),n1e=NR[0],lp=NR[1];const i1e=n1e({mixins:[fr("vanGrid")],props:qe({},Qo,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var e=this.parent,n=e.square,i=e.gutter,s=e.columnNum,o=100/s+"%",u={flexBasis:o};if(n)u.paddingTop=o;else if(i){var d=Wt(i);u.paddingRight=d,this.index>=s&&(u.marginTop=d)}return u},contentStyle:function(){var e=this.parent,n=e.square,i=e.gutter;if(n&&i){var s=Wt(i);return{right:s,bottom:s,height:"auto"}}}},methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)},genIcon:function(){var e,n=this.$createElement,i=this.slots("icon"),s=(e=this.badge)!=null?e:this.info;if(process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] GridItem: "info" prop is deprecated, use "badge" prop instead.'),i)return n("div",{class:lp("icon-wrapper")},[i,n(gu,{attrs:{dot:this.dot,info:s}})]);if(this.icon)return n(It,{attrs:{name:this.icon,dot:this.dot,badge:s,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:lp("icon")})},getText:function(){var e=this.$createElement,n=this.slots("text");if(n)return n;if(this.text)return e("span",{class:lp("text")},[this.text])},genContent:function(){var e=this.slots();return e||[this.genIcon(),this.getText()]}},render:function(){var e,n=arguments[0],i=this.parent,s=i.center,o=i.border,u=i.square,d=i.gutter,f=i.direction,p=i.clickable;return n("div",{class:[lp({square:u})],style:this.style},[n("div",{style:this.contentStyle,attrs:{role:p?"button":null,tabindex:p?0:null},class:[lp("content",[f,{center:s,square:u,clickable:p,surround:o&&d}]),(e={},e[Rs]=o,e)],on:{click:this.onClick}},[this.genContent()])])}});var kR=Ae("image-preview"),r1e=kR[0],Xo=kR[1],OR=Ae("swipe"),s1e=OR[0],kb=OR[1];const ER=s1e({mixins:[ns,hr("vanSwipe"),Ls(function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()})],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(e){e>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var e=this.vertical?"vertical":"horizontal";return this.direction===e},trackStyle:function(){var e={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var n=this.vertical?"height":"width",i=this.vertical?"width":"height";e[n]=this.trackSize+"px",e[i]=this[i]?this[i]+"px":""}return e},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(e){if(e===void 0&&(e=+this.initialSwipe),!(!this.$el||ap(this.$el))){clearTimeout(this.timer);var n={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=n,this.swiping=!0,this.active=e,this.computedWidth=+this.width||n.width,this.computedHeight=+this.height||n.height,this.offset=this.getTargetOffset(e),this.children.forEach(function(i){i.offset=0}),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(e){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(e),this.correctPosition())},onTouchMove:function(e){!this.touchable||!this.swiping||(this.touchMove(e),this.isCorrectDirection&&(ui(e,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(!(!this.touchable||!this.swiping)){var e=this.size,n=this.delta,i=Date.now()-this.touchStartTime,s=n/i,o=Math.abs(s)>.25||Math.abs(n)>e/2;if(o&&this.isCorrectDirection){var u=this.vertical?this.offsetY:this.offsetX,d=0;this.loop?d=u>0?n>0?-1:1:0:d=-Math[n>0?"ceil":"floor"](n/e),this.move({pace:d,emitChange:!0})}else n&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(e){var n=this.active,i=this.count,s=this.maxCount;return e?this.loop?Di(n+e,-1,i):Di(n+e,0,s):n},getTargetOffset:function(e,n){n===void 0&&(n=0);var i=e*this.size;this.loop||(i=Math.min(i,-this.minOffset));var s=n-i;return this.loop||(s=Di(s,this.minOffset,0)),s},move:function(e){var n=e.pace,i=n===void 0?0:n,s=e.offset,o=s===void 0?0:s,u=e.emitChange,d=this.loop,f=this.count,p=this.active,v=this.children,y=this.trackSize,M=this.minOffset;if(!(f<=1)){var b=this.getTargetActive(i),x=this.getTargetOffset(b,o);if(d){if(v[0]&&x!==M){var N=x<M;v[0].offset=N?y:0}if(v[f-1]&&x!==0){var w=x>0;v[f-1].offset=w?-y:0}}this.active=b,this.offset=x,u&&b!==p&&this.$emit("change",this.activeIndicator)}},prev:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),yu(function(){e.swiping=!1,e.move({pace:-1,emitChange:!0})})},next:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),yu(function(){e.swiping=!1,e.move({pace:1,emitChange:!0})})},swipeTo:function(e,n){var i=this;n===void 0&&(n={}),this.correctPosition(),this.resetTouchStatus(),yu(function(){var s;i.loop&&e===i.count?s=i.active===0?0:e:s=e%i.count,n.immediate?yu(function(){i.swiping=!1}):i.swiping=!1,i.move({pace:s-i.active,emitChange:!0})})},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var e=this,n=this.autoplay;n>0&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){e.next(),e.autoPlay()},n))},genIndicator:function(){var e=this,n=this.$createElement,i=this.count,s=this.activeIndicator,o=this.slots("indicator");if(o)return o;if(this.showIndicators&&i>1)return n("div",{class:kb("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map(function(u,d){return n("i",{class:kb("indicator",{active:d===s}),style:d===s?e.indicatorStyle:null})})])}},render:function(){var e=arguments[0];return e("div",{class:kb()},[e("div",{ref:"track",style:this.trackStyle,class:kb("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}});var IR=Ae("swipe-item"),a1e=IR[0],o1e=IR[1];const AR=a1e({mixins:[fr("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var e=this;this.$nextTick(function(){e.mounted=!0})},computed:{style:function(){var e={},n=this.parent,i=n.size,s=n.vertical;return i&&(e[s?"height":"width"]=i+"px"),this.offset&&(e.transform="translate"+(s?"Y":"X")+"("+this.offset+"px)"),e},shouldRender:function(){var e=this.index,n=this.inited,i=this.parent,s=this.mounted;if(!i.lazyRender||n)return!0;if(!s)return!1;var o=i.activeIndicator,u=i.count-1,d=o===0&&i.loop?u:o-1,f=o===u&&i.loop?0:o+1,p=e===o||e===d||e===f;return p&&(this.inited=!0),p}},render:function(){var e=arguments[0];return e("div",{class:o1e(),style:this.style,on:qe({},this.$listeners)},[this.shouldRender&&this.slots()])}});function jR(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}const l1e={mixins:[ns],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var e=this.rootWidth,n=this.rootHeight,i=n/e;return this.imageRatio>i},imageStyle:function(){var e=this.scale,n={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(e!==1){var i=this.moveX/e,s=this.moveY/e;n.transform="scale("+e+", "+e+") translate("+i+"px, "+s+"px)"}return n},maxMoveX:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*e-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*e-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(e){e||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(e){e=Di(e,+this.minZoom,+this.maxZoom),e!==this.scale&&(this.scale=e,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var e=this.scale>1?1:2;this.setScale(e),this.moveX=0,this.moveY=0},onTouchStart:function(e){var n=e.touches,i=this.offsetX,s=i===void 0?0:i;this.touchStart(e),this.touchStartTime=new Date,this.fingerNum=n.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=this.fingerNum===1&&this.scale!==1,this.zooming=this.fingerNum===2&&!s,this.zooming&&(this.startScale=this.scale,this.startDistance=jR(e.touches))},onTouchMove:function(e){var n=e.touches;if(this.touchMove(e),(this.moving||this.zooming)&&ui(e,!0),this.moving){var i=this.deltaX+this.startMoveX,s=this.deltaY+this.startMoveY;this.moveX=Di(i,-this.maxMoveX,this.maxMoveX),this.moveY=Di(s,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&n.length===2){var o=jR(n),u=this.startScale*o/this.startDistance;this.setScale(u)}},onTouchEnd:function(e){var n=!1;(this.moving||this.zooming)&&(n=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(n=!1),e.touches.length||(this.zooming&&(this.moveX=Di(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Di(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),ui(e,n),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var e=this;if(!(this.fingerNum>1)){var n=this.offsetX,i=n===void 0?0:n,s=this.offsetY,o=s===void 0?0:s,u=new Date-this.touchStartTime,d=250,f=5;i<f&&o<f&&u<d&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout(function(){e.$emit("close"),e.doubleTapTimer=null},d))}},onLoad:function(e){var n=e.target,i=n.naturalWidth,s=n.naturalHeight;this.imageRatio=s/i}},render:function(){var e=arguments[0],n={loading:function(){return e(zs,{attrs:{type:"spinner"}})}};return e(AR,{class:Xo("swipe-item")},[e(pd,{attrs:{src:this.src,fit:"contain"},class:Xo("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:n,on:{load:this.onLoad}})])}},cw=r1e({mixins:[ns,ob({skipToggleEvent:!0}),Ls(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{className:null,closeable:Boolean,asyncClose:Boolean,overlayStyle:Object,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Xo("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(e){var n=this;e?(this.setActive(+this.startPosition),this.$nextTick(function(){n.resize(),n.$refs.swipe.swipeTo(+n.startPosition,{immediate:!0})})):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var e=this.$el.getBoundingClientRect();this.rootWidth=e.width,this.rootHeight=e.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(e){this.$emit("scale",e)},setActive:function(e){e!==this.active&&(this.active=e,this.$emit("change",e))},genIndex:function(){var e=this.$createElement;if(this.showIndex)return e("div",{class:Xo("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var e=this.$createElement,n=this.slots("cover");if(n)return e("div",{class:Xo("cover")},[n])},genImages:function(){var e=this,n=this.$createElement;return n(ER,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Xo("swipe"),on:{change:this.setActive}},[this.images.map(function(i){return n(l1e,{attrs:{src:i,show:e.value,active:e.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:e.rootWidth,rootHeight:e.rootHeight},on:{scale:e.emitScale,close:e.emitClose}})})])},genClose:function(){var e=this.$createElement;if(this.closeable)return e(It,{attrs:{role:"button",name:this.closeIcon},class:Xo("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(e,n){this.$refs.swipe&&this.$refs.swipe.swipeTo(e,n)}},render:function(){var e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?e("div",{directives:[{name:"show",value:this.value}],class:[Xo(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}});var di,u1e={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",overlayStyle:null,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},c1e=function(){di=new(ft.extend(cw))({el:document.createElement("div")}),document.body.appendChild(di.$el),di.$on("change",function(e){di.onChange&&di.onChange(e)}),di.$on("scale",function(e){di.onScale&&di.onScale(e)})},dw=function(e,n){if(n===void 0&&(n=0),!cr){di||c1e();var i=Array.isArray(e)?{images:e,startPosition:n}:e;return qe(di,u1e,i),di.$once("input",function(s){di.value=s}),di.$once("closed",function(){di.images=[]}),i.onClose&&(di.$off("close"),di.$once("close",i.onClose)),di}};dw.Component=cw,dw.install=function(){ft.use(cw)};const fw=dw;var $R=Ae("index-anchor"),d1e=$R[0],f1e=$R[1];const h1e=d1e({mixins:[fr("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var e=this.$el.getBoundingClientRect();this.rect.height=e.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(e,n){var i=this.$el,s=i.getBoundingClientRect();return this.rect.height=s.height,e===window||e===document.body?this.rect.top=s.top+ep():this.rect.top=s.top+mu(e)-n.top,this.rect}},render:function(){var e,n=arguments[0],i=this.sticky;return n("div",{style:{height:i?this.rect.height+"px":null}},[n("div",{style:this.anchorStyle,class:[f1e({sticky:i}),(e={},e[tp]=i,e)]},[this.slots("default")||this.index])])}});function p1e(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}var LR=Ae("index-bar"),m1e=LR[0],hw=LR[1];const g1e=m1e({mixins:[ns,hr("vanIndexBar"),Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:p1e}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Ut(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var e=this.highlightColor;if(e)return{color:e}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(e){e&&this.$emit("change",e)}},methods:{onScroll:function(){var e=this;if(!ap(this.$el)){var n=mu(this.scroller),i=this.getScrollerRect(),s=this.children.map(function(u){return u.getRect(e.scroller,i)}),o=this.getActiveAnchorIndex(n,s);this.activeAnchorIndex=this.indexList[o],this.sticky&&this.children.forEach(function(u,d){if(d===o||d===o-1){var f=u.$el.getBoundingClientRect();u.left=f.left,u.width=f.width}else u.left=null,u.width=null;if(d===o)u.active=!0,u.top=Math.max(e.stickyOffsetTop,s[d].top-n)+i.top;else if(d===o-1){var p=s[o].top-n;u.active=p>0,u.top=p+i.top-s[d].height}else u.active=!1})}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(e,n){for(var i=this.children.length-1;i>=0;i--){var s=i>0?n[i-1].height:0,o=this.sticky?s+this.stickyOffsetTop:0;if(e+o>=n[i].top)return i}return-1},onClick:function(e){this.scrollToElement(e.target)},onTouchMove:function(e){if(this.touchMove(e),this.direction==="vertical"){ui(e);var n=e.touches[0],i=n.clientX,s=n.clientY,o=document.elementFromPoint(i,s);if(o){var u=o.dataset.index;this.touchActiveIndex!==u&&(this.touchActiveIndex=u,this.scrollToElement(o))}}},scrollTo:function(e){var n=this.children.filter(function(i){return String(i.index)===e});n[0]&&(n[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&sb(ep()-this.stickyOffsetTop),this.$emit("select",n[0].index))},scrollToElement:function(e){var n=e.dataset.index;this.scrollTo(n)},onTouchEnd:function(){this.active=null}},render:function(){var e=this,n=arguments[0],i=this.indexList.map(function(s){var o=s===e.activeAnchorIndex;return n("span",{class:hw("index",{active:o}),style:o?e.highlightStyle:null,attrs:{"data-index":s}},[s])});return n("div",{class:hw()},[n("div",{class:hw("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}});var pw=Ae("list"),v1e=pw[0],up=pw[1],y1e=pw[2];const b1e=v1e({mixins:[Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(this.scroller,"scroll",this.check)})],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var e=this;this.$nextTick(function(){if(!(e.innerLoading||e.finished||e.error)){var n=e.$el,i=e.scroller,s=e.offset,o=e.direction,u;i.getBoundingClientRect?u=i.getBoundingClientRect():u={top:0,bottom:i.innerHeight};var d=u.bottom-u.top;if(!d||ap(n))return!1;var f=!1,p=e.$refs.placeholder.getBoundingClientRect();o==="up"?f=u.top-p.top<=s:f=p.bottom-u.bottom<=s,f&&(e.innerLoading=!0,e.$emit("input",!0),e.$emit("load"))}})},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var e=this.$createElement;if(this.innerLoading&&!this.finished)return e("div",{key:"loading",class:up("loading")},[this.slots("loading")||e(zs,{attrs:{size:"16"}},[this.loadingText||y1e("loading")])])},genFinishedText:function(){var e=this.$createElement;if(this.finished){var n=this.slots("finished")||this.finishedText;if(n)return e("div",{class:up("finished-text")},[n])}},genErrorText:function(){var e=this.$createElement;if(this.error){var n=this.slots("error")||this.errorText;if(n)return e("div",{on:{click:this.clickErrorText},class:up("error-text")},[n])}}},render:function(){var e=arguments[0],n=e("div",{ref:"placeholder",key:"placeholder",class:up("placeholder")});return e("div",{class:up(),attrs:{role:"feed","aria-busy":this.innerLoading}},[this.direction==="down"?this.slots():n,this.genLoading(),this.genFinishedText(),this.genErrorText(),this.direction==="up"?this.slots():n])}});var zR=Ae("nav-bar"),_1e=zR[0],Ka=zR[1];const M1e=_1e({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){var e=this;if(this.placeholder&&this.fixed){var n=function(){e.height=e.$refs.navBar.getBoundingClientRect().height};n(),setTimeout(n,100)}},methods:{genLeft:function(){var e=this.$createElement,n=this.slots("left");return n||[this.leftArrow&&e(It,{class:Ka("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&e("span",{class:Ka("text")},[this.leftText])]},genRight:function(){var e=this.$createElement,n=this.slots("right");if(n)return n;if(this.rightText)return e("span",{class:Ka("text")},[this.rightText])},genNavBar:function(){var e,n=this.$createElement;return n("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[Ka({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(e={},e[tp]=this.border,e)]},[n("div",{class:Ka("content")},[this.hasLeft()&&n("div",{class:Ka("left"),on:{click:this.onClickLeft}},[this.genLeft()]),n("div",{class:[Ka("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&n("div",{class:Ka("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(e){this.$emit("click-left",e)},onClickRight:function(e){this.$emit("click-right",e)}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:Ka("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}});var PR=Ae("notice-bar"),x1e=PR[0],cp=PR[1];const C1e=x1e({mixins:[Ls(function(t){t(window,"pageshow",this.reset)})],inject:{vanPopup:{default:null}},props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"reset",text:{handler:"reset",immediate:!0}},created:function(){this.vanPopup&&this.vanPopup.onReopen(this.reset)},activated:function(){this.reset()},methods:{onClickIcon:function(e){this.mode==="closeable"&&(this.show=!1,this.$emit("close",e))},onTransitionEnd:function(){var e=this;this.offset=this.wrapWidth,this.duration=0,rs(function(){yu(function(){e.offset=-e.contentWidth,e.duration=(e.contentWidth+e.wrapWidth)/e.speed,e.$emit("replay")})})},start:function(){this.reset()},reset:function(){var e=this,n=Ut(this.delay)?this.delay*1e3:0;this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0,clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var i=e.$refs,s=i.wrap,o=i.content;if(!(!s||!o||e.scrollable===!1)){var u=s.getBoundingClientRect().width,d=o.getBoundingClientRect().width;(e.scrollable||d>u)&&yu(function(){e.offset=-d,e.duration=d/e.speed,e.wrapWidth=u,e.contentWidth=d})}},n)}},render:function(){var e=this,n=arguments[0],i=this.slots,s=this.mode,o=this.leftIcon,u=this.onClickIcon,d={color:this.color,background:this.background},f={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function p(){var y=i("left-icon");if(y)return y;if(o)return n(It,{class:cp("left-icon"),attrs:{name:o}})}function v(){var y=i("right-icon");if(y)return y;var M;if(s==="closeable"?M="cross":s==="link"&&(M="arrow"),M)return n(It,{class:cp("right-icon"),attrs:{name:M},on:{click:u}})}return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:cp({wrapable:this.wrapable}),style:d,on:{click:function(M){e.$emit("click",M)}}},[p(),n("div",{ref:"wrap",class:cp("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[cp("content"),{"van-ellipsis":this.scrollable===!1&&!this.wrapable}],style:f,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),v()])}});var RR=Ae("notify"),S1e=RR[0],T1e=RR[1];function FR(t,e,n,i){var s={color:e.color,background:e.background};return t(_a,Pt([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:s,class:[T1e([e.type]),e.className]},on(i,!0)]),[(n.default==null?void 0:n.default())||e.message])}FR.props=qe({},ab,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});const mw=S1e(FR);var BR,ss;function D1e(t){return $s(t)?t:{message:t}}function as(t){if(!cr)return ss||(ss=MP(mw,{on:{click:function(n){ss.onClick&&ss.onClick(n)},close:function(){ss.onClose&&ss.onClose()},opened:function(){ss.onOpened&&ss.onOpened()}}})),t=qe({},as.currentOptions,D1e(t)),qe(ss,t),clearTimeout(BR),t.duration&&t.duration>0&&(BR=setTimeout(as.clear,t.duration)),ss}function UR(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}as.clear=function(){ss&&(ss.value=!1)},as.currentOptions=UR(),as.setDefaultOptions=function(t){qe(as.currentOptions,t)},as.resetDefaultOptions=function(){as.currentOptions=UR()},as.install=function(){ft.use(mw)},as.Component=mw,ft.prototype.$notify=as;const w1e={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},N1e={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}};var VR=Ae("key"),k1e=VR[0],dp=VR[1];const gw=k1e({mixins:[ns],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(e){e.stopPropagation(),this.touchStart(e),this.active=!0},onTouchMove:function(e){this.touchMove(e),this.direction&&(this.active=!1)},onTouchEnd:function(e){this.active&&(this.slots("default")||e.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var e=this.$createElement,n=this.type==="extra",i=this.type==="delete",s=this.slots("default")||this.text;return this.loading?e(zs,{class:dp("loading-icon")}):i?s||e(w1e,{class:dp("delete-icon")}):n?s||e(N1e,{class:dp("collapse-icon")}):s}},render:function(){var e=arguments[0];return e("div",{class:dp("wrapper",{wider:this.wider})},[e("div",{attrs:{role:"button",tabindex:"0"},class:dp([this.color,{large:this.large,active:this.active,delete:this.type==="delete"}])},[this.genContent()])])}});var YR=Ae("number-keyboard"),O1e=YR[0],Zo=YR[1];const E1e=O1e({mixins:[gD(),Ls(function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(e){this.transition||this.$emit(e?"show":"hide")}},computed:{keys:function(){return this.theme==="custom"?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var e=[],n=1;n<=9;n++)e.push({text:n});return this.randomKeyOrder&&e.sort(function(){return Math.random()>.5?1:-1}),e},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var e=this.genBasicKeys(),n=this.extraKey,i=Array.isArray(n)?n:[n];return i.length===1?e.push({text:0,wider:!0},{text:i[0],type:"extra"}):i.length===2&&e.push({text:i[0],type:"extra"},{text:0},{text:i[1],type:"extra"}),e},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(e,n){if(e===""){n==="extra"&&this.onBlur();return}var i=this.value;n==="delete"?(this.$emit("delete"),this.$emit("update:value",i.slice(0,i.length-1))):n==="close"?this.onClose():i.length<this.maxlength&&(this.$emit("input",e),this.$emit("update:value",i+e))},genTitle:function(){var e=this.$createElement,n=this.title,i=this.theme,s=this.closeButtonText,o=this.slots("title-left"),u=s&&i==="default",d=n||u||o;if(d)return e("div",{class:Zo("header")},[o&&e("span",{class:Zo("title-left")},[o]),n&&e("h2",{class:Zo("title")},[n]),u&&e("button",{attrs:{type:"button"},class:Zo("close"),on:{click:this.onClose}},[s])])},genKeys:function(){var e=this,n=this.$createElement;return this.keys.map(function(i){return n(gw,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color},on:{press:e.onPress}},[i.type==="delete"&&e.slots("delete"),i.type==="extra"&&e.slots("extra-key")])})},genSidebar:function(){var e=this.$createElement;if(this.theme==="custom")return e("div",{class:Zo("sidebar")},[this.showDeleteKey&&e(gw,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),e(gw,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var e=arguments[0],n=this.genTitle();return e("transition",{attrs:{name:this.transition?"van-slide-up":""}},[e("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Zo({unfit:!this.safeAreaInsetBottom,"with-title":n}),on:{touchstart:SP,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[n,e("div",{class:Zo("body")},[e("div",{class:Zo("keys")},[this.genKeys()]),this.genSidebar()])])])}});var vw=Ae("pagination"),I1e=vw[0],Jo=vw[1],HR=vw[2];function yw(t,e,n){return{number:t,text:e,active:n}}const A1e=I1e({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var e=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,e)},pages:function(){var e=[],n=this.count,i=+this.showPageSize;if(this.mode!=="multi")return e;var s=1,o=n,u=i<n;u&&(s=Math.max(this.value-Math.floor(i/2),1),o=s+i-1,o>n&&(o=n,s=o-i+1));for(var d=s;d<=o;d++){var f=yw(d,d,d===this.value);e.push(f)}if(u&&i>0&&this.forceEllipses){if(s>1){var p=yw(s-1,"...",!1);e.unshift(p)}if(o<n){var v=yw(o+1,"...",!1);e.push(v)}}return e}},watch:{value:{handler:function(e){this.select(e||this.value)},immediate:!0}},methods:{select:function(e,n){e=Math.min(this.count,Math.max(1,e)),this.value!==e&&(this.$emit("input",e),n&&this.$emit("change",e))}},render:function(){var e=this,n,i,s=arguments[0],o=this.value,u=this.mode!=="multi",d=function(p){return function(){e.select(p,!0)}};return s("ul",{class:Jo({simple:u})},[s("li",{class:[Jo("item",{disabled:o===1}),Jo("prev"),Rs],on:{click:d(o-1)}},[((n=this.slots("prev-text"))!=null?n:this.prevText)||HR("prev")]),this.pages.map(function(f){var p;return s("li",{class:[Jo("item",{active:f.active}),Jo("page"),Rs],on:{click:d(f.number)}},[(p=e.slots("page",f))!=null?p:f.text])}),u&&s("li",{class:Jo("page-desc")},[this.slots("pageDesc")||o+"/"+this.count]),s("li",{class:[Jo("item",{disabled:o===this.count}),Jo("next"),Rs],on:{click:d(o+1)}},[((i=this.slots("next-text"))!=null?i:this.nextText)||HR("next")])])}});var WR=Ae("panel"),j1e=WR[0],fp=WR[1];function QR(t,e,n,i){var s=function(){return[n.header?n.header():t(Vi,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:fp("header-value")},class:fp("header")}),t("div",{class:fp("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[fp("footer"),vD]},[n.footer()])]};return t(K3,Pt([{class:fp(),scopedSlots:{default:s}},on(i,!0)]))}QR.props={icon:String,desc:String,title:String,status:String};const $1e=j1e(QR);var GR=Ae("password-input"),L1e=GR[0],hp=GR[1];function KR(t,e,n,i){for(var s,o=e.mask,u=e.value,d=e.length,f=e.gutter,p=e.focused,v=e.errorInfo,y=v||e.info,M=[],b=0;b<d;b++){var x,N=u[b],w=b!==0&&!f,k=p&&b===u.length,E=void 0;b!==0&&f&&(E={marginLeft:Wt(f)}),M.push(t("li",{class:[(x={},x[VP]=w,x),hp("item",{focus:k})],style:E},[o?t("i",{style:{visibility:N?"visible":"hidden"}}):N,k&&t("div",{class:hp("cursor")})]))}return t("div",{class:hp()},[t("ul",Pt([{class:[hp("security"),(s={},s[YP]=!f,s)],on:{touchstart:function(T){T.stopPropagation(),Yt(i,"focus",T)}}},on(i,!0)]),[M]),y&&t("div",{class:hp(v?"error-info":"info")},[y])])}KR.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};const z1e=L1e(KR);function Us(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function bw(t){var e=Us(t).Element;return t instanceof e||t instanceof Element}function Vs(t){var e=Us(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qR(t){if(typeof ShadowRoot>"u")return!1;var e=Us(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var gd=Math.round;function _w(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function P1e(){return!/^((?!chrome|android).)*safari/i.test(_w())}function Ob(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,o=1;e&&Vs(t)&&(s=t.offsetWidth>0&&gd(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&gd(i.height)/t.offsetHeight||1);var u=bw(t)?Us(t):window,d=u.visualViewport,f=!P1e()&&n,p=(i.left+(f&&d?d.offsetLeft:0))/s,v=(i.top+(f&&d?d.offsetTop:0))/o,y=i.width/s,M=i.height/o;return{width:y,height:M,top:v,right:p+y,bottom:v+M,left:p,x:p,y:v}}function XR(t){var e=Us(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function R1e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function F1e(t){return t===Us(t)||!Vs(t)?XR(t):R1e(t)}function qa(t){return t?(t.nodeName||"").toLowerCase():null}function Eb(t){return((bw(t)?t.ownerDocument:t.document)||window.document).documentElement}function B1e(t){return Ob(Eb(t)).left+XR(t).scrollLeft}function Xa(t){return Us(t).getComputedStyle(t)}function Mw(t){var e=Xa(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function U1e(t){var e=t.getBoundingClientRect(),n=gd(e.width)/t.offsetWidth||1,i=gd(e.height)/t.offsetHeight||1;return n!==1||i!==1}function V1e(t,e,n){n===void 0&&(n=!1);var i=Vs(e),s=Vs(e)&&U1e(e),o=Eb(e),u=Ob(t,s,n),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((qa(e)!=="body"||Mw(o))&&(d=F1e(e)),Vs(e)?(f=Ob(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=B1e(o))),{x:u.left+d.scrollLeft-f.x,y:u.top+d.scrollTop-f.y,width:u.width,height:u.height}}function Y1e(t){var e=Ob(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function xw(t){return qa(t)==="html"?t:t.assignedSlot||t.parentNode||(qR(t)?t.host:null)||Eb(t)}function ZR(t){return["html","body","#document"].indexOf(qa(t))>=0?t.ownerDocument.body:Vs(t)&&Mw(t)?t:ZR(xw(t))}function Ib(t,e){var n;e===void 0&&(e=[]);var i=ZR(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Us(i),u=s?[o].concat(o.visualViewport||[],Mw(i)?i:[]):i,d=e.concat(u);return s?d:d.concat(Ib(xw(u)))}function H1e(t){return["table","td","th"].indexOf(qa(t))>=0}function JR(t){return!Vs(t)||Xa(t).position==="fixed"?null:t.offsetParent}function W1e(t){var e=/firefox/i.test(_w()),n=/Trident/i.test(_w());if(n&&Vs(t)){var i=Xa(t);if(i.position==="fixed")return null}var s=xw(t);for(qR(s)&&(s=s.host);Vs(s)&&["html","body"].indexOf(qa(s))<0;){var o=Xa(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function eF(t){for(var e=Us(t),n=JR(t);n&&H1e(n)&&Xa(n).position==="static";)n=JR(n);return n&&(qa(n)==="html"||qa(n)==="body"&&Xa(n).position==="static")?e:n||W1e(t)||e}var vd="top",Ab="bottom",pp="right",bu="left",tF="auto",Q1e=[vd,Ab,pp,bu],nF="start",jb="end",G1e=[].concat(Q1e,[tF]).reduce(function(t,e){return t.concat([e,e+"-"+nF,e+"-"+jb])},[]),K1e="beforeRead",q1e="read",X1e="afterRead",Z1e="beforeMain",J1e="main",eTe="afterMain",tTe="beforeWrite",nTe="write",iTe="afterWrite",Cw=[K1e,q1e,X1e,Z1e,J1e,eTe,tTe,nTe,iTe];function rTe(t){var e=new Map,n=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function s(o){n.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(d){if(!n.has(d)){var f=e.get(d);f&&s(f)}}),i.push(o)}return t.forEach(function(o){n.has(o.name)||s(o)}),i}function sTe(t){var e=rTe(t);return Cw.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function aTe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function el(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(s,o){return s.replace(/%s/,o)},t)}var _u='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',oTe='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',iF=["name","enabled","phase","fn","effect","requires","options"];function lTe(t){t.forEach(function(e){[].concat(Object.keys(e),iF).filter(function(n,i,s){return s.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(el(_u,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(el(_u,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Cw.indexOf(e.phase)<0&&console.error(el(_u,e.name,'"phase"',"either "+Cw.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(el(_u,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(el(_u,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(el(_u,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(el(_u,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+iF.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(i){t.find(function(s){return s.name===i})==null&&console.error(el(oTe,String(e.name),i,i))})})})}function uTe(t,e){var n=new Set;return t.filter(function(i){var s=e(i);if(!n.has(s))return n.add(s),!0})}function $b(t){return t.split("-")[0]}function cTe(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}function rF(t){return t.split("-")[1]}function dTe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fTe(t){var e=t.reference,n=t.element,i=t.placement,s=i?$b(i):null,o=i?rF(i):null,u=e.x+e.width/2-n.width/2,d=e.y+e.height/2-n.height/2,f;switch(s){case vd:f={x:u,y:e.y-n.height};break;case Ab:f={x:u,y:e.y+e.height};break;case pp:f={x:e.x+e.width,y:d};break;case bu:f={x:e.x-n.width,y:d};break;default:f={x:e.x,y:e.y}}var p=s?dTe(s):null;if(p!=null){var v=p==="y"?"height":"width";switch(o){case nF:f[p]=f[p]-(e[v]/2-n[v]/2);break;case jb:f[p]=f[p]+(e[v]/2-n[v]/2);break}}return f}var sF="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hTe="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",aF={placement:"bottom",modifiers:[],strategy:"absolute"};function oF(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function pTe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,s=e.defaultOptions,o=s===void 0?aF:s;return function(d,f,p){p===void 0&&(p=o);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},aF,o),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},y=[],M=!1,b={state:v,setOptions:function(k){var E=typeof k=="function"?k(v.options):k;N(),v.options=Object.assign({},o,v.options,E),v.scrollParents={reference:bw(d)?Ib(d):d.contextElement?Ib(d.contextElement):[],popper:Ib(f)};var S=sTe(cTe([].concat(i,v.options.modifiers)));v.orderedModifiers=S.filter(function(q){return q.enabled});{var T=uTe([].concat(S,v.options.modifiers),function(q){var G=q.name;return G});if(lTe(T),$b(v.options.placement)===tF){var O=v.orderedModifiers.find(function(q){var G=q.name;return G==="flip"});O||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var j=Xa(f),$=j.marginTop,R=j.marginRight,W=j.marginBottom,ee=j.marginLeft;[$,R,W,ee].some(function(q){return parseFloat(q)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return x(),b.update()},forceUpdate:function(){if(!M){var k=v.elements,E=k.reference,S=k.popper;if(!oF(E,S)){console.error(sF);return}v.rects={reference:V1e(E,eF(S),v.options.strategy==="fixed"),popper:Y1e(S)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(q){return v.modifiersData[q.name]=Object.assign({},q.data)});for(var T=0,O=0;O<v.orderedModifiers.length;O++){if(T+=1,T>100){console.error(hTe);break}if(v.reset===!0){v.reset=!1,O=-1;continue}var j=v.orderedModifiers[O],$=j.fn,R=j.options,W=R===void 0?{}:R,ee=j.name;typeof $=="function"&&(v=$({state:v,options:W,name:ee,instance:b})||v)}}},update:aTe(function(){return new Promise(function(w){b.forceUpdate(),w(v)})}),destroy:function(){N(),M=!0}};if(!oF(d,f))return console.error(sF),b;b.setOptions(p).then(function(w){!M&&p.onFirstUpdate&&p.onFirstUpdate(w)});function x(){v.orderedModifiers.forEach(function(w){var k=w.name,E=w.options,S=E===void 0?{}:E,T=w.effect;if(typeof T=="function"){var O=T({state:v,name:k,instance:b,options:S}),j=function(){};y.push(O||j)}})}function N(){y.forEach(function(w){return w()}),y=[]}return b}}var Lb={passive:!0};function mTe(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,o=s===void 0?!0:s,u=i.resize,d=u===void 0?!0:u,f=Us(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&p.forEach(function(v){v.addEventListener("scroll",n.update,Lb)}),d&&f.addEventListener("resize",n.update,Lb),function(){o&&p.forEach(function(v){v.removeEventListener("scroll",n.update,Lb)}),d&&f.removeEventListener("resize",n.update,Lb)}}var gTe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mTe,data:{}};function vTe(t){var e=t.state,n=t.name;e.modifiersData[n]=fTe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var yTe={name:"popperOffsets",enabled:!0,phase:"read",fn:vTe,data:{}},bTe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _Te(t){var e=t.x,n=t.y,i=window,s=i.devicePixelRatio||1;return{x:gd(e*s)/s||0,y:gd(n*s)/s||0}}function lF(t){var e,n=t.popper,i=t.popperRect,s=t.placement,o=t.variation,u=t.offsets,d=t.position,f=t.gpuAcceleration,p=t.adaptive,v=t.roundOffsets,y=t.isFixed,M=u.x,b=M===void 0?0:M,x=u.y,N=x===void 0?0:x,w=typeof v=="function"?v({x:b,y:N}):{x:b,y:N};b=w.x,N=w.y;var k=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),S=bu,T=vd,O=window;if(p){var j=eF(n),$="clientHeight",R="clientWidth";if(j===Us(n)&&(j=Eb(n),Xa(j).position!=="static"&&d==="absolute"&&($="scrollHeight",R="scrollWidth")),j=j,s===vd||(s===bu||s===pp)&&o===jb){T=Ab;var W=y&&j===O&&O.visualViewport?O.visualViewport.height:j[$];N-=W-i.height,N*=f?1:-1}if(s===bu||(s===vd||s===Ab)&&o===jb){S=pp;var ee=y&&j===O&&O.visualViewport?O.visualViewport.width:j[R];b-=ee-i.width,b*=f?1:-1}}var q=Object.assign({position:d},p&&bTe),G=v===!0?_Te({x:b,y:N}):{x:b,y:N};if(b=G.x,N=G.y,f){var Y;return Object.assign({},q,(Y={},Y[T]=E?"0":"",Y[S]=k?"0":"",Y.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+N+"px)":"translate3d("+b+"px, "+N+"px, 0)",Y))}return Object.assign({},q,(e={},e[T]=E?N+"px":"",e[S]=k?b+"px":"",e.transform="",e))}function MTe(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,u=o===void 0?!0:o,d=n.roundOffsets,f=d===void 0?!0:d;{var p=Xa(e.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(y){return p.indexOf(y)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
276
+ `+Tn),Re&&(Tn=js(Tn,J," "),Tn=js(Tn,Z," "),Tn=js(Tn,X," ")),T&&Qt?T.createHTML(Tn):Tn},e.setConfig=function(dt){fi(dt),ct=!0},e.clearConfig=function(){Xt=null,ct=!1},e.isValidAttribute=function(dt,le,Ue){Xt||fi({});var Ze=Rt(dt),$t=Rt(le);return Ja(Ze,$t,Ue)},e.addHook=function(dt,le){typeof le=="function"&&(Y[dt]=Y[dt]||[],Xh(Y[dt],le))},e.removeHook=function(dt){if(Y[dt])return tP(Y[dt])},e.removeHooks=function(dt){Y[dt]&&(Y[dt]=[])},e.removeAllHooks=function(){Y={}},e}var SMe=aP();const TMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNyAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMjM3MjQgMC44MzMyNTJDNy41NjcyNiAwLjgzMzI1MiA3LjgyODg3IDAuOTM5OTQgOC4wMjIwNSAxLjE1MzMyQzguMjIzMjggMS4zNTgxNiA4LjMyMzkgMS42MzU1NSA4LjMyMzkgMS45ODU0OVY4LjgzNDg4QzguMzIzOSA5LjE4NDgyIDguMjIzMjggOS40NjY0OCA4LjAyMjA1IDkuNjc5ODVDNy44Mjg4NyA5Ljg5MzIzIDcuNTY3MjYgOS45OTk5MiA3LjIzNzI0IDkuOTk5OTJDNi45MDcyMiA5Ljk5OTkyIDYuNjQxNiA5Ljg5NzUgNi40NDAzNyA5LjY5MjY2QzYuMjQ3MTggOS40NzkyOCA2LjE1MDU5IDkuMTkzMzUgNi4xNTA1OSA4LjgzNDg4VjYuMjc0MzZIMi42NzMzVjguODM0ODhDMi42NzMzIDkuMTg0ODIgMi41NzI2OSA5LjQ2NjQ4IDIuMzcxNDYgOS42Nzk4NUMyLjE3ODI3IDkuODkzMjMgMS45MTY2NyA5Ljk5OTkyIDEuNTg2NjUgOS45OTk5MkMxLjI1NjYzIDkuOTk5OTIgMC45OTEwMDYgOS44OTc1IDAuNzg5Nzc0IDkuNjkyNjZDMC41OTY1OTEgOS40NzkyOCAwLjUgOS4xOTMzNSAwLjUgOC44MzQ4OFYxLjk4NTQ5QzAuNSAxLjYzNTU1IDAuNTk2NTkxIDEuMzU4MTYgMC43ODk3NzQgMS4xNTMzMkMwLjk5MTAwNiAwLjkzOTk0IDEuMjU2NjMgMC44MzMyNTIgMS41ODY2NSAwLjgzMzI1MkMxLjkxNjY3IDAuODMzMjUyIDIuMTc4MjcgMC45Mzk5NCAyLjM3MTQ2IDEuMTUzMzJDMi41NzI2OSAxLjM1ODE2IDIuNjczMyAxLjYzNTU1IDIuNjczMyAxLjk4NTQ5VjQuNDA1MThINi4xNTA1OVYxLjk4NTQ5QzYuMTUwNTkgMS42MzU1NSA2LjI0NzE4IDEuMzU4MTYgNi40NDAzNyAxLjE1MzMyQzYuNjQxNiAwLjkzOTk0IDYuOTA3MjIgMC44MzMyNTIgNy4yMzcyNCAwLjgzMzI1MloiIGZpbGw9IiM0MzRFNUIiLz4KPHBhdGggZD0iTTE1LjI4MjkgOC4wNTM5MkMxNS42NDUxIDguMDUzOTIgMTUuOTEwNyA4LjEzMDc0IDE2LjA3OTggOC4yODQzN0MxNi4yNDg4IDguNDM4IDE2LjMzMzMgOC42Njg0NSAxNi4zMzMzIDguOTc1NzFDMTYuMzMzMyA5LjYwNzMxIDE1Ljk4MzIgOS45MjMxIDE1LjI4MjkgOS45MjMxSDExLjA5MzNDMTAuMzkzIDkuOTIzMSAxMC4wNDI4IDkuNjA3MzEgMTAuMDQyOCA4Ljk3NTcxQzEwLjA0MjggOC42Njg0NSAxMC4xMjczIDguNDM4IDEwLjI5NjQgOC4yODQzN0MxMC40NjU0IDguMTMwNzQgMTAuNzMxIDguMDUzOTIgMTEuMDkzMyA4LjA1MzkySDEyLjA3MTJWMy40MzIxOEwxMS4xMDUzIDQuMDMzOUMxMC45Njg1IDQuMTE5MjUgMTAuODI3NiA0LjE2MTkzIDEwLjY4MjcgNC4xNjE5M0MxMC40NTc0IDQuMTYxOTMgMTAuMjY0MiA0LjA1OTUxIDEwLjEwMzIgMy44NTQ2N0M5Ljk0MjIxIDMuNjQxMjkgOS44NjE3MiAzLjQwNjU4IDkuODYxNzIgMy4xNTA1MkM5Ljg2MTcyIDIuODAwNTkgMTAuMDAyNiAyLjUzNiAxMC4yODQzIDIuMzU2NzZMMTIuMjE2MSAxLjE2NjEyQzEyLjU3MDMgMC45NTI3NDMgMTIuOTA0MyAwLjg0NjA1NCAxMy4yMTgzIDAuODQ2MDU0QzEzLjU0MDIgMC44NDYwNTQgMTMuNzk3OCAwLjk0ODQ3NSAxMy45OTEgMS4xNTMzMkMxNC4xOTIyIDEuMzU4MTYgMTQuMjkyOCAxLjYzNTU1IDE0LjI5MjggMS45ODU0OVY4LjA1MzkySDE1LjI4MjlaIiBmaWxsPSIjNDM0RTVCIi8+Cjwvc3ZnPgo=",DMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxOCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNjU3MjkgNC4xNjIxNEM4LjY1NzI5IDEuOTYwMTMgNi44NjM5IDAuMTY2NzQ4IDQuNjYxOSAwLjE2Njc0OEMyLjQ1OTg5IDAuMTY2NzQ4IDAuNjY2NTA0IDEuOTYwMTMgMC42NjY1MDQgNC4xNjIxNEMwLjY2NjUwNCA2LjM2NDE0IDIuNDU5ODkgOC4xNTc1MyA0LjY2MTkgOC4xNTc1M0M1LjEzODYyIDguMTU3NTMgNS42MTUzNCA4LjA2NjczIDYuMDQ2NjYgNy45MDc4MkM1Ljk1NTg2IDguOTA2NjcgNS42NjA3NCA5LjkyODIyIDUuMTYxMzIgMTAuODgxN0M1LjExNTkyIDEwLjk0OTggNS4xMTU5MiAxMS4wNDA2IDUuMTM4NjIgMTEuMTA4N0M1LjE2MTMyIDExLjE1NDEgNS4yMDY3MiAxMS4xOTk1IDUuMjUyMTIgMTEuMTk5NUM1LjMyMDIzIDExLjIyMjIgNS4zODgzMyAxMS4xOTk1IDUuNDc5MTQgMTEuMTMxNEM2LjQzMjU4IDEwLjMxNDEgNy4yNDk4MiA5LjI0NzE4IDcuNzk0NjUgOC4wNjY3M0M4LjI5NDA3IDYuOTc3MDcgOC41ODkxOCA1LjgxOTMyIDguNjM0NTkgNC41OTM0NkM4LjY1NzI5IDQuNDU3MjUgOC42NTcyOSA0LjI5ODM1IDguNjU3MjkgNC4xNjIxNFoiIGZpbGw9IiM0MzRFNUIiLz4KPHBhdGggZD0iTTE3LjM1MTYgNC4xNjIxNEMxNy4zNTE2IDEuOTYwMTMgMTUuNTU4MiAwLjE2Njc0OCAxMy4zNTYyIDAuMTY2NzQ4QzExLjE1NDIgMC4xNjY3NDggOS4zNjA4NCAxLjk2MDEzIDkuMzYwODQgNC4xNjIxNEM5LjM2MDg0IDYuMzY0MTQgMTEuMTU0MiA4LjE1NzUzIDEzLjM1NjIgOC4xNTc1M0MxMy44MzMgOC4xNTc1MyAxNC4zMDk3IDguMDY2NzMgMTQuNzQxIDcuOTA3ODJDMTQuNjUwMiA4LjkwNjY3IDE0LjM1NTEgOS45MjgyMiAxMy44NTU3IDEwLjg4MTdDMTMuODEwMyAxMC45NDk4IDEzLjgxMDMgMTEuMDQwNiAxMy44MzMgMTEuMTA4N0MxMy44NTU3IDExLjE1NDEgMTMuOTAxMSAxMS4xOTk1IDEzLjk0NjUgMTEuMTk5NUMxNC4wMTQ2IDExLjIyMjIgMTQuMDgyNyAxMS4xOTk1IDE0LjE3MzUgMTEuMTMxNEMxNS4xMjY5IDEwLjMxNDEgMTUuOTQ0MiA5LjI0NzE4IDE2LjQ4OSA4LjA2NjczQzE2Ljk4ODQgNi45NzcwNyAxNy4yODM1IDUuODE5MzIgMTcuMzI4OSA0LjU5MzQ2QzE3LjM1MTYgNC40NTcyNSAxNy4zNTE2IDQuMjk4MzUgMTcuMzUxNiA0LjE2MjE0WiIgZmlsbD0iIzQzNEU1QiIvPgo8L3N2Zz4K",wMe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxMyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuMzkyMDkgNy40MjQ4VjExLjE5OUM1LjM5MjA5IDExLjQ4OTMgNS40ODg4NiAxMS42ODI5IDUuNjgyNDEgMTEuODc2NEM1Ljg3NTk2IDEyLjA3IDYuMDY5NTEgMTIuMTY2NyA2LjM1OTgzIDEyLjE2NjdDNi42NTAxNSAxMi4xNjY3IDYuODQzNyAxMi4wNyA3LjAzNzI1IDExLjg3NjRDNy4yMzA4IDExLjY4MjkgNy4zMjc1NyAxMS40ODkzIDcuMzI3NTcgMTEuMTk5VjkuNDU3MDZMNS4zOTIwOSA3LjQyNDhaIiBmaWxsPSIjNDM0RTVCIi8+CjxwYXRoIGQ9Ik00LjMyNzU3IDIuNDg5NDRINS4zOTIwOVYzLjY1MDczTDcuMzI3NTcgNS42ODI5OVYyLjQ4OTQ0SDExLjE5ODVDMTEuNDg4OSAyLjQ4OTQ0IDExLjY4MjQgMi4zOTI2NiAxMS44NzYgMi4xOTkxMkMxMi4wNjk1IDIuMDA1NTcgMTIuMTY2MyAxLjgxMjAyIDEyLjE2NjMgMS41MjE3QzEyLjE2NjMgMS4yMzEzNyAxMi4wNjk1IDEuMDM3ODMgMTEuODc2IDAuODQ0Mjc4QzExLjY4MjQgMC42NTA3MjkgMTEuNDg4OSAwLjU1Mzk1NSAxMS4xOTg1IDAuNTUzOTU1SDIuMzkyMDlMNC4zMjc1NyAyLjQ4OTQ0WiIgZmlsbD0iIzQzNEU1QiIvPgo8cGF0aCBkPSJNMTAuNjE4MSAxMS44NzY0QzEwLjMyNzggMTEuODc2NCAxMC4xMzQyIDExLjc3OTcgOS45NDA3IDExLjU4NjFMMC40NTY4MjcgMS44MTE5MUMwLjI2MzI3OCAxLjYxODM2IDAuMTY2NTA0IDEuMzI4MDQgMC4xNjY1MDQgMS4xMzQ0OUMwLjE2NjUwNCAwLjg0NDE2NyAwLjI2MzI3OCAwLjY1MDYxOSAwLjQ1NjgyNyAwLjQ1NzA3MUMwLjY1MDM3NSAwLjI2MzUyMiAwLjg0MzkyMyAwLjE2Njc0OCAxLjEzNDI1IDAuMTY2NzQ4QzEuNDI0NTcgMC4xNjY3NDggMS42MTgxMiAwLjI2MzUyMiAxLjgxMTY3IDAuNDU3MDcxTDExLjI5NTUgMTAuMjMxM0MxMS40ODkxIDEwLjQyNDggMTEuNTg1OSAxMC42MTg0IDExLjU4NTkgMTAuOTA4N0MxMS41ODU5IDExLjE5OSAxMS40ODkxIDExLjM5MjYgMTEuMjk1NSAxMS41ODYxQzExLjEwMiAxMS43Nzk3IDEwLjkwODQgMTEuODc2NCAxMC42MTgxIDExLjg3NjRaIiBmaWxsPSIjNDM0RTVCIi8+Cjwvc3ZnPgo=",jIe="",NMe={tagName:"l-text-editor",props:{value:String},components:{EditorContent:vye,LinkBox:U_e,BubbleMenu:mye,FloatingLink:Q_e},data(){return{editor:null,markUps:[{name:"bold",tooltip:"Negrito",icon:"uil-bold"},{name:"italic",tooltip:"Itálico",icon:"uil-italic"},{name:"underline",tooltip:"Sublinhado",icon:"uil-underline"},{name:"heading",tooltip:"Título",icon:TMe},{name:"bulletList",tooltip:"Lista com marcadores",icon:"uil-list-ul"},{name:"orderedList",tooltip:"Lista numerada",icon:"uil-list-ol-alt"},{name:"link",tooltip:"Inserir link",icon:"uil-link-alt"},{name:"blockquote",tooltip:"Citação",icon:DMe},{name:"removeFormatting",tooltip:"Remover formatação",icon:wMe}],showLinkBox:!1,isEditorFocused:null,tooltipDelay:125}},methods:{isUnicon(t){return t.startsWith("uil-")},markUpText(t){if(t==="link"){this.toggleLinkBox();return}this.editor.chain().focus().setMarkUp(t).run()},toggleLinkBox(){this.showLinkBox=!this.showLinkBox},closeLinkBox(){this.editor.commands.focus(),this.toggleLinkBox()},markUpLink(t){this.currentTextSelection||this.previousURL?this.editor.chain().focus().extendMarkRange("link").setLink({href:t.url,target:"_blank"}).run():this.editor.commands.insertContent(GT.link(t.insertedText))},markOffLink(){this.editor.chain().focus().extendMarkRange("link").unsetLink().run()},hasSomeMarkUpActive(){const t=this.editor.getJSON().content,e=this.markUps.map(o=>o.name),i=t.map(o=>o.type).some(o=>e.includes(o)),s=t.some(o=>{if(o.hasOwnProperty("content"))return o.content.some(u=>u.hasOwnProperty("marks"))});return i||s},addSpaceToFinalParagraphTag(t){return t.replace(/<\/p>/g," </p>")}},computed:{previousURL(){return this.editor.getAttributes("link").href},showFloatingLink(){return this.editor.isActive("link")},finalText(){const t=this.editor.getHTML(),e=this.addSpaceToFinalParagraphTag(t),n=GT.link(e);return SMe.sanitize(K_e(n),{ADD_ATTR:["target"]})},currentTextSelection(){const{view:t,state:e}=this.editor,{from:n,to:i}=t.state.selection;return e.doc.textBetween(n,i,"")},arrowXPosition(){const e=this.$refs.link[0].$el;return{left:`${e.offsetLeft+(e.offsetWidth-16.8)/2}px`}},linkBoxPosition(){const e=this.$refs.texteditor.$el.offsetWidth,n=this.$refs.link[0].$el;let i;return e>500?i=`${n.offsetLeft+n.offsetWidth/2-456/2}px`:i="1rem",{left:i}}},beforeMount(){this.editor=new gye({extensions:[yye,bye,_ye,xye,wye,Iye,jye,$ye,zye,Rye,Bye,cbe,dbe,fbe,Mbe],content:this.value,autofocus:!1,onUpdate:()=>{this.$emit("input",this.finalText),this.$emit("useMarkUp",this.hasSomeMarkUpActive())},onFocus:()=>{this.isEditorFocused=!0,this.$emit("focus",!0)},onBlur:()=>{this.isEditorFocused=!1}})},beforeDestroy(){this.editor.destroy()}};var kMe=function(){var e=this,n=e._self._c;return n("section",{staticClass:"wrapper-text-editor"},[e.showFloatingLink?n("BubbleMenu",{attrs:{editor:e.editor,tippyOptions:{zIndex:1e3},shouldShow:({editor:i})=>i.isActive("link")}},[n("FloatingLink",{attrs:{"data-link":e.editor.getAttributes("link").href},on:{edit:function(i){return e.toggleLinkBox()},remove:function(i){return e.markOffLink()}}})],1):e._e(),n("EditorContent",{ref:"texteditor",attrs:{editor:e.editor}}),n("div",{staticClass:"wrapper-editor-features"},[n("div",{staticClass:"wrapper-scroll"},[n("div",{staticClass:"wrapper-buttons py-2 pl-3 pr-4 l-d-flex row l-d-justify-content-start l-d-align-item-center"},e._l(e.markUps,function(i){return n("l-tooltip",{key:i.name,staticClass:"item",attrs:{content:i.tooltip,"open-delay":e.tooltipDelay}},[n("l-button",{ref:i.name,refInFor:!0,staticClass:"button-text-editor",class:{"is-active":e.editor.isActive(i.name)},attrs:{size:"small",square:""},on:{click:function(s){return e.markUpText(i.name)}}},[e.isUnicon(i.icon)?n("l-icon",{attrs:{size:"24",icon:i.icon}}):n("img",{class:{"icon-active":e.editor.isActive(i.name)},attrs:{alt:i.name,src:i.icon}})],1)],1)}),1)]),e.showLinkBox?[n("span",{staticClass:"link-box-arrow",style:[e.arrowXPosition]}),n("LinkBox",{staticClass:"link-box-position",style:[e.linkBoxPosition],attrs:{previousURL:e.previousURL},on:{close:function(i){return e.closeLinkBox()},setLink:function(i){return e.markUpLink(i)}}})]:e._e()],2)],1)},OMe=[],EMe=Qe(NMe,kMe,OMe,!1,null,"29547478",null,null);const IMe=EMe.exports,AMe=Object.freeze(Object.defineProperty({__proto__:null,default:IMe},Symbol.toStringTag,{value:"Module"})),$Ie="",jMe={tagName:"l-time-select",extends:Nt.TimeSelect,props:{prefixIcon:{type:String,default:()=>"uil-clock"},clearIcon:{type:String,default:()=>"uil-multiply"},hideIcon:{type:Boolean,default:()=>!1},placeholder:{type:String,default:()=>"Horário"},clearable:{type:Boolean,default:()=>!1}},mounted(){this.hideIcon&&this.$el.classList.add("hide-icon")}};var $Me=Qe(jMe,null,null,!1,null,null,null,null);const LMe=$Me.exports,zMe=Object.freeze(Object.defineProperty({__proto__:null,default:LMe},Symbol.toStringTag,{value:"Module"})),PIe="",PMe={tagName:"l-toggle-button-group",model:{prop:"modelValue",event:"change"},props:{options:Array,modelValue:String,disabled:{type:Boolean,default:!1}},data(){return{value:this.modelValue}},watch:{modelValue(t){this.value!==t&&(this.value=t,this.$emit("change",this.value))}},methods:{optionType(t){return this.disabled?"default":t.value===this.value?"primary":"default"},selectOption(t){this.value=t.value,this.$emit("change",this.value)}}};var RMe=function(){var e=this,n=e._self._c;return n("l-button-group",{staticClass:"l-toggle-button-group"},e._l(e.options,function(i){return n("l-tooltip",{key:i.value,attrs:{effect:"dark",content:i.title,placement:"bottom"}},[n("l-button",{attrs:{disabled:e.disabled,type:e.optionType(i),icon:i.icon,size:"small",plain:""},on:{click:function(s){return e.selectOption(i)}}})],1)}),1)},FMe=[],BMe=Qe(PMe,RMe,FMe,!1,null,null,null,null);const UMe=BMe.exports,VMe=Object.freeze(Object.defineProperty({__proto__:null,default:UMe},Symbol.toStringTag,{value:"Module"})),RIe="",oP=lh(Nt.Tooltip);delete oP.props.popperClass;var YMe=Qe({tagName:"l-tooltip",extends:oP,props:["tooltipClass"],computed:{popperClass(){return this.tooltipClass||"l-tooltip-popper"}}},null,null,!1,null,null,null,null);const HMe=YMe.exports,WMe=Object.freeze(Object.defineProperty({__proto__:null,default:HMe},Symbol.toStringTag,{value:"Module"})),VIe="",QMe={tagName:"l-transition-expand",methods:{enter(t){const e=getComputedStyle(t).width;t.style.width=e,t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";const n=getComputedStyle(t).height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=n})},afterEnter(t){t.style.height="auto"},leave(t){const e=getComputedStyle(t).height;t.style.height=e,getComputedStyle(t).height,requestAnimationFrame(()=>{t.style.height=0})}}};var GMe=function(){var e=this,n=e._self._c;return n("transition",{staticClass:"l-transition-expand",attrs:{name:"expand"},on:{enter:e.enter,"after-enter":e.afterEnter,leave:e.leave}},[e._t("default")],2)},KMe=[],qMe=Qe(QMe,GMe,KMe,!1,null,"fc95fe01",null,null);const XMe=qMe.exports,ZMe=Object.freeze(Object.defineProperty({__proto__:null,default:XMe},Symbol.toStringTag,{value:"Module"})),JMe={tagName:"l-upload",extends:Nt.Upload};var exe=Qe(JMe,null,null,!1,null,null,null,null);const txe=exe.exports,nxe=Object.freeze(Object.defineProperty({__proto__:null,default:txe},Symbol.toStringTag,{value:"Module"}));var ixe={el:{colorpicker:{confirm:"Confirmar",clear:"Limpar"},datepicker:{now:"Agora",today:"Hoje",cancel:"Cancelar",clear:"Limpar",confirm:"Confirmar",selectDate:"Selecione a data",selectTime:"Selecione a hora",startDate:"Data inicial",startTime:"Hora inicial",endDate:"Data final",endTime:"Hora final",prevYear:"Ano anterior",nextYear:"Próximo ano",prevMonth:"Mês anterior",nextMonth:"Próximo mês",year:"",month1:"Janeiro",month2:"Fevereiro",month3:"Março",month4:"Abril",month5:"Maio",month6:"Junho",month7:"Julho",month8:"Agosto",month9:"Setembro",month10:"Outubro",month11:"Novembro",month12:"Dezembro",weeks:{sun:"Dom",mon:"Seg",tue:"Ter",wed:"Qua",thu:"Qui",fri:"Sex",sat:"Sab"},months:{jan:"Jan",feb:"Fev",mar:"Mar",apr:"Abr",may:"Mai",jun:"Jun",jul:"Jul",aug:"Ago",sep:"Set",oct:"Out",nov:"Nov",dec:"Dez"}},select:{loading:"Carregando",noMatch:"Sem resultados",noData:"Sem dados",placeholder:"Selecione"},cascader:{noMatch:"Sem resultados",loading:"Carregando",placeholder:"Selecione",noData:"Sem dados"},pagination:{goto:"Ir para",pagesize:"/página",total:"Total {total}",pageClassifier:""},messagebox:{title:"Mensagem",confirm:"Confirmar",cancel:"Cancelar",error:"Erro!"},upload:{deleteTip:"aperte delete para apagar",delete:"Apagar",preview:"Pré-visualizar",continue:"Continuar"},table:{emptyText:"Sem dados",confirmFilter:"Confirmar",resetFilter:"Limpar",clearFilter:"Todos",sumText:"Total"},tree:{emptyText:"Sem dados"},transfer:{noMatch:"Sem resultados",noData:"Sem dados",titles:["Lista 1","Lista 2"],filterPlaceholder:"Digite uma palavra-chave",noCheckedFormat:"{total} itens",hasCheckedFormat:"{checked}/{total} selecionados"},image:{error:"Erro ao carregar imagem"},pageHeader:{title:"Voltar"},popconfirm:{confirmButtonText:"Sim",cancelButtonText:"Não"},empty:{description:"Sem dados"}}},rxe={exports:{}};(function(t,e){(function(n,i){t.exports=i($$())})(Gn,function(n){function i(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var s=i(n),o={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(u){return u+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return s.default.locale(o,null,!0),o})})(rxe);var lP={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Gn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(i,s,o){var u=s.prototype,d=u.format;o.en.formats=n,u.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,v=function(y,M){return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,x,N){var w=N&&N.toUpperCase();return x||M[N]||n[N]||M[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,E,S){return E||S.slice(1)})})}(f,p===void 0?{}:p);return d.call(this,v)}}})})(lP);var sxe=lP.exports;const axe=bi(sxe),WIe="",Zh={"type:String":"uil-text","type:Number":"uil-star","type:Date":"uil-calender","format:Email":"uil-at","format:Amount":"uil-usd-circle","format:PaymentStatus":"uil-bolt-alt",amount:"uil-usd-circle",recurrence:"uil-repeat",date:"uil-calender",user:"uil-user-circle",email:"uil-at",key:"uil-key-skeleton"};function oxe(t){return t?(t.icon?t=t.icon:t.format?t=`format:${t.format}`:t.type&&(t=`type:${t.type}`),t in Zh&&(t=Zh[t]),t):null}function lxe(t,e){Zh[t]=e}function uxe(t,e){Zh[`type:${t}`]=e}function cxe(t,e){Zh[`format:${t}`]=e}const uP={};uP.install=function(t){t.prototype.$L.Icons={get:oxe,register:lxe,registerForType:uxe,registerForFormat:cxe}};const cP=new Map;function dxe(t){return cP.get(t)}function fxe(t,e){cP.set(t,e)}const dP={};dP.install=function(t){t.prototype.$L.Schemas={get:dxe,register:fxe}};function hxe(t){for(let e=1,n=arguments.length;e<n;e++){let i=arguments[e]||{};for(let s in i)if(i.hasOwnProperty(s)){let o=i[s];o!==void 0&&(t[s]=o)}}return t}ft.prototype.$isServer;const pxe=function(t){return(t||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")};function fP(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function Jy(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),s=0,o=i.length;s<o;s++){var u=i[s];u&&(t.classList?t.classList.add(u):fP(t,u)||(n+=" "+u))}t.classList||t.setAttribute("class",n)}}function rD(t,e){if(!(!t||!e)){for(var n=e.split(" "),i=" "+t.className+" ",s=0,o=n.length;s<o;s++){var u=n[s];u&&(t.classList?t.classList.remove(u):fP(t,u)&&(i=i.replace(" "+u+" "," ")))}t.classList||t.setAttribute("class",pxe(i))}}let sD=!1,hP=!1,eb;const pP=function(){if(ft.prototype.$isServer)return;let t=Ui.modalDom;return t?sD=!0:(sD=!1,t=document.createElement("div"),Ui.modalDom=t,t.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),t.addEventListener("click",function(){Ui.doOnModalClick&&Ui.doOnModalClick()})),t},tb={},Ui={modalFade:!0,getInstance:function(t){return tb[t]},register:function(t,e){t&&e&&(tb[t]=e)},deregister:function(t){t&&(tb[t]=null,delete tb[t])},nextZIndex:function(){return Ui.zIndex++},modalStack:[],doOnModalClick:function(){const t=Ui.modalStack[Ui.modalStack.length-1];if(!t)return;const e=Ui.getInstance(t.id);e&&e.closeOnClickModal&&e.close()},openModal:function(t,e,n,i,s){if(ft.prototype.$isServer||!t||e===void 0)return;this.modalFade=s;const o=this.modalStack;for(let d=0,f=o.length;d<f;d++)if(o[d].id===t)return;const u=pP();Jy(u,"v-modal"),this.modalFade&&!sD&&Jy(u,"v-modal-enter"),i&&i.trim().split(/\s+/).forEach(f=>Jy(u,f)),setTimeout(()=>{rD(u,"v-modal-enter")},200),n&&n.parentNode&&n.parentNode.nodeType!==11?n.parentNode.appendChild(u):document.body.appendChild(u),e&&(u.style.zIndex=e),u.tabIndex=0,u.style.display="",this.modalStack.push({id:t,zIndex:e,modalClass:i})},closeModal:function(t){const e=this.modalStack,n=pP();if(e.length>0){const i=e[e.length-1];if(i.id===t)i.modalClass&&i.modalClass.trim().split(/\s+/).forEach(o=>rD(n,o)),e.pop(),e.length>0&&(n.style.zIndex=e[e.length-1].zIndex);else for(let s=e.length-1;s>=0;s--)if(e[s].id===t){e.splice(s,1);break}}e.length===0&&(this.modalFade&&Jy(n,"v-modal-leave"),setTimeout(()=>{e.length===0&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",Ui.modalDom=void 0),rD(n,"v-modal-leave")},200))}};Object.defineProperty(Ui,"zIndex",{configurable:!0,get(){return hP||(eb=eb||(ft.prototype.$ELEMENT||{}).zIndex||2e3,hP=!0),eb},set(t){eb=t}});const mxe=function(){if(!ft.prototype.$isServer&&Ui.modalStack.length>0){const t=Ui.modalStack[Ui.modalStack.length-1];return t?Ui.getInstance(t.id):void 0}};ft.prototype.$isServer||window.addEventListener("keydown",function(t){if(t.keyCode===27){const e=mxe();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}}),typeof/./!="function"&&typeof Int8Array!="object"&&(ft.prototype.$isServer||document.childNodes);const gxe=Object.prototype.hasOwnProperty;function vxe(t,e){return gxe.call(t,e)}function mP(t){return t!==null&&typeof t=="object"&&vxe(t,"componentOptions")}const yxe=ft.extend(Xj);let es,ba=[],bxe=1;const hu=function(t){if(ft.prototype.$isServer)return;t=hxe({},t);const e=t.onClose,n="notification_"+bxe++,i=t.position||"top-right";t.onClose=function(){hu.close(n,e)},es=new yxe({data:t}),mP(t.message)&&(es.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),es.id=n,es.$mount(),document.body.appendChild(es.$el),es.visible=!0,es.dom=es.$el,es.dom.style.zIndex=Ui.nextZIndex();let s=t.offset||0;return ba.filter(o=>o.position===i).forEach(o=>{s+=o.$el.offsetHeight+16}),s+=16,es.verticalOffset=s,ba.push(es),es};["success","warning","info","error"].forEach(t=>{hu[t]=e=>((typeof e=="string"||mP(e))&&(e={message:e}),e.type=t,hu(e))}),hu.close=function(t,e){let n=-1;const i=ba.length,s=ba.filter((d,f)=>d.id===t?(n=f,!0):!1)[0];if(!s||(typeof e=="function"&&e(s),ba.splice(n,1),i<=1))return;const o=s.position,u=s.dom.offsetHeight;for(let d=n;d<i-1;d++)ba[d].position===o&&(ba[d].dom.style[s.verticalProperty]=parseInt(ba[d].dom.style[s.verticalProperty],10)-u-16+"px")},hu.closeAll=function(){for(let t=ba.length-1;t>=0;t--)ba[t].close()};const gP={};gP.install=function(t){t.component(Nt.Input.name,Nt.Input)};function qe(){return qe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qe.apply(this,arguments)}function aD(){return aD=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aD.apply(this,arguments)}var _xe=["attrs","props","domProps"],Mxe=["class","style","directives"],xxe=["on","nativeOn"],Cxe=function(t){return t.reduce(function(e,n){for(var i in n)if(!e[i])e[i]=n[i];else if(_xe.indexOf(i)!==-1)e[i]=aD({},e[i],n[i]);else if(Mxe.indexOf(i)!==-1){var s=e[i]instanceof Array?e[i]:[e[i]],o=n[i]instanceof Array?n[i]:[n[i]];e[i]=[].concat(s,o)}else if(xxe.indexOf(i)!==-1)for(var u in n[i])if(e[i][u]){var d=e[i][u]instanceof Array?e[i][u]:[e[i][u]],f=n[i][u]instanceof Array?n[i][u]:[n[i][u]];e[i][u]=[].concat(d,f)}else e[i][u]=n[i][u];else if(i==="hook")for(var p in n[i])e[i][p]=e[i][p]?Sxe(e[i][p],n[i][p]):n[i][p];else e[i]=n[i];return e},{})},Sxe=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}},Txe=Cxe;const Pt=bi(Txe);function oD(t,e){return e?typeof e=="string"?" "+t+"--"+e:Array.isArray(e)?e.reduce(function(n,i){return n+oD(t,i)},""):Object.keys(e).reduce(function(n,i){return n+(e[i]?oD(t,i):"")},""):""}function Dxe(t){return function(e,n){return e&&typeof e!="string"&&(n=e,e=""),e=e?t+"__"+e:t,""+e+oD(e,n)}}var wxe=Object.prototype.hasOwnProperty;function Nxe(t,e,n){var i=e[n];Ut(i)&&(!wxe.call(t,n)||!$s(i)?t[n]=i:t[n]=vP(Object(t[n]),e[n]))}function vP(t,e){return Object.keys(e).forEach(function(n){Nxe(t,e,n)}),t}const kxe={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,n){return e+"年"+n+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}};var ld=ft.prototype,yP=ft.util.defineReactive;yP(ld,"$vantLang","zh-CN"),yP(ld,"$vantMessages",{"zh-CN":kxe});const lD={messages:function(){return ld.$vantMessages[ld.$vantLang]},use:function(e,n){var i;ld.$vantLang=e,this.add((i={},i[e]=n,i))},add:function(e){e===void 0&&(e={}),vP(ld.$vantMessages,e)}};var Oxe=/-(\w)/g;function bP(t){return t.replace(Oxe,function(e,n){return n.toUpperCase()})}function An(t,e){e===void 0&&(e=2);for(var n=t+"";n.length<e;)n="0"+n;return n}var Exe={methods:{slots:function(e,n){e===void 0&&(e="default");var i=this.$slots,s=this.$scopedSlots,o=s[e];return o?o(n):i[e]}}};function Ixe(t){var e=this.name;t.component(e,this),t.component(bP("-"+e),this)}function Axe(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(i){e[i]||(e[i]=function(){return n[i]})}),e}function jxe(t){return{functional:!0,props:t.props,model:t.model,render:function(n,i){return t(n,i.props,Axe(i),i)}}}function $xe(t){return function(e){return ud(e)&&(e=jxe(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(Exe)),e.name=t,e.install=Ixe,e}}function Lxe(t){var e=bP(t)+".";return function(n){for(var i=lD.messages(),s=_P(i,e+n)||_P(i,n),o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];return ud(s)?s.apply(void 0,u):s}}function Ae(t){return t="van-"+t,[$xe(t),Dxe(t),Lxe(t)]}function uD(t){return/^\d+(\.\d+)?$/.test(t)}function cD(t){return Number.isNaN?Number.isNaN(t):t!==t}function Wt(t){if(Ut(t))return t=String(t),uD(t)?t+"px":t}var dD;function zxe(){if(!dD){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;dD=parseFloat(e)}return dD}function Pxe(t){return t=t.replace(/rem/g,""),+t*zxe()}function Rxe(t){return t=t.replace(/vw/g,""),+t*window.innerWidth/100}function Fxe(t){return t=t.replace(/vh/g,""),+t*window.innerHeight/100}function fD(t){if(typeof t=="number")return t;if(nb){if(t.indexOf("rem")!==-1)return Pxe(t);if(t.indexOf("vw")!==-1)return Rxe(t);if(t.indexOf("vh")!==-1)return Fxe(t)}return parseFloat(t)}var nb=typeof window<"u",cr=ft.prototype.$isServer;function Jh(){}function Ut(t){return t!=null}function ud(t){return typeof t=="function"}function $s(t){return t!==null&&typeof t=="object"}function ib(t){return $s(t)&&ud(t.then)&&ud(t.catch)}function _P(t,e){var n=e.split("."),i=t;return n.forEach(function(s){var o;i=$s(i)&&(o=i[s])!=null?o:""}),i}function Bxe(t){return t==null||typeof t!="object"?!0:Object.keys(t).length===0}var Uxe=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],Vxe={nativeOn:"on"};function on(t,e){var n=Uxe.reduce(function(i,s){return t.data[s]&&(i[Vxe[s]||s]=t.data[s]),i},{});return e&&(n.on=n.on||{},qe(n.on,t.data.on)),n}function Yt(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach(function(u){u.apply(void 0,i)}):o.apply(void 0,i))}function MP(t,e){var n=new ft({el:document.createElement("div"),props:t.props,render:function(s){return s(t,qe({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var dr={zIndex:2e3,lockCount:0,stack:[],find:function(e){return this.stack.filter(function(n){return n.vm===e})[0]},remove:function(e){var n=this.find(e);if(n){n.vm=null,n.overlay=null;var i=this.stack.indexOf(n);this.stack.splice(i,1)}}},xP=!1;if(!cr)try{var CP={};Object.defineProperty(CP,"passive",{get:function(){xP=!0}}),window.addEventListener("test-passive",null,CP)}catch{}function ts(t,e,n,i){i===void 0&&(i=!1),cr||t.addEventListener(e,n,xP?{capture:!1,passive:i}:!1)}function Wo(t,e,n){cr||t.removeEventListener(e,n)}function SP(t){t.stopPropagation()}function ui(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&SP(t)}var TP=Ae("overlay"),Yxe=TP[0],Hxe=TP[1];function Wxe(t){ui(t,!0)}function DP(t,e,n,i){var s=qe({zIndex:e.zIndex},e.customStyle);return Ut(e.duration)&&(s.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",Pt([{directives:[{name:"show",value:e.show}],style:s,class:[Hxe(),e.className],on:{touchmove:e.lockScroll?Wxe:Jh}},on(i,!0)]),[n.default==null?void 0:n.default()])])}DP.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};const wP=Yxe(DP);function hD(t){var e=t.parentNode;e&&e.removeChild(t)}var Qxe={className:"",customStyle:{}};function Gxe(t){return MP(wP,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function NP(t){var e=dr.find(t);if(e){var n=t.$el,i=e.config,s=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(s.$el,n),qe(s,Qxe,i,{show:!0})}}function Kxe(t,e){var n=dr.find(t);if(n)n.config=e;else{var i=Gxe(t);dr.stack.push({vm:t,config:e,overlay:i})}NP(t)}function kP(t){var e=dr.find(t);e&&(e.overlay.show=!1)}function qxe(t){var e=dr.find(t);e&&(hD(e.overlay.$el),dr.remove(t))}function pD(t){return t===window}var Xxe=/scroll|auto|overlay/i;function pu(t,e){e===void 0&&(e=window);for(var n=t;n&&n.tagName!=="HTML"&&n.tagName!=="BODY"&&n.nodeType===1&&n!==e;){var i=window.getComputedStyle(n),s=i.overflowY;if(Xxe.test(s))return n;n=n.parentNode}return e}function mu(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function rb(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function ep(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function sb(t){rb(window,t),rb(document.body,t)}function mD(t,e){if(pD(t))return 0;var n=e?mu(e):ep();return t.getBoundingClientRect().top+n}function Zxe(t){return pD(t)?t.innerHeight:t.getBoundingClientRect().height}function Jxe(t){return pD(t)?0:t.getBoundingClientRect().top}function e0e(t,e){return t>e?"horizontal":e>t?"vertical":""}var ns={data:function(){return{direction:""}},methods:{touchStart:function(e){this.resetTouchStatus(),this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},touchMove:function(e){var n=e.touches[0];this.deltaX=n.clientX<0?0:n.clientX-this.startX,this.deltaY=n.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY);var i=10;(!this.direction||this.offsetX<i&&this.offsetY<i)&&(this.direction=e0e(this.offsetX,this.offsetY))},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(e){var n=this.onTouchStart,i=this.onTouchMove,s=this.onTouchEnd;ts(e,"touchstart",n),ts(e,"touchmove",i),s&&(ts(e,"touchend",s),ts(e,"touchcancel",s))}}};function t0e(t){return typeof t=="string"?document.querySelector(t):t()}function gD(t){var e=t===void 0?{}:t,n=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var o=this.getContainer,u=n?this.$refs[n]:this.$el,d;o?d=t0e(o):this.$parent&&(d=this.$parent.$el),d&&d!==u.parentNode&&d.appendChild(u),i&&i.call(this)}}}}var n0e=0;function Ls(t){var e="binded_"+n0e++;function n(){this[e]||(t.call(this,ts,!0),this[e]=!0)}function i(){this[e]&&(t.call(this,Wo,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}}var i0e={mixins:[Ls(function(t,e){this.handlePopstate(e&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(e){this.handlePopstate(e)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(e){if(!this.$isServer&&this.bindStatus!==e){this.bindStatus=e;var n=e?ts:Wo;n(window,"popstate",this.onPopstate)}}}},ab={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function ob(t){return t===void 0&&(t={}),{mixins:[ns,i0e,gD({afterPortal:function(){this.overlay&&NP()}})],provide:function(){return{vanPopup:this}},props:ab,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(n){var i=n?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){qxe(this),this.opened&&this.removeLock(),this.getContainer&&hD(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(this.zIndex!==void 0&&(dr.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach(function(n){n()}))},addLock:function(){this.lockScroll&&(ts(document,"touchstart",this.touchStart),ts(document,"touchmove",this.onTouchMove),dr.lockCount||document.body.classList.add("van-overflow-hidden"),dr.lockCount++)},removeLock:function(){this.lockScroll&&dr.lockCount&&(dr.lockCount--,Wo(document,"touchstart",this.touchStart),Wo(document,"touchmove",this.onTouchMove),dr.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(kP(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(n){this.touchMove(n);var i=this.deltaY>0?"10":"01",s=pu(n.target,this.$el),o=s.scrollHeight,u=s.offsetHeight,d=s.scrollTop,f="11";d===0?f=u>=o?"00":"01":d+u>=o&&(f="10"),f!=="11"&&this.direction==="vertical"&&!(parseInt(f,2)&parseInt(i,2))&&ui(n,!0)},renderOverlay:function(){var n=this;this.$isServer||!this.value||this.$nextTick(function(){n.updateZIndex(n.overlay?1:0),n.overlay?Kxe(n,{zIndex:dr.zIndex++,duration:n.duration,className:n.overlayClass,customStyle:n.overlayStyle}):kP(n)})},updateZIndex:function(n){n===void 0&&(n=0),this.$el.style.zIndex=++dr.zIndex+n},onReopen:function(n){this.onReopenCallback.push(n)}}}}var OP=Ae("info"),r0e=OP[0],s0e=OP[1];function EP(t,e,n,i){var s=e.dot,o=e.info,u=Ut(o)&&o!=="";if(!(!s&&!u))return t("div",Pt([{class:s0e({dot:s})},on(i,!0)]),[s?"":e.info])}EP.props={dot:Boolean,info:[Number,String]};const gu=r0e(EP);var IP=Ae("icon"),a0e=IP[0],AP=IP[1];function o0e(t){return t?t.indexOf("/")!==-1:!1}var l0e={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function u0e(t){return t&&l0e[t]||t}function jP(t,e,n,i){var s,o=u0e(e.name),u=o0e(o);return process.env.NODE_ENV==="development"&&e.info&&console.warn('[Vant] Icon: "info" prop is deprecated, use "badge" prop instead.'),t(e.tag,Pt([{class:[e.classPrefix,u?"":e.classPrefix+"-"+o],style:{color:e.color,fontSize:Wt(e.size)}},on(i,!0)]),[n.default&&n.default(),u&&t("img",{class:AP("image"),attrs:{src:o}}),t(gu,{attrs:{dot:e.dot,info:(s=e.badge)!=null?s:e.info}})])}jP.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:AP()}};const It=a0e(jP);var $P=Ae("popup"),c0e=$P[0],LP=$P[1];const _a=c0e({mixins:[ob()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var e=this,n=function(s){return function(o){return e.$emit(s,o)}};this.onClick=n("click"),this.onOpened=n("opened"),this.onClosed=n("closed")},methods:{onClickCloseIcon:function(e){this.$emit("click-close-icon",e),this.close()}},render:function(){var e,n=arguments[0];if(this.shouldRender){var i=this.round,s=this.position,o=this.duration,u=s==="center",d=this.transition||(u?"van-fade":"van-popup-slide-"+s),f={};if(Ut(o)){var p=u?"animationDuration":"transitionDuration";f[p]=o+"s"}return n("transition",{attrs:{appear:this.transitionAppear,name:d},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[n("div",{directives:[{name:"show",value:this.value}],style:f,class:LP((e={round:i},e[s]=s,e["safe-area-inset-bottom"]=this.safeAreaInsetBottom,e)),on:{click:this.onClick}},[this.slots(),this.closeable&&n(It,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:LP("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}});var zP=Ae("loading"),d0e=zP[0],lb=zP[1];function f0e(t,e){if(e.type==="spinner"){for(var n=[],i=0;i<12;i++)n.push(t("i"));return n}return t("svg",{class:lb("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function h0e(t,e,n){if(n.default){var i,s={fontSize:Wt(e.textSize),color:(i=e.textColor)!=null?i:e.color};return t("span",{class:lb("text"),style:s},[n.default()])}}function PP(t,e,n,i){var s=e.color,o=e.size,u=e.type,d={color:s};if(o){var f=Wt(o);d.width=f,d.height=f}return t("div",Pt([{class:lb([u,{vertical:e.vertical}])},on(i,!0)]),[t("span",{class:lb("spinner",u),style:d},[f0e(t,e)]),h0e(t,e,n)])}PP.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};const zs=d0e(PP);var RP=Ae("action-sheet"),p0e=RP[0],Ps=RP[1];function FP(t,e,n,i){var s=e.title,o=e.cancelText,u=e.closeable;function d(){Yt(i,"input",!1),Yt(i,"cancel")}function f(){if(s)return t("div",{class:Ps("header")},[s,u&&t(It,{attrs:{name:e.closeIcon},class:Ps("close"),on:{click:d}})])}function p(M,b){var x=M.disabled,N=M.loading,w=M.callback;function k(S){S.stopPropagation(),!(x||N)&&(w&&w(M),e.closeOnClickAction&&Yt(i,"input",!1),ft.nextTick(function(){Yt(i,"select",M,b)}))}function E(){return N?t(zs,{class:Ps("loading-icon")}):[t("span",{class:Ps("name")},[M.name]),M.subname&&t("div",{class:Ps("subname")},[M.subname])]}return t("button",{attrs:{type:"button"},class:[Ps("item",{disabled:x,loading:N}),M.className],style:{color:M.color},on:{click:k}},[E()])}function v(){if(o)return[t("div",{class:Ps("gap")}),t("button",{attrs:{type:"button"},class:Ps("cancel"),on:{click:d}},[o])]}function y(){var M=(n.description==null?void 0:n.description())||e.description;if(M)return t("div",{class:Ps("description")},[M])}return t(_a,Pt([{class:Ps(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},on(i,!0)]),[f(),y(),t("div",{class:Ps("content")},[e.actions&&e.actions.map(p),n.default==null?void 0:n.default()]),v()])}FP.props=qe({},ab,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});const m0e=p0e(FP);function BP(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var g0e=44,ub={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},UP="#ee0a24",Rs="van-hairline",vD=Rs+"--top",VP=Rs+"--left",tp=Rs+"--bottom",YP=Rs+"--surround",cb=Rs+"--top-bottom",v0e=Rs+"-unset--top-bottom";function np(t){if(!Ut(t))return t;if(Array.isArray(t))return t.map(function(n){return np(n)});if(typeof t=="object"){var e={};return Object.keys(t).forEach(function(n){e[n]=np(t[n])}),e}return t}function Di(t,e,n){return Math.min(Math.max(t,e),n)}function HP(t,e,n){var i=t.indexOf(e),s="";return i===-1?t:e==="-"&&i!==0?t.slice(0,i):(e==="."&&t.match(/^(\.|-\.)/)&&(s=i?"-0":"0"),s+t.slice(0,i+1)+t.slice(i).replace(n,""))}function WP(t,e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),e?t=HP(t,".",/\./g):t=t.split(".")[0],n?t=HP(t,"-",/-/g):t=t.replace(/-/,"");var i=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(i,"")}function QP(t,e){var n=Math.pow(10,10);return Math.round((t+e)*n)/n}var GP=200,yD=300,y0e=15,KP=Ae("picker-column"),b0e=KP[0],bD=KP[1];function qP(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}function _D(t){return $s(t)&&t.disabled}var XP=nb&&"onwheel"in window,MD=null;const _0e=b0e({mixins:[ns],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:np(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el),XP&&ts(this.$el,"wheel",this.onMouseWheel,!1)},destroyed:function(){var e=this.$parent.children;e&&e.splice(e.indexOf(this),1),XP&&Wo(this.$el,"wheel")},watch:{initialOptions:"setOptions",defaultIndex:function(e){this.setIndex(e)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(e){JSON.stringify(e)!==JSON.stringify(this.options)&&(this.options=np(e),this.setIndex(this.defaultIndex))},onTouchStart:function(e){if(!this.readonly){if(this.touchStart(e),this.moving){var n=qP(this.$refs.wrapper);this.offset=Math.min(0,n-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(e){if(!this.readonly){this.touchMove(e),this.direction==="vertical"&&(this.moving=!0,ui(e,!0)),this.offset=Di(this.startOffset+this.deltaY,-(this.count*this.itemHeight),this.itemHeight);var n=Date.now();n-this.touchStartTime>yD&&(this.touchStartTime=n,this.momentumOffset=this.offset)}},onTouchEnd:function(){var e=this;if(!this.readonly){var n=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime,s=i<yD&&Math.abs(n)>y0e;if(s){this.momentum(n,i);return}var o=this.getIndexByOffset(this.offset);this.duration=GP,this.setIndex(o,!0),setTimeout(function(){e.moving=!1},0)}},onMouseWheel:function(e){var n=this;if(!this.readonly){ui(e,!0);var i=qP(this.$refs.wrapper);this.startOffset=Math.min(0,i-this.baseOffset),this.momentumOffset=this.startOffset,this.transitionEndTrigger=null;var s=e.deltaY;if(!(this.startOffset===0&&s<0)){var o=this.itemHeight*(s>0?-1:1);this.offset=Di(this.startOffset+o,-(this.count*this.itemHeight),this.itemHeight),MD&&clearTimeout(MD),MD=setTimeout(function(){n.onTouchEnd(),n.touchStartTime=0},yD)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(e){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=GP,this.setIndex(e,!0))},adjustIndex:function(e){e=Di(e,0,this.count);for(var n=e;n<this.count;n++)if(!_D(this.options[n]))return n;for(var i=e-1;i>=0;i--)if(!_D(this.options[i]))return i},getOptionText:function(e){return $s(e)&&this.valueKey in e?e[this.valueKey]:e},setIndex:function(e,n){var i=this;e=this.adjustIndex(e)||0;var s=-e*this.itemHeight,o=function(){e!==i.currentIndex&&(i.currentIndex=e,n&&i.$emit("change",e))};this.moving&&s!==this.offset?this.transitionEndTrigger=o:o(),this.offset=s},setValue:function(e){for(var n=this.options,i=0;i<n.length;i++)if(this.getOptionText(n[i])===e)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(e){return Di(Math.round(-e/this.itemHeight),0,this.count-1)},momentum:function(e,n){var i=Math.abs(e/n);e=this.offset+i/.003*(e<0?-1:1);var s=this.getIndexByOffset(e);this.duration=+this.swipeDuration,this.setIndex(s,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var e=this,n=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map(function(s,o){var u,d=e.getOptionText(s),f=_D(s),p={style:i,attrs:{role:"button",tabindex:f?-1:0},class:[bD("item",{disabled:f,selected:o===e.currentIndex})],on:{click:function(){e.onClickItem(o)}}},v={class:"van-ellipsis",domProps:(u={},u[e.allowHtml?"innerHTML":"textContent"]=d,u)};return n("li",Pt([{},p]),[e.slots("option",s)||n("div",Pt([{},v]))])})}},render:function(){var e=arguments[0],n={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return e("div",{class:[bD(),this.className]},[e("ul",{ref:"wrapper",style:n,class:bD("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}});var xD=Ae("picker"),M0e=xD[0],Wa=xD[1],ZP=xD[2];const CD=M0e({props:qe({},ub,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?fD(this.itemHeight):g0e},dataType:function(){var e=this.columns,n=e[0]||{};return n.children?"cascade":n.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var e=this.columns,n=this.dataType;n==="text"?this.formattedColumns=[{values:e}]:n==="cascade"?this.formatCascade():this.formattedColumns=e},formatCascade:function(){for(var e=[],n={children:this.columns};n&&n.children;){for(var i,s=n,o=s.children,u=(i=n.defaultIndex)!=null?i:+this.defaultIndex;o[u]&&o[u].disabled;)if(u<o.length-1)u++;else{u=0;break}e.push({values:n.children,className:n.className,defaultIndex:u}),n=o[u]}this.formattedColumns=e},emit:function(e){var n=this;if(this.dataType==="text")this.$emit(e,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();this.dataType==="cascade"&&(i=i.map(function(s){return s[n.valueKey]})),this.$emit(e,i,this.getIndexes())}},onCascadeChange:function(e){for(var n={children:this.columns},i=this.getIndexes(),s=0;s<=e;s++)n=n.children[i[s]];for(;n&&n.children;)e++,this.setColumnValues(e,n.children),n=n.children[n.defaultIndex||0]},onChange:function(e){var n=this;if(this.dataType==="cascade"&&this.onCascadeChange(e),this.dataType==="text")this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();this.dataType==="cascade"&&(i=i.map(function(s){return s[n.valueKey]})),this.$emit("change",this,i,e)}},getColumn:function(e){return this.children[e]},getColumnValue:function(e){var n=this.getColumn(e);return n&&n.getValue()},setColumnValue:function(e,n){var i=this.getColumn(e);i&&(i.setValue(n),this.dataType==="cascade"&&this.onCascadeChange(e))},getColumnIndex:function(e){return(this.getColumn(e)||{}).currentIndex},setColumnIndex:function(e,n){var i=this.getColumn(e);i&&(i.setIndex(n),this.dataType==="cascade"&&this.onCascadeChange(e))},getColumnValues:function(e){return(this.children[e]||{}).options},setColumnValues:function(e,n){var i=this.children[e];i&&i.setOptions(n)},getValues:function(){return this.children.map(function(e){return e.getValue()})},setValues:function(e){var n=this;e.forEach(function(i,s){n.setColumnValue(s,i)})},getIndexes:function(){return this.children.map(function(e){return e.currentIndex})},setIndexes:function(e){var n=this;e.forEach(function(i,s){n.setColumnIndex(s,i)})},confirm:function(){this.children.forEach(function(e){return e.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var e=this.$createElement,n=this.slots("title");if(n)return n;if(this.title)return e("div",{class:["van-ellipsis",Wa("title")]},[this.title])},genCancel:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:Wa("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||ZP("cancel")])},genConfirm:function(){var e=this.$createElement;return e("button",{attrs:{type:"button"},class:Wa("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||ZP("confirm")])},genToolbar:function(){var e=this.$createElement;if(this.showToolbar)return e("div",{class:Wa("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var e=this.$createElement,n=this.itemPxHeight,i=n*this.visibleItemCount,s={height:n+"px"},o={height:i+"px"},u={backgroundSize:"100% "+(i-n)/2+"px"};return e("div",{class:Wa("columns"),style:o,on:{touchmove:ui}},[this.genColumnItems(),e("div",{class:Wa("mask"),style:u}),e("div",{class:[v0e,Wa("frame")],style:s})])},genColumnItems:function(){var e=this,n=this.$createElement;return this.formattedColumns.map(function(i,s){var o;return n(_0e,{attrs:{readonly:e.readonly,valueKey:e.valueKey,allowHtml:e.allowHtml,className:i.className,itemHeight:e.itemPxHeight,defaultIndex:(o=i.defaultIndex)!=null?o:+e.defaultIndex,swipeDuration:e.swipeDuration,visibleItemCount:e.visibleItemCount,initialOptions:i.values},scopedSlots:{option:e.$scopedSlots.option},on:{change:function(){e.onChange(s)}}})})}},render:function(e){return e("div",{class:Wa()},[this.toolbarPosition==="top"?this.genToolbar():e(),this.loading?e(zs,{class:Wa("loading")}):e(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),this.toolbarPosition==="bottom"?this.genToolbar():e()])}});var JP=Ae("area"),x0e=JP[0],C0e=JP[1],SD="000000";function S0e(t){return t[0]==="9"}function T0e(t,e){var n=t.$slots,i=t.$scopedSlots,s={};return e.forEach(function(o){i[o]?s[o]=i[o]:n[o]&&(s[o]=function(){return n[o]})}),s}const e3=x0e({props:qe({},ub,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:S0e},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(e){this.code=e,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var e=this;this.$nextTick(function(){e.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(e,n){var i=[];if(e!=="province"&&!n)return i;var s=this[e];if(i=Object.keys(s).map(function(u){return{code:u,name:s[u]}}),n&&(this.isOverseaCode(n)&&e==="city"&&(n="9"),i=i.filter(function(u){return u.code.indexOf(n)===0})),this.placeholderMap[e]&&i.length){var o="";e==="city"?o=SD.slice(2,4):e==="county"&&(o=SD.slice(4,6)),i.unshift({code:""+n+o,name:this.placeholderMap[e]})}return i},getIndex:function(e,n){var i=e==="province"?2:e==="city"?4:6,s=this.getList(e,n.slice(0,i-2));this.isOverseaCode(n)&&e==="province"&&(i=1),n=n.slice(0,i);for(var o=0;o<s.length;o++)if(s[o].code.slice(0,i)===n)return o;return 0},parseOutputValues:function(e){var n=this;return e.map(function(i,s){return i&&(i=JSON.parse(JSON.stringify(i)),(!i.code||i.name===n.columnsPlaceholder[s])&&(i.code="",i.name=""),i)})},onChange:function(e,n,i){this.code=n[i].code,this.setValues();var s=this.parseOutputValues(e.getValues());this.$emit("change",e,s,i)},onConfirm:function(e,n){e=this.parseOutputValues(e),this.setValues(),this.$emit("confirm",e,n)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return SD;var e=Object.keys(this.county);if(e[0])return e[0];var n=Object.keys(this.city);return n[0]?n[0]:""},setValues:function(){var e=this.code;e||(e=this.getDefaultCode());var n=this.$refs.picker,i=this.getList("province"),s=this.getList("city",e.slice(0,2));n&&(n.setColumnValues(0,i),n.setColumnValues(1,s),s.length&&e.slice(2,4)==="00"&&!this.isOverseaCode(e)&&(e=s[0].code),n.setColumnValues(2,this.getList("county",e.slice(0,4))),n.setIndexes([this.getIndex("province",e),this.getIndex("city",e),this.getIndex("county",e)]))},getValues:function(){var e=this.$refs.picker,n=e?e.getValues().filter(function(i){return!!i}):[];return n=this.parseOutputValues(n),n},getArea:function(){var e=this.getValues(),n={code:"",country:"",province:"",city:"",county:""};if(!e.length)return n;var i=e.map(function(o){return o.name}),s=e.filter(function(o){return!!o.code});return n.code=s.length?s[s.length-1].code:"",this.isOverseaCode(n.code)?(n.country=i[1]||"",n.province=i[2]||""):(n.province=i[0]||"",n.city=i[1]||"",n.county=i[2]||""),n},reset:function(e){this.code=e||"",this.setValues()}},render:function(){var e=arguments[0],n=qe({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return e(CD,{ref:"picker",class:C0e(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:T0e(this,["title","columns-top","columns-bottom"]),on:qe({},n)})}});function D0e(t){return t.name==="NavigationDuplicated"||t.message&&t.message.indexOf("redundant navigation")!==-1}function vu(t,e){var n=e.to,i=e.url,s=e.replace;if(n&&t){var o=t[s?"replace":"push"](n);o&&o.catch&&o.catch(function(u){if(u&&!D0e(u))throw u})}else i&&(s?location.replace(i):location.href=i)}function t3(t){vu(t.parent&&t.parent.$router,t.props)}var Qo={url:String,replace:Boolean,to:[String,Object]},TD={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}},n3=Ae("cell"),w0e=n3[0],cd=n3[1];function i3(t,e,n,i){var s,o=e.icon,u=e.size,d=e.title,f=e.label,p=e.value,v=e.isLink,y=n.title||Ut(d);function M(){var T=n.label||Ut(f);if(T)return t("div",{class:[cd("label"),e.labelClass]},[n.label?n.label():f])}function b(){if(y)return t("div",{class:[cd("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[d]),M()])}function x(){var T=n.default||Ut(p);if(T)return t("div",{class:[cd("value",{alone:!y}),e.valueClass]},[n.default?n.default():t("span",[p])])}function N(){if(n.icon)return n.icon();if(o)return t(It,{class:cd("left-icon"),attrs:{name:o,classPrefix:e.iconPrefix}})}function w(){var T=n["right-icon"];if(T)return T();if(v){var O=e.arrowDirection;return t(It,{class:cd("right-icon"),attrs:{name:O?"arrow-"+O:"arrow"}})}}function k(T){Yt(i,"click",T),t3(i)}var E=(s=e.clickable)!=null?s:v,S={clickable:E,center:e.center,required:e.required,borderless:!e.border};return u&&(S[u]=u),t("div",Pt([{class:cd(S),attrs:{role:E?"button":null,tabindex:E?0:null},on:{click:k}},on(i)]),[N(),b(),x(),w(),n.extra==null?void 0:n.extra()])}i3.props=qe({},TD,Qo);const Vi=w0e(i3);function N0e(){return cr?!1:/android/.test(navigator.userAgent.toLowerCase())}function k0e(){return cr?!1:/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var O0e=k0e();function r3(){O0e&&sb(ep())}var s3=Ae("field"),E0e=s3[0],Or=s3[1];const is=E0e({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:qe({},TD,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var e=this.getProp("readonly");if(this.clearable&&!e){var n=Ut(this.value)&&this.value!=="",i=this.clearTrigger==="always"||this.clearTrigger==="focus"&&this.focused;return n&&i}},showError:function(){if(this.error!==null)return this.error;if(this.vanForm&&this.vanForm.showError&&this.validateFailed)return!0},listeners:function(){return qe({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var e=this.getProp("labelWidth");if(e)return{width:Wt(e)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(e,n){return new Promise(function(i){var s=n.validator(e,n);if(ib(s))return s.then(i);i(s)})},isEmptyValue:function(e){return Array.isArray(e)?!e.length:e===0?!1:!e},runSyncRule:function(e,n){return!(n.required&&this.isEmptyValue(e)||n.pattern&&!n.pattern.test(e))},getRuleMessage:function(e,n){var i=n.message;return ud(i)?i(e,n):i},runRules:function(e){var n=this;return e.reduce(function(i,s){return i.then(function(){if(!n.validateFailed){var o=n.formValue;if(s.formatter&&(o=s.formatter(o,s)),!n.runSyncRule(o,s)){n.validateFailed=!0,n.validateMessage=n.getRuleMessage(o,s);return}if(s.validator)return n.runValidator(o,s).then(function(u){u===!1&&(n.validateFailed=!0,n.validateMessage=n.getRuleMessage(o,s))})}})},Promise.resolve())},validate:function(e){var n=this;return e===void 0&&(e=this.rules),new Promise(function(i){e||i(),n.resetValidation(),n.runRules(e).then(function(){n.validateFailed?i({name:n.name,message:n.validateMessage}):i()})})},validateWithTrigger:function(e){if(this.vanForm&&this.rules){var n=this.vanForm.validateTrigger===e,i=this.rules.filter(function(s){return s.trigger?s.trigger===e:n});i.length&&this.validate(i)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(e,n){n===void 0&&(n="onChange"),e=Ut(e)?String(e):"";var i=this.maxlength;if(Ut(i)&&e.length>i&&(this.value&&this.value.length===+i?e=this.value:e=e.slice(0,i)),this.type==="number"||this.type==="digit"){var s=this.type==="number";e=WP(e,s,s)}this.formatter&&n===this.formatTrigger&&(e=this.formatter(e));var o=this.$refs.input;o&&e!==o.value&&(o.value=e),e!==this.value&&this.$emit("input",e)},onInput:function(e){e.target.composing||this.updateValue(e.target.value)},onFocus:function(e){this.focused=!0,this.$emit("focus",e),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(e){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",e),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),r3())},onClick:function(e){this.$emit("click",e)},onClickInput:function(e){this.$emit("click-input",e)},onClickLeftIcon:function(e){this.$emit("click-left-icon",e)},onClickRightIcon:function(e){this.$emit("click-right-icon",e)},onClear:function(e){ui(e),this.$emit("input",""),this.$emit("clear",e)},onKeypress:function(e){var n=13;if(e.keyCode===n){var i=this.getProp("submitOnEnter");!i&&this.type!=="textarea"&&ui(e),this.type==="search"&&this.blur()}this.$emit("keypress",e)},adjustSize:function(){var e=this.$refs.input;if(!(!(this.type==="textarea"&&this.autosize)||!e)){var n=ep();e.style.height="auto";var i=e.scrollHeight;if($s(this.autosize)){var s=this.autosize,o=s.maxHeight,u=s.minHeight;o&&(i=Math.min(i,o)),u&&(i=Math.max(i,u))}i&&(e.style.height=i+"px",sb(n))}},genInput:function(){var e=this.$createElement,n=this.type,i=this.getProp("disabled"),s=this.getProp("readonly"),o=this.slots("input"),u=this.getProp("inputAlign");if(o)return e("div",{class:Or("control",[u,"custom"]),on:{click:this.onClickInput}},[o]);var d={ref:"input",class:Or("control",u),domProps:{value:this.value},attrs:qe({},this.$attrs,{name:this.name,disabled:i,readonly:s,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if(n==="textarea")return e("textarea",Pt([{},d]));var f=n,p;return n==="number"&&(f="text",p="decimal"),n==="digit"&&(f="tel",p="numeric"),e("input",Pt([{attrs:{type:f,inputmode:p}},d]))},genLeftIcon:function(){var e=this.$createElement,n=this.slots("left-icon")||this.leftIcon;if(n)return e("div",{class:Or("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(It,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var e=this.$createElement,n=this.slots,i=n("right-icon")||this.rightIcon;if(i)return e("div",{class:Or("right-icon"),on:{click:this.onClickRightIcon}},[n("right-icon")||e(It,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var e=this.$createElement;if(this.showWordLimit&&this.maxlength){var n=(this.value||"").length;return e("div",{class:Or("word-limit")},[e("span",{class:Or("word-num")},[n]),"/",this.maxlength])}},genMessage:function(){var e=this.$createElement;if(!(this.vanForm&&this.vanForm.showErrorMessage===!1)){var n=this.errorMessage||this.validateMessage;if(n){var i=this.getProp("errorMessageAlign");return e("div",{class:Or("error-message",i)},[n])}}},getProp:function(e){if(Ut(this[e]))return this[e];if(this.vanForm&&Ut(this.vanForm[e]))return this.vanForm[e]},genLabel:function(){var e=this.$createElement,n=this.getProp("colon")?":":"";if(this.slots("label"))return[this.slots("label"),n];if(this.label)return e("span",[this.label+n])}},render:function(){var e,n=arguments[0],i=this.slots,s=this.getProp("disabled"),o=this.getProp("labelAlign"),u={icon:this.genLeftIcon},d=this.genLabel();d&&(u.title=function(){return d});var f=this.slots("extra");return f&&(u.extra=function(){return f}),n(Vi,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:Or("value"),titleClass:[Or("label",o),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:u,class:Or((e={error:this.showError,disabled:s},e["label-"+o]=o,e["min-height"]=this.type==="textarea"&&!this.autosize,e)),on:{click:this.onClick}},[n("div",{class:Or("body")},[this.genInput(),this.showClear&&n(It,{attrs:{name:"clear"},class:Or("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),i("button")&&n("div",{class:Or("button")},[i("button")])]),this.genWordLimit(),this.genMessage()])}});var db=0;function I0e(t){t?(db||document.body.classList.add("van-toast--unclickable"),db++):(db--,db||document.body.classList.remove("van-toast--unclickable"))}var a3=Ae("toast"),A0e=a3[0],ip=a3[1];const o3=A0e({mixins:[ob()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var e=this.value&&this.forbidClick;this.clickable!==e&&(this.clickable=e,I0e(e))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var e=this.$createElement,n=this.icon,i=this.type,s=this.iconPrefix,o=this.loadingType,u=n||i==="success"||i==="fail";if(u)return e(It,{class:ip("icon"),attrs:{classPrefix:s,name:n||i}});if(i==="loading")return e(zs,{class:ip("loading"),attrs:{type:o}})},genMessage:function(){var e=this.$createElement,n=this.type,i=this.message;if(!(!Ut(i)||i===""))return n==="html"?e("div",{class:ip("text"),domProps:{innerHTML:i}}):e("div",{class:ip("text")},[i])}},render:function(){var e,n=arguments[0];return n("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[n("div",{directives:[{name:"show",value:this.value}],class:[ip([this.position,(e={},e[this.type]=!this.icon,e)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}});var l3={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},fb={},Er=[],hb=!1,pb=qe({},l3);function u3(t){return $s(t)?t:{message:t}}function j0e(t){return document.body.contains(t)}function $0e(){if(cr)return{};if(Er=Er.filter(function(e){return!e.$el.parentNode||j0e(e.$el)}),!Er.length||hb){var t=new(ft.extend(o3))({el:document.createElement("div")});t.$on("input",function(e){t.value=e}),Er.push(t)}return Er[Er.length-1]}function L0e(t){return qe({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}function ti(t){t===void 0&&(t={});var e=$0e();return e.value&&e.updateZIndex(),t=u3(t),t=qe({},pb,fb[t.type||pb.type],t),process.env.NODE_ENV==="development"&&t.mask&&console.warn('[Vant] Toast: "mask" option is deprecated, use "overlay" option instead.'),t.clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),hb&&!cr&&e.$on("closed",function(){clearTimeout(e.timer),Er=Er.filter(function(n){return n!==e}),hD(e.$el),e.$destroy()})},qe(e,L0e(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}var z0e=function(e){return function(n){return ti(qe({type:e},u3(n)))}};["loading","success","fail"].forEach(function(t){ti[t]=z0e(t)}),ti.clear=function(t){Er.length&&(t?(Er.forEach(function(e){e.clear()}),Er=[]):hb?Er.shift().clear():Er[0].clear())},ti.setDefaultOptions=function(t,e){typeof t=="string"?fb[t]=e:qe(pb,t)},ti.resetDefaultOptions=function(t){typeof t=="string"?fb[t]=null:(pb=qe({},l3),fb={})},ti.allowMultiple=function(t){t===void 0&&(t=!0),hb=t},ti.install=function(){ft.use(o3)},ft.prototype.$toast=ti;var c3=Ae("button"),P0e=c3[0],dd=c3[1];function d3(t,e,n,i){var s,o=e.tag,u=e.icon,d=e.type,f=e.color,p=e.plain,v=e.disabled,y=e.loading,M=e.hairline,b=e.loadingText,x=e.iconPosition,N={};f&&(N.color=p?f:"white",p||(N.background=f),f.indexOf("gradient")!==-1?N.border=0:N.borderColor=f);function w(O){e.loading&&O.preventDefault(),!y&&!v&&(Yt(i,"click",O),t3(i))}function k(O){Yt(i,"touchstart",O)}var E=[dd([d,e.size,{plain:p,loading:y,disabled:v,hairline:M,block:e.block,round:e.round,square:e.square}]),(s={},s[YP]=M,s)];function S(){if(y)return n.loading?n.loading():t(zs,{class:dd("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}});if(n.icon)return t("div",{class:dd("icon")},[n.icon()]);if(u)return t(It,{attrs:{name:u,classPrefix:e.iconPrefix},class:dd("icon")})}function T(){var O=[];x==="left"&&O.push(S());var j;return y?j=b:j=n.default?n.default():e.text,j&&O.push(t("span",{class:dd("text")},[j])),x==="right"&&O.push(S()),O}return t(o,Pt([{style:N,class:E,attrs:{type:e.nativeType,disabled:v},on:{click:w,touchstart:k}},on(i)]),[t("div",{class:dd("content")},[T()])])}d3.props=qe({},Qo,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});const wi=P0e(d3);function R0e(t){var e=[];function n(i){i.forEach(function(s){e.push(s),s.componentInstance&&n(s.componentInstance.$children.map(function(o){return o.$vnode})),s.children&&n(s.children)})}return n(t),e}function f3(t,e){var n=e.$vnode.componentOptions;if(!(!n||!n.children)){var i=R0e(n.children);t.sort(function(s,o){return i.indexOf(s.$vnode)-i.indexOf(o.$vnode)})}}function fr(t,e){var n,i;e===void 0&&(e={});var s=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[s]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(u){u||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var u=this;this.parent&&(this.parent.children=this.parent.children.filter(function(d){return d!==u}))},methods:{bindRelation:function(){if(!(!this.parent||this.parent.children.indexOf(this)!==-1)){var u=[].concat(this.parent.children,[this]);f3(u,this.parent),this.parent.children=u}}}}}function hr(t){return{provide:function(){var n;return n={},n[t]=this,n},data:function(){return{children:[]}}}}var h3=Ae("goods-action"),F0e=h3[0],B0e=h3[1];const p3=F0e({mixins:[hr("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var e=arguments[0];return e("div",{class:B0e({unfit:!this.safeAreaInsetBottom})},[this.slots()])}});var m3=Ae("goods-action-button"),U0e=m3[0],V0e=m3[1];const DD=U0e({mixins:[fr("vanGoodsAction")],props:qe({},Qo,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var e=this.parent&&this.parent.children[this.index-1];return!e||e.$options.name!==this.$options.name},isLast:function(){var e=this.parent&&this.parent.children[this.index+1];return!e||e.$options.name!==this.$options.name}},methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)}},render:function(){var e=arguments[0];return e(wi,{class:V0e([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}});var wD=Ae("dialog"),Y0e=wD[0],Fs=wD[1],mb=wD[2];const ND=Y0e({mixins:[ob()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(e){var n=this;this.$emit(e),this.value&&(this.beforeClose?(this.loading[e]=!0,this.beforeClose(e,function(i){i!==!1&&n.loading[e]&&n.onClose(e),n.loading.confirm=!1,n.loading.cancel=!1})):this.onClose(e))},onClose:function(e){this.close(),this.callback&&this.callback(e)},onOpened:function(){var e=this;this.$emit("opened"),this.$nextTick(function(){var n;(n=e.$refs.dialog)==null||n.focus()})},onClosed:function(){this.$emit("closed")},onKeydown:function(e){var n=this;if(e.key==="Escape"||e.key==="Enter"){if(e.target!==this.$refs.dialog)return;var i={Enter:this.showConfirmButton?function(){return n.handleAction("confirm")}:Jh,Escape:this.showCancelButton?function(){return n.handleAction("cancel")}:Jh};i[e.key](),this.$emit("keydown",e)}},genRoundButtons:function(){var e=this,n=this.$createElement;return n(p3,{class:Fs("footer")},[this.showCancelButton&&n(DD,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||mb("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Fs("cancel"),on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(DD,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||mb("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Fs("confirm"),on:{click:function(){e.handleAction("confirm")}}})])},genButtons:function(){var e=this,n,i=this.$createElement,s=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[vD,Fs("footer")]},[this.showCancelButton&&i(wi,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||mb("cancel"),nativeType:"button"},class:Fs("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(wi,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||mb("confirm"),nativeType:"button"},class:[Fs("confirm"),(n={},n[VP]=s,n)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(e,n){var i=this.$createElement;if(n)return i("div",{class:Fs("content")},[n]);var s=this.message,o=this.messageAlign;if(s){var u,d,f={class:Fs("message",(u={"has-title":e},u[o]=o,u)),domProps:(d={},d[this.allowHtml?"innerHTML":"textContent"]=s,d)};return i("div",{class:Fs("content",{isolated:!e})},[i("div",Pt([{},f]))])}}},render:function(){var e=arguments[0];if(this.shouldRender){var n=this.message,i=this.slots(),s=this.slots("title")||this.title,o=s&&e("div",{class:Fs("header",{isolated:!n&&!i})},[s]);return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n,tabIndex:0},class:[Fs([this.theme]),this.className],style:{width:Wt(this.width)},ref:"dialog",on:{keydown:this.onKeydown}},[o,this.genContent(s,i),this.theme==="round-button"?this.genRoundButtons():this.genButtons()])])}}});var Bs;function H0e(t){return document.body.contains(t)}function W0e(){Bs&&Bs.$destroy(),Bs=new(ft.extend(ND))({el:document.createElement("div"),propsData:{lazyRender:!1}}),Bs.$on("input",function(t){Bs.value=t})}function Bn(t){return cr?Promise.resolve():new Promise(function(e,n){(!Bs||!H0e(Bs.$el))&&W0e(),qe(Bs,Bn.currentOptions,t,{resolve:e,reject:n})})}Bn.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(e){Bs[e==="confirm"?"resolve":"reject"](e)}},Bn.alert=Bn,Bn.confirm=function(t){return Bn(qe({showCancelButton:!0},t))},Bn.close=function(){Bs&&(Bs.value=!1)},Bn.setDefaultOptions=function(t){qe(Bn.currentOptions,t)},Bn.resetDefaultOptions=function(){Bn.currentOptions=qe({},Bn.defaultOptions)},Bn.resetDefaultOptions(),Bn.install=function(){ft.use(ND)},Bn.Component=ND,ft.prototype.$dialog=Bn;var kD=Ae("address-edit-detail"),Q0e=kD[0],gb=kD[1],OD=kD[2],g3=N0e();const G0e=Q0e({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(e){this.$emit("select-search",e),this.$emit("input",((e.address||"")+" "+(e.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var e=this.$createElement,n=this.value&&this.focused&&g3;if(n)return e("div",{class:gb("finish"),on:{click:this.onFinish}},[OD("complete")])},genSearchResult:function(){var e=this,n=this.$createElement,i=this.value,s=this.shouldShowSearchResult,o=this.searchResult;if(s)return o.map(function(u){return n(Vi,{key:u.name+u.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:u.address},class:gb("search-item"),on:{click:function(){e.onSelect(u)}},scopedSlots:{title:function(){if(u.name){var f=u.name.replace(i,"<span class="+gb("keyword")+">"+i+"</span>");return n("div",{domProps:{innerHTML:f}})}}}})})}},render:function(){var e=arguments[0];return e(Vi,{class:gb()},[e(is,{attrs:{autosize:!0,rows:this.detailRows,clearable:!g3,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:OD("label"),maxlength:this.detailMaxlength,placeholder:OD("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:qe({},this.$listeners)}),this.genSearchResult()])}});var v3={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},Go={inject:{vanField:{default:null}},watch:{value:function(){var e=this.vanField;e&&(e.resetValidation(),e.validateWithTrigger("onChange"))}},created:function(){var e=this.vanField;e&&!e.children&&(e.children=this)}},y3=Ae("switch"),K0e=y3[0],ED=y3[1];const vb=K0e({mixins:[Go],props:v3,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Wt(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(e){if(this.$emit("click",e),!this.disabled&&!this.loading){var n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n)}},genLoading:function(){var e=this.$createElement;if(this.loading){var n=this.checked?this.activeColor:this.inactiveColor;return e(zs,{class:ED("loading"),attrs:{color:n}})}}},render:function(){var e=arguments[0],n=this.checked,i=this.loading,s=this.disabled;return e("div",{class:ED({on:n,loading:i,disabled:s}),attrs:{role:"switch","aria-checked":String(n)},style:this.style,on:{click:this.onClick}},[e("div",{class:ED("node")},[this.genLoading()])])}});var ID=Ae("address-edit"),q0e=ID[0],yb=ID[1],ni=ID[2],b3={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};function X0e(t){return/^\d{6}$/.test(t)}const Z0e=q0e({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return qe({},b3)}},telValidator:{type:Function,default:BP},postalValidator:{type:Function,default:X0e},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return $s(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var e=this.data,n=e.country,i=e.province,s=e.city,o=e.county,u=e.areaCode;if(u){var d=[n,i,s,o];return i&&i===s&&d.splice(1,1),d.filter(function(f){return f}).join("/")}return""},hideBottomFields:function(){var e=this.searchResult;return e&&e.length&&this.detailFocused}},watch:{addressInfo:{handler:function(e){this.data=qe({},b3,e),this.setAreaCode(e.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(e){this.errorInfo[e]="",this.detailFocused=e==="addressDetail",this.$emit("focus",e)},onChangeDetail:function(e){this.data.addressDetail=e,this.$emit("change-detail",e)},onAreaConfirm:function(e){if(e=e.filter(function(n){return!!n}),e.some(function(n){return!n.code})){ti(ni("areaEmpty"));return}this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",e)},assignAreaValues:function(){var e=this.$refs.area;if(e){var n=e.getArea();n.areaCode=n.code,delete n.code,qe(this.data,n)}},onSave:function(){var e=this,n=["name","tel"];this.showArea&&n.push("areaCode"),this.showDetail&&n.push("addressDetail"),this.showPostal&&n.push("postalCode");var i=n.every(function(s){var o=e.getErrorMessage(s);return o&&(e.errorInfo[s]=o),!o});i&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(e){var n=String(this.data[e]||"").trim();if(this.validator){var i=this.validator(e,n);if(i)return i}switch(e){case"name":return n?"":ni("nameEmpty");case"tel":return this.telValidator(n)?"":ni("telInvalid");case"areaCode":return n?"":ni("areaEmpty");case"addressDetail":return n?"":ni("addressEmpty");case"postalCode":return n&&!this.postalValidator(n)?ni("postalEmpty"):""}},onDelete:function(){var e=this;Bn.confirm({title:ni("confirmDelete")}).then(function(){e.$emit("delete",e.data)}).catch(function(){e.$emit("cancel-delete",e.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(e){this.data.areaCode=e||"",e&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(e){this.data.addressDetail=e},onDetailBlur:function(){var e=this;setTimeout(function(){e.detailFocused=!1})},genSetDefaultCell:function(e){var n=this;if(this.showSetDefault){var i={"right-icon":function(){return e(vb,{attrs:{size:"24"},on:{change:function(u){n.$emit("change-default",u)}},model:{value:n.data.isDefault,callback:function(u){n.$set(n.data,"isDefault",u)}}})}};return e(Vi,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:ni("defaultAddress")},class:yb("default"),scopedSlots:i})}return e()}},render:function(e){var n=this,i=this.data,s=this.errorInfo,o=this.disableArea,u=this.hideBottomFields,d=function(p){return function(){return n.onFocus(p)}};return e("div",{class:yb()},[e("div",{class:yb("fields")},[e(is,{attrs:{clearable:!0,label:ni("name"),placeholder:ni("namePlaceholder"),errorMessage:s.name},on:{focus:d("name")},model:{value:i.name,callback:function(p){n.$set(i,"name",p)}}}),e(is,{attrs:{clearable:!0,type:"tel",label:ni("tel"),maxlength:this.telMaxlength,placeholder:ni("telPlaceholder"),errorMessage:s.tel},on:{focus:d("tel")},model:{value:i.tel,callback:function(p){n.$set(i,"tel",p)}}}),e(is,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!o,label:ni("area"),placeholder:this.areaPlaceholder||ni("areaPlaceholder"),errorMessage:s.areaCode,rightIcon:o?null:"arrow",value:this.areaText},on:{focus:d("areaCode"),click:function(){n.$emit("click-area"),n.showAreaPopup=!o}}}),e(G0e,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:i.addressDetail,errorMessage:s.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:d("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(p){n.$emit("select-search",p)}}}),this.showPostal&&e(is,{directives:[{name:"show",value:!u}],attrs:{type:"tel",maxlength:"6",label:ni("postal"),placeholder:ni("postal"),errorMessage:s.postalCode},on:{focus:d("postalCode")},model:{value:i.postalCode,callback:function(p){n.$set(i,"postalCode",p)}}}),this.slots()]),this.genSetDefaultCell(e),e("div",{directives:[{name:"show",value:!u}],class:yb("buttons")},[e(wi,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||ni("save")},on:{click:this.onSave}}),this.showDelete&&e(wi,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||ni("delete")},on:{click:this.onDelete}})]),e(_a,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:n.showAreaPopup,callback:function(p){n.showAreaPopup=p}}},[e(e3,{ref:"area",attrs:{value:i.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){n.showAreaPopup=!1}}})])])}});var _3=Ae("radio-group"),J0e=_3[0],eCe=_3[1];const AD=J0e({mixins:[hr("vanRadio"),Go],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(e){this.$emit("change",e)}},render:function(){var e=arguments[0];return e("div",{class:eCe([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}});var M3=Ae("tag"),tCe=M3[0],x3=M3[1];function C3(t,e,n,i){var s,o=e.type,u=e.mark,d=e.plain,f=e.color,p=e.round,v=e.size,y=e.textColor,M=d?"color":"backgroundColor",b=(s={},s[M]=f,s);d?(b.color=y||f,b.borderColor=f):(b.color=y,b.background=f);var x={mark:u,plain:d,round:p};v&&(x[v]=v);var N=e.closeable&&t(It,{attrs:{name:"cross"},class:x3("close"),on:{click:function(k){k.stopPropagation(),Yt(i,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",Pt([{key:"content",style:b,class:x3([x,o])},on(i,!0)]),[n.default==null?void 0:n.default(),N])])}C3.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};const bb=tCe(C3);var S3=function(e){var n=e.parent,i=e.bem,s=e.role;return{mixins:[fr(n),Go],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var u=this.checkedColor||this.parent&&this.parent.checkedColor;if(u&&this.checked&&!this.isDisabled)return{borderColor:u,backgroundColor:u}},tabindex:function(){return this.isDisabled||s==="radio"&&!this.checked?-1:0}},methods:{onClick:function(u){var d=this,f=u.target,p=this.$refs.icon,v=p===f||(p==null?void 0:p.contains(f));!this.isDisabled&&(v||!this.labelDisabled)?(this.toggle(),setTimeout(function(){d.$emit("click",u)})):this.$emit("click",u)},genIcon:function(){var u=this.$createElement,d=this.checked,f=this.iconSize||this.parent&&this.parent.iconSize;return u("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:d}]),style:{fontSize:Wt(f)}},[this.slots("icon",{checked:d})||u(It,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var u=this.$createElement,d=this.slots();if(d)return u("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[d])}},render:function(){var u=arguments[0],d=[this.genIcon()];return this.labelPosition==="left"?d.unshift(this.genLabel()):d.push(this.genLabel()),u("div",{attrs:{role:s,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[d])}}},T3=Ae("radio"),nCe=T3[0],iCe=T3[1];const jD=nCe({mixins:[S3({bem:iCe,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(e){(this.parent||this).$emit("input",e)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}});var D3=Ae("address-item"),rCe=D3[0],fd=D3[1];function w3(t,e,n,i){var s=e.disabled,o=e.switchable;function u(){o&&Yt(i,"select"),Yt(i,"click")}var d=function(){return t(It,{attrs:{name:"edit"},class:fd("edit"),on:{click:function(M){M.stopPropagation(),Yt(i,"edit"),Yt(i,"click")}}})};function f(){if(n.tag)return n.tag(qe({},e.data));if(e.data.isDefault&&e.defaultTagText)return t(bb,{attrs:{type:"danger",round:!0},class:fd("tag")},[e.defaultTagText])}function p(){var v=e.data,y=[t("div",{class:fd("name")},[v.name+" "+v.tel,f()]),t("div",{class:fd("address")},[v.address])];return o&&!s?t(jD,{attrs:{name:v.id,iconSize:18}},[y]):y}return t("div",{class:fd({disabled:s}),on:{click:u}},[t(Vi,Pt([{attrs:{border:!1,valueClass:fd("value")},scopedSlots:{default:p,"right-icon":d}},on(i)])),n.bottom==null?void 0:n.bottom(qe({},e.data,{disabled:s}))])}w3.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};const sCe=rCe(w3);var $D=Ae("address-list"),aCe=$D[0],_b=$D[1],oCe=$D[2];function N3(t,e,n,i){function s(d,f){if(d)return d.map(function(p,v){return t(sCe,{attrs:{data:p,disabled:f,switchable:e.switchable,defaultTagText:e.defaultTagText},key:p.id,scopedSlots:{bottom:n["item-bottom"],tag:n.tag},on:{select:function(){Yt(i,f?"select-disabled":"select",p,v),f||Yt(i,"input",p.id)},edit:function(){Yt(i,f?"edit-disabled":"edit",p,v)},click:function(){Yt(i,"click-item",p,v)}}})})}var o=s(e.list),u=s(e.disabledList,!0);return t("div",Pt([{class:_b()},on(i)]),[n.top==null?void 0:n.top(),t(AD,{attrs:{value:e.value}},[o]),e.disabledText&&t("div",{class:_b("disabled-text")},[e.disabledText]),u,n.default==null?void 0:n.default(),t("div",{class:_b("bottom")},[t(wi,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||oCe("add")},class:_b("add"),on:{click:function(){Yt(i,"add")}}})])])}N3.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};const lCe=aCe(N3);var k3=Ae("badge"),uCe=k3[0],O3=k3[1];const cCe=uCe({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Ut(this.content)&&this.content!=="")},renderContent:function(){var e=this.dot,n=this.max,i=this.content;if(!e&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Ut(n)&&uD(i)&&+i>n?n+"+":i},renderBadge:function(){var e=this.$createElement;if(this.hasContent()||this.dot)return e("div",{class:O3({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var e=arguments[0];if(this.$scopedSlots.default){var n=this.tag;return e(n,{class:O3("wrapper")},[this.$scopedSlots.default(),this.renderBadge()])}return this.renderBadge()}});var E3=Date.now();function dCe(t){var e=Date.now(),n=Math.max(0,16-(e-E3)),i=setTimeout(t,n);return E3=e+n,i}var rp=cr?global:window,fCe=rp.requestAnimationFrame||dCe,hCe=rp.cancelAnimationFrame||rp.clearTimeout;function rs(t){return fCe.call(rp,t)}function yu(t){rs(function(){rs(t)})}function I3(t){hCe.call(rp,t)}function sp(t){return Object.prototype.toString.call(t)==="[object Date]"&&!cD(t.getTime())}var LD=Ae("calendar"),pCe=LD[0],Un=LD[1],Ko=LD[2];function mCe(t){return Ko("monthTitle",t.getFullYear(),t.getMonth()+1)}function zD(t,e){var n=t.getFullYear(),i=e.getFullYear(),s=t.getMonth(),o=e.getMonth();return n===i?s===o?0:s>o?1:-1:n>i?1:-1}function Ma(t,e){var n=zD(t,e);if(n===0){var i=t.getDate(),s=e.getDate();return i===s?0:i>s?1:-1}return n}function PD(t,e){return t=new Date(t),t.setDate(t.getDate()+e),t}function gCe(t){return PD(t,-1)}function A3(t){return PD(t,1)}function vCe(t){var e=t[0].getTime(),n=t[1].getTime();return(n-e)/(1e3*60*60*24)+1}function RD(t){return new Date(t)}function j3(t){return Array.isArray(t)?t.map(function(e){return e===null?e:RD(e)}):RD(t)}function yCe(t,e){if(t<0)return[];for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function FD(t){if(!t)return 0;for(;cD(parseInt(t,10));)if(t.length>1)t=t.slice(1);else return 0;return parseInt(t,10)}function BD(t,e){return 32-new Date(t,e-1,32).getDate()}var bCe=Ae("calendar-month"),_Ce=bCe[0];const MCe=_Ce({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return mCe(this.date)},rowHeightWithUnit:function(){return Wt(this.rowHeight)},offset:function(){var e=this.firstDayOfWeek,n=this.date.getDay();return e?(n+7-this.firstDayOfWeek)%7:n},totalDay:function(){return BD(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var e=[],n=Math.ceil((this.totalDay+this.offset)/7),i=1;i<=n;i++)e.push({type:"placeholder"});return e},days:function(){for(var e=[],n=this.date.getFullYear(),i=this.date.getMonth(),s=1;s<=this.totalDay;s++){var o=new Date(n,i,s),u=this.getDayType(o),d={date:o,type:u,text:s,bottomInfo:this.getBottomInfo(u)};this.formatter&&(d=this.formatter(d)),e.push(d)}return e}},methods:{getHeight:function(){var e;return((e=this.$el)==null?void 0:e.getBoundingClientRect().height)||0},scrollIntoView:function(e){var n=this.$refs,i=n.days,s=n.month,o=this.showSubtitle?i:s,u=o.getBoundingClientRect().top-e.getBoundingClientRect().top+e.scrollTop;rb(e,u)},getMultipleDayType:function(e){var n=this,i=function(p){return n.currentDate.some(function(v){return Ma(v,p)===0})};if(i(e)){var s=gCe(e),o=A3(e),u=i(s),d=i(o);return u&&d?"multiple-middle":u?"end":d?"start":"multiple-selected"}return""},getRangeDayType:function(e){var n=this.currentDate,i=n[0],s=n[1];if(!i)return"";var o=Ma(e,i);if(!s)return o===0?"start":"";var u=Ma(e,s);if(o===0&&u===0&&this.allowSameDay)return"start-end";if(o===0)return"start";if(u===0)return"end";if(o>0&&u<0)return"middle"},getDayType:function(e){var n=this.type,i=this.minDate,s=this.maxDate,o=this.currentDate;if(Ma(e,i)<0||Ma(e,s)>0)return"disabled";if(o!==null){if(n==="single")return Ma(e,o)===0?"selected":"";if(n==="multiple")return this.getMultipleDayType(e);if(n==="range")return this.getRangeDayType(e)}},getBottomInfo:function(e){if(this.type==="range"){if(e==="start"||e==="end")return Ko(e);if(e==="start-end")return Ko("startEnd")}},getDayStyle:function(e,n){var i={height:this.rowHeightWithUnit};return e==="placeholder"?(i.width="100%",i):(n===0&&(i.marginLeft=100*this.offset/7+"%"),this.color&&(e==="start"||e==="end"||e==="start-end"||e==="multiple-selected"||e==="multiple-middle"?i.background=this.color:e==="middle"&&(i.color=this.color)),i)},genTitle:function(){var e=this.$createElement;if(this.showMonthTitle)return e("div",{class:Un("month-title")},[this.title])},genMark:function(){var e=this.$createElement;if(this.showMark&&this.shouldRender)return e("div",{class:Un("month-mark")},[this.date.getMonth()+1])},genDays:function(){var e=this.$createElement,n=this.shouldRender?this.days:this.placeholders;return e("div",{ref:"days",attrs:{role:"grid"},class:Un("days")},[this.genMark(),n.map(this.genDay)])},genTopInfo:function(e){var n=this.$createElement,i=this.$scopedSlots["top-info"];if(e.topInfo||i)return n("div",{class:Un("top-info")},[i?i(e):e.topInfo])},genBottomInfo:function(e){var n=this.$createElement,i=this.$scopedSlots["bottom-info"];if(e.bottomInfo||i)return n("div",{class:Un("bottom-info")},[i?i(e):e.bottomInfo])},genDay:function(e,n){var i=this,s=this.$createElement,o=e.type,u=this.getDayStyle(o,n),d=o==="disabled",f=function(){d||i.$emit("click",e)};return o==="selected"?s("div",{attrs:{role:"gridcell",tabindex:-1},style:u,class:[Un("day"),e.className],on:{click:f}},[s("div",{class:Un("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])]):s("div",{attrs:{role:"gridcell",tabindex:d?null:-1},style:u,class:[Un("day",o),e.className],on:{click:f}},[this.genTopInfo(e),e.text,this.genBottomInfo(e)])}},render:function(){var e=arguments[0];return e("div",{class:Un("month"),ref:"month"},[this.genTitle(),this.genDays()])}});var xCe=Ae("calendar-header"),CCe=xCe[0];const SCe=CCe({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var e=this.$createElement;if(this.showTitle){var n=this.slots("title")||this.title||Ko("title");return e("div",{class:Un("header-title")},[n])}},genSubtitle:function(){var e=this.$createElement;if(this.showSubtitle)return e("div",{class:Un("header-subtitle")},[this.subtitle])},genWeekDays:function(){var e=this.$createElement,n=Ko("weekdays"),i=this.firstDayOfWeek,s=[].concat(n.slice(i,7),n.slice(0,i));return e("div",{class:Un("weekdays")},[s.map(function(o){return e("span",{class:Un("weekday")},[o])})])}},render:function(){var e=arguments[0];return e("div",{class:Un("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),TCe=pCe({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:sp,default:function(){return new Date}},maxDate:{type:Date,validator:sp,default:function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(e){return e>=0&&e<=6}}},inject:{vanPopup:{default:null}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var e=[],n=new Date(this.minDate);n.setDate(1);do e.push(new Date(n)),n.setMonth(n.getMonth()+1);while(zD(n,this.maxDate)!==1);return e},buttonDisabled:function(){var e=this.type,n=this.currentDate;if(n){if(e==="range")return!n[0]||!n[1];if(e==="multiple")return!n.length}return!n},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{value:"init",type:function(){this.reset()},defaultDate:function(e){this.currentDate=e,this.scrollIntoView()}},mounted:function(){if(this.init(),!this.poppable){var e;(e=this.vanPopup)==null||e.$on("opened",this.onScroll)}},activated:function(){this.init()},methods:{reset:function(e){e===void 0&&(e=this.getInitialDate()),this.currentDate=e,this.scrollIntoView()},init:function(){var e=this;this.poppable&&!this.value||this.$nextTick(function(){e.bodyHeight=Math.floor(e.$refs.body.getBoundingClientRect().height),e.onScroll(),e.scrollIntoView()})},scrollToDate:function(e){var n=this;rs(function(){var i=n.value||!n.poppable;!e||!i||(n.months.some(function(s,o){if(zD(s,e)===0){var u=n.$refs,d=u.body,f=u.months;return f[o].scrollIntoView(d),!0}return!1}),n.onScroll())})},scrollIntoView:function(){var e=this.currentDate;if(e){var n=this.type==="single"?e:e[0];this.scrollToDate(n)}},getInitialDate:function(){var e=this.type,n=this.minDate,i=this.maxDate,s=this.defaultDate;if(s===null)return s;var o=new Date;if(Ma(o,n)===-1?o=n:Ma(o,i)===1&&(o=i),e==="range"){var u=s||[],d=u[0],f=u[1];return[d||o,f||A3(o)]}return e==="multiple"?s||[o]:s||o},onScroll:function(){var e=this.$refs,n=e.body,i=e.months,s=mu(n),o=s+this.bodyHeight,u=i.map(function(b){return b.getHeight()}),d=u.reduce(function(b,x){return b+x},0);if(!(o>d&&s>0)){for(var f=0,p,v=[-1,-1],y=0;y<i.length;y++){var M=f<=o&&f+u[y]>=s;M&&(v[1]=y,p||(p=i[y],v[0]=y),i[y].showed||(i[y].showed=!0,this.$emit("month-show",{date:i[y].date,title:i[y].title}))),f+=u[y]}i.forEach(function(b,x){b.visible=x>=v[0]-1&&x<=v[1]+1}),p&&(this.subtitle=p.title)}},onClickDay:function(e){if(!this.readonly){var n=e.date,i=this.type,s=this.currentDate;if(i==="range"){if(!s){this.select([n,null]);return}var o=s[0],u=s[1];if(o&&!u){var d=Ma(n,o);d===1?this.select([o,n],!0):d===-1?this.select([n,null]):this.allowSameDay&&this.select([n,n],!0)}else this.select([n,null])}else if(i==="multiple"){if(!s){this.select([n]);return}var f,p=this.currentDate.some(function(M,b){var x=Ma(M,n)===0;return x&&(f=b),x});if(p){var v=s.splice(f,1),y=v[0];this.$emit("unselect",RD(y))}else this.maxRange&&s.length>=this.maxRange?ti(this.rangePrompt||Ko("rangePrompt",this.maxRange)):this.select([].concat(s,[n]))}else this.select(n,!0)}},togglePopup:function(e){this.$emit("input",e)},select:function(e,n){var i=this,s=function(d){i.currentDate=d,i.$emit("select",j3(i.currentDate))};if(n&&this.type==="range"){var o=this.checkRange(e);if(!o){this.showConfirm?s([e[0],PD(e[0],this.maxRange-1)]):s(e);return}}s(e),n&&!this.showConfirm&&this.onConfirm()},checkRange:function(e){var n=this.maxRange,i=this.rangePrompt;return n&&vCe(e)>n?(ti(i||Ko("rangePrompt",n)),!1):!0},onConfirm:function(){this.$emit("confirm",j3(this.currentDate))},genMonth:function(e,n){var i=this.$createElement,s=n!==0||!this.showSubtitle;return i(MCe,{ref:"months",refInFor:!0,attrs:{date:e,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:s,firstDayOfWeek:this.dayOffset},scopedSlots:{"top-info":this.$scopedSlots["top-info"],"bottom-info":this.$scopedSlots["bottom-info"]},on:{click:this.onClickDay}})},genFooterContent:function(){var e=this.$createElement,n=this.slots("footer");if(n)return n;if(this.showConfirm){var i=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return e(wi,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:Un("confirm"),on:{click:this.onConfirm}},[i||Ko("confirm")])}},genFooter:function(){var e=this.$createElement;return e("div",{class:Un("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var e=this,n=this.$createElement;return n("div",{class:Un()},[n(SCe,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return e.slots("title")}}}),n("div",{ref:"body",class:Un("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var e=this,n=arguments[0];if(this.poppable){var i,s=function(u){return function(){return e.$emit(u)}};return n(_a,{attrs:(i={round:!0,value:this.value},i.round=this.round,i.position=this.position,i.closeable=this.showTitle||this.showSubtitle,i.getContainer=this.getContainer,i.closeOnPopstate=this.closeOnPopstate,i.closeOnClickOverlay=this.closeOnClickOverlay,i),class:Un("popup"),on:{input:this.togglePopup,open:s("open"),opened:s("opened"),close:s("close"),closed:s("closed")}},[this.genCalendar()])}return this.genCalendar()}});var $3=Ae("image"),DCe=$3[0],hd=$3[1];const pd=DCe({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var e={};return Ut(this.width)&&(e.width=Wt(this.width)),Ut(this.height)&&(e.height=Wt(this.height)),Ut(this.radius)&&(e.overflow="hidden",e.borderRadius=Wt(this.radius)),e}},created:function(){var e=this.$Lazyload;e&&nb&&(e.$on("loaded",this.onLazyLoaded),e.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var e=this.$Lazyload;e&&(e.$off("loaded",this.onLazyLoaded),e.$off("error",this.onLazyLoadError))},methods:{onLoad:function(e){this.loading=!1,this.$emit("load",e)},onLazyLoaded:function(e){var n=e.el;n===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(e){var n=e.el;n===this.$refs.image&&!this.error&&this.onError()},onError:function(e){this.error=!0,this.loading=!1,this.$emit("error",e)},onClick:function(e){this.$emit("click",e)},genPlaceholder:function(){var e=this.$createElement;if(this.loading&&this.showLoading)return e("div",{class:hd("loading")},[this.slots("loading")||e(It,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:hd("loading-icon")})]);if(this.error&&this.showError)return e("div",{class:hd("error")},[this.slots("error")||e(It,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:hd("error-icon")})])},genImage:function(){var e=this.$createElement,n={class:hd("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?e("img",Pt([{ref:"image",directives:[{name:"lazy",value:this.src}]},n])):e("img",Pt([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},n]))}},render:function(){var e=arguments[0];return e("div",{class:hd({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}});var L3=Ae("card"),wCe=L3[0],pr=L3[1];function z3(t,e,n,i){var s,o=e.thumb,u=n.num||Ut(e.num),d=n.price||Ut(e.price),f=n["origin-price"]||Ut(e.originPrice),p=u||d||f||n.bottom;function v(T){Yt(i,"click-thumb",T)}function y(){if(n.tag||e.tag)return t("div",{class:pr("tag")},[n.tag?n.tag():t(bb,{attrs:{mark:!0,type:"danger"}},[e.tag])])}function M(){if(n.thumb||o)return t("a",{attrs:{href:e.thumbLink},class:pr("thumb"),on:{click:v}},[n.thumb?n.thumb():t(pd,{attrs:{src:o,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),y()])}function b(){if(n.title)return n.title();if(e.title)return t("div",{class:[pr("title"),"van-multi-ellipsis--l2"]},[e.title])}function x(){if(n.desc)return n.desc();if(e.desc)return t("div",{class:[pr("desc"),"van-ellipsis"]},[e.desc])}function N(){var T=e.price.toString().split(".");return t("div",[t("span",{class:pr("price-currency")},[e.currency]),t("span",{class:pr("price-integer")},[T[0]]),".",t("span",{class:pr("price-decimal")},[T[1]])])}function w(){if(d)return t("div",{class:pr("price")},[n.price?n.price():N()])}function k(){if(f){var T=n["origin-price"];return t("div",{class:pr("origin-price")},[T?T():e.currency+" "+e.originPrice])}}function E(){if(u)return t("div",{class:pr("num")},[n.num?n.num():"x"+e.num])}function S(){if(n.footer)return t("div",{class:pr("footer")},[n.footer()])}return t("div",Pt([{class:pr()},on(i,!0)]),[t("div",{class:pr("header")},[M(),t("div",{class:pr("content",{centered:e.centered})},[t("div",[b(),x(),n.tags==null?void 0:n.tags()]),p&&t("div",{class:"van-card__bottom"},[(s=n["price-top"])==null?void 0:s.call(n),w(),k(),E(),n.bottom==null?void 0:n.bottom()])])]),S()])}z3.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};const NCe=wCe(z3);var P3=Ae("tab"),kCe=P3[0],UD=P3[1];const Mb=kCe({mixins:[fr("vanTabs")],props:qe({},Qo,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var e;return(e=this.name)!=null?e:this.index},isActive:function(){var e=this.computedName===this.parent.currentName;return e&&(this.inited=!0),e}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(e){var n=this;this.parent.lazyRender&&e&&this.$nextTick(function(){n.parent.$emit("rendered",n.computedName,n.title)})}},render:function(e){var n=this.slots,i=this.parent,s=this.isActive,o=n();if(process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] Tab: "info" prop is deprecated, use "badge" prop instead.'),!(!o&&!i.animated)){var u=i.scrollspy||s,d=this.inited||i.scrollspy||!i.lazyRender,f=d?o:e();return i.animated?e("div",{attrs:{role:"tabpanel","aria-hidden":!s},class:UD("pane-wrapper",{inactive:!s})},[e("div",{class:UD("pane")},[f])]):e("div",{directives:[{name:"show",value:u}],attrs:{role:"tabpanel"},class:UD("pane")},[f])}}});function OCe(t,e,n){var i=0,s=t.scrollLeft,o=n===0?1:Math.round(n*1e3/16);function u(){t.scrollLeft+=(e-s)/o,++i<o&&rs(u)}u()}function ECe(t,e,n,i){var s=mu(t),o=s<e,u=n===0?1:Math.round(n*1e3/16),d=(e-s)/u;function f(){s+=d,(o&&s>e||!o&&s<e)&&(s=e),rb(t,s),o&&s<e||!o&&s>e?rs(f):i&&rs(i)}f()}function ap(t){var e=window.getComputedStyle(t),n=e.display==="none",i=t.offsetParent===null&&e.position!=="fixed";return n||i}function R3(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var s=e.apply(void 0,n);ib(s)?s.then(function(o){o&&i()}).catch(Jh):s&&i()}else i()}var F3=Ae("tab"),ICe=F3[0],VD=F3[1];const ACe=ICe({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var e={},n=this.color,i=this.isActive,s=this.type==="card";n&&s&&(e.borderColor=n,this.disabled||(i?e.backgroundColor=n:e.color=n));var o=i?this.activeColor:this.inactiveColor;return o&&(e.color=o),e}},methods:{onClick:function(){this.$emit("click")},genText:function(){var e=this.$createElement,n=e("span",{class:VD("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Ut(this.info)&&this.info!==""?e("span",{class:VD("text-wrapper")},[n,e(gu,{attrs:{dot:this.dot,info:this.info}})]):n}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[VD({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}});var B3=Ae("sticky"),jCe=B3[0],$Ce=B3[1];const U3=jCe({mixins:[Ls(function(t,e){if(this.scroller||(this.scroller=pu(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return fD(this.offsetTop)},style:function(){if(this.fixed){var e={};return Ut(this.zIndex)&&(e.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(e.top=this.offsetTopPx+"px"),this.transform&&(e.transform="translate3d(0, "+this.transform+"px, 0)"),e}}},watch:{fixed:function(e){this.$emit("change",e)}},created:function(){var e=this;!cr&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(n){n[0].intersectionRatio>0&&e.onScroll()},{root:document.body}))},methods:{onScroll:function(){var e=this;if(!ap(this.$el)){this.height=this.$el.offsetHeight;var n=this.container,i=this.offsetTopPx,s=mu(window),o=mD(this.$el),u=function(){e.$emit("scroll",{scrollTop:s,isFixed:e.fixed})};if(n){var d=o+n.offsetHeight;if(s+i+this.height>d){var f=this.height+s-d;f<this.height?(this.fixed=!0,this.transform=-(f+i)):this.fixed=!1,u();return}}s+i>o?(this.fixed=!0,this.transform=0):this.fixed=!1,u()}}},render:function(){var e=arguments[0],n=this.fixed,i={height:n?this.height+"px":null};return e("div",{style:i},[e("div",{class:$Ce({fixed:n}),style:this.style},[this.slots()])])}});var V3=Ae("tabs"),LCe=V3[0],Y3=V3[1],zCe=50;const PCe=LCe({mixins:[ns],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var e=this.direction,n=this.deltaX,i=this.currentIndex;e==="horizontal"&&this.offsetX>=zCe&&(n>0&&i!==0?this.$emit("change",i-1):n<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var e=this.$createElement;return this.animated?e("div",{class:Y3("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var e=arguments[0];return e("div",{class:Y3("content",{animated:this.animated}),on:qe({},this.listeners)},[this.genChildren()])}});var H3=Ae("tabs"),RCe=H3[0],xb=H3[1];const YD=RCe({mixins:[hr("vanTabs"),Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)})],inject:{vanPopup:{default:null}},model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var e=this.children[this.currentIndex];if(e)return e.computedName},offsetTopPx:function(){return fD(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(e){e!==this.currentName&&this.setCurrentIndexByName(e)},children:function(){var e=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick(function(){e.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&sb(Math.ceil(mD(this.$el)-this.offsetTopPx))},scrollspy:function(e){e?ts(this.scroller,"scroll",this.onScroll,!0):Wo(this.scroller,"scroll",this.onScroll)}},mounted:function(){var e=this;this.init(),this.vanPopup&&this.vanPopup.onReopen(function(){e.setLine()})},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var e=this;this.$nextTick(function(){e.inited=!0,e.tabHeight=Zxe(e.$refs.wrap),e.scrollIntoView(!0)})},setLine:function(){var e=this,n=this.inited;this.$nextTick(function(){var i=e.$refs.titles;if(!(!i||!i[e.currentIndex]||e.type!=="line"||ap(e.$el))){var s=i[e.currentIndex].$el,o=e.lineWidth,u=e.lineHeight,d=s.offsetLeft+s.offsetWidth/2,f={width:Wt(o),backgroundColor:e.color,transform:"translateX("+d+"px) translateX(-50%)"};if(n&&(f.transitionDuration=e.duration+"s"),Ut(u)){var p=Wt(u);f.height=p,f.borderRadius=p}e.lineStyle=f}})},setCurrentIndexByName:function(e){var n=this.children.filter(function(s){return s.computedName===e}),i=(this.children[0]||{}).index||0;this.setCurrentIndex(n.length?n[0].index:i)},setCurrentIndex:function(e){var n=this.findAvailableTab(e);if(Ut(n)){var i=this.children[n],s=i.computedName,o=this.currentIndex!==null;this.currentIndex=n,s!==this.active&&(this.$emit("input",s),o&&this.$emit("change",s,i.title))}},findAvailableTab:function(e){for(var n=e<this.currentIndex?-1:1;e>=0&&e<this.children.length;){if(!this.children[e].disabled)return e;e+=n}},onClick:function(e,n){var i=this,s=this.children[n],o=s.title,u=s.disabled,d=s.computedName;u?this.$emit("disabled",d,o):(R3({interceptor:this.beforeChange,args:[d],done:function(){i.setCurrentIndex(n),i.scrollToCurrentContent()}}),this.$emit("click",d,o),vu(e.$router,e))},scrollIntoView:function(e){var n=this.$refs.titles;if(!(!this.scrollable||!n||!n[this.currentIndex])){var i=this.$refs.nav,s=n[this.currentIndex].$el,o=s.offsetLeft-(i.offsetWidth-s.offsetWidth)/2;OCe(i,o,e?0:+this.duration)}},onSticktScroll:function(e){this.stickyFixed=e.isFixed,this.$emit("scroll",e)},scrollTo:function(e){var n=this;this.$nextTick(function(){n.setCurrentIndexByName(e),n.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(e){var n=this;if(e===void 0&&(e=!1),this.scrollspy){var i=this.children[this.currentIndex],s=i==null?void 0:i.$el;if(s){var o=mD(s,this.scroller)-this.scrollOffset;this.lockScroll=!0,ECe(this.scroller,o,e?0:+this.duration,function(){n.lockScroll=!1})}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var e=this.getCurrentIndexOnScroll();this.setCurrentIndex(e)}},getCurrentIndexOnScroll:function(){for(var e=this.children,n=0;n<e.length;n++){var i=Jxe(e[n].$el);if(i>this.scrollOffset)return n===0?0:n-1}return e.length-1}},render:function(){var e=this,n,i=arguments[0],s=this.type,o=this.animated,u=this.scrollable,d=this.children.map(function(p,v){var y;return i(ACe,{ref:"titles",refInFor:!0,attrs:{type:s,dot:p.dot,info:(y=p.badge)!=null?y:p.info,title:p.title,color:e.color,isActive:v===e.currentIndex,disabled:p.disabled,scrollable:u,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:p.titleStyle,class:p.titleClass,scopedSlots:{default:function(){return p.slots("title")}},on:{click:function(){e.onClick(p,v)}}})}),f=i("div",{ref:"wrap",class:[xb("wrap",{scrollable:u}),(n={},n[cb]=s==="line"&&this.border,n)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:xb("nav",[s,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),d,s==="line"&&i("div",{class:xb("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:xb([s])},[this.sticky?i(U3,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[f]):f,i(PCe,{attrs:{count:this.children.length,animated:o,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}});var HD=Ae("cascader"),FCe=HD[0],Qa=HD[1],BCe=HD[2];const UCe=FCe({props:{title:String,value:[Number,String],fieldNames:Object,placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},computed:{textKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.text)||"text"},valueKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.value)||"value"},childrenKey:function(){var e;return((e=this.fieldNames)==null?void 0:e.children)||"children"}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(e){var n=this;if(e||e===0){var i=this.tabs.map(function(s){var o;return(o=s.selectedOption)==null?void 0:o[n.valueKey]});if(i.indexOf(e)!==-1)return}this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(e,n){for(var i=0;i<e.length;i++){var s=e[i];if(s[this.valueKey]===n)return[s];if(s[this.childrenKey]){var o=this.getSelectedOptionsByValue(s[this.childrenKey],n);if(o)return[s].concat(o)}}},updateTabs:function(){var e=this;if(this.value||this.value===0){var n=this.getSelectedOptionsByValue(this.options,this.value);if(n){var i=this.options;this.tabs=n.map(function(s){var o={options:i,selectedOption:s},u=i.filter(function(d){return d[e.valueKey]===s[e.valueKey]});return u.length&&(i=u[0][e.childrenKey]),o}),i&&this.tabs.push({options:i,selectedOption:null}),this.$nextTick(function(){e.activeTab=e.tabs.length-1});return}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(e,n){var i=this;if(this.tabs[n].selectedOption=e,this.tabs.length>n+1&&(this.tabs=this.tabs.slice(0,n+1)),e[this.childrenKey]){var s={options:e[this.childrenKey],selectedOption:null};this.tabs[n+1]?this.$set(this.tabs,n+1,s):this.tabs.push(s),this.$nextTick(function(){i.activeTab++})}var o=this.tabs.map(function(d){return d.selectedOption}).filter(function(d){return!!d}),u={value:e[this.valueKey],tabIndex:n,selectedOptions:o};this.$emit("input",e[this.valueKey]),this.$emit("change",u),e[this.childrenKey]||this.$emit("finish",u)},onClose:function(){this.$emit("close")},renderHeader:function(){var e=this.$createElement;if(this.showHeader)return e("div",{class:Qa("header")},[e("h2",{class:Qa("title")},[this.slots("title")||this.title]),this.closeable?e(It,{attrs:{name:"cross"},class:Qa("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(e,n,i){var s=this,o=this.$createElement,u=function(f){var p=n&&f[s.valueKey]===n[s.valueKey],v=s.slots("option",{option:f,selected:p})||o("span",[f[s.textKey]]);return o("li",{class:Qa("option",{selected:p}),style:{color:p?s.activeColor:null},on:{click:function(){s.onSelect(f,i)}}},[v,p?o(It,{attrs:{name:"success"},class:Qa("selected-icon")}):null])};return o("ul",{class:Qa("options")},[e.map(u)])},renderTab:function(e,n){var i=this.$createElement,s=e.options,o=e.selectedOption,u=o?o[this.textKey]:this.placeholder||BCe("select");return i(Mb,{attrs:{title:u,titleClass:Qa("tab",{unselected:!o})}},[this.renderOptions(s,o,n)])},renderTabs:function(){var e=this,n=this.$createElement;return n(YD,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Qa("tabs"),model:{value:e.activeTab,callback:function(s){e.activeTab=s}}},[this.tabs.map(this.renderTab)])}},render:function(){var e=arguments[0];return e("div",{class:Qa()},[this.renderHeader(),this.renderTabs()])}});var W3=Ae("cell-group"),VCe=W3[0],Q3=W3[1];function G3(t,e,n,i){var s,o=t("div",Pt([{class:[Q3({inset:e.inset}),(s={},s[cb]=e.border,s)]},on(i,!0)]),[n.default==null?void 0:n.default()]);return e.title||n.title?t("div",{key:i.data.key},[t("div",{class:Q3("title",{inset:e.inset})},[n.title?n.title():e.title]),o]):o}G3.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}};const K3=VCe(G3);var q3=Ae("checkbox"),YCe=q3[0],HCe=q3[1];const X3=YCe({mixins:[S3({bem:HCe,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?this.parent.value.indexOf(this.name)!==-1:this.value},set:function(e){this.parent?this.setParentValue(e):this.$emit("input",e)}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggle:function(e){var n=this;e===void 0&&(e=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){n.checked=e})},setParentValue:function(e){var n=this.parent,i=n.value.slice();if(e){if(n.max&&i.length>=n.max)return;i.indexOf(this.name)===-1&&(i.push(this.name),n.$emit("input",i))}else{var s=i.indexOf(this.name);s!==-1&&(i.splice(s,1),n.$emit("input",i))}}}});var Z3=Ae("checkbox-group"),WCe=Z3[0],QCe=Z3[1];const GCe=WCe({mixins:[hr("vanCheckbox"),Go],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(e){this.$emit("change",e)}},methods:{toggleAll:function(e){e===void 0&&(e={}),typeof e=="boolean"&&(e={checked:e});var n=e,i=n.checked,s=n.skipDisabled,o=this.children.filter(function(d){return d.disabled&&s?d.checked:i??!d.checked}),u=o.map(function(d){return d.name});this.$emit("input",u)}},render:function(){var e=arguments[0];return e("div",{class:QCe([this.direction])},[this.slots()])}});var J3=Ae("circle"),KCe=J3[0],Cb=J3[1],eR=3140,qCe=0;function tR(t){return Math.min(Math.max(t,0),100)}function XCe(t,e){var n=t?1:0;return"M "+e/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+n+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000"}const ZCe=KCe({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+qCe++},computed:{style:function(){var e=Wt(this.size);return{width:e,height:e}},path:function(){return XCe(this.clockwise,this.viewBoxSize)},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var e=eR*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:e+"px "+eR+"px"}},gradient:function(){return $s(this.color)},LinearGradient:function(){var e=this,n=this.$createElement;if(this.gradient){var i=Object.keys(this.color).sort(function(s,o){return parseFloat(s)-parseFloat(o)}).map(function(s,o){return n("stop",{key:o,attrs:{offset:s,"stop-color":e.color[s]}})});return n("defs",[n("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[i])])}}},watch:{rate:{handler:function(e){this.startTime=Date.now(),this.startRate=this.value,this.endRate=tR(e),this.increase=this.endRate>this.startRate,this.duration=Math.abs((this.startRate-this.endRate)*1e3/this.speed),this.speed?(I3(this.rafId),this.rafId=rs(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var e=Date.now(),n=Math.min((e-this.startTime)/this.duration,1),i=n*(this.endRate-this.startRate)+this.startRate;this.$emit("input",tR(parseFloat(i.toFixed(1)))),(this.increase?i<this.endRate:i>this.endRate)&&(this.rafId=rs(this.animate))}},render:function(){var e=arguments[0];return e("div",{class:Cb(),style:this.style},[e("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,e("path",{class:Cb("layer"),style:this.layerStyle,attrs:{d:this.path}}),e("path",{attrs:{d:this.path},class:Cb("hover"),style:this.hoverStyle})]),this.slots()||this.text&&e("div",{class:Cb("text")},[this.text])])}});var nR=Ae("col"),JCe=nR[0],eSe=nR[1];const tSe=JCe({mixins:[fr("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var e=this.index,n=this.parent||{},i=n.spaces;if(i&&i[e]){var s=i[e],o=s.left,u=s.right;return{paddingLeft:o?o+"px":null,paddingRight:u?u+"px":null}}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,n=arguments[0],i=this.span,s=this.offset;return n(this.tag,{style:this.style,class:eSe((e={},e[i]=i,e["offset-"+s]=s,e)),on:{click:this.onClick}},[this.slots()])}});var iR=Ae("collapse"),nSe=iR[0],iSe=iR[1];const rSe=nSe({mixins:[hr("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,n){this.accordion||(e=n?this.value.concat(e):this.value.filter(function(i){return i!==e})),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e,n=arguments[0];return n("div",{class:[iSe(),(e={},e[cb]=this.border,e)]},[this.slots()])}});var rR=Ae("collapse-item"),sSe=rR[0],Sb=rR[1],aSe=["title","icon","right-icon"];const oSe=sSe({mixins:[fr("vanCollapse")],props:qe({},TD,{name:[Number,String],disabled:Boolean,lazyRender:{type:Boolean,default:!0},isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var e;return(e=this.name)!=null?e:this.index},expanded:function(){var e=this;if(!this.parent)return null;var n=this.parent,i=n.value,s=n.accordion;if(process.env.NODE_ENV==="development"&&!s&&!Array.isArray(i)){console.error('[Vant] Collapse: type of prop "value" should be Array');return}return s?i===this.currentName:i.some(function(o){return o===e.currentName})}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(e,n){var i=this;if(n!==null){e&&(this.show=!0,this.inited=!0);var s=e?this.$nextTick:rs;s(function(){var o=i.$refs,u=o.content,d=o.wrapper;if(!(!u||!d)){var f=u.offsetHeight;if(f){var p=f+"px";d.style.height=e?0:p,yu(function(){d.style.height=e?p:0})}else i.onTransitionEnd()}})}}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(e){e===void 0&&(e=!this.expanded);var n=this.parent,i=this.currentName,s=n.accordion&&i===n.value,o=s?"":i;this.parent.switch(o,e)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var e=this,n=this.$createElement,i=this.border,s=this.disabled,o=this.expanded,u=aSe.reduce(function(d,f){return e.slots(f)&&(d[f]=function(){return e.slots(f)}),d},{});return this.slots("value")&&(u.default=function(){return e.slots("value")}),n(Vi,{attrs:{role:"button",tabindex:s?-1:0,"aria-expanded":String(o)},class:Sb("title",{disabled:s,expanded:o,borderless:!i}),on:{click:this.onClick},scopedSlots:u,props:qe({},this.$props)})},genContent:function(){var e=this.$createElement;if(this.inited||!this.lazyRender)return e("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:Sb("wrapper"),on:{transitionend:this.onTransitionEnd}},[e("div",{ref:"content",class:Sb("content")},[this.slots()])])}},render:function(){var e=arguments[0];return e("div",{class:[Sb({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}});var WD=Ae("contact-card"),lSe=WD[0],sR=WD[1],QD=WD[2];function aR(t,e,n,i){var s=e.type,o=e.editable;function u(f){o&&Yt(i,"click",f)}function d(){return s==="add"?e.addText||QD("addText"):[t("div",[QD("name")+":"+e.name]),t("div",[QD("tel")+":"+e.tel])]}return t(Vi,Pt([{attrs:{center:!0,border:!1,isLink:o,valueClass:sR("value"),icon:s==="edit"?"contact":"add-square"},class:sR([s]),on:{click:u}},on(i)]),[d()])}aR.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};const uSe=lSe(aR);var GD=Ae("contact-edit"),cSe=GD[0],Tb=GD[1],Ga=GD[2],KD={tel:"",name:""};const dSe=cSe({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return qe({},KD)}},telValidator:{type:Function,default:BP}},data:function(){return{data:qe({},KD,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(e){this.data=qe({},KD,e)}},methods:{onFocus:function(e){this.errorInfo[e]=""},getErrorMessageByKey:function(e){var n=this.data[e].trim();switch(e){case"name":return n?"":Ga("nameInvalid");case"tel":return this.telValidator(n)?"":Ga("telInvalid")}},onSave:function(){var e=this,n=["name","tel"].every(function(i){var s=e.getErrorMessageByKey(i);return s&&(e.errorInfo[i]=s),!s});n&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var e=this;Bn.confirm({title:Ga("confirmDelete")}).then(function(){e.$emit("delete",e.data)})}},render:function(){var e=this,n=arguments[0],i=this.data,s=this.errorInfo,o=function(d){return function(){return e.onFocus(d)}};return n("div",{class:Tb()},[n("div",{class:Tb("fields")},[n(is,{attrs:{clearable:!0,maxlength:"30",label:Ga("name"),placeholder:Ga("nameEmpty"),errorMessage:s.name},on:{focus:o("name")},model:{value:i.name,callback:function(d){e.$set(i,"name",d)}}}),n(is,{attrs:{clearable:!0,type:"tel",label:Ga("tel"),placeholder:Ga("telEmpty"),errorMessage:s.tel},on:{focus:o("tel")},model:{value:i.tel,callback:function(d){e.$set(i,"tel",d)}}})]),this.showSetDefault&&n(Vi,{attrs:{title:this.setDefaultLabel,border:!1},class:Tb("switch-cell")},[n(vb,{attrs:{size:24},slot:"right-icon",on:{change:function(d){e.$emit("change-default",d)}},model:{value:i.isDefault,callback:function(d){e.$set(i,"isDefault",d)}}})]),n("div",{class:Tb("buttons")},[n(wi,{attrs:{block:!0,round:!0,type:"danger",text:Ga("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&n(wi,{attrs:{block:!0,round:!0,text:Ga("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}});var qD=Ae("contact-list"),fSe=qD[0],qo=qD[1],hSe=qD[2];function oR(t,e,n,i){var s=e.list&&e.list.map(function(o,u){function d(){Yt(i,"input",o.id),Yt(i,"select",o,u)}function f(){return t(jD,{attrs:{name:o.id,iconSize:16,checkedColor:UP},on:{click:d}})}function p(){return t(It,{attrs:{name:"edit"},class:qo("edit"),on:{click:function(M){M.stopPropagation(),Yt(i,"edit",o,u)}}})}function v(){var y=[o.name+","+o.tel];return o.isDefault&&e.defaultTagText&&y.push(t(bb,{attrs:{type:"danger",round:!0},class:qo("item-tag")},[e.defaultTagText])),y}return t(Vi,{key:o.id,attrs:{isLink:!0,center:!0,valueClass:qo("item-value")},class:qo("item"),scopedSlots:{icon:p,default:v,"right-icon":f},on:{click:d}})});return t("div",Pt([{class:qo()},on(i)]),[t(AD,{attrs:{value:e.value},class:qo("group")},[s]),t("div",{class:qo("bottom")},[t(wi,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||hSe("addText")},class:qo("add"),on:{click:function(){Yt(i,"add")}}})])])}oR.props={value:null,list:Array,addText:String,defaultTagText:String};const pSe=fSe(oR);var XD=1e3,ZD=60*XD,JD=60*ZD,lR=24*JD;function mSe(t){var e=Math.floor(t/lR),n=Math.floor(t%lR/JD),i=Math.floor(t%JD/ZD),s=Math.floor(t%ZD/XD),o=Math.floor(t%XD);return{days:e,hours:n,minutes:i,seconds:s,milliseconds:o}}function gSe(t,e){var n=e.days,i=e.hours,s=e.minutes,o=e.seconds,u=e.milliseconds;if(t.indexOf("DD")===-1?i+=n*24:t=t.replace("DD",An(n)),t.indexOf("HH")===-1?s+=i*60:t=t.replace("HH",An(i)),t.indexOf("mm")===-1?o+=s*60:t=t.replace("mm",An(s)),t.indexOf("ss")===-1?u+=o*1e3:t=t.replace("ss",An(o)),t.indexOf("S")!==-1){var d=An(u,3);t.indexOf("SSS")!==-1?t=t.replace("SSS",d):t.indexOf("SS")!==-1?t=t.replace("SS",d.slice(0,2)):t=t.replace("S",d.charAt(0))}return t}function vSe(t,e){return Math.floor(t/1e3)===Math.floor(e/1e3)}var uR=Ae("count-down"),ySe=uR[0],bSe=uR[1];const _Se=ySe({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return mSe(this.remain)},formattedTime:function(){return gSe(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,I3(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){nb&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var e=this;this.rafId=rs(function(){e.counting&&(e.setRemain(e.getRemain()),e.remain>0&&e.microTick())})},macroTick:function(){var e=this;this.rafId=rs(function(){if(e.counting){var n=e.getRemain();(!vSe(n,e.remain)||n===0)&&e.setRemain(n),e.remain>0&&e.macroTick()}})},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(e){this.remain=e,this.$emit("change",this.timeData),e===0&&(this.pause(),this.$emit("finish"))}},render:function(){var e=arguments[0];return e("div",{class:bSe()},[this.slots("default",this.timeData)||this.formattedTime])}});var ew=Ae("coupon"),MSe=ew[0],xa=ew[1],tw=ew[2];function xSe(t){return t<Math.pow(10,12)?t*1e3:+t}function cR(t){var e=new Date(xSe(t));return e.getFullYear()+"."+An(e.getMonth()+1)+"."+An(e.getDate())}function CSe(t){return(t/10).toFixed(t%10===0?0:1)}function dR(t){return(t/100).toFixed(t%100===0?0:t%10===0?1:2)}const nw=MSe({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var e=this.coupon,n=e.startAt,i=e.endAt,s=e.customValidPeriod;return s||cR(n)+" - "+cR(i)},faceAmount:function(){var e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var n=dR(e.denominations);return"<span>"+this.currency+"</span> "+n}return e.discount?tw("discount",CSe(e.discount)):""},conditionMessage:function(){var e=dR(this.coupon.originCondition);return e==="0"?tw("unlimited"):tw("condition",e)}},render:function(){var e=arguments[0],n=this.coupon,i=this.disabled,s=i&&n.reason||n.description;return e("div",{class:xa({disabled:i})},[e("div",{class:xa("content")},[e("div",{class:xa("head")},[e("h2",{class:xa("amount"),domProps:{innerHTML:this.faceAmount}}),e("p",{class:xa("condition")},[this.coupon.condition||this.conditionMessage])]),e("div",{class:xa("body")},[e("p",{class:xa("name")},[n.name]),e("p",{class:xa("valid")},[this.validPeriod]),!this.disabled&&e(X3,{attrs:{size:18,value:this.chosen,checkedColor:UP},class:xa("corner")})])]),s&&e("p",{class:xa("description")},[s])])}});var iw=Ae("coupon-cell"),SSe=iw[0],fR=iw[1],rw=iw[2];function TSe(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,s=e[+n];if(s){var o=0;return Ut(s.value)?o=s.value:Ut(s.denominations)&&(o=s.denominations),"-"+i+" "+(o/100).toFixed(2)}return e.length===0?rw("tips"):rw("count",e.length)}function sw(t,e,n,i){var s=e.coupons[+e.chosenCoupon],o=TSe(e);return t(Vi,Pt([{class:fR(),attrs:{value:o,title:e.title||rw("title"),border:e.border,isLink:e.editable,valueClass:fR("value",{selected:s})}},on(i,!0)]))}sw.model={prop:"chosenCoupon"},sw.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};const DSe=SSe(sw);var aw=Ae("coupon-list"),wSe=aw[0],Ca=aw[1],md=aw[2],NSe="https://img01.yzcdn.cn/vant/coupon-empty.png";const kSe=wSe({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:NSe}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(e){this.currentCode=e},currentCode:function(e){this.$emit("input",e)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(e){var n=this;e!==-1&&this.$nextTick(function(){var i=n.$refs,s=i.card,o=i.list;o&&s&&s[e]&&(o.scrollTop=s[e].$el.offsetTop-100)})},genEmpty:function(){var e=this.$createElement;return e("div",{class:Ca("empty")},[e("img",{attrs:{src:this.emptyImage}}),e("p",[md("empty")])])},genExchangeButton:function(){var e=this.$createElement;return e(wi,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||md("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:Ca("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var e=this,n=arguments[0],i=this.coupons,s=this.disabledCoupons,o=this.showCount?" ("+i.length+")":"",u=(this.enabledTitle||md("enable"))+o,d=this.showCount?" ("+s.length+")":"",f=(this.disabledTitle||md("disabled"))+d,p=this.showExchangeBar&&n("div",{class:Ca("exchange-bar")},[n(is,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||md("placeholder"),maxlength:"20"},class:Ca("field"),model:{value:e.currentCode,callback:function(x){e.currentCode=x}}}),this.genExchangeButton()]),v=function(x){return function(){return e.$emit("change",x)}},y=n(Mb,{attrs:{title:u}},[n("div",{class:Ca("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map(function(b,x){return n(nw,{ref:"card",key:b.id,attrs:{coupon:b,currency:e.currency,chosen:x===e.chosenCoupon},nativeOn:{click:v(x)}})}),!i.length&&this.genEmpty(),this.slots("list-footer")])]),M=n(Mb,{attrs:{title:f}},[n("div",{class:Ca("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[s.map(function(b){return n(nw,{attrs:{disabled:!0,coupon:b,currency:e.currency},key:b.id})}),!s.length&&this.genEmpty(),this.slots("disabled-list-footer")])]);return n("div",{class:Ca()},[p,n(YD,{class:Ca("tab"),attrs:{border:!1},model:{value:e.tab,callback:function(x){e.tab=x}}},[y,M]),n("div",{class:Ca("bottom")},[n(wi,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||md("close")},class:Ca("close"),on:{click:v(-1)}})])])}});var hR=qe({},ub,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(e,n){return n}}}),pR={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var e=this;return this.ranges.map(function(n){var i=n.type,s=n.range,o=yCe(s[1]-s[0]+1,function(u){var d=An(s[0]+u);return d});return e.filter&&(o=e.filter(i,o)),{type:i,values:o}})},columns:function(){var e=this;return this.originColumns.map(function(n){return{values:n.values.map(function(i){return e.formatter(n.type,i)})}})}},watch:{columns:"updateColumnValue",innerValue:function(e,n){n?this.$emit("input",e):this.$emit("input",null)}},mounted:function(){var e=this;this.updateColumnValue(),this.$nextTick(function(){e.updateInnerValue()})},methods:{getPicker:function(){return this.$refs.picker},getProxiedPicker:function(){var e=this,n=this.$refs.picker;if(n){var i=function(o){return function(){n[o].apply(n,arguments),e.updateInnerValue()}};return qe({},n,{setValues:i("setValues"),setIndexes:i("setIndexes"),setColumnIndex:i("setColumnIndex"),setColumnValue:i("setColumnValue")})}},onConfirm:function(){this.$emit("input",this.innerValue),this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var e=this,n=arguments[0],i={};return Object.keys(ub).forEach(function(s){i[s]=e[s]}),n(CD,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:qe({},i)})}},OSe=Ae("time-picker"),ESe=OSe[0];const mR=ESe({mixins:[pR],props:qe({},hR,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:function(){var e=this;this.$nextTick(function(){e.updateInnerValue()})},maxHour:function(e){var n=this.innerValue.split(":"),i=n[0],s=n[1];i>=e?(this.innerValue=this.formatValue(e+":"+s),this.updateColumnValue()):this.updateInnerValue()},minMinute:"updateInnerValue",maxMinute:function(e){var n=this.innerValue.split(":"),i=n[0],s=n[1];s>=e?(this.innerValue=this.formatValue(i+":"+e),this.updateColumnValue()):this.updateInnerValue()},value:function(e){e=this.formatValue(e),e!==this.innerValue&&(this.innerValue=e,this.updateColumnValue())}},methods:{formatValue:function(e){e||(e=An(this.minHour)+":"+An(this.minMinute));var n=e.split(":"),i=n[0],s=n[1];return i=An(Di(i,this.minHour,this.maxHour)),s=An(Di(s,this.minMinute,this.maxMinute)),i+":"+s},updateInnerValue:function(){var e=this.getPicker().getIndexes(),n=e[0],i=e[1],s=this.originColumns,o=s[0],u=s[1],d=o.values[n]||o.values[0],f=u.values[i]||u.values[0];this.innerValue=this.formatValue(d+":"+f),this.updateColumnValue()},onChange:function(e){var n=this;this.updateInnerValue(),this.$nextTick(function(){n.$nextTick(function(){n.updateInnerValue(),n.$emit("change",e)})})},updateColumnValue:function(){var e=this,n=this.formatter,i=this.innerValue.split(":"),s=[n("hour",i[0]),n("minute",i[1])];this.$nextTick(function(){e.getPicker().setValues(s)})}}});function ow(t,e){return ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},ow(t,e)}function ISe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function op(t,e,n){return ISe()?op=Reflect.construct.bind():op=function(s,o,u){var d=[null];d.push.apply(d,o);var f=Function.bind.apply(s,d),p=new f;return u&&ow(p,u.prototype),p},op.apply(null,arguments)}var gR=new Date().getFullYear(),ASe=Ae("date-picker"),jSe=ASe[0];const vR=jSe({mixins:[pR],props:qe({},hR,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(gR-10,0,1)},validator:sp},maxDate:{type:Date,default:function(){return new Date(gR+10,11,31)},validator:sp}}),watch:{filter:"updateInnerValue",minDate:function(){var e=this;this.$nextTick(function(){e.updateInnerValue()})},maxDate:function(e){this.innerValue.valueOf()>=e.valueOf()?this.innerValue=e:this.updateInnerValue()},value:function(e){e=this.formatValue(e),e&&e.valueOf()!==this.innerValue.valueOf()&&(this.innerValue=e)}},computed:{ranges:function(){var e=this.getBoundary("max",this.innerValue?this.innerValue:this.minDate),n=e.maxYear,i=e.maxDate,s=e.maxMonth,o=e.maxHour,u=e.maxMinute,d=this.getBoundary("min",this.innerValue?this.innerValue:this.minDate),f=d.minYear,p=d.minDate,v=d.minMonth,y=d.minHour,M=d.minMinute,b=[{type:"year",range:[f,n]},{type:"month",range:[v,s]},{type:"day",range:[p,i]},{type:"hour",range:[y,o]},{type:"minute",range:[M,u]}];switch(this.type){case"date":b=b.slice(0,3);break;case"year-month":b=b.slice(0,2);break;case"month-day":b=b.slice(1,3);break;case"datehour":b=b.slice(0,4);break}if(this.columnsOrder){var x=this.columnsOrder.concat(b.map(function(N){return N.type}));b.sort(function(N,w){return x.indexOf(N.type)-x.indexOf(w.type)})}return b}},methods:{formatValue:function(e){var n=this;if(!sp(e))return null;var i=new Date(this.minDate),s=new Date(this.maxDate),o={year:"getFullYear",month:"getMonth",day:"getDate",hour:"getHours",minute:"getMinutes"};if(this.originColumns){var u=this.originColumns.map(function(p,v){var y=p.type,M=p.values,b=n.ranges[v].range,x=i[o[y]](),N=s[o[y]](),w=y==="month"?+M[0]-1:+M[0],k=y==="month"?+M[M.length-1]-1:+M[M.length-1];return{type:y,values:[x<b[0]?Math.max(x,w):w||x,N>b[1]?Math.min(N,k):k||N]}});if(this.type==="month-day"){var d=(this.innerValue||this.minDate).getFullYear();u.unshift({type:"year",values:[d,d]})}var f=Object.keys(o).map(function(p){var v;return(v=u.filter(function(y){return y.type===p})[0])==null?void 0:v.values}).filter(function(p){return p});i=op(Date,f.map(function(p){return FD(p[0])})),s=op(Date,f.map(function(p){return FD(p[1])}))}return e=Math.max(e,i.getTime()),e=Math.min(e,s.getTime()),new Date(e)},getBoundary:function(e,n){var i,s=this[e+"Date"],o=s.getFullYear(),u=1,d=1,f=0,p=0;return e==="max"&&(u=12,d=BD(n.getFullYear(),n.getMonth()+1),f=23,p=59),n.getFullYear()===o&&(u=s.getMonth()+1,n.getMonth()+1===u&&(d=s.getDate(),n.getDate()===d&&(f=s.getHours(),n.getHours()===f&&(p=s.getMinutes())))),i={},i[e+"Year"]=o,i[e+"Month"]=u,i[e+"Date"]=d,i[e+"Hour"]=f,i[e+"Minute"]=p,i},updateInnerValue:function(){var e=this,n=this.type,i=this.getPicker().getIndexes(),s=function(b){var x=0;e.originColumns.forEach(function(w,k){b===w.type&&(x=k)});var N=e.originColumns[x].values;return FD(N[i[x]])},o,u,d;n==="month-day"?(o=(this.innerValue||this.minDate).getFullYear(),u=s("month"),d=s("day")):(o=s("year"),u=s("month"),d=n==="year-month"?1:s("day"));var f=BD(o,u);d=d>f?f:d;var p=0,v=0;n==="datehour"&&(p=s("hour")),n==="datetime"&&(p=s("hour"),v=s("minute"));var y=new Date(o,u-1,d,p,v);this.innerValue=this.formatValue(y)},onChange:function(e){var n=this;this.updateInnerValue(),this.$nextTick(function(){n.$nextTick(function(){n.updateInnerValue(),n.$emit("change",e)})})},updateColumnValue:function(){var e=this,n=this.innerValue?this.innerValue:this.minDate,i=this.formatter,s=this.originColumns.map(function(o){switch(o.type){case"year":return i("year",""+n.getFullYear());case"month":return i("month",An(n.getMonth()+1));case"day":return i("day",An(n.getDate()));case"hour":return i("hour",An(n.getHours()));case"minute":return i("minute",An(n.getMinutes()));default:return null}});this.$nextTick(function(){e.getPicker().setValues(s)})}}});var yR=Ae("datetime-picker"),$Se=yR[0],LSe=yR[1];const bR=$Se({props:qe({},mR.props,vR.props),methods:{getPicker:function(){return this.$refs.root.getProxiedPicker()}},render:function(){var e=arguments[0],n=this.type==="time"?mR:vR;return e(n,{ref:"root",class:LSe(),scopedSlots:this.$scopedSlots,props:qe({},this.$props),on:qe({},this.$listeners)})}});var _R=Ae("divider"),zSe=_R[0],PSe=_R[1];function MR(t,e,n,i){var s;return t("div",Pt([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:PSe((s={dashed:e.dashed,hairline:e.hairline},s["content-"+e.contentPosition]=n.default,s))},on(i,!0)]),[n.default&&n.default()])}MR.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};const RSe=zSe(MR);var xR=Ae("dropdown-item"),FSe=xR[0],Db=xR[1];const BSe=FSe({mixins:[gD({ref:"wrapper"}),fr("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var e=this;if(this.title)return this.title;var n=this.options.filter(function(i){return i.value===e.value});return n.length?n[0].text:""}},watch:{showPopup:function(e){this.bindScroll(e)}},beforeCreate:function(){var e=this,n=function(s){return function(){return e.$emit(s)}};this.onOpen=n("open"),this.onClose=n("close"),this.onOpened=n("opened")},methods:{toggle:function(e,n){e===void 0&&(e=!this.showPopup),n===void 0&&(n={}),e!==this.showPopup&&(this.transition=!n.immediate,this.showPopup=e,e&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(e){var n=this.parent.scroller,i=e?ts:Wo;i(n,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(e){this.getContainer&&e.stopPropagation()}},render:function(){var e=this,n=arguments[0],i=this.parent,s=i.zIndex,o=i.offset,u=i.overlay,d=i.duration,f=i.direction,p=i.activeColor,v=i.closeOnClickOverlay,y=this.options.map(function(b){var x=b.value===e.value;return n(Vi,{attrs:{clickable:!0,icon:b.icon,title:b.text},key:b.value,class:Db("option",{active:x}),style:{color:x?p:""},on:{click:function(){e.showPopup=!1,b.value!==e.value&&(e.$emit("input",b.value),e.$emit("change",b.value))}}},[x&&n(It,{class:Db("icon"),attrs:{color:p,name:"success"}})])}),M={zIndex:s};return f==="down"?M.top=o+"px":M.bottom=o+"px",n("div",[n("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:M,class:Db([f]),on:{click:this.onClickWrapper}},[n(_a,{attrs:{overlay:u,position:f==="down"?"top":"bottom",duration:this.transition?d:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:v},class:Db("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){e.showWrapper=!1,e.$emit("closed")}},model:{value:e.showPopup,callback:function(x){e.showPopup=x}}},[y,this.slots("default")])])])}});var lw=function(e){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var i=this,s=function(u){i.closeOnClickOutside&&!i.$el.contains(u.target)&&i[e.method]()};return{clickOutsideHandler:s}},mounted:function(){ts(document,e.event,this.clickOutsideHandler)},beforeDestroy:function(){Wo(document,e.event,this.clickOutsideHandler)}}},CR=Ae("dropdown-menu"),USe=CR[0],wb=CR[1];const VSe=USe({mixins:[hr("vanDropdownMenu"),lw({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return pu(this.$el)},opened:function(){return this.children.some(function(e){return e.showWrapper})},barStyle:function(){if(this.opened&&Ut(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var e=this.$refs.bar.getBoundingClientRect();this.direction==="down"?this.offset=e.bottom:this.offset=window.innerHeight-e.top}},toggleItem:function(e){this.children.forEach(function(n,i){i===e?n.toggle():n.showPopup&&n.toggle(!1,{immediate:!0})})},onClickOutside:function(){this.children.forEach(function(e){e.toggle(!1)})}},render:function(){var e=this,n=arguments[0],i=this.children.map(function(s,o){return n("div",{attrs:{role:"button",tabindex:s.disabled?-1:0},class:wb("item",{disabled:s.disabled}),on:{click:function(){s.disabled||e.toggleItem(o)}}},[n("span",{class:[wb("title",{active:s.showPopup,down:s.showPopup===(e.direction==="down")}),s.titleClass],style:{color:s.showPopup?e.activeColor:""}},[n("div",{class:"van-ellipsis"},[s.slots("title")||s.displayTitle])])])});return n("div",{class:wb()},[n("div",{ref:"bar",style:this.barStyle,class:wb("bar",{opened:this.opened})},[i]),this.slots("default")])}});var ci="van-empty-network-";const YSe={render:function(){var e=arguments[0],n=function(s,o,u){return e("stop",{attrs:{"stop-color":s,offset:o+"%","stop-opacity":u}})};return e("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[e("defs",[e("linearGradient",{attrs:{id:ci+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[n("#FFF",0,.5),n("#F2F3F5",100)]),e("linearGradient",{attrs:{id:ci+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[n("#EBEDF0",0),n("#DCDEE0",100,0)]),e("linearGradient",{attrs:{id:ci+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("linearGradient",{attrs:{id:ci+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[n("#EAEDF0",0),n("#DCDEE0",100)]),e("radialGradient",{attrs:{id:ci+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[n("#EBEDF0",0),n("#FFF",100,0)])]),e("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[e("g",{attrs:{opacity:".8"}},[e("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+ci+"1)",transform:"matrix(-1 0 0 1 36 7)"}}),e("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+ci+"1)",transform:"translate(2 7)"}})]),e("path",{attrs:{fill:"url(#"+ci+"7)",d:"M0 139h160v21H0z"}}),e("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+ci+"2)","fill-rule":"nonzero",transform:"translate(43 36)"}}),e("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[e("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ci+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ci+"3)",transform:"translate(43 36)"}}),e("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+ci+"4)",transform:"rotate(-180 76.483 42.257)"}}),e("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+ci+"4)",transform:"rotate(-180 89.791 42.146)"}})]),e("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[e("rect",{attrs:{fill:"url(#"+ci+"5)",width:"98",height:"34",rx:"2"}}),e("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),e("rect",{attrs:{fill:"url(#"+ci+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}};var SR=Ae("empty"),HSe=SR[0],Nb=SR[1],WSe=["error","search","default"];const QSe=HSe({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var e=this.$createElement,n=this.slots("image");if(n)return n;if(this.image==="network")return e(YSe);var i=this.image;return WSe.indexOf(i)!==-1&&(i="https://img01.yzcdn.cn/vant/empty-image-"+i+".png"),e("img",{attrs:{src:i}})},genImage:function(){var e=this.$createElement,n={width:Wt(this.imageSize),height:Wt(this.imageSize)};return e("div",{class:Nb("image"),style:n},[this.genImageContent()])},genDescription:function(){var e=this.$createElement,n=this.slots("description")||this.description;if(n)return e("p",{class:Nb("description")},[n])},genBottom:function(){var e=this.$createElement,n=this.slots();if(n)return e("div",{class:Nb("bottom")},[n])}},render:function(){var e=arguments[0];return e("div",{class:Nb()},[this.genImage(),this.genDescription(),this.genBottom()])}});var TR=Ae("form"),GSe=TR[0],KSe=TR[1];const qSe=GSe({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(e){return e?this.fields.filter(function(n){return e.indexOf(n.name)!==-1}):this.fields},validateSeq:function(e){var n=this;return new Promise(function(i,s){var o=[],u=n.getFieldsByNames(e);u.reduce(function(d,f){return d.then(function(){if(!o.length)return f.validate().then(function(p){p&&o.push(p)})})},Promise.resolve()).then(function(){o.length?s(o):i()})})},validateFields:function(e){var n=this;return new Promise(function(i,s){var o=n.getFieldsByNames(e);Promise.all(o.map(function(u){return u.validate()})).then(function(u){u=u.filter(function(d){return d}),u.length?s(u):i()})})},validate:function(e){return e&&!Array.isArray(e)?this.validateField(e):this.validateFirst?this.validateSeq(e):this.validateFields(e)},validateField:function(e){var n=this.fields.filter(function(i){return i.name===e});return n.length?new Promise(function(i,s){n[0].validate().then(function(o){o?s(o):i()})}):Promise.reject()},resetValidation:function(e){e&&!Array.isArray(e)&&(e=[e]);var n=this.getFieldsByNames(e);n.forEach(function(i){i.resetValidation()})},scrollToField:function(e,n){this.fields.some(function(i){return i.name===e?(i.$el.scrollIntoView(n),!0):!1})},addField:function(e){this.fields.push(e),f3(this.fields,this)},removeField:function(e){this.fields=this.fields.filter(function(n){return n!==e})},getValues:function(){return this.fields.reduce(function(e,n){return e[n.name]=n.formValue,e},{})},onSubmit:function(e){e.preventDefault(),this.submit()},submit:function(){var e=this,n=this.getValues();this.validate().then(function(){e.$emit("submit",n)}).catch(function(i){e.$emit("failed",{values:n,errors:i}),e.scrollToError&&e.scrollToField(i[0].name)})}},render:function(){var e=arguments[0];return e("form",{class:KSe(),on:{submit:this.onSubmit}},[this.slots()])}});var DR=Ae("goods-action-icon"),XSe=DR[0],uw=DR[1];const ZSe=XSe({mixins:[fr("vanGoodsAction")],props:qe({},Qo,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)},genIcon:function(){var e,n=this.$createElement,i=this.slots("icon"),s=(e=this.badge)!=null?e:this.info;return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] GoodsActionIcon: "info" prop is deprecated, use "badge" prop instead.'),i?n("div",{class:uw("icon")},[i,n(gu,{attrs:{dot:this.dot,info:s}})]):n(It,{class:[uw("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,name:this.icon,badge:s,color:this.color}})}},render:function(){var e=arguments[0];return e("div",{attrs:{role:"button",tabindex:"0"},class:uw(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}});var wR=Ae("grid"),JSe=wR[0],e1e=wR[1];const t1e=JSe({mixins:[hr("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var e=this.gutter;if(e)return{paddingLeft:Wt(e)}}},render:function(){var e,n=arguments[0];return n("div",{style:this.style,class:[e1e(),(e={},e[vD]=this.border&&!this.gutter,e)]},[this.slots()])}});var NR=Ae("grid-item"),n1e=NR[0],lp=NR[1];const i1e=n1e({mixins:[fr("vanGrid")],props:qe({},Qo,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var e=this.parent,n=e.square,i=e.gutter,s=e.columnNum,o=100/s+"%",u={flexBasis:o};if(n)u.paddingTop=o;else if(i){var d=Wt(i);u.paddingRight=d,this.index>=s&&(u.marginTop=d)}return u},contentStyle:function(){var e=this.parent,n=e.square,i=e.gutter;if(n&&i){var s=Wt(i);return{right:s,bottom:s,height:"auto"}}}},methods:{onClick:function(e){this.$emit("click",e),vu(this.$router,this)},genIcon:function(){var e,n=this.$createElement,i=this.slots("icon"),s=(e=this.badge)!=null?e:this.info;if(process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] GridItem: "info" prop is deprecated, use "badge" prop instead.'),i)return n("div",{class:lp("icon-wrapper")},[i,n(gu,{attrs:{dot:this.dot,info:s}})]);if(this.icon)return n(It,{attrs:{name:this.icon,dot:this.dot,badge:s,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:lp("icon")})},getText:function(){var e=this.$createElement,n=this.slots("text");if(n)return n;if(this.text)return e("span",{class:lp("text")},[this.text])},genContent:function(){var e=this.slots();return e||[this.genIcon(),this.getText()]}},render:function(){var e,n=arguments[0],i=this.parent,s=i.center,o=i.border,u=i.square,d=i.gutter,f=i.direction,p=i.clickable;return n("div",{class:[lp({square:u})],style:this.style},[n("div",{style:this.contentStyle,attrs:{role:p?"button":null,tabindex:p?0:null},class:[lp("content",[f,{center:s,square:u,clickable:p,surround:o&&d}]),(e={},e[Rs]=o,e)],on:{click:this.onClick}},[this.genContent()])])}});var kR=Ae("image-preview"),r1e=kR[0],Xo=kR[1],OR=Ae("swipe"),s1e=OR[0],kb=OR[1];const ER=s1e({mixins:[ns,hr("vanSwipe"),Ls(function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()})],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(e){e>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var e=this.vertical?"vertical":"horizontal";return this.direction===e},trackStyle:function(){var e={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var n=this.vertical?"height":"width",i=this.vertical?"width":"height";e[n]=this.trackSize+"px",e[i]=this[i]?this[i]+"px":""}return e},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(e){if(e===void 0&&(e=+this.initialSwipe),!(!this.$el||ap(this.$el))){clearTimeout(this.timer);var n={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=n,this.swiping=!0,this.active=e,this.computedWidth=+this.width||n.width,this.computedHeight=+this.height||n.height,this.offset=this.getTargetOffset(e),this.children.forEach(function(i){i.offset=0}),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(e){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(e),this.correctPosition())},onTouchMove:function(e){!this.touchable||!this.swiping||(this.touchMove(e),this.isCorrectDirection&&(ui(e,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(!(!this.touchable||!this.swiping)){var e=this.size,n=this.delta,i=Date.now()-this.touchStartTime,s=n/i,o=Math.abs(s)>.25||Math.abs(n)>e/2;if(o&&this.isCorrectDirection){var u=this.vertical?this.offsetY:this.offsetX,d=0;this.loop?d=u>0?n>0?-1:1:0:d=-Math[n>0?"ceil":"floor"](n/e),this.move({pace:d,emitChange:!0})}else n&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(e){var n=this.active,i=this.count,s=this.maxCount;return e?this.loop?Di(n+e,-1,i):Di(n+e,0,s):n},getTargetOffset:function(e,n){n===void 0&&(n=0);var i=e*this.size;this.loop||(i=Math.min(i,-this.minOffset));var s=n-i;return this.loop||(s=Di(s,this.minOffset,0)),s},move:function(e){var n=e.pace,i=n===void 0?0:n,s=e.offset,o=s===void 0?0:s,u=e.emitChange,d=this.loop,f=this.count,p=this.active,v=this.children,y=this.trackSize,M=this.minOffset;if(!(f<=1)){var b=this.getTargetActive(i),x=this.getTargetOffset(b,o);if(d){if(v[0]&&x!==M){var N=x<M;v[0].offset=N?y:0}if(v[f-1]&&x!==0){var w=x>0;v[f-1].offset=w?-y:0}}this.active=b,this.offset=x,u&&b!==p&&this.$emit("change",this.activeIndicator)}},prev:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),yu(function(){e.swiping=!1,e.move({pace:-1,emitChange:!0})})},next:function(){var e=this;this.correctPosition(),this.resetTouchStatus(),yu(function(){e.swiping=!1,e.move({pace:1,emitChange:!0})})},swipeTo:function(e,n){var i=this;n===void 0&&(n={}),this.correctPosition(),this.resetTouchStatus(),yu(function(){var s;i.loop&&e===i.count?s=i.active===0?0:e:s=e%i.count,n.immediate?yu(function(){i.swiping=!1}):i.swiping=!1,i.move({pace:s-i.active,emitChange:!0})})},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var e=this,n=this.autoplay;n>0&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){e.next(),e.autoPlay()},n))},genIndicator:function(){var e=this,n=this.$createElement,i=this.count,s=this.activeIndicator,o=this.slots("indicator");if(o)return o;if(this.showIndicators&&i>1)return n("div",{class:kb("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map(function(u,d){return n("i",{class:kb("indicator",{active:d===s}),style:d===s?e.indicatorStyle:null})})])}},render:function(){var e=arguments[0];return e("div",{class:kb()},[e("div",{ref:"track",style:this.trackStyle,class:kb("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}});var IR=Ae("swipe-item"),a1e=IR[0],o1e=IR[1];const AR=a1e({mixins:[fr("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var e=this;this.$nextTick(function(){e.mounted=!0})},computed:{style:function(){var e={},n=this.parent,i=n.size,s=n.vertical;return i&&(e[s?"height":"width"]=i+"px"),this.offset&&(e.transform="translate"+(s?"Y":"X")+"("+this.offset+"px)"),e},shouldRender:function(){var e=this.index,n=this.inited,i=this.parent,s=this.mounted;if(!i.lazyRender||n)return!0;if(!s)return!1;var o=i.activeIndicator,u=i.count-1,d=o===0&&i.loop?u:o-1,f=o===u&&i.loop?0:o+1,p=e===o||e===d||e===f;return p&&(this.inited=!0),p}},render:function(){var e=arguments[0];return e("div",{class:o1e(),style:this.style,on:qe({},this.$listeners)},[this.shouldRender&&this.slots()])}});function jR(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}const l1e={mixins:[ns],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var e=this.rootWidth,n=this.rootHeight,i=n/e;return this.imageRatio>i},imageStyle:function(){var e=this.scale,n={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(e!==1){var i=this.moveX/e,s=this.moveY/e;n.transform="scale("+e+", "+e+") translate("+i+"px, "+s+"px)"}return n},maxMoveX:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*e-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var e=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*e-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(e){e||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(e){e=Di(e,+this.minZoom,+this.maxZoom),e!==this.scale&&(this.scale=e,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var e=this.scale>1?1:2;this.setScale(e),this.moveX=0,this.moveY=0},onTouchStart:function(e){var n=e.touches,i=this.offsetX,s=i===void 0?0:i;this.touchStart(e),this.touchStartTime=new Date,this.fingerNum=n.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=this.fingerNum===1&&this.scale!==1,this.zooming=this.fingerNum===2&&!s,this.zooming&&(this.startScale=this.scale,this.startDistance=jR(e.touches))},onTouchMove:function(e){var n=e.touches;if(this.touchMove(e),(this.moving||this.zooming)&&ui(e,!0),this.moving){var i=this.deltaX+this.startMoveX,s=this.deltaY+this.startMoveY;this.moveX=Di(i,-this.maxMoveX,this.maxMoveX),this.moveY=Di(s,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&n.length===2){var o=jR(n),u=this.startScale*o/this.startDistance;this.setScale(u)}},onTouchEnd:function(e){var n=!1;(this.moving||this.zooming)&&(n=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(n=!1),e.touches.length||(this.zooming&&(this.moveX=Di(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Di(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),ui(e,n),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var e=this;if(!(this.fingerNum>1)){var n=this.offsetX,i=n===void 0?0:n,s=this.offsetY,o=s===void 0?0:s,u=new Date-this.touchStartTime,d=250,f=5;i<f&&o<f&&u<d&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout(function(){e.$emit("close"),e.doubleTapTimer=null},d))}},onLoad:function(e){var n=e.target,i=n.naturalWidth,s=n.naturalHeight;this.imageRatio=s/i}},render:function(){var e=arguments[0],n={loading:function(){return e(zs,{attrs:{type:"spinner"}})}};return e(AR,{class:Xo("swipe-item")},[e(pd,{attrs:{src:this.src,fit:"contain"},class:Xo("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:n,on:{load:this.onLoad}})])}},cw=r1e({mixins:[ns,ob({skipToggleEvent:!0}),Ls(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{className:null,closeable:Boolean,asyncClose:Boolean,overlayStyle:Object,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:Xo("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(e){var n=this;e?(this.setActive(+this.startPosition),this.$nextTick(function(){n.resize(),n.$refs.swipe.swipeTo(+n.startPosition,{immediate:!0})})):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var e=this.$el.getBoundingClientRect();this.rootWidth=e.width,this.rootHeight=e.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(e){this.$emit("scale",e)},setActive:function(e){e!==this.active&&(this.active=e,this.$emit("change",e))},genIndex:function(){var e=this.$createElement;if(this.showIndex)return e("div",{class:Xo("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var e=this.$createElement,n=this.slots("cover");if(n)return e("div",{class:Xo("cover")},[n])},genImages:function(){var e=this,n=this.$createElement;return n(ER,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:Xo("swipe"),on:{change:this.setActive}},[this.images.map(function(i){return n(l1e,{attrs:{src:i,show:e.value,active:e.active,maxZoom:e.maxZoom,minZoom:e.minZoom,rootWidth:e.rootWidth,rootHeight:e.rootHeight},on:{scale:e.emitScale,close:e.emitClose}})})])},genClose:function(){var e=this.$createElement;if(this.closeable)return e(It,{attrs:{role:"button",name:this.closeIcon},class:Xo("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(e,n){this.$refs.swipe&&this.$refs.swipe.swipeTo(e,n)}},render:function(){var e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?e("div",{directives:[{name:"show",value:this.value}],class:[Xo(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}});var di,u1e={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",overlayStyle:null,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},c1e=function(){di=new(ft.extend(cw))({el:document.createElement("div")}),document.body.appendChild(di.$el),di.$on("change",function(e){di.onChange&&di.onChange(e)}),di.$on("scale",function(e){di.onScale&&di.onScale(e)})},dw=function(e,n){if(n===void 0&&(n=0),!cr){di||c1e();var i=Array.isArray(e)?{images:e,startPosition:n}:e;return qe(di,u1e,i),di.$once("input",function(s){di.value=s}),di.$once("closed",function(){di.images=[]}),i.onClose&&(di.$off("close"),di.$once("close",i.onClose)),di}};dw.Component=cw,dw.install=function(){ft.use(cw)};const fw=dw;var $R=Ae("index-anchor"),d1e=$R[0],f1e=$R[1];const h1e=d1e({mixins:[fr("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var e=this.$el.getBoundingClientRect();this.rect.height=e.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(e,n){var i=this.$el,s=i.getBoundingClientRect();return this.rect.height=s.height,e===window||e===document.body?this.rect.top=s.top+ep():this.rect.top=s.top+mu(e)-n.top,this.rect}},render:function(){var e,n=arguments[0],i=this.sticky;return n("div",{style:{height:i?this.rect.height+"px":null}},[n("div",{style:this.anchorStyle,class:[f1e({sticky:i}),(e={},e[tp]=i,e)]},[this.slots("default")||this.index])])}});function p1e(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}var LR=Ae("index-bar"),m1e=LR[0],hw=LR[1];const g1e=m1e({mixins:[ns,hr("vanIndexBar"),Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:p1e}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Ut(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var e=this.highlightColor;if(e)return{color:e}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(e){e&&this.$emit("change",e)}},methods:{onScroll:function(){var e=this;if(!ap(this.$el)){var n=mu(this.scroller),i=this.getScrollerRect(),s=this.children.map(function(u){return u.getRect(e.scroller,i)}),o=this.getActiveAnchorIndex(n,s);this.activeAnchorIndex=this.indexList[o],this.sticky&&this.children.forEach(function(u,d){if(d===o||d===o-1){var f=u.$el.getBoundingClientRect();u.left=f.left,u.width=f.width}else u.left=null,u.width=null;if(d===o)u.active=!0,u.top=Math.max(e.stickyOffsetTop,s[d].top-n)+i.top;else if(d===o-1){var p=s[o].top-n;u.active=p>0,u.top=p+i.top-s[d].height}else u.active=!1})}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(e,n){for(var i=this.children.length-1;i>=0;i--){var s=i>0?n[i-1].height:0,o=this.sticky?s+this.stickyOffsetTop:0;if(e+o>=n[i].top)return i}return-1},onClick:function(e){this.scrollToElement(e.target)},onTouchMove:function(e){if(this.touchMove(e),this.direction==="vertical"){ui(e);var n=e.touches[0],i=n.clientX,s=n.clientY,o=document.elementFromPoint(i,s);if(o){var u=o.dataset.index;this.touchActiveIndex!==u&&(this.touchActiveIndex=u,this.scrollToElement(o))}}},scrollTo:function(e){var n=this.children.filter(function(i){return String(i.index)===e});n[0]&&(n[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&sb(ep()-this.stickyOffsetTop),this.$emit("select",n[0].index))},scrollToElement:function(e){var n=e.dataset.index;this.scrollTo(n)},onTouchEnd:function(){this.active=null}},render:function(){var e=this,n=arguments[0],i=this.indexList.map(function(s){var o=s===e.activeAnchorIndex;return n("span",{class:hw("index",{active:o}),style:o?e.highlightStyle:null,attrs:{"data-index":s}},[s])});return n("div",{class:hw()},[n("div",{class:hw("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}});var pw=Ae("list"),v1e=pw[0],up=pw[1],y1e=pw[2];const b1e=v1e({mixins:[Ls(function(t){this.scroller||(this.scroller=pu(this.$el)),t(this.scroller,"scroll",this.check)})],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var e=this;this.$nextTick(function(){if(!(e.innerLoading||e.finished||e.error)){var n=e.$el,i=e.scroller,s=e.offset,o=e.direction,u;i.getBoundingClientRect?u=i.getBoundingClientRect():u={top:0,bottom:i.innerHeight};var d=u.bottom-u.top;if(!d||ap(n))return!1;var f=!1,p=e.$refs.placeholder.getBoundingClientRect();o==="up"?f=u.top-p.top<=s:f=p.bottom-u.bottom<=s,f&&(e.innerLoading=!0,e.$emit("input",!0),e.$emit("load"))}})},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var e=this.$createElement;if(this.innerLoading&&!this.finished)return e("div",{key:"loading",class:up("loading")},[this.slots("loading")||e(zs,{attrs:{size:"16"}},[this.loadingText||y1e("loading")])])},genFinishedText:function(){var e=this.$createElement;if(this.finished){var n=this.slots("finished")||this.finishedText;if(n)return e("div",{class:up("finished-text")},[n])}},genErrorText:function(){var e=this.$createElement;if(this.error){var n=this.slots("error")||this.errorText;if(n)return e("div",{on:{click:this.clickErrorText},class:up("error-text")},[n])}}},render:function(){var e=arguments[0],n=e("div",{ref:"placeholder",key:"placeholder",class:up("placeholder")});return e("div",{class:up(),attrs:{role:"feed","aria-busy":this.innerLoading}},[this.direction==="down"?this.slots():n,this.genLoading(),this.genFinishedText(),this.genErrorText(),this.direction==="up"?this.slots():n])}});var zR=Ae("nav-bar"),_1e=zR[0],Ka=zR[1];const M1e=_1e({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){var e=this;if(this.placeholder&&this.fixed){var n=function(){e.height=e.$refs.navBar.getBoundingClientRect().height};n(),setTimeout(n,100)}},methods:{genLeft:function(){var e=this.$createElement,n=this.slots("left");return n||[this.leftArrow&&e(It,{class:Ka("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&e("span",{class:Ka("text")},[this.leftText])]},genRight:function(){var e=this.$createElement,n=this.slots("right");if(n)return n;if(this.rightText)return e("span",{class:Ka("text")},[this.rightText])},genNavBar:function(){var e,n=this.$createElement;return n("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[Ka({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(e={},e[tp]=this.border,e)]},[n("div",{class:Ka("content")},[this.hasLeft()&&n("div",{class:Ka("left"),on:{click:this.onClickLeft}},[this.genLeft()]),n("div",{class:[Ka("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&n("div",{class:Ka("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(e){this.$emit("click-left",e)},onClickRight:function(e){this.$emit("click-right",e)}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:Ka("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}});var PR=Ae("notice-bar"),x1e=PR[0],cp=PR[1];const C1e=x1e({mixins:[Ls(function(t){t(window,"pageshow",this.reset)})],inject:{vanPopup:{default:null}},props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"reset",text:{handler:"reset",immediate:!0}},created:function(){this.vanPopup&&this.vanPopup.onReopen(this.reset)},activated:function(){this.reset()},methods:{onClickIcon:function(e){this.mode==="closeable"&&(this.show=!1,this.$emit("close",e))},onTransitionEnd:function(){var e=this;this.offset=this.wrapWidth,this.duration=0,rs(function(){yu(function(){e.offset=-e.contentWidth,e.duration=(e.contentWidth+e.wrapWidth)/e.speed,e.$emit("replay")})})},start:function(){this.reset()},reset:function(){var e=this,n=Ut(this.delay)?this.delay*1e3:0;this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0,clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var i=e.$refs,s=i.wrap,o=i.content;if(!(!s||!o||e.scrollable===!1)){var u=s.getBoundingClientRect().width,d=o.getBoundingClientRect().width;(e.scrollable||d>u)&&yu(function(){e.offset=-d,e.duration=d/e.speed,e.wrapWidth=u,e.contentWidth=d})}},n)}},render:function(){var e=this,n=arguments[0],i=this.slots,s=this.mode,o=this.leftIcon,u=this.onClickIcon,d={color:this.color,background:this.background},f={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};function p(){var y=i("left-icon");if(y)return y;if(o)return n(It,{class:cp("left-icon"),attrs:{name:o}})}function v(){var y=i("right-icon");if(y)return y;var M;if(s==="closeable"?M="cross":s==="link"&&(M="arrow"),M)return n(It,{class:cp("right-icon"),attrs:{name:M},on:{click:u}})}return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:cp({wrapable:this.wrapable}),style:d,on:{click:function(M){e.$emit("click",M)}}},[p(),n("div",{ref:"wrap",class:cp("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[cp("content"),{"van-ellipsis":this.scrollable===!1&&!this.wrapable}],style:f,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),v()])}});var RR=Ae("notify"),S1e=RR[0],T1e=RR[1];function FR(t,e,n,i){var s={color:e.color,background:e.background};return t(_a,Pt([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:s,class:[T1e([e.type]),e.className]},on(i,!0)]),[(n.default==null?void 0:n.default())||e.message])}FR.props=qe({},ab,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});const mw=S1e(FR);var BR,ss;function D1e(t){return $s(t)?t:{message:t}}function as(t){if(!cr)return ss||(ss=MP(mw,{on:{click:function(n){ss.onClick&&ss.onClick(n)},close:function(){ss.onClose&&ss.onClose()},opened:function(){ss.onOpened&&ss.onOpened()}}})),t=qe({},as.currentOptions,D1e(t)),qe(ss,t),clearTimeout(BR),t.duration&&t.duration>0&&(BR=setTimeout(as.clear,t.duration)),ss}function UR(){return{type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}}as.clear=function(){ss&&(ss.value=!1)},as.currentOptions=UR(),as.setDefaultOptions=function(t){qe(as.currentOptions,t)},as.resetDefaultOptions=function(){as.currentOptions=UR()},as.install=function(){ft.use(mw)},as.Component=mw,ft.prototype.$notify=as;const w1e={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},N1e={render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}};var VR=Ae("key"),k1e=VR[0],dp=VR[1];const gw=k1e({mixins:[ns],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(e){e.stopPropagation(),this.touchStart(e),this.active=!0},onTouchMove:function(e){this.touchMove(e),this.direction&&(this.active=!1)},onTouchEnd:function(e){this.active&&(this.slots("default")||e.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var e=this.$createElement,n=this.type==="extra",i=this.type==="delete",s=this.slots("default")||this.text;return this.loading?e(zs,{class:dp("loading-icon")}):i?s||e(w1e,{class:dp("delete-icon")}):n?s||e(N1e,{class:dp("collapse-icon")}):s}},render:function(){var e=arguments[0];return e("div",{class:dp("wrapper",{wider:this.wider})},[e("div",{attrs:{role:"button",tabindex:"0"},class:dp([this.color,{large:this.large,active:this.active,delete:this.type==="delete"}])},[this.genContent()])])}});var YR=Ae("number-keyboard"),O1e=YR[0],Zo=YR[1];const E1e=O1e({mixins:[gD(),Ls(function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(e){this.transition||this.$emit(e?"show":"hide")}},computed:{keys:function(){return this.theme==="custom"?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var e=[],n=1;n<=9;n++)e.push({text:n});return this.randomKeyOrder&&e.sort(function(){return Math.random()>.5?1:-1}),e},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var e=this.genBasicKeys(),n=this.extraKey,i=Array.isArray(n)?n:[n];return i.length===1?e.push({text:0,wider:!0},{text:i[0],type:"extra"}):i.length===2&&e.push({text:i[0],type:"extra"},{text:0},{text:i[1],type:"extra"}),e},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(e,n){if(e===""){n==="extra"&&this.onBlur();return}var i=this.value;n==="delete"?(this.$emit("delete"),this.$emit("update:value",i.slice(0,i.length-1))):n==="close"?this.onClose():i.length<this.maxlength&&(this.$emit("input",e),this.$emit("update:value",i+e))},genTitle:function(){var e=this.$createElement,n=this.title,i=this.theme,s=this.closeButtonText,o=this.slots("title-left"),u=s&&i==="default",d=n||u||o;if(d)return e("div",{class:Zo("header")},[o&&e("span",{class:Zo("title-left")},[o]),n&&e("h2",{class:Zo("title")},[n]),u&&e("button",{attrs:{type:"button"},class:Zo("close"),on:{click:this.onClose}},[s])])},genKeys:function(){var e=this,n=this.$createElement;return this.keys.map(function(i){return n(gw,{key:i.text,attrs:{text:i.text,type:i.type,wider:i.wider,color:i.color},on:{press:e.onPress}},[i.type==="delete"&&e.slots("delete"),i.type==="extra"&&e.slots("extra-key")])})},genSidebar:function(){var e=this.$createElement;if(this.theme==="custom")return e("div",{class:Zo("sidebar")},[this.showDeleteKey&&e(gw,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),e(gw,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var e=arguments[0],n=this.genTitle();return e("transition",{attrs:{name:this.transition?"van-slide-up":""}},[e("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:Zo({unfit:!this.safeAreaInsetBottom,"with-title":n}),on:{touchstart:SP,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[n,e("div",{class:Zo("body")},[e("div",{class:Zo("keys")},[this.genKeys()]),this.genSidebar()])])])}});var vw=Ae("pagination"),I1e=vw[0],Jo=vw[1],HR=vw[2];function yw(t,e,n){return{number:t,text:e,active:n}}const A1e=I1e({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var e=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,e)},pages:function(){var e=[],n=this.count,i=+this.showPageSize;if(this.mode!=="multi")return e;var s=1,o=n,u=i<n;u&&(s=Math.max(this.value-Math.floor(i/2),1),o=s+i-1,o>n&&(o=n,s=o-i+1));for(var d=s;d<=o;d++){var f=yw(d,d,d===this.value);e.push(f)}if(u&&i>0&&this.forceEllipses){if(s>1){var p=yw(s-1,"...",!1);e.unshift(p)}if(o<n){var v=yw(o+1,"...",!1);e.push(v)}}return e}},watch:{value:{handler:function(e){this.select(e||this.value)},immediate:!0}},methods:{select:function(e,n){e=Math.min(this.count,Math.max(1,e)),this.value!==e&&(this.$emit("input",e),n&&this.$emit("change",e))}},render:function(){var e=this,n,i,s=arguments[0],o=this.value,u=this.mode!=="multi",d=function(p){return function(){e.select(p,!0)}};return s("ul",{class:Jo({simple:u})},[s("li",{class:[Jo("item",{disabled:o===1}),Jo("prev"),Rs],on:{click:d(o-1)}},[((n=this.slots("prev-text"))!=null?n:this.prevText)||HR("prev")]),this.pages.map(function(f){var p;return s("li",{class:[Jo("item",{active:f.active}),Jo("page"),Rs],on:{click:d(f.number)}},[(p=e.slots("page",f))!=null?p:f.text])}),u&&s("li",{class:Jo("page-desc")},[this.slots("pageDesc")||o+"/"+this.count]),s("li",{class:[Jo("item",{disabled:o===this.count}),Jo("next"),Rs],on:{click:d(o+1)}},[((i=this.slots("next-text"))!=null?i:this.nextText)||HR("next")])])}});var WR=Ae("panel"),j1e=WR[0],fp=WR[1];function QR(t,e,n,i){var s=function(){return[n.header?n.header():t(Vi,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:fp("header-value")},class:fp("header")}),t("div",{class:fp("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[fp("footer"),vD]},[n.footer()])]};return t(K3,Pt([{class:fp(),scopedSlots:{default:s}},on(i,!0)]))}QR.props={icon:String,desc:String,title:String,status:String};const $1e=j1e(QR);var GR=Ae("password-input"),L1e=GR[0],hp=GR[1];function KR(t,e,n,i){for(var s,o=e.mask,u=e.value,d=e.length,f=e.gutter,p=e.focused,v=e.errorInfo,y=v||e.info,M=[],b=0;b<d;b++){var x,N=u[b],w=b!==0&&!f,k=p&&b===u.length,E=void 0;b!==0&&f&&(E={marginLeft:Wt(f)}),M.push(t("li",{class:[(x={},x[VP]=w,x),hp("item",{focus:k})],style:E},[o?t("i",{style:{visibility:N?"visible":"hidden"}}):N,k&&t("div",{class:hp("cursor")})]))}return t("div",{class:hp()},[t("ul",Pt([{class:[hp("security"),(s={},s[YP]=!f,s)],on:{touchstart:function(T){T.stopPropagation(),Yt(i,"focus",T)}}},on(i,!0)]),[M]),y&&t("div",{class:hp(v?"error-info":"info")},[y])])}KR.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};const z1e=L1e(KR);function Us(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function bw(t){var e=Us(t).Element;return t instanceof e||t instanceof Element}function Vs(t){var e=Us(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qR(t){if(typeof ShadowRoot>"u")return!1;var e=Us(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var gd=Math.round;function _w(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function P1e(){return!/^((?!chrome|android).)*safari/i.test(_w())}function Ob(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,o=1;e&&Vs(t)&&(s=t.offsetWidth>0&&gd(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&gd(i.height)/t.offsetHeight||1);var u=bw(t)?Us(t):window,d=u.visualViewport,f=!P1e()&&n,p=(i.left+(f&&d?d.offsetLeft:0))/s,v=(i.top+(f&&d?d.offsetTop:0))/o,y=i.width/s,M=i.height/o;return{width:y,height:M,top:v,right:p+y,bottom:v+M,left:p,x:p,y:v}}function XR(t){var e=Us(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function R1e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function F1e(t){return t===Us(t)||!Vs(t)?XR(t):R1e(t)}function qa(t){return t?(t.nodeName||"").toLowerCase():null}function Eb(t){return((bw(t)?t.ownerDocument:t.document)||window.document).documentElement}function B1e(t){return Ob(Eb(t)).left+XR(t).scrollLeft}function Xa(t){return Us(t).getComputedStyle(t)}function Mw(t){var e=Xa(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function U1e(t){var e=t.getBoundingClientRect(),n=gd(e.width)/t.offsetWidth||1,i=gd(e.height)/t.offsetHeight||1;return n!==1||i!==1}function V1e(t,e,n){n===void 0&&(n=!1);var i=Vs(e),s=Vs(e)&&U1e(e),o=Eb(e),u=Ob(t,s,n),d={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((qa(e)!=="body"||Mw(o))&&(d=F1e(e)),Vs(e)?(f=Ob(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=B1e(o))),{x:u.left+d.scrollLeft-f.x,y:u.top+d.scrollTop-f.y,width:u.width,height:u.height}}function Y1e(t){var e=Ob(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function xw(t){return qa(t)==="html"?t:t.assignedSlot||t.parentNode||(qR(t)?t.host:null)||Eb(t)}function ZR(t){return["html","body","#document"].indexOf(qa(t))>=0?t.ownerDocument.body:Vs(t)&&Mw(t)?t:ZR(xw(t))}function Ib(t,e){var n;e===void 0&&(e=[]);var i=ZR(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Us(i),u=s?[o].concat(o.visualViewport||[],Mw(i)?i:[]):i,d=e.concat(u);return s?d:d.concat(Ib(xw(u)))}function H1e(t){return["table","td","th"].indexOf(qa(t))>=0}function JR(t){return!Vs(t)||Xa(t).position==="fixed"?null:t.offsetParent}function W1e(t){var e=/firefox/i.test(_w()),n=/Trident/i.test(_w());if(n&&Vs(t)){var i=Xa(t);if(i.position==="fixed")return null}var s=xw(t);for(qR(s)&&(s=s.host);Vs(s)&&["html","body"].indexOf(qa(s))<0;){var o=Xa(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function eF(t){for(var e=Us(t),n=JR(t);n&&H1e(n)&&Xa(n).position==="static";)n=JR(n);return n&&(qa(n)==="html"||qa(n)==="body"&&Xa(n).position==="static")?e:n||W1e(t)||e}var vd="top",Ab="bottom",pp="right",bu="left",tF="auto",Q1e=[vd,Ab,pp,bu],nF="start",jb="end",G1e=[].concat(Q1e,[tF]).reduce(function(t,e){return t.concat([e,e+"-"+nF,e+"-"+jb])},[]),K1e="beforeRead",q1e="read",X1e="afterRead",Z1e="beforeMain",J1e="main",eTe="afterMain",tTe="beforeWrite",nTe="write",iTe="afterWrite",Cw=[K1e,q1e,X1e,Z1e,J1e,eTe,tTe,nTe,iTe];function rTe(t){var e=new Map,n=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function s(o){n.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(d){if(!n.has(d)){var f=e.get(d);f&&s(f)}}),i.push(o)}return t.forEach(function(o){n.has(o.name)||s(o)}),i}function sTe(t){var e=rTe(t);return Cw.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function aTe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function el(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(s,o){return s.replace(/%s/,o)},t)}var _u='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',oTe='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',iF=["name","enabled","phase","fn","effect","requires","options"];function lTe(t){t.forEach(function(e){[].concat(Object.keys(e),iF).filter(function(n,i,s){return s.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(el(_u,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(el(_u,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Cw.indexOf(e.phase)<0&&console.error(el(_u,e.name,'"phase"',"either "+Cw.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(el(_u,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(el(_u,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(el(_u,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(el(_u,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+iF.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(i){t.find(function(s){return s.name===i})==null&&console.error(el(oTe,String(e.name),i,i))})})})}function uTe(t,e){var n=new Set;return t.filter(function(i){var s=e(i);if(!n.has(s))return n.add(s),!0})}function $b(t){return t.split("-")[0]}function cTe(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}function rF(t){return t.split("-")[1]}function dTe(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fTe(t){var e=t.reference,n=t.element,i=t.placement,s=i?$b(i):null,o=i?rF(i):null,u=e.x+e.width/2-n.width/2,d=e.y+e.height/2-n.height/2,f;switch(s){case vd:f={x:u,y:e.y-n.height};break;case Ab:f={x:u,y:e.y+e.height};break;case pp:f={x:e.x+e.width,y:d};break;case bu:f={x:e.x-n.width,y:d};break;default:f={x:e.x,y:e.y}}var p=s?dTe(s):null;if(p!=null){var v=p==="y"?"height":"width";switch(o){case nF:f[p]=f[p]-(e[v]/2-n[v]/2);break;case jb:f[p]=f[p]+(e[v]/2-n[v]/2);break}}return f}var sF="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hTe="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",aF={placement:"bottom",modifiers:[],strategy:"absolute"};function oF(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function pTe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,s=e.defaultOptions,o=s===void 0?aF:s;return function(d,f,p){p===void 0&&(p=o);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},aF,o),modifiersData:{},elements:{reference:d,popper:f},attributes:{},styles:{}},y=[],M=!1,b={state:v,setOptions:function(k){var E=typeof k=="function"?k(v.options):k;N(),v.options=Object.assign({},o,v.options,E),v.scrollParents={reference:bw(d)?Ib(d):d.contextElement?Ib(d.contextElement):[],popper:Ib(f)};var S=sTe(cTe([].concat(i,v.options.modifiers)));v.orderedModifiers=S.filter(function(q){return q.enabled});{var T=uTe([].concat(S,v.options.modifiers),function(q){var G=q.name;return G});if(lTe(T),$b(v.options.placement)===tF){var O=v.orderedModifiers.find(function(q){var G=q.name;return G==="flip"});O||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var j=Xa(f),$=j.marginTop,R=j.marginRight,W=j.marginBottom,ee=j.marginLeft;[$,R,W,ee].some(function(q){return parseFloat(q)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return x(),b.update()},forceUpdate:function(){if(!M){var k=v.elements,E=k.reference,S=k.popper;if(!oF(E,S)){console.error(sF);return}v.rects={reference:V1e(E,eF(S),v.options.strategy==="fixed"),popper:Y1e(S)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(q){return v.modifiersData[q.name]=Object.assign({},q.data)});for(var T=0,O=0;O<v.orderedModifiers.length;O++){if(T+=1,T>100){console.error(hTe);break}if(v.reset===!0){v.reset=!1,O=-1;continue}var j=v.orderedModifiers[O],$=j.fn,R=j.options,W=R===void 0?{}:R,ee=j.name;typeof $=="function"&&(v=$({state:v,options:W,name:ee,instance:b})||v)}}},update:aTe(function(){return new Promise(function(w){b.forceUpdate(),w(v)})}),destroy:function(){N(),M=!0}};if(!oF(d,f))return console.error(sF),b;b.setOptions(p).then(function(w){!M&&p.onFirstUpdate&&p.onFirstUpdate(w)});function x(){v.orderedModifiers.forEach(function(w){var k=w.name,E=w.options,S=E===void 0?{}:E,T=w.effect;if(typeof T=="function"){var O=T({state:v,name:k,instance:b,options:S}),j=function(){};y.push(O||j)}})}function N(){y.forEach(function(w){return w()}),y=[]}return b}}var Lb={passive:!0};function mTe(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,o=s===void 0?!0:s,u=i.resize,d=u===void 0?!0:u,f=Us(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&p.forEach(function(v){v.addEventListener("scroll",n.update,Lb)}),d&&f.addEventListener("resize",n.update,Lb),function(){o&&p.forEach(function(v){v.removeEventListener("scroll",n.update,Lb)}),d&&f.removeEventListener("resize",n.update,Lb)}}var gTe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mTe,data:{}};function vTe(t){var e=t.state,n=t.name;e.modifiersData[n]=fTe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var yTe={name:"popperOffsets",enabled:!0,phase:"read",fn:vTe,data:{}},bTe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _Te(t){var e=t.x,n=t.y,i=window,s=i.devicePixelRatio||1;return{x:gd(e*s)/s||0,y:gd(n*s)/s||0}}function lF(t){var e,n=t.popper,i=t.popperRect,s=t.placement,o=t.variation,u=t.offsets,d=t.position,f=t.gpuAcceleration,p=t.adaptive,v=t.roundOffsets,y=t.isFixed,M=u.x,b=M===void 0?0:M,x=u.y,N=x===void 0?0:x,w=typeof v=="function"?v({x:b,y:N}):{x:b,y:N};b=w.x,N=w.y;var k=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),S=bu,T=vd,O=window;if(p){var j=eF(n),$="clientHeight",R="clientWidth";if(j===Us(n)&&(j=Eb(n),Xa(j).position!=="static"&&d==="absolute"&&($="scrollHeight",R="scrollWidth")),j=j,s===vd||(s===bu||s===pp)&&o===jb){T=Ab;var W=y&&j===O&&O.visualViewport?O.visualViewport.height:j[$];N-=W-i.height,N*=f?1:-1}if(s===bu||(s===vd||s===Ab)&&o===jb){S=pp;var ee=y&&j===O&&O.visualViewport?O.visualViewport.width:j[R];b-=ee-i.width,b*=f?1:-1}}var q=Object.assign({position:d},p&&bTe),G=v===!0?_Te({x:b,y:N}):{x:b,y:N};if(b=G.x,N=G.y,f){var Y;return Object.assign({},q,(Y={},Y[T]=E?"0":"",Y[S]=k?"0":"",Y.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+N+"px)":"translate3d("+b+"px, "+N+"px, 0)",Y))}return Object.assign({},q,(e={},e[T]=E?N+"px":"",e[S]=k?b+"px":"",e.transform="",e))}function MTe(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,u=o===void 0?!0:o,d=n.roundOffsets,f=d===void 0?!0:d;{var p=Xa(e.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(y){return p.indexOf(y)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
277
277
 
278
278
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
279
279
 
280
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var v={placement:$b(e.placement),variation:rF(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lF(Object.assign({},v,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,lF(Object.assign({},v,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var xTe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MTe,data:{}};function CTe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},o=e.elements[n];!Vs(o)||!qa(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(u){var d=s[u];d===!1?o.removeAttribute(u):o.setAttribute(u,d===!0?"":d)}))})}function STe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],o=e.attributes[i]||{},u=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),d=u.reduce(function(f,p){return f[p]="",f},{});!Vs(s)||!qa(s)||(Object.assign(s.style,d),Object.keys(o).forEach(function(f){s.removeAttribute(f)}))})}}var TTe={name:"applyStyles",enabled:!0,phase:"write",fn:CTe,effect:STe,requires:["computeStyles"]},DTe=[gTe,yTe,xTe,TTe],wTe=pTe({defaultModifiers:DTe});function NTe(t,e,n){var i=$b(t),s=[bu,vd].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,u=o[0],d=o[1];return u=u||0,d=(d||0)*s,[bu,pp].indexOf(i)>=0?{x:d,y:u}:{x:u,y:d}}function kTe(t){var e=t.state,n=t.options,i=t.name,s=n.offset,o=s===void 0?[0,0]:s,u=G1e.reduce(function(v,y){return v[y]=NTe(y,e.rects,o),v},{}),d=u[e.placement],f=d.x,p=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[i]=u}var OTe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kTe},uF=Ae("popover"),ETe=uF[0],Mu=uF[1];const ITe=ETe({mixins:[lw({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(cr||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var e=wTe(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},qe({},OTe,{options:{offset:this.offset}})]});return cr||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),e},updateLocation:function(){var e=this;this.$nextTick(function(){e.value&&(e.popper?e.popper.setOptions({placement:e.placement}):e.popper=e.createPopper())})},renderAction:function(e,n){var i=this,s=this.$createElement,o=e.icon,u=e.text,d=e.disabled,f=e.className;return s("div",{attrs:{role:"menuitem"},class:[Mu("action",{disabled:d,"with-icon":o}),f],on:{click:function(){return i.onClickAction(e,n)}}},[o&&s(It,{attrs:{name:o},class:Mu("action-icon")}),s("div",{class:[Mu("action-text"),tp]},[u])])},onToggle:function(e){this.$emit("input",e)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(e){e.stopPropagation(),this.$emit("touchstart",e)},onClickAction:function(e,n){e.disabled||(this.$emit("select",e,n),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var e=arguments[0];return e("span",{ref:"wrapper",class:Mu("wrapper"),on:{click:this.onClickWrapper}},[e(_a,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:Mu([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[e("div",{class:Mu("arrow")}),e("div",{class:Mu("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}});var cF=Ae("progress"),ATe=cF[0],Sw=cF[1];const jTe=ATe({mixins:[Ls(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(e){return e>=0&&e<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var e=this;this.$nextTick(function(){e.progressWidth=e.$el.offsetWidth,e.pivotWidth=e.$refs.pivot?e.$refs.pivot.offsetWidth:0})}},render:function(){var e=arguments[0],n=this.pivotText,i=this.percentage,s=n??i+"%",o=this.showPivot&&s,u=this.inactive?"#cacaca":this.color,d={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*i/100+"px",background:this.pivotColor||u},f={background:u,width:this.progressWidth*i/100+"px"},p={background:this.trackColor,height:Wt(this.strokeWidth)};return e("div",{class:Sw(),style:p},[e("span",{class:Sw("portion"),style:f},[o&&e("span",{ref:"pivot",style:d,class:Sw("pivot")},[s])])])}});var Tw=Ae("pull-refresh"),$Te=Tw[0],zb=Tw[1],LTe=Tw[2],dF=50,zTe=["pulling","loosing","success"];const PTe=$Te({mixins:[ns],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:dF}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==dF)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=pu(this.$el)},methods:{checkPullStart:function(e){this.ceiling=mu(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(ui(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){e.$emit("refresh")})):this.setStatus(0))},ease:function(e){var n=+(this.pullDistance||this.headHeight);return e>n&&(e<n*2?e=n+(e-n)/2:e=n*1.5+(e-n*2)/4),Math.round(e)},setStatus:function(e,n){var i;n?i="loading":e===0?i="normal":i=e<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=e,i!==this.status&&(this.status=i)},genStatus:function(){var e=this.$createElement,n=this.status,i=this.distance,s=this.slots(n,{distance:i});if(s)return s;var o=[],u=this[n+"Text"]||LTe(n);return zTe.indexOf(n)!==-1&&o.push(e("div",{class:zb("text")},[u])),n==="loading"&&o.push(e(zs,{attrs:{size:"16"}},[u])),o},showSuccessTip:function(){var e=this;this.status="success",setTimeout(function(){e.setStatus(0)},this.successDuration)}},render:function(){var e=arguments[0],n={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:zb()},[e("div",{ref:"track",class:zb("track"),style:n},[e("div",{class:zb("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}});var fF=Ae("rate"),RTe=fF[0],Pb=fF[1];function FTe(t,e,n){return t>=e?"full":t+.5>=e&&n?"half":"void"}const BTe=RTe({mixins:[ns,Go],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var e=[],n=1;n<=this.count;n++)e.push(FTe(this.value,n,this.allowHalf));return e},sizeWithUnit:function(){return Wt(this.size)},gutterWithUnit:function(){return Wt(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(e){!this.disabled&&!this.readonly&&e!==this.value&&(this.$emit("input",e),this.$emit("change",e))},onTouchStart:function(e){var n=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(e);var i=this.$refs.items.map(function(o){return o.getBoundingClientRect()}),s=[];i.forEach(function(o,u){n.allowHalf?s.push({score:u+.5,left:o.left},{score:u+1,left:o.left+o.width/2}):s.push({score:u+1,left:o.left})}),this.ranges=s}},onTouchMove:function(e){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(e),this.direction==="horizontal")){ui(e);var n=e.touches[0].clientX;this.select(this.getScoreByPosition(n))}},getScoreByPosition:function(e){for(var n=this.ranges.length-1;n>0;n--)if(e>this.ranges[n].left)return this.ranges[n].score;return this.allowHalf?.5:1},genStar:function(e,n){var i=this,s=this.$createElement,o=this.icon,u=this.color,d=this.count,f=this.voidIcon,p=this.disabled,v=this.voidColor,y=this.disabledColor,M=n+1,b=e==="full",x=e==="void",N;return this.gutterWithUnit&&M!==+d&&(N={paddingRight:this.gutterWithUnit}),s("div",{ref:"items",refInFor:!0,key:n,attrs:{role:"radio",tabindex:"0","aria-setsize":d,"aria-posinset":M,"aria-checked":String(!x)},style:N,class:Pb("item")},[s(It,{attrs:{size:this.sizeWithUnit,name:b?o:f,color:p?y:b?u:v,classPrefix:this.iconPrefix,"data-score":M},class:Pb("icon",{disabled:p,full:b}),on:{click:function(){i.select(M)}}}),this.allowHalf&&s(It,{attrs:{size:this.sizeWithUnit,name:x?f:o,color:p?y:x?v:u,classPrefix:this.iconPrefix,"data-score":M-.5},class:Pb("icon",["half",{disabled:p,full:!x}]),on:{click:function(){i.select(M-.5)}}})])}},render:function(){var e=this,n=arguments[0];return n("div",{class:Pb({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(i,s){return e.genStar(i,s)})])}});var hF=Ae("row"),UTe=hF[0],VTe=hF[1];const YTe=UTe({mixins:[hr("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var e=Number(this.gutter);if(e){var n=[],i=[[]],s=0;return this.children.forEach(function(o,u){s+=Number(o.span),s>24?(i.push([u]),s-=24):i[i.length-1].push(u)}),i.forEach(function(o){var u=e*(o.length-1)/o.length;o.forEach(function(d,f){if(f===0)n.push({right:u});else{var p=e-n[d-1].right,v=u-p;n.push({left:p,right:v})}})}),n}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,n=arguments[0],i=this.align,s=this.justify,o=this.type==="flex";return n(this.tag,{class:VTe((e={flex:o},e["align-"+i]=o&&i,e["justify-"+s]=o&&s,e)),on:{click:this.onClick}},[this.slots()])}});var Dw=Ae("search"),HTe=Dw[0],Rb=Dw[1],WTe=Dw[2];function pF(t,e,n,i){function s(){if(n.label||e.label)return t("div",{class:Rb("label")},[n.label?n.label():e.label])}function o(){if(!e.showAction)return;function f(){n.action||(Yt(i,"input",""),Yt(i,"cancel"))}return t("div",{class:Rb("action"),attrs:{role:"button",tabindex:"0"},on:{click:f}},[n.action?n.action():e.actionText||WTe("cancel")])}var u={attrs:i.data.attrs,on:qe({},i.listeners,{keypress:function(p){p.keyCode===13&&(ui(p),Yt(i,"search",e.value)),Yt(i,"keypress",p)}})},d=on(i);return d.attrs=void 0,t("div",Pt([{class:Rb({"show-action":e.showAction}),style:{background:e.background}},d]),[n.left==null?void 0:n.left(),t("div",{class:Rb("content",e.shape)},[s(),t(is,Pt([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},u]))]),o()])}pF.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};const QTe=HTe(pF);var GTe=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],ww=Ae("share-sheet"),KTe=ww[0],Sa=ww[1],qTe=ww[2];const XTe=KTe({props:qe({},ab,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(e,n){this.$emit("select",e,n)},toggle:function(e){this.$emit("input",e)},getIconURL:function(e){return GTe.indexOf(e)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+e+".png":e},genHeader:function(){var e=this.$createElement,n=this.slots("title")||this.title,i=this.slots("description")||this.description;if(!(!n&&!i))return e("div",{class:Sa("header")},[n&&e("h2",{class:Sa("title")},[n]),i&&e("span",{class:Sa("description")},[i])])},genOptions:function(e,n){var i=this,s=this.$createElement;return s("div",{class:Sa("options",{border:n})},[e.map(function(o,u){return s("div",{attrs:{role:"button",tabindex:"0"},class:[Sa("option"),o.className],on:{click:function(){i.onSelect(o,u)}}},[s("img",{attrs:{src:i.getIconURL(o.icon)},class:Sa("icon")}),o.name&&s("span",{class:Sa("name")},[o.name]),o.description&&s("span",{class:Sa("option-description")},[o.description])])})])},genRows:function(){var e=this,n=this.options;return Array.isArray(n[0])?n.map(function(i,s){return e.genOptions(i,s!==0)}):this.genOptions(n)},genCancelText:function(){var e,n=this.$createElement,i=(e=this.cancelText)!=null?e:qTe("cancel");if(i)return n("button",{attrs:{type:"button"},class:Sa("cancel"),on:{click:this.onCancel}},[i])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var e=arguments[0];return e(_a,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Sa(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}});var mF=Ae("sidebar"),ZTe=mF[0],JTe=mF[1];const gF=ZTe({mixins:[hr("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(e){e!==this.index&&(this.index=e,this.$emit("change",e))}},render:function(){var e=arguments[0];return e("div",{class:JTe()},[this.slots()])}});var vF=Ae("sidebar-item"),eDe=vF[0],Nw=vF[1];const yF=eDe({mixins:[fr("vanSidebar")],props:qe({},Qo,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),vu(this.$router,this))}},render:function(){var e,n,i=arguments[0];return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] SidebarItem: "info" prop is deprecated, use "badge" prop instead.'),i("a",{class:Nw({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[i("div",{class:Nw("text")},[(e=this.slots("title"))!=null?e:this.title,i(gu,{attrs:{dot:this.dot,info:(n=this.badge)!=null?n:this.info},class:Nw("info")})])])}});var bF=Ae("skeleton"),tDe=bF[0],mp=bF[1],_F="100%",nDe="60%";function MF(t,e,n,i){if(!e.loading)return n.default&&n.default();function s(){if(e.title)return t("h3",{class:mp("title"),style:{width:Wt(e.titleWidth)}})}function o(){var d=[],f=e.rowWidth;function p(y){return f===_F&&y===+e.row-1?nDe:Array.isArray(f)?f[y]:f}for(var v=0;v<e.row;v++)d.push(t("div",{class:mp("row"),style:{width:Wt(p(v))}}));return d}function u(){if(e.avatar){var d=Wt(e.avatarSize);return t("div",{class:mp("avatar",e.avatarShape),style:{width:d,height:d}})}}return t("div",Pt([{class:mp({animate:e.animate,round:e.round})},on(i)]),[u(),t("div",{class:mp("content")},[s(),o()])])}MF.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:_F}};const iDe=tDe(MF),rDe={"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(e){return e+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(e){return"每人限购"+e+"件"},quotaUsedTip:function(e,n){return"每人限购"+e+"件,你已购买"+n+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(e){return"最大可上传图片为"+e+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(e){return"限购"+e+"件"},quotaStart:function(e){return e+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}};var Fb={QUOTA_LIMIT:0,STOCK_LIMIT:1},xu="";const sDe={LIMIT_TYPE:Fb,UNSELECTED_SKU_VALUE_ID:xu};var xF=function(e){var n={};return e.forEach(function(i){n[i.k_s]=i.v}),n},aDe=function(e){var n={};return e.forEach(function(i){var s={};i.v.forEach(function(o){s[o.id]=o}),n[i.k_id]=s}),n},CF=function(e,n){var i=Object.keys(n).filter(function(s){return n[s]!==xu});return e.length===i.length},SF=function(e,n){var i=e.filter(function(s){return Object.keys(n).every(function(o){return String(s[o])===String(n[o])})});return i[0]},TF=function(e,n){var i=xF(e);return Object.keys(n).reduce(function(s,o){var u=i[o]||[],d=n[o];if(d!==xu&&u.length>0){var f=u.filter(function(p){return p.id===d})[0];f&&s.push(f)}return s},[])},kw=function(e,n,i){var s,o=i.key,u=i.valueId,d=qe({},n,(s={},s[o]=u,s)),f=Object.keys(d).filter(function(y){return d[y]!==xu}),p=e.filter(function(y){return f.every(function(M){return String(d[M])===String(y[M])})}),v=p.reduce(function(y,M){return y+=M.stock_num,y},0);return v>0},DF=function(e,n){var i=aDe(e);return Object.keys(n).reduce(function(s,o){return n[o].forEach(function(u){s.push(qe({},i[o][u]))}),s},[])},wF=function(e,n){var i=[];return(e||[]).forEach(function(s){if(n[s.k_id]&&n[s.k_id].length>0){var o=[];s.v.forEach(function(u){n[s.k_id].indexOf(u.id)>-1&&o.push(qe({},u))}),i.push(qe({},s,{v:o}))}}),i};const oDe={normalizeSkuTree:xF,getSkuComb:SF,getSelectedSkuValues:TF,isAllSelected:CF,isSkuChoosable:kw,getSelectedPropValues:DF,getSelectedProperties:wF};var NF=Ae("sku-header"),lDe=NF[0],Ow=NF[1];function uDe(t,e){var n;return t.tree.some(function(i){var s=e[i.k_s];if(s&&i.v){var o=i.v.filter(function(d){return d.id===s})[0]||{},u=o.previewImgUrl||o.imgUrl||o.img_url;if(u)return n=qe({},o,{ks:i.k_s,imgUrl:u}),!0}return!1}),n}function kF(t,e,n,i){var s,o=e.sku,u=e.goods,d=e.skuEventBus,f=e.selectedSku,p=e.showHeaderImage,v=p===void 0?!0:p,y=uDe(o,f),M=y?y.imgUrl:u.picture,b=function(){d.$emit("sku:previewImage",y)};return t("div",Pt([{class:[Ow(),tp]},on(i)]),[v&&t(pd,{attrs:{fit:"cover",src:M},class:Ow("img-wrap"),on:{click:b}},[(s=n["sku-header-image-extra"])==null?void 0:s.call(n)]),t("div",{class:Ow("goods-info")},[n.default==null?void 0:n.default()])])}kF.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};const OF=lDe(kF);var EF=Ae("sku-header-item"),cDe=EF[0],dDe=EF[1];function fDe(t,e,n,i){return t("div",Pt([{class:dDe()},on(i)]),[n.default&&n.default()])}const Bb=cDe(fDe);var Ew=Ae("sku-row"),hDe=Ew[0],Ys=Ew[1],pDe=Ew[2];const Iw=hDe({mixins:[hr("vanSkuRows"),Ls(function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var e=this.$refs,n=e.scroller,i=e.row,s=i.offsetWidth-n.offsetWidth;this.progress=n.scrollLeft/s},genTitle:function(){var e=this.$createElement;return e("div",{class:Ys("title")},[this.skuRow.k,this.skuRow.is_multiple&&e("span",{class:Ys("title-multiple")},["(",pDe("multiple"),")"])])},genIndicator:function(){var e=this.$createElement;if(this.scrollable){var n={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return e("div",{class:Ys("indicator-wrapper")},[e("div",{class:Ys("indicator")},[e("div",{class:Ys("indicator-slider"),style:n})])])}},genContent:function(){var e=this.$createElement,n=this.slots();if(this.skuRow.largeImageMode){var i=[],s=[];return n.forEach(function(o,u){var d=Math.floor(u/3)%2===0?i:s;d.push(o)}),e("div",{class:Ys("scroller"),ref:"scroller"},[e("div",{class:Ys("row"),ref:"row"},[i]),s.length?e("div",{class:Ys("row")},[s]):null])}return n},centerItem:function(e){if(!(!this.skuRow.largeImageMode||!e)){var n=this.children,i=n===void 0?[]:n,s=this.$refs,o=s.scroller,u=s.row,d=i.find(function(v){return+v.skuValue.id==+e});if(o&&u&&d&&d.$el){var f=d.$el,p=f.offsetLeft-(o.offsetWidth-f.offsetWidth)/2;o.scrollLeft=p}}}},render:function(){var e=arguments[0];return e("div",{class:[Ys(),tp]},[this.genTitle(),this.genContent(),this.genIndicator()])}});var mDe=Ae("sku-row-item"),gDe=mDe[0];const IF=gDe({mixins:[fr("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var e=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?e||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":e},choosable:function(){return this.disableSoldoutSku?kw(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",qe({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(e){e.stopPropagation();var n=this.skuValue,i=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",qe({},n,{ks:i,imgUrl:n.imgUrl||n.img_url}))},genImage:function(e){var n=this.$createElement;if(this.imgUrl)return n(pd,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:e+"-img"})}},render:function(){var e=arguments[0],n=this.skuValue.id===this.selectedSku[this.skuKeyStr],i=this.largeImageMode?Ys("image-item"):Ys("item");return e("span",{class:[i,n?i+"--active":"",this.choosable?"":i+"--disabled"],on:{click:this.onSelect}},[this.genImage(i),e("div",{class:i+"-name"},[this.largeImageMode?e("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&e(It,{attrs:{name:"enlarge"},class:i+"-img-icon",on:{click:this.onPreviewImg}})])}});var vDe=Ae("sku-row-prop-item"),yDe=vDe[0];const AF=yDe({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var e=this.selectedProp,n=this.skuKeyStr,i=this.skuValue;return e&&e[n]?e[n].indexOf(i.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",qe({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var e=arguments[0];return e("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[e("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}});var jF=Ae("stepper"),bDe=jF[0],Ub=jF[1],_De=600,MDe=200;function Vb(t,e){return String(t)===String(e)}const $F=bDe({mixins:[Go],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var e,n=(e=this.value)!=null?e:this.defaultValue,i=this.format(n);return Vb(i,this.value)||this.$emit("input",i),{currentValue:i}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var e={};return this.inputWidth&&(e.width=Wt(this.inputWidth)),this.buttonSize&&(e.height=Wt(this.buttonSize)),e},buttonStyle:function(){if(this.buttonSize){var e=Wt(this.buttonSize);return{width:e,height:e}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(e){Vb(e,this.currentValue)||(this.currentValue=this.format(e))},currentValue:function(e){this.$emit("input",e),this.$emit("change",e,{name:this.name})}},methods:{check:function(){var e=this.format(this.currentValue);Vb(e,this.currentValue)||(this.currentValue=e)},formatNumber:function(e){return WP(String(e),!this.integer)},format:function(e){return this.allowEmpty&&e===""||(e=this.formatNumber(e),e=e===""?0:+e,e=cD(e)?this.min:e,e=Math.max(Math.min(this.max,e),this.min),Ut(this.decimalLength)&&(e=e.toFixed(this.decimalLength))),e},onInput:function(e){var n=e.target.value,i=this.formatNumber(n);if(Ut(this.decimalLength)&&i.indexOf(".")!==-1){var s=i.split(".");i=s[0]+"."+s[1].slice(0,this.decimalLength)}Vb(n,i)||(e.target.value=i),i===String(+i)&&(i=+i),this.emitChange(i)},emitChange:function(e){this.asyncChange?(this.$emit("input",e),this.$emit("change",e,{name:this.name})):this.currentValue=e},onChange:function(){var e=this.type;if(this[e+"Disabled"]){this.$emit("overlimit",e);return}var n=e==="minus"?-this.step:+this.step,i=this.format(QP(+this.currentValue,n));this.emitChange(i),this.$emit(e)},onFocus:function(e){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",e)},onBlur:function(e){var n=this.format(e.target.value);e.target.value=n,this.emitChange(n),this.$emit("blur",e),r3()},longPressStep:function(){var e=this;this.longPressTimer=setTimeout(function(){e.onChange(),e.longPressStep(e.type)},MDe)},onTouchStart:function(){var e=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){e.isLongPress=!0,e.onChange(),e.longPressStep()},_De))},onTouchEnd:function(e){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&ui(e))},onMousedown:function(e){this.disableInput&&e.preventDefault()}},render:function(){var e=this,n=arguments[0],i=function(o){return{on:{click:function(d){d.preventDefault(),e.type=o,e.onChange()},touchstart:function(){e.type=o,e.onTouchStart()},touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}}};return n("div",{class:Ub([this.theme])},[n("button",Pt([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Ub("minus",{disabled:this.minusDisabled})},i("minus")])),n("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Ub("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),n("button",Pt([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Ub("plus",{disabled:this.plusDisabled})},i("plus")]))])}});var LF=Ae("sku-stepper"),xDe=LF[0],Yb=LF[2],CDe=Fb.QUOTA_LIMIT,zF=Fb.STOCK_LIMIT;const PF=xDe({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:zF}},watch:{currentNum:function(e){var n=parseInt(e,10);n>=this.stepperMinLimit&&n<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",n)},stepperLimit:function(e){e<this.currentNum&&this.stepperMinLimit<=e&&(this.currentNum=e),this.checkState(this.stepperMinLimit,e)},stepperMinLimit:function(e){(e>this.currentNum||e>this.stepperLimit)&&(this.currentNum=e),this.checkState(e,this.stepperLimit)}},computed:{stepperLimit:function(){var e=this.quota-this.quotaUsed,n;return this.quota>0&&e<=this.stock?(n=e<0?0:e,this.limitType=CDe):(n=this.stock,this.limitType=zF),n},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var e=this.customStepperConfig,n=e.quotaText,i=e.hideQuotaText;if(i)return"";var s="";if(n)s=n;else{var o=[];this.startSaleNum>1&&o.push(Yb("quotaStart",this.startSaleNum)),this.quota>0&&o.push(Yb("quotaLimit",this.quota)),s=o.join(Yb("comma"))}return s}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(e){this.currentNum=e,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(e){this.skuEventBus.$emit("sku:overLimit",{action:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(e){var n=parseInt(e,10),i=this.customStepperConfig.handleStepperChange;i&&i(n),this.$emit("change",n)},checkState:function(e,n){this.currentNum<e||e>n?this.currentNum=e:this.currentNum>n&&(this.currentNum=n),this.skuEventBus.$emit("sku:stepperState",{valid:e<=n,min:e,max:n,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var e=this,n=arguments[0];return n("div",{class:"van-sku-stepper-stock"},[n("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Yb("num")]),n($F,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:e.currentNum,callback:function(s){e.currentNum=s}}}),!this.hideQuotaText&&this.quotaText&&n("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function SDe(t){var e=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return e.test(t.trim())}function RF(t){return Array.isArray(t)?t:[t]}function FF(t,e){return new Promise(function(n){if(e==="file"){n(null);return}var i=new FileReader;i.onload=function(s){n(s.target.result)},e==="dataUrl"?i.readAsDataURL(t):e==="text"&&i.readAsText(t)})}function BF(t,e){return RF(t).some(function(n){return n?ud(e)?e(n):n.size>e:!1})}var TDe=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function DDe(t){return TDe.test(t)}function UF(t){return t.isImage?!0:t.file&&t.file.type?t.file.type.indexOf("image")===0:t.url?DDe(t.url):t.content?t.content.indexOf("data:image")===0:!1}var VF=Ae("uploader"),wDe=VF[0],Vn=VF[1];const YF=wDe({inheritAttrs:!1,mixins:[Go],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Wt(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(e){return URL.revokeObjectURL(e)})},methods:{getDetail:function(e){return e===void 0&&(e=this.fileList.length),{name:this.name,index:e}},onChange:function(e){var n=this,i=e.target.files;if(!(this.disabled||!i.length)){if(i=i.length===1?i[0]:[].slice.call(i),this.beforeRead){var s=this.beforeRead(i,this.getDetail());if(!s){this.resetInput();return}if(ib(s)){s.then(function(o){o?n.readFile(o):n.readFile(i)}).catch(this.resetInput);return}}this.readFile(i)}},readFile:function(e){var n=this,i=BF(e,this.maxSize);if(Array.isArray(e)){var s=this.maxCount-this.fileList.length;e.length>s&&(e=e.slice(0,s)),Promise.all(e.map(function(o){return FF(o,n.resultType)})).then(function(o){var u=e.map(function(d,f){var p={file:d,status:"",message:""};return o[f]&&(p.content=o[f]),p});n.onAfterRead(u,i)})}else FF(e,this.resultType).then(function(o){var u={file:e,status:"",message:""};o&&(u.content=o),n.onAfterRead(u,i)})},onAfterRead:function(e,n){var i=this;this.resetInput();var s=e;if(n){var o=e;Array.isArray(e)?(o=[],s=[],e.forEach(function(d){d.file&&(BF(d.file,i.maxSize)?o.push(d):s.push(d))})):s=null,this.$emit("oversize",o,this.getDetail())}var u=Array.isArray(s)?!!s.length:!!s;u&&(this.$emit("input",[].concat(this.fileList,RF(s))),this.afterRead&&this.afterRead(s,this.getDetail()))},onDelete:function(e,n){var i,s=this,o=(i=e.beforeDelete)!=null?i:this.beforeDelete;if(o){var u=o(e,this.getDetail(n));if(!u)return;if(ib(u)){u.then(function(){s.deleteFile(e,n)}).catch(Jh);return}}this.deleteFile(e,n)},deleteFile:function(e,n){var i=this.fileList.slice(0);i.splice(n,1),this.$emit("input",i),this.$emit("delete",e,this.getDetail(n))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(e){this.$emit("click-upload",e)},onPreviewImage:function(e){var n=this;if(this.previewFullImage){var i=this.fileList.filter(function(o){return UF(o)}),s=i.map(function(o){return o.file&&!o.url&&o.status!=="failed"&&(o.url=URL.createObjectURL(o.file),n.urls.push(o.url)),o.url});this.imagePreview=fw(qe({images:s,startPosition:i.indexOf(e),onClose:function(){n.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(e){var n=this.$createElement,i=e.status,s=e.message;if(i==="uploading"||i==="failed"){var o=i==="failed"?n(It,{attrs:{name:"close"},class:Vn("mask-icon")}):n(zs,{class:Vn("loading")}),u=Ut(s)&&s!=="";return n("div",{class:Vn("mask")},[o,u&&n("div",{class:Vn("mask-message")},[s])])}},genPreviewItem:function(e,n){var i,s=this,o,u,d=this.$createElement,f=(i=e.deletable)!=null?i:this.deletable,p=e.status!=="uploading"&&f,v=p&&d("div",{class:Vn("preview-delete"),on:{click:function(k){k.stopPropagation(),s.onDelete(e,n)}}},[d(It,{attrs:{name:"cross"},class:Vn("preview-delete-icon")})]),y=this.slots("preview-cover",qe({index:n},e)),M=y&&d("div",{class:Vn("preview-cover")},[y]),b=(o=e.previewSize)!=null?o:this.previewSize,x=(u=e.imageFit)!=null?u:this.imageFit,N=UF(e)?d(pd,{attrs:{fit:x,src:e.content||e.url,width:b,height:b,lazyLoad:this.lazyLoad},class:Vn("preview-image"),on:{click:function(){s.onPreviewImage(e)}}},[M]):d("div",{class:Vn("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[d(It,{class:Vn("file-icon"),attrs:{name:"description"}}),d("div",{class:[Vn("file-name"),"van-ellipsis"]},[e.file?e.file.name:e.url]),M]);return d("div",{class:Vn("preview"),on:{click:function(){s.$emit("click-preview",e,s.getDetail(n))}}},[N,this.genPreviewMask(e),v])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var e=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var n=this.slots(),i=this.readonly?null:e("input",{attrs:qe({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Vn("input"),on:{change:this.onChange}});if(n)return e("div",{class:Vn("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[n,i]);var s;if(this.previewSize){var o=this.previewSizeWithUnit;s={width:o,height:o}}return e("div",{directives:[{name:"show",value:this.showUpload}],class:Vn("upload",{readonly:this.readonly}),style:s,on:{click:this.onClickUpload}},[e(It,{attrs:{name:this.uploadIcon},class:Vn("upload-icon")}),this.uploadText&&e("span",{class:Vn("upload-text")},[this.uploadText]),i])}}},render:function(){var e=arguments[0];return e("div",{class:Vn()},[e("div",{class:Vn("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}});var HF=Ae("sku-img-uploader"),NDe=HF[0],Aw=HF[2];const kDe=NDe({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(e){e?this.fileList=[{url:e,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(e){var n=this;e.status="uploading",e.message=Aw("uploading"),this.uploadImg(e.file,e.content).then(function(i){e.status="done",n.$emit("input",i)}).catch(function(){e.status="failed",e.message=Aw("fail")})},onOversize:function(){this.$toast(Aw("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var e=this;this.customUpload&&this.customUpload().then(function(n){e.fileList.push({url:n}),e.$emit("input",n)})}},render:function(){var e=this,n=arguments[0];return n(YF,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:e.fileList,callback:function(s){e.fileList=s}}})}});function ODe(t){return t?new Date(t.replace(/-/g,"/")):null}function EDe(t,e){if(e===void 0&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,s=t.getDate(),o=n+"-"+An(i)+"-"+An(s);if(e==="datetime"){var u=t.getHours(),d=t.getMinutes();o+=" "+An(u)+":"+An(d)}return o}var WF=Ae("sku-datetime-field"),IDe=WF[0],QF=WF[2];const ADe=IDe({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(e){switch(this.type){case"time":this.currentDate=e;break;case"date":case"datetime":this.currentDate=ODe(e)||new Date;break}}},computed:{title:function(){return QF("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(e){var n=e;this.type!=="time"&&(n=EDe(e,this.type)),this.$emit("input",n),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(e,n){var i=QF("format."+e);return""+n+i}},render:function(){var e=this,n=arguments[0];return n(is,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[n(_a,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:e.showDatePicker,callback:function(s){e.showDatePicker=s}}},[n(bR,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}});var jw=Ae("sku-messages"),jDe=jw[0],yd=jw[1],Cu=jw[2];const GF=jDe({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(e){this.messageValues=this.resetMessageValues(e)}},methods:{resetMessageValues:function(e){var n=this.messageConfig,i=n.initialMessages,s=i===void 0?{}:i;return(e||[]).map(function(o){return{value:s[o.name]||""}})},getType:function(e){return+e.multiple==1?"textarea":e.type==="id_no"?"text":e.datetime>0?"datetime":e.type},getMessages:function(){var e={};return this.messageValues.forEach(function(n,i){e["message_"+i]=n.value}),e},getCartMessages:function(){var e=this,n={};return this.messageValues.forEach(function(i,s){var o=e.messages[s];n[o.name]=i.value}),n},getPlaceholder:function(e){var n=+e.multiple==1?"textarea":e.type,i=this.messageConfig.placeholderMap||{};return e.placeholder||i[n]||Cu("placeholder."+n)},validateMessages:function(){for(var e=this.messageValues,n=0;n<e.length;n++){var i=e[n].value,s=this.messages[n];if(i===""){if(String(s.required)==="1"){var o=Cu(s.type==="image"?"upload":"fill");return o+s.name}}else{if(s.type==="tel"&&!uD(i))return Cu("invalid.tel");if(s.type==="mobile"&&!/^\d{6,20}$/.test(i))return Cu("invalid.mobile");if(s.type==="email"&&!SDe(i))return Cu("invalid.email");if(s.type==="id_no"&&(i.length<15||i.length>18))return Cu("invalid.id_no")}}},getFormatter:function(e){return function(i){return e.type==="mobile"||e.type==="tel"?i.replace(/[^\d.]/g,""):i}},getExtraDesc:function(e){var n=this.$createElement,i=e.extraDesc;if(i)return n("div",{class:yd("extra-message")},[i])},genMessage:function(e,n){var i=this,s=this.$createElement;if(e.type==="image")return s(Vi,{key:this.goodsId+"-"+n,attrs:{title:e.name,required:String(e.required)==="1",valueClass:yd("image-cell-value")},class:yd("image-cell")},[s(kDe,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}),s("div",{class:yd("image-cell-label")},[Cu("imageLabel")])]);var o=["date","time"].indexOf(e.type)>-1;return o?s(ADe,{attrs:{label:e.name,required:String(e.required)==="1",placeholder:this.getPlaceholder(e),type:this.getType(e)},key:this.goodsId+"-"+n,model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}):s("div",{class:yd("cell-block")},[s(is,{attrs:{maxlength:"200",center:!e.multiple,label:e.name,required:String(e.required)==="1",placeholder:this.getPlaceholder(e),type:this.getType(e),formatter:this.getFormatter(e),border:!1},key:this.goodsId+"-"+n,model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}),this.getExtraDesc(e)])}},render:function(){var e=arguments[0];return e("div",{class:yd()},[this.messages.map(this.genMessage)])}});var $w=Ae("sku-actions"),$De=$w[0],LDe=$w[1],KF=$w[2];function qF(t,e,n,i){var s=function(u){return function(){e.skuEventBus.$emit(u)}};return t("div",Pt([{class:LDe()},on(i)]),[e.showAddCartBtn&&t(wi,{attrs:{size:"large",type:"warning",text:e.addCartText||KF("addCart")},on:{click:s("sku:addCart")}}),t(wi,{attrs:{size:"large",type:"danger",text:e.buyText||KF("buy")},on:{click:s("sku:buy")}})])}qF.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};const XF=$De(qF);var Lw=Ae("sku"),zDe=Lw[0],PDe=Lw[1],ls=Lw[2],RDe=Fb.QUOTA_LIMIT;const Hs=zDe({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(e){this.$emit("input",e),e||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(e){this.show=e},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var e=window.innerHeight-this.bodyOffsetTop;return{maxHeight:e+"px"}}},isSkuCombSelected:function(){var e=this;return this.hasSku&&!CF(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(n){return n.is_necessary!==!1}).some(function(n){return(e.selectedProp[n.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var e=null;return this.isSkuCombSelected&&(this.hasSku?e=SF(this.skuList,this.selectedSku):e={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},e&&(e.properties=wF(this.propList,this.selectedProp),e.property_price=this.selectedPropValues.reduce(function(n,i){return n+(i.price||0)},0))),e},selectedSkuValues:function(){return TF(this.skuTree,this.selectedSku)},selectedPropValues:function(){return DF(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var e=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(n){n.v&&n.v.forEach(function(i){var s=i.previewImgUrl||i.imgUrl||i.img_url;s&&e.indexOf(s)===-1&&e.push(s)})}),e},stock:function(){var e=this.customStepperConfig.stockNum;return e!==void 0?e:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var e=this.$createElement,n=this.customStepperConfig.stockFormatter;return n?n(this.stock):[ls("stock")+" ",e("span",{class:PDe("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+ls("stockUnit")]},selectedText:function(){var e=this;if(this.selectedSkuComb){var n=this.selectedSkuValues.concat(this.selectedPropValues);return ls("selected")+" "+n.map(function(o){return o.name}).join(" ")}var i=this.skuTree.filter(function(o){return e.selectedSku[o.k_s]===xu}).map(function(o){return o.k}),s=this.propList.filter(function(o){return(e.selectedProp[o.k_id]||[]).length<1}).map(function(o){return o.k});return ls("select")+" "+i.concat(s).join(" ")}},created:function(){var e=new ft;this.skuEventBus=e,e.$on("sku:select",this.onSelect),e.$on("sku:propSelect",this.onPropSelect),e.$on("sku:numChange",this.onNumChange),e.$on("sku:previewImage",this.onPreviewImage),e.$on("sku:overLimit",this.onOverLimit),e.$on("sku:stepperState",this.onStepperState),e.$on("sku:addCart",this.onAddCart),e.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",e)},methods:{resetStepper:function(){var e=this.$refs.skuStepper,n=this.initialSku.selectedNum,i=n??this.startSaleNum;this.stepperError=null,e?e.setCurrentNum(i):this.selectedNum=i},resetSelectedSku:function(){var e=this;this.selectedSku={},this.skuTree.forEach(function(u){e.selectedSku[u.k_s]=xu}),this.skuTree.forEach(function(u){var d=u.k_s,f=u.v.length===1?u.v[0].id:e.initialSku[d];f&&kw(e.skuList,e.selectedSku,{key:d,valueId:f})&&(e.selectedSku[d]=f)});var n=this.selectedSkuValues;n.length>0&&this.$nextTick(function(){e.$emit("sku-selected",{skuValue:n[n.length-1],selectedSku:e.selectedSku,selectedSkuComb:e.selectedSkuComb})}),this.selectedProp={};var i=this.initialSku.selectedProp,s=i===void 0?{}:i;this.propList.forEach(function(u){s[u.k_id]&&(e.selectedProp[u.k_id]=s[u.k_id])}),Bxe(this.selectedProp)&&this.propList.forEach(function(u){var d;if((u==null||(d=u.v)==null?void 0:d.length)>0){var f=u.v,p=u.k_id,v=f.some(function(M){return+M.price!=0});if(!v){var y=f.find(function(M){return M.text_status!==0});y&&(e.selectedProp[p]=[y.id])}}});var o=this.selectedPropValues;o.length>0&&this.$emit("sku-prop-selected",{propValue:o[o.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return ls("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var e=this.customSkuValidator(this);if(e)return e}return ls("selectSku")},onSelect:function(e){var n,i;this.selectedSku=this.selectedSku[e.skuKeyStr]===e.id?qe({},this.selectedSku,(n={},n[e.skuKeyStr]=xu,n)):qe({},this.selectedSku,(i={},i[e.skuKeyStr]=e.id,i)),this.$emit("sku-selected",{skuValue:e,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(e){var n,i=this.selectedProp[e.skuKeyStr]||[],s=i.indexOf(e.id);s>-1?i.splice(s,1):e.multiple?i.push(e.id):i.splice(0,1,e.id),this.selectedProp=qe({},this.selectedProp,(n={},n[e.skuKeyStr]=i,n)),this.$emit("sku-prop-selected",{propValue:e,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(e){this.selectedNum=e},onPreviewImage:function(e){var n=this,i=this.imageList,s=0,o=i[0];e&&e.imgUrl&&(this.imageList.some(function(d,f){return d===e.imgUrl?(s=f,!0):!1}),o=e.imgUrl);var u=qe({},e,{index:s,imageList:this.imageList,indexImage:o});this.$emit("open-preview",u),this.previewOnClickImage&&fw({images:this.imageList,startPosition:s,onClose:function(){n.$emit("close-preview",u)}})},onOverLimit:function(e){var n=e.action,i=e.limitType,s=e.quota,o=e.quotaUsed,u=this.customStepperConfig.handleOverLimit;if(u){u(e);return}n==="minus"?this.startSaleNum>1?ti(ls("minusStartTip",this.startSaleNum)):ti(ls("minusTip")):n==="plus"&&(i===RDe?o>0?ti(ls("quotaUsedTip",s,o)):ti(ls("quotaTip",s)):ti(ls("soldout")))},onStepperState:function(e){this.stepperError=e.valid?null:qe({},e,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(e){if(this.stepperError)return this.onOverLimit(this.stepperError);var n=this.validateSku();n?ti(n):this.$emit(e,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var e=this;(this.$refs.skuRows||[]).forEach(function(n){var i=n.skuRow||{},s=i.k_s;n.centerItem(e.initialSku[s])})}},render:function(){var e=this,n=arguments[0];if(!this.isSkuEmpty){var i=this.sku,s=this.skuList,o=this.goods,u=this.price,d=this.lazyLoad,f=this.originPrice,p=this.skuEventBus,v=this.selectedSku,y=this.selectedProp,M=this.selectedNum,b=this.stepperTitle,x=this.selectedSkuComb,N=this.showHeaderImage,w=this.disableSoldoutSku,k={price:u,originPrice:f,selectedNum:M,skuEventBus:p,selectedSku:v,selectedSkuComb:x},E=function(W){return e.slots(W,k)},S=E("sku-header")||n(OF,{attrs:{sku:i,goods:o,skuEventBus:p,selectedSku:v,showHeaderImage:N}},[n("template",{slot:"sku-header-image-extra"},[E("sku-header-image-extra")]),E("sku-header-price")||n("div",{class:"van-sku__goods-price"},[n("span",{class:"van-sku__price-symbol"},["¥"]),n("span",{class:"van-sku__price-num"},[u]),this.priceTag&&n("span",{class:"van-sku__price-tag"},[this.priceTag])]),E("sku-header-origin-price")||f&&n(Bb,[ls("originPrice")," ¥",f]),!this.hideStock&&n(Bb,[n("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&n(Bb,[this.selectedText]),E("sku-header-extra")]),T=E("sku-group")||this.hasSkuOrAttr&&n("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return n(Iw,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(W){return n(IF,{attrs:{skuList:s,lazyLoad:d,skuValue:W,skuKeyStr:R.k_s,selectedSku:v,skuEventBus:p,disableSoldoutSku:w,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return n(Iw,{attrs:{skuRow:R}},[R.v.map(function(W){return n(AF,{attrs:{skuValue:W,skuKeyStr:R.k_id+"",selectedProp:y,skuEventBus:p,multiple:R.is_multiple,disabled:W.text_status===0}})})])})]),O=E("sku-stepper")||n(PF,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:p,selectedNum:M,stepperTitle:b,skuStockNum:i.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(W){e.$emit("stepper-change",W)}}}),j=E("sku-messages")||n(GF,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:i.messages}}),$=E("sku-actions")||n(XF,{attrs:{buyText:this.buyText,skuEventBus:p,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return n(_a,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:e.show,callback:function(W){e.show=W}}},[S,n("div",{class:"van-sku-body",style:this.bodyStyle},[E("sku-body-top"),T,E("extra-sku-group"),O,E("before-sku-messages"),j,E("after-sku-messages")]),E("sku-actions-top"),$])}}});lD.add(rDe),Hs.SkuActions=XF,Hs.SkuHeader=OF,Hs.SkuHeaderItem=Bb,Hs.SkuMessages=GF,Hs.SkuStepper=PF,Hs.SkuRow=Iw,Hs.SkuRowItem=IF,Hs.SkuRowPropItem=AF,Hs.skuHelper=oDe,Hs.skuConstants=sDe;var ZF=Ae("slider"),FDe=ZF[0],Hb=ZF[1],JF=function(e,n){return JSON.stringify(e)===JSON.stringify(n)};const BDe=FDe({mixins:[ns,Go],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var e=Wt(this.buttonSize);return{width:e,height:e}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(e){this.disabled||(this.touchStart(e),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(e){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),ui(e,!0),this.touchMove(e),this.dragStatus="draging";var n=this.$el.getBoundingClientRect(),i=this.vertical?this.deltaY:this.deltaX,s=this.vertical?n.height:n.width,o=i/s*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+o:this.currentValue=this.startValue+o,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(e){if(e.stopPropagation(),!this.disabled){var n=this.$el.getBoundingClientRect(),i=this.vertical?e.clientY-n.top:e.clientX-n.left,s=this.vertical?n.height:n.width,o=+this.min+i/s*this.scope;if(this.range){var u=this.value,d=u[0],f=u[1],p=(d+f)/2;o<=p?d=o:f=o,o=[d,f]}this.startValue=this.value,this.updateValue(o,!0)}},handleOverlap:function(e){return e[0]>e[1]?(e=np(e),e.reverse()):e},updateValue:function(e,n){this.range?e=this.handleOverlap(e).map(this.format):e=this.format(e),JF(e,this.value)||this.$emit("input",e),n&&!JF(e,this.startValue)&&this.$emit("change",e)},format:function(e){var n=+this.min,i=+this.max,s=+this.step;e=Di(e,n,i);var o=Math.round((e-n)/s)*s;return QP(n,o)}},render:function(){var e,n=this,i,s=arguments[0],o=this.vertical,u=o?"height":"width",d=o?"width":"height",f=(e={background:this.inactiveColor},e[d]=Wt(this.barHeight),e),p=function(){var x=n.value,N=n.min,w=n.range,k=n.scope;return w?(x[1]-x[0])*100/k+"%":(x-N)*100/k+"%"},v=function(){var x=n.value,N=n.min,w=n.range,k=n.scope;return w?(x[0]-N)*100/k+"%":null},y=(i={},i[u]=p(),i.left=this.vertical?null:v(),i.top=this.vertical?v():null,i.background=this.activeColor,i);this.dragStatus&&(y.transition="none");var M=function(x){var N=["left","right"],w=typeof x=="number",k=w?n.value[x]:n.value,E=function(){return w?"button-wrapper-"+N[x]:"button-wrapper"},S=function(){return w?"wrapper"+x:"wrapper"},T=function(){if(w){var j=n.slots(x===0?"left-button":"right-button",{value:k});if(j)return j}return n.slots("button")?n.slots("button"):s("div",{class:Hb("button"),style:n.buttonStyle})};return s("div",{ref:S(),attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:Hb(E()),on:{touchstart:function(){w&&(n.index=x)},click:function(j){return j.stopPropagation()}}},[T()])};return s("div",{style:f,class:Hb({disabled:this.disabled,vertical:o}),on:{click:this.onClick}},[s("div",{class:Hb("bar"),style:y},[this.range?[M(0),M(1)]:M()])])}});var eB=Ae("step"),UDe=eB[0],tl=eB[1];const VDe=UDe({mixins:[fr("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var e=this.parent,n=e.activeColor,i=e.inactiveColor,s=e.center,o=e.direction,u={background:this.status==="finish"?n:i};return s&&o==="vertical"&&(u.top="50%"),u},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var e=this.$createElement,n=this.parent,i=n.activeIcon,s=n.iconPrefix,o=n.activeColor,u=n.finishIcon,d=n.inactiveIcon;if(this.active)return this.slots("active-icon")||e(It,{class:tl("icon","active"),attrs:{name:i,color:o,classPrefix:s}});var f=this.slots("finish-icon");if(this.status==="finish"&&(u||f))return f||e(It,{class:tl("icon","finish"),attrs:{name:u,color:o,classPrefix:s}});var p=this.slots("inactive-icon");return d||p?p||e(It,{class:tl("icon"),attrs:{name:d,classPrefix:s}}):e("i",{class:tl("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var e,n=arguments[0],i=this.status,s=this.active,o=this.parent.direction;return n("div",{class:[Rs,tl([o,(e={},e[i]=i,e)])]},[n("div",{class:tl("title",{active:s}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),n("div",{class:tl("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),n("div",{class:tl("line"),style:this.lineStyle})])}});var tB=Ae("steps"),YDe=tB[0],nB=tB[1];const HDe=YDe({mixins:[hr("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var e=arguments[0];return e("div",{class:nB([this.direction])},[e("div",{class:nB("items")},[this.slots()])])}});var zw=Ae("submit-bar"),WDe=zw[0],Ta=zw[1],QDe=zw[2];function iB(t,e,n,i){var s=e.tip,o=e.price,u=e.tipIcon;function d(){if(typeof o=="number"){var p=(o/100).toFixed(e.decimalLength).split("."),v=e.decimalLength?"."+p[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:Ta("text")},[t("span",[e.label||QDe("label")]),t("span",{class:Ta("price")},[e.currency,t("span",{class:Ta("price","integer")},[p[0]]),v]),e.suffixLabel&&t("span",{class:Ta("suffix-label")},[e.suffixLabel])])}}function f(){if(n.tip||s)return t("div",{class:Ta("tip")},[u&&t(It,{class:Ta("tip-icon"),attrs:{name:u}}),s&&t("span",{class:Ta("tip-text")},[s]),n.tip&&n.tip()])}return t("div",Pt([{class:Ta({unfit:!e.safeAreaInsetBottom})},on(i)]),[n.top&&n.top(),f(),t("div",{class:Ta("bar")},[n.default&&n.default(),d(),n.button?n.button():t(wi,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:Ta("button",e.buttonType),on:{click:function(){Yt(i,"submit")}}})])])}iB.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};const GDe=WDe(iB);var rB=Ae("swipe-cell"),KDe=rB[0],Wb=rB[1],sB=.15;const qDe=KDe({mixins:[ns,lw({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(e){if(this.$refs[e]){var n=this.$refs[e].getBoundingClientRect();return n.width}return 0},open:function(e){var n=e==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=n,this.$emit("open",{position:e,name:this.name,detail:this.name})},close:function(e){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:e,name:this.name}))},onTouchStart:function(e){this.disabled||(this.startOffset=this.offset,this.touchStart(e))},onTouchMove:function(e){if(!this.disabled&&(this.touchMove(e),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var n=!this.opened||this.deltaX*this.startOffset<0;n&&ui(e,this.stopPropagation),this.offset=Di(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var e=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){e.lockClick=!1},0))},toggle:function(e){var n=Math.abs(this.offset),i=this.opened?1-sB:sB,s=this.computedLeftWidth,o=this.computedRightWidth;o&&e==="right"&&n>o*i?this.open("right"):s&&e==="left"&&n>s*i?this.open("left"):this.close()},onClick:function(e){e===void 0&&(e="outside"),this.$emit("click",e),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:e,name:this.name,instance:this}):this.onClose?this.onClose(e,this,{name:this.name}):this.close(e))},getClickHandler:function(e,n){var i=this;return function(s){n&&s.stopPropagation(),i.onClick(e)}},genLeftPart:function(){var e=this.$createElement,n=this.slots("left");if(n)return e("div",{ref:"left",class:Wb("left"),on:{click:this.getClickHandler("left",!0)}},[n])},genRightPart:function(){var e=this.$createElement,n=this.slots("right");if(n)return e("div",{ref:"right",class:Wb("right"),on:{click:this.getClickHandler("right",!0)}},[n])}},render:function(){var e=arguments[0],n={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return e("div",{class:Wb(),on:{click:this.getClickHandler("cell")}},[e("div",{class:Wb("wrapper"),style:n},[this.genLeftPart(),this.slots(),this.genRightPart()])])}});var aB=Ae("switch-cell"),XDe=aB[0],ZDe=aB[1];function oB(t,e,n,i){return process.env.NODE_ENV==="development"&&console.warn('[Vant] "SwitchCell" component is deprecated, see: https://vant-ui.github.io/vant/v2/#/zh-CN/switch-cell.'),t(Vi,Pt([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:ZDe([e.cellSize])},on(i)]),[t(vb,{props:qe({},e),on:qe({},i.listeners)})])}oB.props=qe({},v3,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});const JDe=XDe(oB);var lB=Ae("tabbar"),ewe=lB[0],uB=lB[1];const twe=ewe({mixins:[hr("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var e=this;if(this.placeholder&&this.fixed){var n=function(){e.height=e.$refs.tabbar.getBoundingClientRect().height};n(),setTimeout(n,100)}},methods:{setActiveItem:function(){var e=this;this.children.forEach(function(n,i){n.nameMatched=n.name===e.value||i===e.value})},triggerChange:function(e,n){var i=this;R3({interceptor:this.beforeChange,args:[e],done:function(){i.$emit("input",e),i.$emit("change",e),n()}})},genTabbar:function(){var e,n=this.$createElement;return n("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(e={},e[cb]=this.border,e),uB({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:uB("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}});var cB=Ae("tabbar-item"),nwe=cB[0],Pw=cB[1];const iwe=nwe({mixins:[fr("vanTabbar")],props:qe({},Qo,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var e=this.parent.route;if(e&&"$route"in this){var n=this.to,i=this.$route,s=$s(n)?n:{path:n};return!!i.matched.find(function(o){var u=o.path===""?"/":o.path,d=s.path===u,f=Ut(s.name)&&s.name===o.name;return d||f})}return this.nameMatched}},methods:{onClick:function(e){var n=this;this.active||this.parent.triggerChange(this.name||this.index,function(){vu(n.$router,n)}),this.$emit("click",e)},genIcon:function(){var e=this.$createElement,n=this.slots("icon",{active:this.active});if(n)return n;if(this.icon)return e(It,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var e,n=arguments[0],i=this.active,s=this.parent[i?"activeColor":"inactiveColor"];return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] TabbarItem: "info" prop is deprecated, use "badge" prop instead.'),n("div",{class:Pw({active:i}),style:{color:s},on:{click:this.onClick}},[n("div",{class:Pw("icon")},[this.genIcon(),n(gu,{attrs:{dot:this.dot,info:(e=this.badge)!=null?e:this.info}})]),n("div",{class:Pw("text")},[this.slots("default",{active:i})])])}});var dB=Ae("tree-select"),rwe=dB[0],bd=dB[1];function fB(t,e,n,i){var s=e.items,o=e.height,u=e.activeId,d=e.selectedIcon,f=e.mainActiveIndex;process.env.NODE_ENV==="development"&&(i.listeners.navclick&&console.warn('[Vant] TreeSelect: "navclick" event is deprecated, use "click-nav" instead.'),i.listeners.itemclick&&console.warn('[Vant] TreeSelect: "itemclick" event is deprecated, use "click-item" instead.'));var p=s[+f]||{},v=p.children||[],y=Array.isArray(u);function M(N){return y?u.indexOf(N)!==-1:u===N}var b=s.map(function(N){var w;return t(yF,{attrs:{dot:N.dot,info:(w=N.badge)!=null?w:N.info,title:N.text,disabled:N.disabled},class:[bd("nav-item"),N.className]})});function x(){return n.content?n.content():v.map(function(N){return t("div",{key:N.id,class:["van-ellipsis",bd("item",{active:M(N.id),disabled:N.disabled})],on:{click:function(){if(!N.disabled){var k=N.id;if(y){k=u.slice();var E=k.indexOf(N.id);E!==-1?k.splice(E,1):k.length<e.max&&k.push(N.id)}Yt(i,"update:active-id",k),Yt(i,"click-item",N),Yt(i,"itemclick",N)}}}},[N.text,M(N.id)&&t(It,{attrs:{name:d},class:bd("selected")})])})}return t("div",Pt([{class:bd(),style:{height:Wt(o)}},on(i)]),[t(gF,{class:bd("nav"),attrs:{activeKey:f},on:{change:function(w){Yt(i,"update:main-active-index",w),Yt(i,"click-nav",w),Yt(i,"navclick",w)}}},[b]),t("div",{class:bd("content")},[x()])])}fB.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};const swe=rwe(fB);var awe="2.13.2";function hB(t){var e=[m0e,Z0e,lCe,e3,cCe,wi,TCe,NCe,UCe,Vi,K3,X3,GCe,ZCe,tSe,rSe,oSe,uSe,dSe,pSe,_Se,nw,DSe,kSe,bR,Bn,RSe,BSe,VSe,QSe,is,qSe,p3,DD,ZSe,t1e,i1e,It,pd,fw,h1e,g1e,gu,b1e,zs,lD,M1e,C1e,as,E1e,wP,A1e,$1e,z1e,CD,ITe,_a,jTe,PTe,jD,AD,BTe,YTe,QTe,XTe,gF,yF,iDe,Hs,BDe,VDe,$F,HDe,U3,GDe,ER,qDe,AR,vb,JDe,Mb,twe,iwe,YD,bb,ti,swe,YF];e.forEach(function(n){n.install?t.use(n):n.name&&t.component(n.name,n)})}typeof window<"u"&&window.Vue&&hB(window.Vue);const owe={install:hB,version:awe},WIe="";if(typeof gp>"u")var gp=window;var lwe=Object.create,Rw=Object.defineProperty,uwe=Object.getPrototypeOf,cwe=Object.prototype.hasOwnProperty,dwe=Object.getOwnPropertyNames,fwe=Object.getOwnPropertyDescriptor,hwe=t=>Rw(t,"__esModule",{value:!0}),us=(t,e)=>()=>(e||(e={exports:{}},t(e.exports,e)),e.exports),pwe=(t,e,n)=>{if(hwe(t),e&&typeof e=="object"||typeof e=="function")for(let i of dwe(e))!cwe.call(t,i)&&i!=="default"&&Rw(t,i,{get:()=>e[i],enumerable:!(n=fwe(e,i))||n.enumerable});return t},mwe=t=>t&&t.__esModule?t:pwe(Rw(t!=null?lwe(uwe(t)):{},"default",{value:t,enumerable:!0}),t),pB=us((t,e)=>{function n(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}e.exports=n}),gwe=us((t,e)=>{var n=typeof gp=="object"&&gp&&gp.Object===Object&&gp;e.exports=n}),mB=us((t,e)=>{var n=gwe(),i=typeof self=="object"&&self&&self.Object===Object&&self,s=n||i||Function("return this")();e.exports=s}),vwe=us((t,e)=>{var n=mB(),i=function(){return n.Date.now()};e.exports=i}),gB=us((t,e)=>{var n=mB(),i=n.Symbol;e.exports=i}),ywe=us((t,e)=>{var n=gB(),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,u=n?n.toStringTag:void 0;function d(f){var p=s.call(f,u),v=f[u];try{f[u]=void 0;var y=!0}catch{}var M=o.call(f);return y&&(p?f[u]=v:delete f[u]),M}e.exports=d}),bwe=us((t,e)=>{var n=Object.prototype,i=n.toString;function s(o){return i.call(o)}e.exports=s}),_we=us((t,e)=>{var n=gB(),i=ywe(),s=bwe(),o="[object Null]",u="[object Undefined]",d=n?n.toStringTag:void 0;function f(p){return p==null?p===void 0?u:o:d&&d in Object(p)?i(p):s(p)}e.exports=f}),Mwe=us((t,e)=>{function n(i){return i!=null&&typeof i=="object"}e.exports=n}),xwe=us((t,e)=>{var n=_we(),i=Mwe(),s="[object Symbol]";function o(u){return typeof u=="symbol"||i(u)&&n(u)==s}e.exports=o}),Cwe=us((t,e)=>{var n=pB(),i=xwe(),s=0/0,o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function v(y){if(typeof y=="number")return y;if(i(y))return s;if(n(y)){var M=typeof y.valueOf=="function"?y.valueOf():y;y=n(M)?M+"":M}if(typeof y!="string")return y===0?y:+y;y=y.replace(o,"");var b=d.test(y);return b||f.test(y)?p(y.slice(2),b?2:8):u.test(y)?s:+y}e.exports=v}),Swe=us((t,e)=>{var n=pB(),i=vwe(),s=Cwe(),o="Expected a function",u=Math.max,d=Math.min;function f(p,v,y){var M,b,x,N,w,k,E=0,S=!1,T=!1,O=!0;if(typeof p!="function")throw new TypeError(o);v=s(v)||0,n(y)&&(S=!!y.leading,T="maxWait"in y,x=T?u(s(y.maxWait)||0,v):x,O="trailing"in y?!!y.trailing:O);function j(Z){var X=M,te=b;return M=b=void 0,E=Z,N=p.apply(te,X),N}function $(Z){return E=Z,w=setTimeout(ee,v),S?j(Z):N}function R(Z){var X=Z-k,te=Z-E,oe=v-X;return T?d(oe,x-te):oe}function W(Z){var X=Z-k,te=Z-E;return k===void 0||X>=v||X<0||T&&te>=x}function ee(){var Z=i();if(W(Z))return q(Z);w=setTimeout(ee,R(Z))}function q(Z){return w=void 0,O&&M?j(Z):(M=b=void 0,N)}function G(){w!==void 0&&clearTimeout(w),E=0,M=k=b=w=void 0}function Y(){return w===void 0?N:q(i())}function J(){var Z=i(),X=W(Z);if(M=arguments,b=this,k=Z,X){if(w===void 0)return $(k);if(T)return clearTimeout(w),w=setTimeout(ee,v),j(k)}return w===void 0&&(w=setTimeout(ee,v)),N}return J.cancel=G,J.flush=Y,J}e.exports=f}),Twe=mwe(Swe()),Dwe=Twe.default;function wwe(){let t=[],e=[];function n(E,S){E.forEach(T=>{T.call(null,S)})}this.onSingleTap=function(E){typeof E=="function"&&!t.includes(E)&&t.push(E)},this.onDoubleTap=function(E){typeof E=="function"&&!e.includes(E)&&e.push(E)},this.attach=function(E){if(!(E instanceof Element)){console.error("TapDetector.attach: arg must be an Element");return}E.addEventListener("touchstart",p),E.addEventListener("touchmove",y),E.addEventListener("touchend",v),E.addEventListener("mousedown",M),E.addEventListener("mouseup",b),E.addEventListener("mousemove",x)},this.detach=function(E){E.removeEventListener("touchstart",p),E.removeEventListener("touchmove",y),E.removeEventListener("touchend",v),E.removeEventListener("mousedown",M),E.removeEventListener("mouseup",b),E.removeEventListener("mousemove",x)};let i=!1,s=0,o=0,u=0,d=0,f=0;function p(E){i=!0,E.touches.length===1&&N(E.touches[0].clientX,E.touches[0].clientY)}function v(E){E.touches.length===0&&w()}function y(E){E.touches.length===1&&k(E.touches[0].clientX,E.touches[0].clientY)}function M(E){i||N(E.clientX,E.clientY)}function b(E){i||w()}function x(E){i||E.button===0&&k(E.clientX,E.clientY)}function N(E,S){d=E,f=S,u=0}function w(){let E=Date.now();u<10&&(E-s<300?o+=1:o=1,s=Date.now(),n(t,{clientX:d,clientY:f}),o===2&&(n(e,{clientX:d,clientY:f}),o=0)),u=0}function k(E,S){let T=d-E,O=f-S,j=Math.sqrt(T*T+O*O);u+=j,d=E,f=S}}var Nwe={props:{minScale:{type:Number,default:1},maxScale:{type:Number,default:5},zoomed:{type:Boolean,default:!1},resetTrigger:{type:Number,default:1e5},aspectRatio:{type:Number,default:1},backgroundColor:{type:String,default:"transparent"},pivot:{type:String,default:"cursor"},zoomingElastic:{type:Boolean,default:!0},limitTranslation:{type:Boolean,default:!0},doubleClickToZoom:{type:Boolean,default:!0},mouseWheelToZoom:{type:Boolean,default:!0}},data(){return{containerWidth:1,containerHeight:1,containerLeft:0,containerTop:0,translateX:0,animTranslateX:0,translateY:0,animTranslateY:0,scale:1,animScale:1,lastFullWheelTime:0,lastWheelTime:0,lastWheelDirection:"y",isPointerDown:!1,pointerPosX:-1,pointerPosY:-1,twoFingerInitDist:0,panLocked:!0,raf:null,tapDetector:null}},computed:{wrapperStyle(){let t=this.containerWidth*this.animTranslateX,e=this.containerHeight*this.animTranslateY;return{transform:[`translate(${t}px, ${e}px)`,`scale(${this.animScale})`].join(" ")}}},watch:{scale(t){t!==1&&(this.$emit("update:zoomed",!0),this.panLocked=!1)},resetTrigger:"reset"},mounted(){this.tapDetector=new wwe,this.tapDetector.attach(this.$el),this.doubleClickToZoom&&this.tapDetector.onDoubleTap(this.onDoubleTap),window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.refreshContainerPos(),this.loop()},destroyed(){this.tapDetector.detach(this.$el),window.removeEventListener("resize",this.onWindowResize),window.cancelAnimationFrame(this.raf)},methods:{reset(){this.scale=1,this.panLocked=!0,this.translateX=0,this.translateY=0},zoomIn(t=2){this.tryToScale(t),this.onInteractionEnd()},zoomOut(t=.5){this.tryToScale(t),this.onInteractionEnd()},tryToScale(t){let e=this.scale*t;if(this.zoomingElastic){if(e<this.minScale||e>this.maxScale){let n=Math.log2(t);n*=.2,t=Math.pow(2,n),e=this.scale*t}}else e<this.minScale?e=this.minScale:e>this.maxScale&&(e=this.maxScale);if(t=e/this.scale,this.scale=e,this.pivot!=="image-center"){let n=(this.pointerPosX-this.containerLeft)/this.containerWidth,i=(this.pointerPosY-this.containerTop)/this.containerHeight;this.translateX=(.5+this.translateX-n)*t+n-.5,this.translateY=(.5+this.translateY-i)*t+i-.5}},setPointerPosCenter(){this.pointerPosX=this.containerLeft+this.containerWidth/2,this.pointerPosY=this.containerTop+this.containerHeight/2},onPointerMove(t,e){if(this.isPointerDown){let n=t-this.pointerPosX,i=e-this.pointerPosY;this.panLocked||(this.translateX+=n/this.containerWidth,this.translateY+=i/this.containerHeight)}this.pointerPosX=t,this.pointerPosY=e},onInteractionEnd:Dwe(function(){this.limit(),this.panLocked=this.scale===1,this.$emit("update:zoomed",!this.panLocked)},100),limit(){if(this.scale<this.minScale?this.scale=this.minScale:this.scale>this.maxScale&&this.tryToScale(this.maxScale/this.scale),this.limitTranslation){let t=this.calcTranslateLimit();Math.abs(this.translateX)>t.x&&(this.translateX*=t.x/Math.abs(this.translateX)),Math.abs(this.translateY)>t.y&&(this.translateY*=t.y/Math.abs(this.translateY))}},calcTranslateLimit(){if(this.getMarginDirection()==="y"){let t=this.containerWidth/this.aspectRatio/this.containerHeight,e=(this.scale*t-1)/2;return e<0&&(e=0),{x:(this.scale-1)/2,y:e}}else{let t=this.containerHeight*this.aspectRatio/this.containerWidth,e=(this.scale*t-1)/2;return e<0&&(e=0),{x:e,y:(this.scale-1)/2}}},getMarginDirection(){return this.containerWidth/this.containerHeight>this.aspectRatio?"x":"y"},onDoubleTap(t){this.scale===1?(t.clientX>0&&(this.pointerPosX=t.clientX,this.pointerPosY=t.clientY),this.tryToScale(Math.min(3,this.maxScale))):this.reset(),this.onInteractionEnd()},onWindowResize(){let t=window.getComputedStyle(this.$el);this.containerWidth=parseFloat(t.width),this.containerHeight=parseFloat(t.height),this.setPointerPosCenter(),this.limit()},refreshContainerPos(){let t=this.$el.getBoundingClientRect();this.containerLeft=t.left,this.containerTop=t.top},loop(){this.animScale=this.gainOn(this.animScale,this.scale),this.animTranslateX=this.gainOn(this.animTranslateX,this.translateX),this.animTranslateY=this.gainOn(this.animTranslateY,this.translateY),this.raf=window.requestAnimationFrame(this.loop)},gainOn(t,e){let n=(e-t)*.3;return Math.abs(n)>1e-5?t+n:e},onMouseWheel(t){if(!this.mouseWheelToZoom)return;t.preventDefault(),t.detail&&(t.wheelDelta=t.detail*-10);let e=Date.now();Math.abs(t.wheelDelta)===120?e-this.lastFullWheelTime>50&&(this.onMouseWheelDo(t.wheelDelta),this.lastFullWheelTime=e):(e-this.lastWheelTime>50&&typeof t.deltaX=="number"&&(this.lastWheelDirection=t.detail==0&&Math.abs(t.deltaX)>Math.abs(t.deltaY)?"x":"y",this.lastWheelDirection==="x"&&this.$emit("swipe",t.deltaX>0?"left":"right")),this.lastWheelDirection==="y"&&this.onMouseWheelDo(t.wheelDelta)),this.lastWheelTime=e},onMouseWheelDo(t){let e=Math.pow(1.25,t/120);this.tryToScale(e),this.onInteractionEnd()},onMouseDown(t){this.refreshContainerPos(),this.isPointerDown=!0,this.pointerPosX=t.clientX,this.pointerPosY=t.clientY},onMouseUp(t){this.isPointerDown=!1,this.onInteractionEnd()},onMouseMove(t){this.onPointerMove(t.clientX,t.clientY)},onTouchStart(t){if(t.touches.length===1)this.refreshContainerPos(),this.pointerPosX=t.touches[0].clientX,this.pointerPosY=t.touches[0].clientY,this.isPointerDown=!0;else if(t.touches.length===2){this.isPointerDown=!0,this.pointerPosX=(t.touches[0].clientX+t.touches[1].clientX)/2,this.pointerPosY=(t.touches[0].clientY+t.touches[1].clientY)/2;let e=t.touches[0].clientX-t.touches[1].clientX,n=t.touches[0].clientY-t.touches[1].clientY;this.twoFingerInitDist=Math.sqrt(e*e+n*n)}},onTouchEnd(t){t.touches.length===0?(this.isPointerDown=!1,Math.abs(this.scale-1)<.1&&(this.scale=1),this.onInteractionEnd()):t.touches.length===1&&(this.pointerPosX=t.touches[0].clientX,this.pointerPosY=t.touches[0].clientY)},onTouchMove(t){if(t.touches.length===1)this.onPointerMove(t.touches[0].clientX,t.touches[0].clientY);else if(t.touches.length===2){let e=(t.touches[0].clientX+t.touches[1].clientX)/2,n=(t.touches[0].clientY+t.touches[1].clientY)/2;this.onPointerMove(e,n),this.pointerPosX=e,this.pointerPosY=n;let i=t.touches[0].clientX-t.touches[1].clientX,s=t.touches[0].clientY-t.touches[1].clientY,o=Math.sqrt(i*i+s*s);this.tryToScale(o/this.twoFingerInitDist),this.twoFingerInitDist=o}}}};function vB(t,e,n,i,s,o,u,d,f,p){typeof u!="boolean"&&(f=d,d=u,u=!1);const v=typeof n=="function"?n.options:n;t&&t.render&&(v.render=t.render,v.staticRenderFns=t.staticRenderFns,v._compiled=!0,s&&(v.functional=!0)),i&&(v._scopeId=i);let y;if(o?(y=function(M){M=M||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!M&&typeof __VUE_SSR_CONTEXT__<"u"&&(M=__VUE_SSR_CONTEXT__),e&&e.call(this,f(M)),M&&M._registeredComponents&&M._registeredComponents.add(o)},v._ssrRegister=y):e&&(y=u?function(M){e.call(this,p(M,this.$root.$options.shadowRoot))}:function(M){e.call(this,d(M))}),y)if(v.functional){const M=v.render;v.render=function(x,N){return y.call(N),M(x,N)}}else{const M=v.beforeCreate;v.beforeCreate=M?[].concat(M,y):[y]}return n}const kwe=typeof navigator<"u"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function yB(t){return(e,n)=>Owe(e,n)}let Fw;const bB={};function Owe(t,e){const n=kwe?e.media||"default":t,i=bB[n]||(bB[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let s=e.source;if(e.map&&(s+=`
280
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var v={placement:$b(e.placement),variation:rF(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lF(Object.assign({},v,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,lF(Object.assign({},v,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var xTe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MTe,data:{}};function CTe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},o=e.elements[n];!Vs(o)||!qa(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(u){var d=s[u];d===!1?o.removeAttribute(u):o.setAttribute(u,d===!0?"":d)}))})}function STe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(i){var s=e.elements[i],o=e.attributes[i]||{},u=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),d=u.reduce(function(f,p){return f[p]="",f},{});!Vs(s)||!qa(s)||(Object.assign(s.style,d),Object.keys(o).forEach(function(f){s.removeAttribute(f)}))})}}var TTe={name:"applyStyles",enabled:!0,phase:"write",fn:CTe,effect:STe,requires:["computeStyles"]},DTe=[gTe,yTe,xTe,TTe],wTe=pTe({defaultModifiers:DTe});function NTe(t,e,n){var i=$b(t),s=[bu,vd].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,u=o[0],d=o[1];return u=u||0,d=(d||0)*s,[bu,pp].indexOf(i)>=0?{x:d,y:u}:{x:u,y:d}}function kTe(t){var e=t.state,n=t.options,i=t.name,s=n.offset,o=s===void 0?[0,0]:s,u=G1e.reduce(function(v,y){return v[y]=NTe(y,e.rects,o),v},{}),d=u[e.placement],f=d.x,p=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[i]=u}var OTe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kTe},uF=Ae("popover"),ETe=uF[0],Mu=uF[1];const ITe=ETe({mixins:[lw({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(cr||(window.removeEventListener("animationend",this.updateLocation),window.removeEventListener("transitionend",this.updateLocation)),this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){var e=wTe(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},qe({},OTe,{options:{offset:this.offset}})]});return cr||(window.addEventListener("animationend",this.updateLocation),window.addEventListener("transitionend",this.updateLocation)),e},updateLocation:function(){var e=this;this.$nextTick(function(){e.value&&(e.popper?e.popper.setOptions({placement:e.placement}):e.popper=e.createPopper())})},renderAction:function(e,n){var i=this,s=this.$createElement,o=e.icon,u=e.text,d=e.disabled,f=e.className;return s("div",{attrs:{role:"menuitem"},class:[Mu("action",{disabled:d,"with-icon":o}),f],on:{click:function(){return i.onClickAction(e,n)}}},[o&&s(It,{attrs:{name:o},class:Mu("action-icon")}),s("div",{class:[Mu("action-text"),tp]},[u])])},onToggle:function(e){this.$emit("input",e)},onClickWrapper:function(){this.trigger==="click"&&this.onToggle(!this.value)},onTouchstart:function(e){e.stopPropagation(),this.$emit("touchstart",e)},onClickAction:function(e,n){e.disabled||(this.$emit("select",e,n),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var e=arguments[0];return e("span",{ref:"wrapper",class:Mu("wrapper"),on:{click:this.onClickWrapper}},[e(_a,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:Mu([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[e("div",{class:Mu("arrow")}),e("div",{class:Mu("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}});var cF=Ae("progress"),ATe=cF[0],Sw=cF[1];const jTe=ATe({mixins:[Ls(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(e){return e>=0&&e<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var e=this;this.$nextTick(function(){e.progressWidth=e.$el.offsetWidth,e.pivotWidth=e.$refs.pivot?e.$refs.pivot.offsetWidth:0})}},render:function(){var e=arguments[0],n=this.pivotText,i=this.percentage,s=n??i+"%",o=this.showPivot&&s,u=this.inactive?"#cacaca":this.color,d={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*i/100+"px",background:this.pivotColor||u},f={background:u,width:this.progressWidth*i/100+"px"},p={background:this.trackColor,height:Wt(this.strokeWidth)};return e("div",{class:Sw(),style:p},[e("span",{class:Sw("portion"),style:f},[o&&e("span",{ref:"pivot",style:d,class:Sw("pivot")},[s])])])}});var Tw=Ae("pull-refresh"),$Te=Tw[0],zb=Tw[1],LTe=Tw[2],dF=50,zTe=["pulling","loosing","success"];const PTe=$Te({mixins:[ns],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,pullDistance:[Number,String],value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:dF}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return this.status!=="loading"&&this.status!=="success"&&!this.disabled},headStyle:function(){if(this.headHeight!==dF)return{height:this.headHeight+"px"}}},watch:{value:function(e){this.duration=this.animationDuration,e?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=pu(this.$el)},methods:{checkPullStart:function(e){this.ceiling=mu(this.scrollEl)===0,this.ceiling&&(this.duration=0,this.touchStart(e))},onTouchStart:function(e){this.touchable&&this.checkPullStart(e)},onTouchMove:function(e){this.touchable&&(this.ceiling||this.checkPullStart(e),this.touchMove(e),this.ceiling&&this.deltaY>=0&&this.direction==="vertical"&&(ui(e),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var e=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,this.status==="loosing"?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){e.$emit("refresh")})):this.setStatus(0))},ease:function(e){var n=+(this.pullDistance||this.headHeight);return e>n&&(e<n*2?e=n+(e-n)/2:e=n*1.5+(e-n*2)/4),Math.round(e)},setStatus:function(e,n){var i;n?i="loading":e===0?i="normal":i=e<(this.pullDistance||this.headHeight)?"pulling":"loosing",this.distance=e,i!==this.status&&(this.status=i)},genStatus:function(){var e=this.$createElement,n=this.status,i=this.distance,s=this.slots(n,{distance:i});if(s)return s;var o=[],u=this[n+"Text"]||LTe(n);return zTe.indexOf(n)!==-1&&o.push(e("div",{class:zb("text")},[u])),n==="loading"&&o.push(e(zs,{attrs:{size:"16"}},[u])),o},showSuccessTip:function(){var e=this;this.status="success",setTimeout(function(){e.setStatus(0)},this.successDuration)}},render:function(){var e=arguments[0],n={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return e("div",{class:zb()},[e("div",{ref:"track",class:zb("track"),style:n},[e("div",{class:zb("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}});var fF=Ae("rate"),RTe=fF[0],Pb=fF[1];function FTe(t,e,n){return t>=e?"full":t+.5>=e&&n?"half":"void"}const BTe=RTe({mixins:[ns,Go],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var e=[],n=1;n<=this.count;n++)e.push(FTe(this.value,n,this.allowHalf));return e},sizeWithUnit:function(){return Wt(this.size)},gutterWithUnit:function(){return Wt(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(e){!this.disabled&&!this.readonly&&e!==this.value&&(this.$emit("input",e),this.$emit("change",e))},onTouchStart:function(e){var n=this;if(!(this.readonly||this.disabled||!this.touchable)){this.touchStart(e);var i=this.$refs.items.map(function(o){return o.getBoundingClientRect()}),s=[];i.forEach(function(o,u){n.allowHalf?s.push({score:u+.5,left:o.left},{score:u+1,left:o.left+o.width/2}):s.push({score:u+1,left:o.left})}),this.ranges=s}},onTouchMove:function(e){if(!(this.readonly||this.disabled||!this.touchable)&&(this.touchMove(e),this.direction==="horizontal")){ui(e);var n=e.touches[0].clientX;this.select(this.getScoreByPosition(n))}},getScoreByPosition:function(e){for(var n=this.ranges.length-1;n>0;n--)if(e>this.ranges[n].left)return this.ranges[n].score;return this.allowHalf?.5:1},genStar:function(e,n){var i=this,s=this.$createElement,o=this.icon,u=this.color,d=this.count,f=this.voidIcon,p=this.disabled,v=this.voidColor,y=this.disabledColor,M=n+1,b=e==="full",x=e==="void",N;return this.gutterWithUnit&&M!==+d&&(N={paddingRight:this.gutterWithUnit}),s("div",{ref:"items",refInFor:!0,key:n,attrs:{role:"radio",tabindex:"0","aria-setsize":d,"aria-posinset":M,"aria-checked":String(!x)},style:N,class:Pb("item")},[s(It,{attrs:{size:this.sizeWithUnit,name:b?o:f,color:p?y:b?u:v,classPrefix:this.iconPrefix,"data-score":M},class:Pb("icon",{disabled:p,full:b}),on:{click:function(){i.select(M)}}}),this.allowHalf&&s(It,{attrs:{size:this.sizeWithUnit,name:x?f:o,color:p?y:x?v:u,classPrefix:this.iconPrefix,"data-score":M-.5},class:Pb("icon",["half",{disabled:p,full:!x}]),on:{click:function(){i.select(M-.5)}}})])}},render:function(){var e=this,n=arguments[0];return n("div",{class:Pb({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(i,s){return e.genStar(i,s)})])}});var hF=Ae("row"),UTe=hF[0],VTe=hF[1];const YTe=UTe({mixins:[hr("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var e=Number(this.gutter);if(e){var n=[],i=[[]],s=0;return this.children.forEach(function(o,u){s+=Number(o.span),s>24?(i.push([u]),s-=24):i[i.length-1].push(u)}),i.forEach(function(o){var u=e*(o.length-1)/o.length;o.forEach(function(d,f){if(f===0)n.push({right:u});else{var p=e-n[d-1].right,v=u-p;n.push({left:p,right:v})}})}),n}}},methods:{onClick:function(e){this.$emit("click",e)}},render:function(){var e,n=arguments[0],i=this.align,s=this.justify,o=this.type==="flex";return n(this.tag,{class:VTe((e={flex:o},e["align-"+i]=o&&i,e["justify-"+s]=o&&s,e)),on:{click:this.onClick}},[this.slots()])}});var Dw=Ae("search"),HTe=Dw[0],Rb=Dw[1],WTe=Dw[2];function pF(t,e,n,i){function s(){if(n.label||e.label)return t("div",{class:Rb("label")},[n.label?n.label():e.label])}function o(){if(!e.showAction)return;function f(){n.action||(Yt(i,"input",""),Yt(i,"cancel"))}return t("div",{class:Rb("action"),attrs:{role:"button",tabindex:"0"},on:{click:f}},[n.action?n.action():e.actionText||WTe("cancel")])}var u={attrs:i.data.attrs,on:qe({},i.listeners,{keypress:function(p){p.keyCode===13&&(ui(p),Yt(i,"search",e.value)),Yt(i,"keypress",p)}})},d=on(i);return d.attrs=void 0,t("div",Pt([{class:Rb({"show-action":e.showAction}),style:{background:e.background}},d]),[n.left==null?void 0:n.left(),t("div",{class:Rb("content",e.shape)},[s(),t(is,Pt([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},u]))]),o()])}pF.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};const QTe=HTe(pF);var GTe=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode","wechat-moments"],ww=Ae("share-sheet"),KTe=ww[0],Sa=ww[1],qTe=ww[2];const XTe=KTe({props:qe({},ab,{title:String,duration:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(e,n){this.$emit("select",e,n)},toggle:function(e){this.$emit("input",e)},getIconURL:function(e){return GTe.indexOf(e)!==-1?"https://img01.yzcdn.cn/vant/share-sheet-"+e+".png":e},genHeader:function(){var e=this.$createElement,n=this.slots("title")||this.title,i=this.slots("description")||this.description;if(!(!n&&!i))return e("div",{class:Sa("header")},[n&&e("h2",{class:Sa("title")},[n]),i&&e("span",{class:Sa("description")},[i])])},genOptions:function(e,n){var i=this,s=this.$createElement;return s("div",{class:Sa("options",{border:n})},[e.map(function(o,u){return s("div",{attrs:{role:"button",tabindex:"0"},class:[Sa("option"),o.className],on:{click:function(){i.onSelect(o,u)}}},[s("img",{attrs:{src:i.getIconURL(o.icon)},class:Sa("icon")}),o.name&&s("span",{class:Sa("name")},[o.name]),o.description&&s("span",{class:Sa("option-description")},[o.description])])})])},genRows:function(){var e=this,n=this.options;return Array.isArray(n[0])?n.map(function(i,s){return e.genOptions(i,s!==0)}):this.genOptions(n)},genCancelText:function(){var e,n=this.$createElement,i=(e=this.cancelText)!=null?e:qTe("cancel");if(i)return n("button",{attrs:{type:"button"},class:Sa("cancel"),on:{click:this.onCancel}},[i])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){var e=arguments[0];return e(_a,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Sa(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}});var mF=Ae("sidebar"),ZTe=mF[0],JTe=mF[1];const gF=ZTe({mixins:[hr("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(e){e!==this.index&&(this.index=e,this.$emit("change",e))}},render:function(){var e=arguments[0];return e("div",{class:JTe()},[this.slots()])}});var vF=Ae("sidebar-item"),eDe=vF[0],Nw=vF[1];const yF=eDe({mixins:[fr("vanSidebar")],props:qe({},Qo,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),vu(this.$router,this))}},render:function(){var e,n,i=arguments[0];return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] SidebarItem: "info" prop is deprecated, use "badge" prop instead.'),i("a",{class:Nw({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[i("div",{class:Nw("text")},[(e=this.slots("title"))!=null?e:this.title,i(gu,{attrs:{dot:this.dot,info:(n=this.badge)!=null?n:this.info},class:Nw("info")})])])}});var bF=Ae("skeleton"),tDe=bF[0],mp=bF[1],_F="100%",nDe="60%";function MF(t,e,n,i){if(!e.loading)return n.default&&n.default();function s(){if(e.title)return t("h3",{class:mp("title"),style:{width:Wt(e.titleWidth)}})}function o(){var d=[],f=e.rowWidth;function p(y){return f===_F&&y===+e.row-1?nDe:Array.isArray(f)?f[y]:f}for(var v=0;v<e.row;v++)d.push(t("div",{class:mp("row"),style:{width:Wt(p(v))}}));return d}function u(){if(e.avatar){var d=Wt(e.avatarSize);return t("div",{class:mp("avatar",e.avatarShape),style:{width:d,height:d}})}}return t("div",Pt([{class:mp({animate:e.animate,round:e.round})},on(i)]),[u(),t("div",{class:mp("content")},[s(),o()])])}MF.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:_F}};const iDe=tDe(MF),rDe={"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(e){return e+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(e){return"每人限购"+e+"件"},quotaUsedTip:function(e,n){return"每人限购"+e+"件,你已购买"+n+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(e){return"最大可上传图片为"+e+"MB,请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(e){return"限购"+e+"件"},quotaStart:function(e){return e+"件起售"},comma:",",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}};var Fb={QUOTA_LIMIT:0,STOCK_LIMIT:1},xu="";const sDe={LIMIT_TYPE:Fb,UNSELECTED_SKU_VALUE_ID:xu};var xF=function(e){var n={};return e.forEach(function(i){n[i.k_s]=i.v}),n},aDe=function(e){var n={};return e.forEach(function(i){var s={};i.v.forEach(function(o){s[o.id]=o}),n[i.k_id]=s}),n},CF=function(e,n){var i=Object.keys(n).filter(function(s){return n[s]!==xu});return e.length===i.length},SF=function(e,n){var i=e.filter(function(s){return Object.keys(n).every(function(o){return String(s[o])===String(n[o])})});return i[0]},TF=function(e,n){var i=xF(e);return Object.keys(n).reduce(function(s,o){var u=i[o]||[],d=n[o];if(d!==xu&&u.length>0){var f=u.filter(function(p){return p.id===d})[0];f&&s.push(f)}return s},[])},kw=function(e,n,i){var s,o=i.key,u=i.valueId,d=qe({},n,(s={},s[o]=u,s)),f=Object.keys(d).filter(function(y){return d[y]!==xu}),p=e.filter(function(y){return f.every(function(M){return String(d[M])===String(y[M])})}),v=p.reduce(function(y,M){return y+=M.stock_num,y},0);return v>0},DF=function(e,n){var i=aDe(e);return Object.keys(n).reduce(function(s,o){return n[o].forEach(function(u){s.push(qe({},i[o][u]))}),s},[])},wF=function(e,n){var i=[];return(e||[]).forEach(function(s){if(n[s.k_id]&&n[s.k_id].length>0){var o=[];s.v.forEach(function(u){n[s.k_id].indexOf(u.id)>-1&&o.push(qe({},u))}),i.push(qe({},s,{v:o}))}}),i};const oDe={normalizeSkuTree:xF,getSkuComb:SF,getSelectedSkuValues:TF,isAllSelected:CF,isSkuChoosable:kw,getSelectedPropValues:DF,getSelectedProperties:wF};var NF=Ae("sku-header"),lDe=NF[0],Ow=NF[1];function uDe(t,e){var n;return t.tree.some(function(i){var s=e[i.k_s];if(s&&i.v){var o=i.v.filter(function(d){return d.id===s})[0]||{},u=o.previewImgUrl||o.imgUrl||o.img_url;if(u)return n=qe({},o,{ks:i.k_s,imgUrl:u}),!0}return!1}),n}function kF(t,e,n,i){var s,o=e.sku,u=e.goods,d=e.skuEventBus,f=e.selectedSku,p=e.showHeaderImage,v=p===void 0?!0:p,y=uDe(o,f),M=y?y.imgUrl:u.picture,b=function(){d.$emit("sku:previewImage",y)};return t("div",Pt([{class:[Ow(),tp]},on(i)]),[v&&t(pd,{attrs:{fit:"cover",src:M},class:Ow("img-wrap"),on:{click:b}},[(s=n["sku-header-image-extra"])==null?void 0:s.call(n)]),t("div",{class:Ow("goods-info")},[n.default==null?void 0:n.default()])])}kF.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};const OF=lDe(kF);var EF=Ae("sku-header-item"),cDe=EF[0],dDe=EF[1];function fDe(t,e,n,i){return t("div",Pt([{class:dDe()},on(i)]),[n.default&&n.default()])}const Bb=cDe(fDe);var Ew=Ae("sku-row"),hDe=Ew[0],Ys=Ew[1],pDe=Ew[2];const Iw=hDe({mixins:[hr("vanSkuRows"),Ls(function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var e=this.$refs,n=e.scroller,i=e.row,s=i.offsetWidth-n.offsetWidth;this.progress=n.scrollLeft/s},genTitle:function(){var e=this.$createElement;return e("div",{class:Ys("title")},[this.skuRow.k,this.skuRow.is_multiple&&e("span",{class:Ys("title-multiple")},["(",pDe("multiple"),")"])])},genIndicator:function(){var e=this.$createElement;if(this.scrollable){var n={transform:"translate3d("+this.progress*20+"px, 0, 0)"};return e("div",{class:Ys("indicator-wrapper")},[e("div",{class:Ys("indicator")},[e("div",{class:Ys("indicator-slider"),style:n})])])}},genContent:function(){var e=this.$createElement,n=this.slots();if(this.skuRow.largeImageMode){var i=[],s=[];return n.forEach(function(o,u){var d=Math.floor(u/3)%2===0?i:s;d.push(o)}),e("div",{class:Ys("scroller"),ref:"scroller"},[e("div",{class:Ys("row"),ref:"row"},[i]),s.length?e("div",{class:Ys("row")},[s]):null])}return n},centerItem:function(e){if(!(!this.skuRow.largeImageMode||!e)){var n=this.children,i=n===void 0?[]:n,s=this.$refs,o=s.scroller,u=s.row,d=i.find(function(v){return+v.skuValue.id==+e});if(o&&u&&d&&d.$el){var f=d.$el,p=f.offsetLeft-(o.offsetWidth-f.offsetWidth)/2;o.scrollLeft=p}}}},render:function(){var e=arguments[0];return e("div",{class:[Ys(),tp]},[this.genTitle(),this.genContent(),this.genIndicator()])}});var mDe=Ae("sku-row-item"),gDe=mDe[0];const IF=gDe({mixins:[fr("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var e=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?e||"https://img01.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":e},choosable:function(){return this.disableSoldoutSku?kw(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id}):!0}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",qe({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(e){e.stopPropagation();var n=this.skuValue,i=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",qe({},n,{ks:i,imgUrl:n.imgUrl||n.img_url}))},genImage:function(e){var n=this.$createElement;if(this.imgUrl)return n(pd,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:e+"-img"})}},render:function(){var e=arguments[0],n=this.skuValue.id===this.selectedSku[this.skuKeyStr],i=this.largeImageMode?Ys("image-item"):Ys("item");return e("span",{class:[i,n?i+"--active":"",this.choosable?"":i+"--disabled"],on:{click:this.onSelect}},[this.genImage(i),e("div",{class:i+"-name"},[this.largeImageMode?e("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&e(It,{attrs:{name:"enlarge"},class:i+"-img-icon",on:{click:this.onPreviewImg}})])}});var vDe=Ae("sku-row-prop-item"),yDe=vDe[0];const AF=yDe({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean,disabled:Boolean},computed:{choosed:function(){var e=this.selectedProp,n=this.skuKeyStr,i=this.skuValue;return e&&e[n]?e[n].indexOf(i.id)>-1:!1}},methods:{onSelect:function(){this.disabled||this.skuEventBus.$emit("sku:propSelect",qe({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var e=arguments[0];return e("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed},{"van-sku-row__item--disabled":this.disabled}],on:{click:this.onSelect}},[e("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}});var jF=Ae("stepper"),bDe=jF[0],Ub=jF[1],_De=600,MDe=200;function Vb(t,e){return String(t)===String(e)}const $F=bDe({mixins:[Go],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var e,n=(e=this.value)!=null?e:this.defaultValue,i=this.format(n);return Vb(i,this.value)||this.$emit("input",i),{currentValue:i}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var e={};return this.inputWidth&&(e.width=Wt(this.inputWidth)),this.buttonSize&&(e.height=Wt(this.buttonSize)),e},buttonStyle:function(){if(this.buttonSize){var e=Wt(this.buttonSize);return{width:e,height:e}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(e){Vb(e,this.currentValue)||(this.currentValue=this.format(e))},currentValue:function(e){this.$emit("input",e),this.$emit("change",e,{name:this.name})}},methods:{check:function(){var e=this.format(this.currentValue);Vb(e,this.currentValue)||(this.currentValue=e)},formatNumber:function(e){return WP(String(e),!this.integer)},format:function(e){return this.allowEmpty&&e===""||(e=this.formatNumber(e),e=e===""?0:+e,e=cD(e)?this.min:e,e=Math.max(Math.min(this.max,e),this.min),Ut(this.decimalLength)&&(e=e.toFixed(this.decimalLength))),e},onInput:function(e){var n=e.target.value,i=this.formatNumber(n);if(Ut(this.decimalLength)&&i.indexOf(".")!==-1){var s=i.split(".");i=s[0]+"."+s[1].slice(0,this.decimalLength)}Vb(n,i)||(e.target.value=i),i===String(+i)&&(i=+i),this.emitChange(i)},emitChange:function(e){this.asyncChange?(this.$emit("input",e),this.$emit("change",e,{name:this.name})):this.currentValue=e},onChange:function(){var e=this.type;if(this[e+"Disabled"]){this.$emit("overlimit",e);return}var n=e==="minus"?-this.step:+this.step,i=this.format(QP(+this.currentValue,n));this.emitChange(i),this.$emit(e)},onFocus:function(e){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",e)},onBlur:function(e){var n=this.format(e.target.value);e.target.value=n,this.emitChange(n),this.$emit("blur",e),r3()},longPressStep:function(){var e=this;this.longPressTimer=setTimeout(function(){e.onChange(),e.longPressStep(e.type)},MDe)},onTouchStart:function(){var e=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){e.isLongPress=!0,e.onChange(),e.longPressStep()},_De))},onTouchEnd:function(e){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&ui(e))},onMousedown:function(e){this.disableInput&&e.preventDefault()}},render:function(){var e=this,n=arguments[0],i=function(o){return{on:{click:function(d){d.preventDefault(),e.type=o,e.onChange()},touchstart:function(){e.type=o,e.onTouchStart()},touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}}};return n("div",{class:Ub([this.theme])},[n("button",Pt([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Ub("minus",{disabled:this.minusDisabled})},i("minus")])),n("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Ub("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),n("button",Pt([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Ub("plus",{disabled:this.plusDisabled})},i("plus")]))])}});var LF=Ae("sku-stepper"),xDe=LF[0],Yb=LF[2],CDe=Fb.QUOTA_LIMIT,zF=Fb.STOCK_LIMIT;const PF=xDe({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:zF}},watch:{currentNum:function(e){var n=parseInt(e,10);n>=this.stepperMinLimit&&n<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",n)},stepperLimit:function(e){e<this.currentNum&&this.stepperMinLimit<=e&&(this.currentNum=e),this.checkState(this.stepperMinLimit,e)},stepperMinLimit:function(e){(e>this.currentNum||e>this.stepperLimit)&&(this.currentNum=e),this.checkState(e,this.stepperLimit)}},computed:{stepperLimit:function(){var e=this.quota-this.quotaUsed,n;return this.quota>0&&e<=this.stock?(n=e<0?0:e,this.limitType=CDe):(n=this.stock,this.limitType=zF),n},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var e=this.customStepperConfig,n=e.quotaText,i=e.hideQuotaText;if(i)return"";var s="";if(n)s=n;else{var o=[];this.startSaleNum>1&&o.push(Yb("quotaStart",this.startSaleNum)),this.quota>0&&o.push(Yb("quotaLimit",this.quota)),s=o.join(Yb("comma"))}return s}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(e){this.currentNum=e,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(e){this.skuEventBus.$emit("sku:overLimit",{action:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(e){var n=parseInt(e,10),i=this.customStepperConfig.handleStepperChange;i&&i(n),this.$emit("change",n)},checkState:function(e,n){this.currentNum<e||e>n?this.currentNum=e:this.currentNum>n&&(this.currentNum=n),this.skuEventBus.$emit("sku:stepperState",{valid:e<=n,min:e,max:n,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var e=this,n=arguments[0];return n("div",{class:"van-sku-stepper-stock"},[n("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Yb("num")]),n($F,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:e.currentNum,callback:function(s){e.currentNum=s}}}),!this.hideQuotaText&&this.quotaText&&n("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function SDe(t){var e=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;return e.test(t.trim())}function RF(t){return Array.isArray(t)?t:[t]}function FF(t,e){return new Promise(function(n){if(e==="file"){n(null);return}var i=new FileReader;i.onload=function(s){n(s.target.result)},e==="dataUrl"?i.readAsDataURL(t):e==="text"&&i.readAsText(t)})}function BF(t,e){return RF(t).some(function(n){return n?ud(e)?e(n):n.size>e:!1})}var TDe=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function DDe(t){return TDe.test(t)}function UF(t){return t.isImage?!0:t.file&&t.file.type?t.file.type.indexOf("image")===0:t.url?DDe(t.url):t.content?t.content.indexOf("data:image")===0:!1}var VF=Ae("uploader"),wDe=VF[0],Vn=VF[1];const YF=wDe({inheritAttrs:!1,mixins:[Go],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Wt(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach(function(e){return URL.revokeObjectURL(e)})},methods:{getDetail:function(e){return e===void 0&&(e=this.fileList.length),{name:this.name,index:e}},onChange:function(e){var n=this,i=e.target.files;if(!(this.disabled||!i.length)){if(i=i.length===1?i[0]:[].slice.call(i),this.beforeRead){var s=this.beforeRead(i,this.getDetail());if(!s){this.resetInput();return}if(ib(s)){s.then(function(o){o?n.readFile(o):n.readFile(i)}).catch(this.resetInput);return}}this.readFile(i)}},readFile:function(e){var n=this,i=BF(e,this.maxSize);if(Array.isArray(e)){var s=this.maxCount-this.fileList.length;e.length>s&&(e=e.slice(0,s)),Promise.all(e.map(function(o){return FF(o,n.resultType)})).then(function(o){var u=e.map(function(d,f){var p={file:d,status:"",message:""};return o[f]&&(p.content=o[f]),p});n.onAfterRead(u,i)})}else FF(e,this.resultType).then(function(o){var u={file:e,status:"",message:""};o&&(u.content=o),n.onAfterRead(u,i)})},onAfterRead:function(e,n){var i=this;this.resetInput();var s=e;if(n){var o=e;Array.isArray(e)?(o=[],s=[],e.forEach(function(d){d.file&&(BF(d.file,i.maxSize)?o.push(d):s.push(d))})):s=null,this.$emit("oversize",o,this.getDetail())}var u=Array.isArray(s)?!!s.length:!!s;u&&(this.$emit("input",[].concat(this.fileList,RF(s))),this.afterRead&&this.afterRead(s,this.getDetail()))},onDelete:function(e,n){var i,s=this,o=(i=e.beforeDelete)!=null?i:this.beforeDelete;if(o){var u=o(e,this.getDetail(n));if(!u)return;if(ib(u)){u.then(function(){s.deleteFile(e,n)}).catch(Jh);return}}this.deleteFile(e,n)},deleteFile:function(e,n){var i=this.fileList.slice(0);i.splice(n,1),this.$emit("input",i),this.$emit("delete",e,this.getDetail(n))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(e){this.$emit("click-upload",e)},onPreviewImage:function(e){var n=this;if(this.previewFullImage){var i=this.fileList.filter(function(o){return UF(o)}),s=i.map(function(o){return o.file&&!o.url&&o.status!=="failed"&&(o.url=URL.createObjectURL(o.file),n.urls.push(o.url)),o.url});this.imagePreview=fw(qe({images:s,startPosition:i.indexOf(e),onClose:function(){n.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(e){var n=this.$createElement,i=e.status,s=e.message;if(i==="uploading"||i==="failed"){var o=i==="failed"?n(It,{attrs:{name:"close"},class:Vn("mask-icon")}):n(zs,{class:Vn("loading")}),u=Ut(s)&&s!=="";return n("div",{class:Vn("mask")},[o,u&&n("div",{class:Vn("mask-message")},[s])])}},genPreviewItem:function(e,n){var i,s=this,o,u,d=this.$createElement,f=(i=e.deletable)!=null?i:this.deletable,p=e.status!=="uploading"&&f,v=p&&d("div",{class:Vn("preview-delete"),on:{click:function(k){k.stopPropagation(),s.onDelete(e,n)}}},[d(It,{attrs:{name:"cross"},class:Vn("preview-delete-icon")})]),y=this.slots("preview-cover",qe({index:n},e)),M=y&&d("div",{class:Vn("preview-cover")},[y]),b=(o=e.previewSize)!=null?o:this.previewSize,x=(u=e.imageFit)!=null?u:this.imageFit,N=UF(e)?d(pd,{attrs:{fit:x,src:e.content||e.url,width:b,height:b,lazyLoad:this.lazyLoad},class:Vn("preview-image"),on:{click:function(){s.onPreviewImage(e)}}},[M]):d("div",{class:Vn("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[d(It,{class:Vn("file-icon"),attrs:{name:"description"}}),d("div",{class:[Vn("file-name"),"van-ellipsis"]},[e.file?e.file.name:e.url]),M]);return d("div",{class:Vn("preview"),on:{click:function(){s.$emit("click-preview",e,s.getDetail(n))}}},[N,this.genPreviewMask(e),v])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var e=this.$createElement;if(!(this.fileList.length>=this.maxCount)){var n=this.slots(),i=this.readonly?null:e("input",{attrs:qe({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:Vn("input"),on:{change:this.onChange}});if(n)return e("div",{class:Vn("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[n,i]);var s;if(this.previewSize){var o=this.previewSizeWithUnit;s={width:o,height:o}}return e("div",{directives:[{name:"show",value:this.showUpload}],class:Vn("upload",{readonly:this.readonly}),style:s,on:{click:this.onClickUpload}},[e(It,{attrs:{name:this.uploadIcon},class:Vn("upload-icon")}),this.uploadText&&e("span",{class:Vn("upload-text")},[this.uploadText]),i])}}},render:function(){var e=arguments[0];return e("div",{class:Vn()},[e("div",{class:Vn("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}});var HF=Ae("sku-img-uploader"),NDe=HF[0],Aw=HF[2];const kDe=NDe({props:{value:String,uploadImg:Function,customUpload:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(e){e?this.fileList=[{url:e,isImage:!0}]:this.fileList=[]}},methods:{afterReadFile:function(e){var n=this;e.status="uploading",e.message=Aw("uploading"),this.uploadImg(e.file,e.content).then(function(i){e.status="done",n.$emit("input",i)}).catch(function(){e.status="failed",e.message=Aw("fail")})},onOversize:function(){this.$toast(Aw("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")},onClickUpload:function(){var e=this;this.customUpload&&this.customUpload().then(function(n){e.fileList.push({url:n}),e.$emit("input",n)})}},render:function(){var e=this,n=arguments[0];return n(YF,{attrs:{maxCount:1,readonly:!!this.customUpload,maxSize:this.maxSize*1024*1024,afterRead:this.afterReadFile},on:{oversize:this.onOversize,delete:this.onDelete,"click-upload":this.onClickUpload},model:{value:e.fileList,callback:function(s){e.fileList=s}}})}});function ODe(t){return t?new Date(t.replace(/-/g,"/")):null}function EDe(t,e){if(e===void 0&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,s=t.getDate(),o=n+"-"+An(i)+"-"+An(s);if(e==="datetime"){var u=t.getHours(),d=t.getMinutes();o+=" "+An(u)+":"+An(d)}return o}var WF=Ae("sku-datetime-field"),IDe=WF[0],QF=WF[2];const ADe=IDe({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:this.type==="time"?"":new Date,minDate:new Date(new Date().getFullYear()-60,0,1)}},watch:{value:function(e){switch(this.type){case"time":this.currentDate=e;break;case"date":case"datetime":this.currentDate=ODe(e)||new Date;break}}},computed:{title:function(){return QF("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(e){var n=e;this.type!=="time"&&(n=EDe(e,this.type)),this.$emit("input",n),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(e,n){var i=QF("format."+e);return""+n+i}},render:function(){var e=this,n=arguments[0];return n(is,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[n(_a,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:e.showDatePicker,callback:function(s){e.showDatePicker=s}}},[n(bR,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}});var jw=Ae("sku-messages"),jDe=jw[0],yd=jw[1],Cu=jw[2];const GF=jDe({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(e){this.messageValues=this.resetMessageValues(e)}},methods:{resetMessageValues:function(e){var n=this.messageConfig,i=n.initialMessages,s=i===void 0?{}:i;return(e||[]).map(function(o){return{value:s[o.name]||""}})},getType:function(e){return+e.multiple==1?"textarea":e.type==="id_no"?"text":e.datetime>0?"datetime":e.type},getMessages:function(){var e={};return this.messageValues.forEach(function(n,i){e["message_"+i]=n.value}),e},getCartMessages:function(){var e=this,n={};return this.messageValues.forEach(function(i,s){var o=e.messages[s];n[o.name]=i.value}),n},getPlaceholder:function(e){var n=+e.multiple==1?"textarea":e.type,i=this.messageConfig.placeholderMap||{};return e.placeholder||i[n]||Cu("placeholder."+n)},validateMessages:function(){for(var e=this.messageValues,n=0;n<e.length;n++){var i=e[n].value,s=this.messages[n];if(i===""){if(String(s.required)==="1"){var o=Cu(s.type==="image"?"upload":"fill");return o+s.name}}else{if(s.type==="tel"&&!uD(i))return Cu("invalid.tel");if(s.type==="mobile"&&!/^\d{6,20}$/.test(i))return Cu("invalid.mobile");if(s.type==="email"&&!SDe(i))return Cu("invalid.email");if(s.type==="id_no"&&(i.length<15||i.length>18))return Cu("invalid.id_no")}}},getFormatter:function(e){return function(i){return e.type==="mobile"||e.type==="tel"?i.replace(/[^\d.]/g,""):i}},getExtraDesc:function(e){var n=this.$createElement,i=e.extraDesc;if(i)return n("div",{class:yd("extra-message")},[i])},genMessage:function(e,n){var i=this,s=this.$createElement;if(e.type==="image")return s(Vi,{key:this.goodsId+"-"+n,attrs:{title:e.name,required:String(e.required)==="1",valueClass:yd("image-cell-value")},class:yd("image-cell")},[s(kDe,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg,customUpload:this.messageConfig.customUpload},model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}),s("div",{class:yd("image-cell-label")},[Cu("imageLabel")])]);var o=["date","time"].indexOf(e.type)>-1;return o?s(ADe,{attrs:{label:e.name,required:String(e.required)==="1",placeholder:this.getPlaceholder(e),type:this.getType(e)},key:this.goodsId+"-"+n,model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}):s("div",{class:yd("cell-block")},[s(is,{attrs:{maxlength:"200",center:!e.multiple,label:e.name,required:String(e.required)==="1",placeholder:this.getPlaceholder(e),type:this.getType(e),formatter:this.getFormatter(e),border:!1},key:this.goodsId+"-"+n,model:{value:i.messageValues[n].value,callback:function(d){i.$set(i.messageValues[n],"value",d)}}}),this.getExtraDesc(e)])}},render:function(){var e=arguments[0];return e("div",{class:yd()},[this.messages.map(this.genMessage)])}});var $w=Ae("sku-actions"),$De=$w[0],LDe=$w[1],KF=$w[2];function qF(t,e,n,i){var s=function(u){return function(){e.skuEventBus.$emit(u)}};return t("div",Pt([{class:LDe()},on(i)]),[e.showAddCartBtn&&t(wi,{attrs:{size:"large",type:"warning",text:e.addCartText||KF("addCart")},on:{click:s("sku:addCart")}}),t(wi,{attrs:{size:"large",type:"danger",text:e.buyText||KF("buy")},on:{click:s("sku:buy")}})])}qF.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};const XF=$De(qF);var Lw=Ae("sku"),zDe=Lw[0],PDe=Lw[1],ls=Lw[2],RDe=Fb.QUOTA_LIMIT;const Hs=zDe({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(e){this.$emit("input",e),e||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(e){this.show=e},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer){var e=window.innerHeight-this.bodyOffsetTop;return{maxHeight:e+"px"}}},isSkuCombSelected:function(){var e=this;return this.hasSku&&!CF(this.skuTree,this.selectedSku)?!1:!this.propList.filter(function(n){return n.is_necessary!==!1}).some(function(n){return(e.selectedProp[n.k_id]||[]).length===0})},isSkuEmpty:function(){return Object.keys(this.sku).length===0},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var e=null;return this.isSkuCombSelected&&(this.hasSku?e=SF(this.skuList,this.selectedSku):e={id:this.sku.collection_id,price:Math.round(this.sku.price*100),stock_num:this.sku.stock_num},e&&(e.properties=wF(this.propList,this.selectedProp),e.property_price=this.selectedPropValues.reduce(function(n,i){return n+(i.price||0)},0))),e},selectedSkuValues:function(){return TF(this.skuTree,this.selectedSku)},selectedPropValues:function(){return DF(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var e=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(n){n.v&&n.v.forEach(function(i){var s=i.previewImgUrl||i.imgUrl||i.img_url;s&&e.indexOf(s)===-1&&e.push(s)})}),e},stock:function(){var e=this.customStepperConfig.stockNum;return e!==void 0?e:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var e=this.$createElement,n=this.customStepperConfig.stockFormatter;return n?n(this.stock):[ls("stock")+" ",e("span",{class:PDe("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+ls("stockUnit")]},selectedText:function(){var e=this;if(this.selectedSkuComb){var n=this.selectedSkuValues.concat(this.selectedPropValues);return ls("selected")+" "+n.map(function(o){return o.name}).join(" ")}var i=this.skuTree.filter(function(o){return e.selectedSku[o.k_s]===xu}).map(function(o){return o.k}),s=this.propList.filter(function(o){return(e.selectedProp[o.k_id]||[]).length<1}).map(function(o){return o.k});return ls("select")+" "+i.concat(s).join(" ")}},created:function(){var e=new ft;this.skuEventBus=e,e.$on("sku:select",this.onSelect),e.$on("sku:propSelect",this.onPropSelect),e.$on("sku:numChange",this.onNumChange),e.$on("sku:previewImage",this.onPreviewImage),e.$on("sku:overLimit",this.onOverLimit),e.$on("sku:stepperState",this.onStepperState),e.$on("sku:addCart",this.onAddCart),e.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",e)},methods:{resetStepper:function(){var e=this.$refs.skuStepper,n=this.initialSku.selectedNum,i=n??this.startSaleNum;this.stepperError=null,e?e.setCurrentNum(i):this.selectedNum=i},resetSelectedSku:function(){var e=this;this.selectedSku={},this.skuTree.forEach(function(u){e.selectedSku[u.k_s]=xu}),this.skuTree.forEach(function(u){var d=u.k_s,f=u.v.length===1?u.v[0].id:e.initialSku[d];f&&kw(e.skuList,e.selectedSku,{key:d,valueId:f})&&(e.selectedSku[d]=f)});var n=this.selectedSkuValues;n.length>0&&this.$nextTick(function(){e.$emit("sku-selected",{skuValue:n[n.length-1],selectedSku:e.selectedSku,selectedSkuComb:e.selectedSkuComb})}),this.selectedProp={};var i=this.initialSku.selectedProp,s=i===void 0?{}:i;this.propList.forEach(function(u){s[u.k_id]&&(e.selectedProp[u.k_id]=s[u.k_id])}),Bxe(this.selectedProp)&&this.propList.forEach(function(u){var d;if((u==null||(d=u.v)==null?void 0:d.length)>0){var f=u.v,p=u.k_id,v=f.some(function(M){return+M.price!=0});if(!v){var y=f.find(function(M){return M.text_status!==0});y&&(e.selectedProp[p]=[y.id])}}});var o=this.selectedPropValues;o.length>0&&this.$emit("sku-prop-selected",{propValue:o[o.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(this.selectedNum===0)return ls("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var e=this.customSkuValidator(this);if(e)return e}return ls("selectSku")},onSelect:function(e){var n,i;this.selectedSku=this.selectedSku[e.skuKeyStr]===e.id?qe({},this.selectedSku,(n={},n[e.skuKeyStr]=xu,n)):qe({},this.selectedSku,(i={},i[e.skuKeyStr]=e.id,i)),this.$emit("sku-selected",{skuValue:e,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(e){var n,i=this.selectedProp[e.skuKeyStr]||[],s=i.indexOf(e.id);s>-1?i.splice(s,1):e.multiple?i.push(e.id):i.splice(0,1,e.id),this.selectedProp=qe({},this.selectedProp,(n={},n[e.skuKeyStr]=i,n)),this.$emit("sku-prop-selected",{propValue:e,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(e){this.selectedNum=e},onPreviewImage:function(e){var n=this,i=this.imageList,s=0,o=i[0];e&&e.imgUrl&&(this.imageList.some(function(d,f){return d===e.imgUrl?(s=f,!0):!1}),o=e.imgUrl);var u=qe({},e,{index:s,imageList:this.imageList,indexImage:o});this.$emit("open-preview",u),this.previewOnClickImage&&fw({images:this.imageList,startPosition:s,onClose:function(){n.$emit("close-preview",u)}})},onOverLimit:function(e){var n=e.action,i=e.limitType,s=e.quota,o=e.quotaUsed,u=this.customStepperConfig.handleOverLimit;if(u){u(e);return}n==="minus"?this.startSaleNum>1?ti(ls("minusStartTip",this.startSaleNum)):ti(ls("minusTip")):n==="plus"&&(i===RDe?o>0?ti(ls("quotaUsedTip",s,o)):ti(ls("quotaTip",s)):ti(ls("soldout")))},onStepperState:function(e){this.stepperError=e.valid?null:qe({},e,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(e){if(this.stepperError)return this.onOverLimit(this.stepperError);var n=this.validateSku();n?ti(n):this.$emit(e,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var e=this;(this.$refs.skuRows||[]).forEach(function(n){var i=n.skuRow||{},s=i.k_s;n.centerItem(e.initialSku[s])})}},render:function(){var e=this,n=arguments[0];if(!this.isSkuEmpty){var i=this.sku,s=this.skuList,o=this.goods,u=this.price,d=this.lazyLoad,f=this.originPrice,p=this.skuEventBus,v=this.selectedSku,y=this.selectedProp,M=this.selectedNum,b=this.stepperTitle,x=this.selectedSkuComb,N=this.showHeaderImage,w=this.disableSoldoutSku,k={price:u,originPrice:f,selectedNum:M,skuEventBus:p,selectedSku:v,selectedSkuComb:x},E=function(W){return e.slots(W,k)},S=E("sku-header")||n(OF,{attrs:{sku:i,goods:o,skuEventBus:p,selectedSku:v,showHeaderImage:N}},[n("template",{slot:"sku-header-image-extra"},[E("sku-header-image-extra")]),E("sku-header-price")||n("div",{class:"van-sku__goods-price"},[n("span",{class:"van-sku__price-symbol"},["¥"]),n("span",{class:"van-sku__price-num"},[u]),this.priceTag&&n("span",{class:"van-sku__price-tag"},[this.priceTag])]),E("sku-header-origin-price")||f&&n(Bb,[ls("originPrice")," ¥",f]),!this.hideStock&&n(Bb,[n("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&n(Bb,[this.selectedText]),E("sku-header-extra")]),T=E("sku-group")||this.hasSkuOrAttr&&n("div",{class:this.skuGroupClass},[this.skuTree.map(function(R){return n(Iw,{attrs:{skuRow:R},ref:"skuRows",refInFor:!0},[R.v.map(function(W){return n(IF,{attrs:{skuList:s,lazyLoad:d,skuValue:W,skuKeyStr:R.k_s,selectedSku:v,skuEventBus:p,disableSoldoutSku:w,largeImageMode:R.largeImageMode}})})])}),this.propList.map(function(R){return n(Iw,{attrs:{skuRow:R}},[R.v.map(function(W){return n(AF,{attrs:{skuValue:W,skuKeyStr:R.k_id+"",selectedProp:y,skuEventBus:p,multiple:R.is_multiple,disabled:W.text_status===0}})})])})]),O=E("sku-stepper")||n(PF,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:p,selectedNum:M,stepperTitle:b,skuStockNum:i.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(W){e.$emit("stepper-change",W)}}}),j=E("sku-messages")||n(GF,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:i.messages}}),$=E("sku-actions")||n(XF,{attrs:{buyText:this.buyText,skuEventBus:p,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return n(_a,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:e.show,callback:function(W){e.show=W}}},[S,n("div",{class:"van-sku-body",style:this.bodyStyle},[E("sku-body-top"),T,E("extra-sku-group"),O,E("before-sku-messages"),j,E("after-sku-messages")]),E("sku-actions-top"),$])}}});lD.add(rDe),Hs.SkuActions=XF,Hs.SkuHeader=OF,Hs.SkuHeaderItem=Bb,Hs.SkuMessages=GF,Hs.SkuStepper=PF,Hs.SkuRow=Iw,Hs.SkuRowItem=IF,Hs.SkuRowPropItem=AF,Hs.skuHelper=oDe,Hs.skuConstants=sDe;var ZF=Ae("slider"),FDe=ZF[0],Hb=ZF[1],JF=function(e,n){return JSON.stringify(e)===JSON.stringify(n)};const BDe=FDe({mixins:[ns,Go],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var e=Wt(this.buttonSize);return{width:e,height:e}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(e){this.disabled||(this.touchStart(e),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(e){if(!this.disabled){this.dragStatus==="start"&&this.$emit("drag-start"),ui(e,!0),this.touchMove(e),this.dragStatus="draging";var n=this.$el.getBoundingClientRect(),i=this.vertical?this.deltaY:this.deltaX,s=this.vertical?n.height:n.width,o=i/s*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+o:this.currentValue=this.startValue+o,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||(this.dragStatus==="draging"&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(e){if(e.stopPropagation(),!this.disabled){var n=this.$el.getBoundingClientRect(),i=this.vertical?e.clientY-n.top:e.clientX-n.left,s=this.vertical?n.height:n.width,o=+this.min+i/s*this.scope;if(this.range){var u=this.value,d=u[0],f=u[1],p=(d+f)/2;o<=p?d=o:f=o,o=[d,f]}this.startValue=this.value,this.updateValue(o,!0)}},handleOverlap:function(e){return e[0]>e[1]?(e=np(e),e.reverse()):e},updateValue:function(e,n){this.range?e=this.handleOverlap(e).map(this.format):e=this.format(e),JF(e,this.value)||this.$emit("input",e),n&&!JF(e,this.startValue)&&this.$emit("change",e)},format:function(e){var n=+this.min,i=+this.max,s=+this.step;e=Di(e,n,i);var o=Math.round((e-n)/s)*s;return QP(n,o)}},render:function(){var e,n=this,i,s=arguments[0],o=this.vertical,u=o?"height":"width",d=o?"width":"height",f=(e={background:this.inactiveColor},e[d]=Wt(this.barHeight),e),p=function(){var x=n.value,N=n.min,w=n.range,k=n.scope;return w?(x[1]-x[0])*100/k+"%":(x-N)*100/k+"%"},v=function(){var x=n.value,N=n.min,w=n.range,k=n.scope;return w?(x[0]-N)*100/k+"%":null},y=(i={},i[u]=p(),i.left=this.vertical?null:v(),i.top=this.vertical?v():null,i.background=this.activeColor,i);this.dragStatus&&(y.transition="none");var M=function(x){var N=["left","right"],w=typeof x=="number",k=w?n.value[x]:n.value,E=function(){return w?"button-wrapper-"+N[x]:"button-wrapper"},S=function(){return w?"wrapper"+x:"wrapper"},T=function(){if(w){var j=n.slots(x===0?"left-button":"right-button",{value:k});if(j)return j}return n.slots("button")?n.slots("button"):s("div",{class:Hb("button"),style:n.buttonStyle})};return s("div",{ref:S(),attrs:{role:"slider",tabindex:n.disabled?-1:0,"aria-valuemin":n.min,"aria-valuenow":n.value,"aria-valuemax":n.max,"aria-orientation":n.vertical?"vertical":"horizontal"},class:Hb(E()),on:{touchstart:function(){w&&(n.index=x)},click:function(j){return j.stopPropagation()}}},[T()])};return s("div",{style:f,class:Hb({disabled:this.disabled,vertical:o}),on:{click:this.onClick}},[s("div",{class:Hb("bar"),style:y},[this.range?[M(0),M(1)]:M()])])}});var eB=Ae("step"),UDe=eB[0],tl=eB[1];const VDe=UDe({mixins:[fr("vanSteps")],computed:{status:function(){if(this.index<this.parent.active)return"finish";if(this.index===+this.parent.active)return"process"},active:function(){return this.status==="process"},lineStyle:function(){var e=this.parent,n=e.activeColor,i=e.inactiveColor,s=e.center,o=e.direction,u={background:this.status==="finish"?n:i};return s&&o==="vertical"&&(u.top="50%"),u},circleContainerStyle:function(){if(this.parent.center&&this.parent.direction==="vertical")return{top:"50%"}},titleStyle:function(){if(this.active)return{color:this.parent.activeColor};if(!this.status)return{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var e=this.$createElement,n=this.parent,i=n.activeIcon,s=n.iconPrefix,o=n.activeColor,u=n.finishIcon,d=n.inactiveIcon;if(this.active)return this.slots("active-icon")||e(It,{class:tl("icon","active"),attrs:{name:i,color:o,classPrefix:s}});var f=this.slots("finish-icon");if(this.status==="finish"&&(u||f))return f||e(It,{class:tl("icon","finish"),attrs:{name:u,color:o,classPrefix:s}});var p=this.slots("inactive-icon");return d||p?p||e(It,{class:tl("icon"),attrs:{name:d,classPrefix:s}}):e("i",{class:tl("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var e,n=arguments[0],i=this.status,s=this.active,o=this.parent.direction;return n("div",{class:[Rs,tl([o,(e={},e[i]=i,e)])]},[n("div",{class:tl("title",{active:s}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),n("div",{class:tl("circle-container"),on:{click:this.onClickStep},style:this.circleContainerStyle},[this.genCircle()]),n("div",{class:tl("line"),style:this.lineStyle})])}});var tB=Ae("steps"),YDe=tB[0],nB=tB[1];const HDe=YDe({mixins:[hr("vanSteps")],props:{center:Boolean,iconPrefix:String,finishIcon:String,activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var e=arguments[0];return e("div",{class:nB([this.direction])},[e("div",{class:nB("items")},[this.slots()])])}});var zw=Ae("submit-bar"),WDe=zw[0],Ta=zw[1],QDe=zw[2];function iB(t,e,n,i){var s=e.tip,o=e.price,u=e.tipIcon;function d(){if(typeof o=="number"){var p=(o/100).toFixed(e.decimalLength).split("."),v=e.decimalLength?"."+p[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:Ta("text")},[t("span",[e.label||QDe("label")]),t("span",{class:Ta("price")},[e.currency,t("span",{class:Ta("price","integer")},[p[0]]),v]),e.suffixLabel&&t("span",{class:Ta("suffix-label")},[e.suffixLabel])])}}function f(){if(n.tip||s)return t("div",{class:Ta("tip")},[u&&t(It,{class:Ta("tip-icon"),attrs:{name:u}}),s&&t("span",{class:Ta("tip-text")},[s]),n.tip&&n.tip()])}return t("div",Pt([{class:Ta({unfit:!e.safeAreaInsetBottom})},on(i)]),[n.top&&n.top(),f(),t("div",{class:Ta("bar")},[n.default&&n.default(),d(),n.button?n.button():t(wi,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:Ta("button",e.buttonType),on:{click:function(){Yt(i,"submit")}}})])])}iB.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};const GDe=WDe(iB);var rB=Ae("swipe-cell"),KDe=rB[0],Wb=rB[1],sB=.15;const qDe=KDe({mixins:[ns,lw({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(e){if(this.$refs[e]){var n=this.$refs[e].getBoundingClientRect();return n.width}return 0},open:function(e){var n=e==="left"?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=n,this.$emit("open",{position:e,name:this.name,detail:this.name})},close:function(e){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:e,name:this.name}))},onTouchStart:function(e){this.disabled||(this.startOffset=this.offset,this.touchStart(e))},onTouchMove:function(e){if(!this.disabled&&(this.touchMove(e),this.direction==="horizontal")){this.dragging=!0,this.lockClick=!0;var n=!this.opened||this.deltaX*this.startOffset<0;n&&ui(e,this.stopPropagation),this.offset=Di(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)}},onTouchEnd:function(){var e=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){e.lockClick=!1},0))},toggle:function(e){var n=Math.abs(this.offset),i=this.opened?1-sB:sB,s=this.computedLeftWidth,o=this.computedRightWidth;o&&e==="right"&&n>o*i?this.open("right"):s&&e==="left"&&n>s*i?this.open("left"):this.close()},onClick:function(e){e===void 0&&(e="outside"),this.$emit("click",e),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:e,name:this.name,instance:this}):this.onClose?this.onClose(e,this,{name:this.name}):this.close(e))},getClickHandler:function(e,n){var i=this;return function(s){n&&s.stopPropagation(),i.onClick(e)}},genLeftPart:function(){var e=this.$createElement,n=this.slots("left");if(n)return e("div",{ref:"left",class:Wb("left"),on:{click:this.getClickHandler("left",!0)}},[n])},genRightPart:function(){var e=this.$createElement,n=this.slots("right");if(n)return e("div",{ref:"right",class:Wb("right"),on:{click:this.getClickHandler("right",!0)}},[n])}},render:function(){var e=arguments[0],n={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return e("div",{class:Wb(),on:{click:this.getClickHandler("cell")}},[e("div",{class:Wb("wrapper"),style:n},[this.genLeftPart(),this.slots(),this.genRightPart()])])}});var aB=Ae("switch-cell"),XDe=aB[0],ZDe=aB[1];function oB(t,e,n,i){return process.env.NODE_ENV==="development"&&console.warn('[Vant] "SwitchCell" component is deprecated, see: https://vant-ui.github.io/vant/v2/#/zh-CN/switch-cell.'),t(Vi,Pt([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:ZDe([e.cellSize])},on(i)]),[t(vb,{props:qe({},e),on:qe({},i.listeners)})])}oB.props=qe({},v3,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});const JDe=XDe(oB);var lB=Ae("tabbar"),ewe=lB[0],uB=lB[1];const twe=ewe({mixins:[hr("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return this.safeAreaInsetBottom!==null?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){var e=this;if(this.placeholder&&this.fixed){var n=function(){e.height=e.$refs.tabbar.getBoundingClientRect().height};n(),setTimeout(n,100)}},methods:{setActiveItem:function(){var e=this;this.children.forEach(function(n,i){n.nameMatched=n.name===e.value||i===e.value})},triggerChange:function(e,n){var i=this;R3({interceptor:this.beforeChange,args:[e],done:function(){i.$emit("input",e),i.$emit("change",e),n()}})},genTabbar:function(){var e,n=this.$createElement;return n("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(e={},e[cb]=this.border,e),uB({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var e=arguments[0];return this.placeholder&&this.fixed?e("div",{class:uB("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}});var cB=Ae("tabbar-item"),nwe=cB[0],Pw=cB[1];const iwe=nwe({mixins:[fr("vanTabbar")],props:qe({},Qo,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{nameMatched:!1}},computed:{active:function(){var e=this.parent.route;if(e&&"$route"in this){var n=this.to,i=this.$route,s=$s(n)?n:{path:n};return!!i.matched.find(function(o){var u=o.path===""?"/":o.path,d=s.path===u,f=Ut(s.name)&&s.name===o.name;return d||f})}return this.nameMatched}},methods:{onClick:function(e){var n=this;this.active||this.parent.triggerChange(this.name||this.index,function(){vu(n.$router,n)}),this.$emit("click",e)},genIcon:function(){var e=this.$createElement,n=this.slots("icon",{active:this.active});if(n)return n;if(this.icon)return e(It,{attrs:{name:this.icon,classPrefix:this.iconPrefix}})}},render:function(){var e,n=arguments[0],i=this.active,s=this.parent[i?"activeColor":"inactiveColor"];return process.env.NODE_ENV==="development"&&this.info&&console.warn('[Vant] TabbarItem: "info" prop is deprecated, use "badge" prop instead.'),n("div",{class:Pw({active:i}),style:{color:s},on:{click:this.onClick}},[n("div",{class:Pw("icon")},[this.genIcon(),n(gu,{attrs:{dot:this.dot,info:(e=this.badge)!=null?e:this.info}})]),n("div",{class:Pw("text")},[this.slots("default",{active:i})])])}});var dB=Ae("tree-select"),rwe=dB[0],bd=dB[1];function fB(t,e,n,i){var s=e.items,o=e.height,u=e.activeId,d=e.selectedIcon,f=e.mainActiveIndex;process.env.NODE_ENV==="development"&&(i.listeners.navclick&&console.warn('[Vant] TreeSelect: "navclick" event is deprecated, use "click-nav" instead.'),i.listeners.itemclick&&console.warn('[Vant] TreeSelect: "itemclick" event is deprecated, use "click-item" instead.'));var p=s[+f]||{},v=p.children||[],y=Array.isArray(u);function M(N){return y?u.indexOf(N)!==-1:u===N}var b=s.map(function(N){var w;return t(yF,{attrs:{dot:N.dot,info:(w=N.badge)!=null?w:N.info,title:N.text,disabled:N.disabled},class:[bd("nav-item"),N.className]})});function x(){return n.content?n.content():v.map(function(N){return t("div",{key:N.id,class:["van-ellipsis",bd("item",{active:M(N.id),disabled:N.disabled})],on:{click:function(){if(!N.disabled){var k=N.id;if(y){k=u.slice();var E=k.indexOf(N.id);E!==-1?k.splice(E,1):k.length<e.max&&k.push(N.id)}Yt(i,"update:active-id",k),Yt(i,"click-item",N),Yt(i,"itemclick",N)}}}},[N.text,M(N.id)&&t(It,{attrs:{name:d},class:bd("selected")})])})}return t("div",Pt([{class:bd(),style:{height:Wt(o)}},on(i)]),[t(gF,{class:bd("nav"),attrs:{activeKey:f},on:{change:function(w){Yt(i,"update:main-active-index",w),Yt(i,"click-nav",w),Yt(i,"navclick",w)}}},[b]),t("div",{class:bd("content")},[x()])])}fB.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};const swe=rwe(fB);var awe="2.13.2";function hB(t){var e=[m0e,Z0e,lCe,e3,cCe,wi,TCe,NCe,UCe,Vi,K3,X3,GCe,ZCe,tSe,rSe,oSe,uSe,dSe,pSe,_Se,nw,DSe,kSe,bR,Bn,RSe,BSe,VSe,QSe,is,qSe,p3,DD,ZSe,t1e,i1e,It,pd,fw,h1e,g1e,gu,b1e,zs,lD,M1e,C1e,as,E1e,wP,A1e,$1e,z1e,CD,ITe,_a,jTe,PTe,jD,AD,BTe,YTe,QTe,XTe,gF,yF,iDe,Hs,BDe,VDe,$F,HDe,U3,GDe,ER,qDe,AR,vb,JDe,Mb,twe,iwe,YD,bb,ti,swe,YF];e.forEach(function(n){n.install?t.use(n):n.name&&t.component(n.name,n)})}typeof window<"u"&&window.Vue&&hB(window.Vue);const owe={install:hB,version:awe},QIe="";if(typeof gp>"u")var gp=window;var lwe=Object.create,Rw=Object.defineProperty,uwe=Object.getPrototypeOf,cwe=Object.prototype.hasOwnProperty,dwe=Object.getOwnPropertyNames,fwe=Object.getOwnPropertyDescriptor,hwe=t=>Rw(t,"__esModule",{value:!0}),us=(t,e)=>()=>(e||(e={exports:{}},t(e.exports,e)),e.exports),pwe=(t,e,n)=>{if(hwe(t),e&&typeof e=="object"||typeof e=="function")for(let i of dwe(e))!cwe.call(t,i)&&i!=="default"&&Rw(t,i,{get:()=>e[i],enumerable:!(n=fwe(e,i))||n.enumerable});return t},mwe=t=>t&&t.__esModule?t:pwe(Rw(t!=null?lwe(uwe(t)):{},"default",{value:t,enumerable:!0}),t),pB=us((t,e)=>{function n(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}e.exports=n}),gwe=us((t,e)=>{var n=typeof gp=="object"&&gp&&gp.Object===Object&&gp;e.exports=n}),mB=us((t,e)=>{var n=gwe(),i=typeof self=="object"&&self&&self.Object===Object&&self,s=n||i||Function("return this")();e.exports=s}),vwe=us((t,e)=>{var n=mB(),i=function(){return n.Date.now()};e.exports=i}),gB=us((t,e)=>{var n=mB(),i=n.Symbol;e.exports=i}),ywe=us((t,e)=>{var n=gB(),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,u=n?n.toStringTag:void 0;function d(f){var p=s.call(f,u),v=f[u];try{f[u]=void 0;var y=!0}catch{}var M=o.call(f);return y&&(p?f[u]=v:delete f[u]),M}e.exports=d}),bwe=us((t,e)=>{var n=Object.prototype,i=n.toString;function s(o){return i.call(o)}e.exports=s}),_we=us((t,e)=>{var n=gB(),i=ywe(),s=bwe(),o="[object Null]",u="[object Undefined]",d=n?n.toStringTag:void 0;function f(p){return p==null?p===void 0?u:o:d&&d in Object(p)?i(p):s(p)}e.exports=f}),Mwe=us((t,e)=>{function n(i){return i!=null&&typeof i=="object"}e.exports=n}),xwe=us((t,e)=>{var n=_we(),i=Mwe(),s="[object Symbol]";function o(u){return typeof u=="symbol"||i(u)&&n(u)==s}e.exports=o}),Cwe=us((t,e)=>{var n=pB(),i=xwe(),s=0/0,o=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function v(y){if(typeof y=="number")return y;if(i(y))return s;if(n(y)){var M=typeof y.valueOf=="function"?y.valueOf():y;y=n(M)?M+"":M}if(typeof y!="string")return y===0?y:+y;y=y.replace(o,"");var b=d.test(y);return b||f.test(y)?p(y.slice(2),b?2:8):u.test(y)?s:+y}e.exports=v}),Swe=us((t,e)=>{var n=pB(),i=vwe(),s=Cwe(),o="Expected a function",u=Math.max,d=Math.min;function f(p,v,y){var M,b,x,N,w,k,E=0,S=!1,T=!1,O=!0;if(typeof p!="function")throw new TypeError(o);v=s(v)||0,n(y)&&(S=!!y.leading,T="maxWait"in y,x=T?u(s(y.maxWait)||0,v):x,O="trailing"in y?!!y.trailing:O);function j(Z){var X=M,te=b;return M=b=void 0,E=Z,N=p.apply(te,X),N}function $(Z){return E=Z,w=setTimeout(ee,v),S?j(Z):N}function R(Z){var X=Z-k,te=Z-E,oe=v-X;return T?d(oe,x-te):oe}function W(Z){var X=Z-k,te=Z-E;return k===void 0||X>=v||X<0||T&&te>=x}function ee(){var Z=i();if(W(Z))return q(Z);w=setTimeout(ee,R(Z))}function q(Z){return w=void 0,O&&M?j(Z):(M=b=void 0,N)}function G(){w!==void 0&&clearTimeout(w),E=0,M=k=b=w=void 0}function Y(){return w===void 0?N:q(i())}function J(){var Z=i(),X=W(Z);if(M=arguments,b=this,k=Z,X){if(w===void 0)return $(k);if(T)return clearTimeout(w),w=setTimeout(ee,v),j(k)}return w===void 0&&(w=setTimeout(ee,v)),N}return J.cancel=G,J.flush=Y,J}e.exports=f}),Twe=mwe(Swe()),Dwe=Twe.default;function wwe(){let t=[],e=[];function n(E,S){E.forEach(T=>{T.call(null,S)})}this.onSingleTap=function(E){typeof E=="function"&&!t.includes(E)&&t.push(E)},this.onDoubleTap=function(E){typeof E=="function"&&!e.includes(E)&&e.push(E)},this.attach=function(E){if(!(E instanceof Element)){console.error("TapDetector.attach: arg must be an Element");return}E.addEventListener("touchstart",p),E.addEventListener("touchmove",y),E.addEventListener("touchend",v),E.addEventListener("mousedown",M),E.addEventListener("mouseup",b),E.addEventListener("mousemove",x)},this.detach=function(E){E.removeEventListener("touchstart",p),E.removeEventListener("touchmove",y),E.removeEventListener("touchend",v),E.removeEventListener("mousedown",M),E.removeEventListener("mouseup",b),E.removeEventListener("mousemove",x)};let i=!1,s=0,o=0,u=0,d=0,f=0;function p(E){i=!0,E.touches.length===1&&N(E.touches[0].clientX,E.touches[0].clientY)}function v(E){E.touches.length===0&&w()}function y(E){E.touches.length===1&&k(E.touches[0].clientX,E.touches[0].clientY)}function M(E){i||N(E.clientX,E.clientY)}function b(E){i||w()}function x(E){i||E.button===0&&k(E.clientX,E.clientY)}function N(E,S){d=E,f=S,u=0}function w(){let E=Date.now();u<10&&(E-s<300?o+=1:o=1,s=Date.now(),n(t,{clientX:d,clientY:f}),o===2&&(n(e,{clientX:d,clientY:f}),o=0)),u=0}function k(E,S){let T=d-E,O=f-S,j=Math.sqrt(T*T+O*O);u+=j,d=E,f=S}}var Nwe={props:{minScale:{type:Number,default:1},maxScale:{type:Number,default:5},zoomed:{type:Boolean,default:!1},resetTrigger:{type:Number,default:1e5},aspectRatio:{type:Number,default:1},backgroundColor:{type:String,default:"transparent"},pivot:{type:String,default:"cursor"},zoomingElastic:{type:Boolean,default:!0},limitTranslation:{type:Boolean,default:!0},doubleClickToZoom:{type:Boolean,default:!0},mouseWheelToZoom:{type:Boolean,default:!0}},data(){return{containerWidth:1,containerHeight:1,containerLeft:0,containerTop:0,translateX:0,animTranslateX:0,translateY:0,animTranslateY:0,scale:1,animScale:1,lastFullWheelTime:0,lastWheelTime:0,lastWheelDirection:"y",isPointerDown:!1,pointerPosX:-1,pointerPosY:-1,twoFingerInitDist:0,panLocked:!0,raf:null,tapDetector:null}},computed:{wrapperStyle(){let t=this.containerWidth*this.animTranslateX,e=this.containerHeight*this.animTranslateY;return{transform:[`translate(${t}px, ${e}px)`,`scale(${this.animScale})`].join(" ")}}},watch:{scale(t){t!==1&&(this.$emit("update:zoomed",!0),this.panLocked=!1)},resetTrigger:"reset"},mounted(){this.tapDetector=new wwe,this.tapDetector.attach(this.$el),this.doubleClickToZoom&&this.tapDetector.onDoubleTap(this.onDoubleTap),window.addEventListener("resize",this.onWindowResize),this.onWindowResize(),this.refreshContainerPos(),this.loop()},destroyed(){this.tapDetector.detach(this.$el),window.removeEventListener("resize",this.onWindowResize),window.cancelAnimationFrame(this.raf)},methods:{reset(){this.scale=1,this.panLocked=!0,this.translateX=0,this.translateY=0},zoomIn(t=2){this.tryToScale(t),this.onInteractionEnd()},zoomOut(t=.5){this.tryToScale(t),this.onInteractionEnd()},tryToScale(t){let e=this.scale*t;if(this.zoomingElastic){if(e<this.minScale||e>this.maxScale){let n=Math.log2(t);n*=.2,t=Math.pow(2,n),e=this.scale*t}}else e<this.minScale?e=this.minScale:e>this.maxScale&&(e=this.maxScale);if(t=e/this.scale,this.scale=e,this.pivot!=="image-center"){let n=(this.pointerPosX-this.containerLeft)/this.containerWidth,i=(this.pointerPosY-this.containerTop)/this.containerHeight;this.translateX=(.5+this.translateX-n)*t+n-.5,this.translateY=(.5+this.translateY-i)*t+i-.5}},setPointerPosCenter(){this.pointerPosX=this.containerLeft+this.containerWidth/2,this.pointerPosY=this.containerTop+this.containerHeight/2},onPointerMove(t,e){if(this.isPointerDown){let n=t-this.pointerPosX,i=e-this.pointerPosY;this.panLocked||(this.translateX+=n/this.containerWidth,this.translateY+=i/this.containerHeight)}this.pointerPosX=t,this.pointerPosY=e},onInteractionEnd:Dwe(function(){this.limit(),this.panLocked=this.scale===1,this.$emit("update:zoomed",!this.panLocked)},100),limit(){if(this.scale<this.minScale?this.scale=this.minScale:this.scale>this.maxScale&&this.tryToScale(this.maxScale/this.scale),this.limitTranslation){let t=this.calcTranslateLimit();Math.abs(this.translateX)>t.x&&(this.translateX*=t.x/Math.abs(this.translateX)),Math.abs(this.translateY)>t.y&&(this.translateY*=t.y/Math.abs(this.translateY))}},calcTranslateLimit(){if(this.getMarginDirection()==="y"){let t=this.containerWidth/this.aspectRatio/this.containerHeight,e=(this.scale*t-1)/2;return e<0&&(e=0),{x:(this.scale-1)/2,y:e}}else{let t=this.containerHeight*this.aspectRatio/this.containerWidth,e=(this.scale*t-1)/2;return e<0&&(e=0),{x:e,y:(this.scale-1)/2}}},getMarginDirection(){return this.containerWidth/this.containerHeight>this.aspectRatio?"x":"y"},onDoubleTap(t){this.scale===1?(t.clientX>0&&(this.pointerPosX=t.clientX,this.pointerPosY=t.clientY),this.tryToScale(Math.min(3,this.maxScale))):this.reset(),this.onInteractionEnd()},onWindowResize(){let t=window.getComputedStyle(this.$el);this.containerWidth=parseFloat(t.width),this.containerHeight=parseFloat(t.height),this.setPointerPosCenter(),this.limit()},refreshContainerPos(){let t=this.$el.getBoundingClientRect();this.containerLeft=t.left,this.containerTop=t.top},loop(){this.animScale=this.gainOn(this.animScale,this.scale),this.animTranslateX=this.gainOn(this.animTranslateX,this.translateX),this.animTranslateY=this.gainOn(this.animTranslateY,this.translateY),this.raf=window.requestAnimationFrame(this.loop)},gainOn(t,e){let n=(e-t)*.3;return Math.abs(n)>1e-5?t+n:e},onMouseWheel(t){if(!this.mouseWheelToZoom)return;t.preventDefault(),t.detail&&(t.wheelDelta=t.detail*-10);let e=Date.now();Math.abs(t.wheelDelta)===120?e-this.lastFullWheelTime>50&&(this.onMouseWheelDo(t.wheelDelta),this.lastFullWheelTime=e):(e-this.lastWheelTime>50&&typeof t.deltaX=="number"&&(this.lastWheelDirection=t.detail==0&&Math.abs(t.deltaX)>Math.abs(t.deltaY)?"x":"y",this.lastWheelDirection==="x"&&this.$emit("swipe",t.deltaX>0?"left":"right")),this.lastWheelDirection==="y"&&this.onMouseWheelDo(t.wheelDelta)),this.lastWheelTime=e},onMouseWheelDo(t){let e=Math.pow(1.25,t/120);this.tryToScale(e),this.onInteractionEnd()},onMouseDown(t){this.refreshContainerPos(),this.isPointerDown=!0,this.pointerPosX=t.clientX,this.pointerPosY=t.clientY},onMouseUp(t){this.isPointerDown=!1,this.onInteractionEnd()},onMouseMove(t){this.onPointerMove(t.clientX,t.clientY)},onTouchStart(t){if(t.touches.length===1)this.refreshContainerPos(),this.pointerPosX=t.touches[0].clientX,this.pointerPosY=t.touches[0].clientY,this.isPointerDown=!0;else if(t.touches.length===2){this.isPointerDown=!0,this.pointerPosX=(t.touches[0].clientX+t.touches[1].clientX)/2,this.pointerPosY=(t.touches[0].clientY+t.touches[1].clientY)/2;let e=t.touches[0].clientX-t.touches[1].clientX,n=t.touches[0].clientY-t.touches[1].clientY;this.twoFingerInitDist=Math.sqrt(e*e+n*n)}},onTouchEnd(t){t.touches.length===0?(this.isPointerDown=!1,Math.abs(this.scale-1)<.1&&(this.scale=1),this.onInteractionEnd()):t.touches.length===1&&(this.pointerPosX=t.touches[0].clientX,this.pointerPosY=t.touches[0].clientY)},onTouchMove(t){if(t.touches.length===1)this.onPointerMove(t.touches[0].clientX,t.touches[0].clientY);else if(t.touches.length===2){let e=(t.touches[0].clientX+t.touches[1].clientX)/2,n=(t.touches[0].clientY+t.touches[1].clientY)/2;this.onPointerMove(e,n),this.pointerPosX=e,this.pointerPosY=n;let i=t.touches[0].clientX-t.touches[1].clientX,s=t.touches[0].clientY-t.touches[1].clientY,o=Math.sqrt(i*i+s*s);this.tryToScale(o/this.twoFingerInitDist),this.twoFingerInitDist=o}}}};function vB(t,e,n,i,s,o,u,d,f,p){typeof u!="boolean"&&(f=d,d=u,u=!1);const v=typeof n=="function"?n.options:n;t&&t.render&&(v.render=t.render,v.staticRenderFns=t.staticRenderFns,v._compiled=!0,s&&(v.functional=!0)),i&&(v._scopeId=i);let y;if(o?(y=function(M){M=M||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!M&&typeof __VUE_SSR_CONTEXT__<"u"&&(M=__VUE_SSR_CONTEXT__),e&&e.call(this,f(M)),M&&M._registeredComponents&&M._registeredComponents.add(o)},v._ssrRegister=y):e&&(y=u?function(M){e.call(this,p(M,this.$root.$options.shadowRoot))}:function(M){e.call(this,d(M))}),y)if(v.functional){const M=v.render;v.render=function(x,N){return y.call(N),M(x,N)}}else{const M=v.beforeCreate;v.beforeCreate=M?[].concat(M,y):[y]}return n}const kwe=typeof navigator<"u"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function yB(t){return(e,n)=>Owe(e,n)}let Fw;const bB={};function Owe(t,e){const n=kwe?e.media||"default":t,i=bB[n]||(bB[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);let s=e.source;if(e.map&&(s+=`
281
281
  /*# sourceURL=`+e.map.sources[0]+" */",s+=`
282
282
  /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),Fw===void 0&&(Fw=document.head||document.getElementsByTagName("head")[0]),Fw.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(s),i.element.styleSheet.cssText=i.styles.filter(Boolean).join(`
283
283
  `);else{const o=i.ids.size-1,u=document.createTextNode(s),d=i.element.childNodes;d[o]&&i.element.removeChild(d[o]),d.length?i.element.insertBefore(u,d[o]):i.element.appendChild(u)}}}const Ewe=Nwe;var _B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-zoomer",style:{backgroundColor:t.backgroundColor},on:{mousewheel:t.onMouseWheel,DOMMouseScroll:t.onMouseWheel,mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onMouseMove,mouseout:t.setPointerPosCenter,touchstart:t.onTouchStart,touchend:t.onTouchEnd,touchmove:t.onTouchMove}},[n("div",{staticClass:"zoomer",style:t.wrapperStyle},[t._t("default")],2)])},Iwe=[];_B._withStripped=!0;const MB=vB({render:_B,staticRenderFns:Iwe},function(t){t&&t("data-v-e532c06e_0",{source:`