'+(n?r:h$(r,!0))+"\n":""+(n?r:h$(r,!0))+"\n"}blockquote({tokens:e}){return`\n${this.parser.parse(e)}\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`
${this.parser.parseInline(e)}
\n`}table(e){let t="",n="";for(let i=0;i${h$(e,!0)}`}br(e){return"An error occurred:
"+h$(n.message+"",!0)+"";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function k$(e,t){return S$.parse(e,t)}k$.options=k$.setOptions=function(e){return S$.setOptions(e),k$.defaults=S$.defaults,gD(k$.defaults),k$},k$.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},k$.defaults=mD,k$.use=function(...e){return S$.use(...e),k$.defaults=S$.defaults,gD(k$.defaults),k$},k$.walkTokens=function(e,t){return S$.walkTokens(e,t)},k$.parseInline=S$.parseInline,k$.Parser=w$,k$.parser=w$.parse,k$.Renderer=v$,k$.TextRenderer=_$,k$.Lexer=b$,k$.lexer=b$.lex,k$.Tokenizer=y$,k$.Hooks=x$,k$.parse=k$,k$.options,k$.setOptions,k$.use,k$.walkTokens,k$.parseInline,w$.parse,b$.lex;const C$=$O({name:"up-markdown",props:{content:{type:String,default:""},previewImg:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},theme:{type:String,default:"light"}},data:()=>({parsedContent:""}),watch:{content:{handler(e){this.parseMarkdown(e)},immediate:!0}},methods:{parseMarkdown(e){if(!e)return void(this.parsedContent="");let t=k$(e);t=this.handleCodeBlock(t),t=this.applyTheme(t),this.parsedContent=t},handleCodeBlock(e){return e.replace(/
]*)>([^<]+)<\/code><\/pre>/g,(e,t,n)=>{const o=t.match(/class="language-([^"]+)"/),i=o?`language-${o[1]}`:"";let r=``;if(this.showLineNumber){const e=n.split("\n").filter(e=>""!==e.trim());r+='',e.push(""),e.forEach((e,t)=>{r+=`${t+1}`}),r+=""}return r+=`${n}`,r})},applyTheme:e=>e}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("up-parse"),pD),s=jg;return kr(),Er(s,{class:p(["up-markdown",n.theme])},{default:To(()=>[zr(a,{content:i.parsedContent,previewImg:n.previewImg},null,8,["content","previewImg"])]),_:1},8,["class"])}],["__scopeId","data-v-02c67532"]]),T$=Object.freeze(Object.defineProperty({__proto__:null,default:C$},Symbol.toStringTag,{value:"Module"})),A$={name:"u-message-input",props:{maxlength:{type:[Number,String],default:4},dotFill:{type:Boolean,default:!1},mode:{type:String,default:"box"},modelValue:{type:[String,Number],default:""},breathe:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},bold:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:60},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#606266"},width:{type:[Number,String],default:"80"},disabledKeyboard:{type:Boolean,default:!1}},watch:{modelValue:{immediate:!0,handler(e){e=String(e),this.valueModel=e.substring(0,this.maxlength)}}},data:()=>({valueModel:""}),emits:["change","finish"],computed:{animationClass(){return e=>this.breathe&&this.charArr.length==e?"u-breathe":""},charArr(){return this.valueModel.split("")},charArrLength(){return this.charArr.length},loopCharArr(){return new Array(this.maxlength)}},methods:{getVal(e){let{value:t}=e.detail;this.valueModel=t,String(t).length>this.maxlength||(this.$emit("change",t),String(t).length==this.maxlength&&this.$emit("finish",t))}}};const I$=$O(A$,[["render",function(e,t,n,o,i,r){const a=Om,s=jg,c=Ng;return kr(),Er(s,{class:"u-char-box"},{default:To(()=>[zr(s,{class:"u-char-flex"},{default:To(()=>[zr(a,{disabled:n.disabledKeyboard,value:i.valueModel,type:"number",focus:n.focus,maxlength:n.maxlength,class:"u-input",onInput:r.getVal},null,8,["disabled","value","focus","maxlength","onInput"]),(kr(!0),Ir(br,null,Li(r.loopCharArr,(e,t)=>(kr(),Er(s,{key:t},{default:To(()=>[zr(s,{class:p([n.breathe&&r.charArrLength==t?"u-breathe":"","u-char-item",r.charArrLength===t&&"box"==n.mode?"u-box-active":"","box"===n.mode?"u-box":""]),style:l({fontWeight:n.bold?"bold":"normal",fontSize:n.fontSize+"rpx",width:n.width+"rpx",height:n.width+"rpx",color:n.inactiveColor,borderColor:r.charArrLength===t&&"box"==n.mode?n.activeColor:n.inactiveColor})},{default:To(()=>["middleLine"!==n.mode?(kr(),Er(s,{key:0,class:"u-placeholder-line",style:l({display:r.charArrLength===t?"block":"none",height:.5*n.width+"rpx"})},null,8,["style"])):$r("v-if",!0),"middleLine"===n.mode&&r.charArrLength<=t?(kr(),Er(s,{key:1,class:p([[n.breathe&&r.charArrLength==t?"u-breathe":"",r.charArrLength===t?"u-middle-line-active":""],"u-middle-line"]),style:l({height:n.bold?"4px":"2px",background:r.charArrLength===t?n.activeColor:n.inactiveColor})},null,8,["class","style"])):$r("v-if",!0),"bottomLine"===n.mode?(kr(),Er(s,{key:2,class:p([[n.breathe&&r.charArrLength==t?"u-breathe":"",r.charArrLength===t?"u-bottom-line-active":""],"u-bottom-line"]),style:l({height:n.bold?"4px":"2px",background:r.charArrLength===t?n.activeColor:n.inactiveColor})},null,8,["class","style"])):$r("v-if",!0),n.dotFill?(kr(),Er(c,{key:4,class:"u-dot"},{default:To(()=>[Dr(v(r.charArr[t]?"●":""),1)]),_:2},1024)):(kr(),Ir(br,{key:3},[Dr(v(r.charArr[t]?r.charArr[t]:""),1)],64))]),_:2},1032,["class","style"])]),_:2},1024))),128))]),_:1})]),_:1})}],["__scopeId","data-v-8e923d37"]]),E$=Object.freeze(Object.defineProperty({__proto__:null,default:I$},Symbol.toStringTag,{value:"Module"})),P$={props:{safeAreaInsetTop:{type:Boolean,default:()=>!0},fixed:{type:Boolean,default:()=>!0},leftIcon:{type:String,default:"arrow-leftward"},bgColor:{type:String,default:()=>"rgba(0,0,0,.15)"},height:{type:[String,Number],default:()=>"32px"},iconSize:{type:[String,Number],default:"20px"},iconColor:{type:String,default:"#fff"},autoBack:{type:Boolean,default:()=>!0},homeUrl:{type:[String],default:""}}};const B$=$O({name:"u-navbar-mini",mixins:[MO,NO,P$],data:()=>({}),emits:["leftClick","homeClick"],created(){},methods:{addStyle:ZB,addUnit:eO,sys:QB,getPx:WB,leftClick(){this.$emit("leftClick"),this.autoBack&&Cv()},homeClick(){this.homeUrl&&Ev({url:this.homeUrl})}}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("u-status-bar"),fM),s=Sx(Bi("up-icon"),FO),c=jg,u=Sx(Bi("up-line"),GO);return kr(),Er(c,{class:p(["u-navbar-mini",[e.customClass]])},{default:To(()=>[zr(c,{class:p(["u-navbar-mini__inner",[e.fixed&&"u-navbar-mini--fixed"]])},{default:To(()=>[e.safeAreaInsetTop?(kr(),Er(a,{key:0})):$r("v-if",!0),zr(c,{class:"u-navbar-mini__content",style:l({height:r.addUnit(e.height),backgroundColor:e.bgColor})},{default:To(()=>[zr(c,{class:"u-navbar-mini__content__left","hover-class":"u-navbar-mini__content__left--hover","hover-start-time":"150",onClick:r.leftClick},{default:To(()=>[Ni(e.$slots,"left",{},()=>[zr(s,{name:e.leftIcon,size:e.iconSize,color:e.iconColor},null,8,["name","size","color"])],!0)]),_:3},8,["onClick"]),zr(c,{style:{padding:"10px 10px"}},{default:To(()=>[zr(u,{direction:"col",color:"#fff",length:"16px"})]),_:1}),zr(c,{class:"u-navbar-mini__content__center",onClick:r.homeClick},{default:To(()=>[Ni(e.$slots,"center",{},()=>[zr(s,{name:"home",size:e.iconSize,color:e.iconColor},null,8,["size","color"])],!0)]),_:3},8,["onClick"])]),_:3},8,["style"])]),_:3},8,["class"])]),_:3},8,["class"])}],["__scopeId","data-v-dbd562b7"]]),O$=Object.freeze(Object.defineProperty({__proto__:null,default:B$},Symbol.toStringTag,{value:"Module"})),M$={props:{safeAreaInsetTop:{type:Boolean,default:()=>PO.navbar.safeAreaInsetTop},placeholder:{type:Boolean,default:()=>PO.navbar.placeholder},fixed:{type:Boolean,default:()=>PO.navbar.fixed},border:{type:Boolean,default:()=>PO.navbar.border},leftIcon:{type:String,default:()=>PO.navbar.leftIcon},leftText:{type:String,default:()=>PO.navbar.leftText},rightText:{type:String,default:()=>PO.navbar.rightText},rightIcon:{type:String,default:()=>PO.navbar.rightIcon},title:{type:[String,Number],default:()=>PO.navbar.title},titleColor:{type:String,default:()=>PO.navbar.titleColor},bgColor:{type:String,default:()=>PO.navbar.bgColor},statusBarBgColor:{type:String,default:()=>""},titleWidth:{type:[String,Number],default:()=>PO.navbar.titleWidth},height:{type:[String,Number],default:()=>PO.navbar.height},leftIconSize:{type:[String,Number],default:()=>PO.navbar.leftIconSize},leftIconColor:{type:String,default:()=>PO.navbar.leftIconColor},autoBack:{type:Boolean,default:()=>PO.navbar.autoBack},titleStyle:{type:[String,Object],default:()=>PO.navbar.titleStyle}}};const L$=$O({name:"u-navbar",mixins:[MO,NO,M$],data:()=>({}),emits:["leftClick","rightClick"],methods:{addStyle:ZB,addUnit:eO,getWindowInfo:YB,getPx:WB,leftClick(){this.$emit("leftClick"),null!=fB.interceptor.navbarLeftClick?fB.interceptor.navbarLeftClick():this.autoBack&&Cv()},rightClick(){this.$emit("rightClick")}}},[["render",function(e,t,n,o,i,r){const a=jg,s=Sx(Bi("u-status-bar"),fM),c=Sx(Bi("up-icon"),FO),u=Ng;return kr(),Er(a,{class:p(["u-navbar",[e.customClass]])},{default:To(()=>[e.fixed&&e.placeholder?(kr(),Er(a,{key:0,class:"u-navbar__placeholder",style:l({height:r.addUnit(r.getPx(e.height)+r.getWindowInfo().statusBarHeight,"px")})},null,8,["style"])):$r("v-if",!0),zr(a,{class:p([e.fixed&&"u-navbar--fixed"])},{default:To(()=>[e.safeAreaInsetTop?(kr(),Er(s,{key:0,bgColor:e.statusBarBgColor?e.statusBarBgColor:e.bgColor},null,8,["bgColor"])):$r("v-if",!0),zr(a,{class:p(["u-navbar__content",[e.border&&"u-border-bottom"]]),style:l({height:r.addUnit(e.height),backgroundColor:e.bgColor})},{default:To(()=>[zr(a,{class:"u-navbar__content__left","hover-class":"u-navbar__content__left--hover","hover-start-time":"150",onClick:r.leftClick},{default:To(()=>[Ni(e.$slots,"left",{},()=>[e.leftIcon?(kr(),Er(c,{key:0,name:e.leftIcon,size:e.leftIconSize,color:e.leftIconColor},null,8,["name","size","color"])):$r("v-if",!0),e.leftText?(kr(),Er(u,{key:1,style:l({color:e.leftIconColor}),class:"u-navbar__content__left__text"},{default:To(()=>[Dr(v(e.leftText),1)]),_:1},8,["style"])):$r("v-if",!0)],!0)]),_:3},8,["onClick"]),Ni(e.$slots,"center",{},()=>[zr(u,{class:"u-line-1 u-navbar__content__title",style:l([{width:r.addUnit(e.titleWidth),color:e.titleColor},r.addStyle(e.titleStyle)])},{default:To(()=>[Dr(v(e.title),1)]),_:1},8,["style"])],!0),e.$slots.right||e.rightIcon||e.rightText?(kr(),Er(a,{key:0,class:"u-navbar__content__right",onClick:r.rightClick},{default:To(()=>[Ni(e.$slots,"right",{},()=>[e.rightIcon?(kr(),Er(c,{key:0,name:e.rightIcon,size:"20"},null,8,["name"])):$r("v-if",!0),e.rightText?(kr(),Er(u,{key:1,class:"u-navbar__content__right__text"},{default:To(()=>[Dr(v(e.rightText),1)]),_:1})):$r("v-if",!0)],!0)]),_:3},8,["onClick"])):$r("v-if",!0)]),_:3},8,["class","style"])]),_:3},8,["class"])]),_:3},8,["class"])}],["__scopeId","data-v-2a987723"]]),N$=Object.freeze(Object.defineProperty({__proto__:null,default:L$},Symbol.toStringTag,{value:"Module"}));const z$=$O({name:"u-no-network",mixins:[MO,NO,{props:{tips:{type:String,default:()=>PO.noNetwork.tips},zIndex:{type:[String,Number],default:()=>PO.noNetwork.zIndex},image:{type:String,default:()=>PO.noNetwork.image}}}],data:()=>({isConnected:!0,networkType:"none"}),mounted(){this.isIOS="ios"===GB().platform,Ob(e=>{this.isConnected=e.isConnected,this.networkType=e.networkType,this.emitEvent(this.networkType)}),Mb({success:e=>{this.networkType=e.networkType,this.emitEvent(this.networkType),"none"==e.networkType?this.isConnected=!1:this.isConnected=!0}})},emits:["disconnected","connected"],methods:{t:_O,retry(){Mb({success:e=>{this.networkType=e.networkType,this.emitEvent(this.networkType),"none"==e.networkType?(cO(_O("up.noNetwork.disconnect")),this.isConnected=!1):(cO(_O("up.noNetwork.connect")),this.isConnected=!0)}}),this.$emit("retry")},emitEvent(e){this.$emit("none"===e?"disconnected":"connected")},async openSettings(){"none"!=this.networkType||this.openSystemSettings()},openAppSettings(){this.gotoAppSetting()},openSystemSettings(){this.isIOS?this.gotoiOSSetting():this.gotoAndroidSetting()},network(){var e=null,t=plus.ios.newObject("CTCellularData"),n=t.plusGetAttribute("restrictedState");return 0==n?e=null:2==n?e=1:1==n&&(e=2),plus.ios.deleteObject(t),e},gotoAppSetting(){if(this.isIOS){var e=plus.ios.import("UIApplication").sharedApplication(),t=plus.ios.import("NSURL"),n=t.URLWithString("app-settings:");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(t),plus.ios.deleteObject(e)}else{var o=plus.android.importClass("android.content.Intent"),i=plus.android.importClass("android.provider.Settings"),r=plus.android.importClass("android.net.Uri"),a=plus.android.runtimeMainActivity(),s=new o;s.setAction(i.ACTION_APPLICATION_DETAILS_SETTINGS);var l=r.fromParts("package",a.getPackageName(),null);s.setData(l),a.startActivity(s)}},gotoiOSSetting(){var e=plus.ios.import("UIApplication").sharedApplication(),t=plus.ios.import("NSURL"),n=t.URLWithString("App-prefs:root=General");e.openURL(n),plus.ios.deleteObject(n),plus.ios.deleteObject(t),plus.ios.deleteObject(e)},gotoAndroidSetting(){var e=plus.android.importClass("android.content.Intent"),t=plus.android.importClass("android.provider.Settings"),n=plus.android.runtimeMainActivity(),o=new e(t.ACTION_SETTINGS);n.startActivity(o)}}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("up-icon"),FO),s=Ng,l=Sx(Bi("u-button"),fL),c=jg,u=Sx(Bi("u-overlay"),hM);return kr(),Er(u,{show:!i.isConnected,zIndex:e.zIndex,onTouchmove:ds(e.noop,["stop","prevent"]),customStyle:{backgroundColor:"#fff",display:"flex",justifyContent:"center"}},{default:To(()=>[zr(c,{class:"u-no-network"},{default:To(()=>[zr(a,{name:e.image,size:"150",imgMode:"widthFit",class:"u-no-network__error-icon"},null,8,["name"]),zr(s,{class:"u-no-network__tips"},{default:To(()=>[Dr(v(e.tips),1)]),_:1}),$r(" 只有APP平台,才能跳转设置页,因为需要调用plus环境 "),zr(c,{class:"u-no-network__retry"},{default:To(()=>[zr(l,{size:"mini",text:r.t("up.common.retry"),type:"primary",plain:"",onClick:r.retry},null,8,["text","onClick"])]),_:1})]),_:1})]),_:1},8,["show","zIndex","onTouchmove"])}],["__scopeId","data-v-4fc056ab"]]),R$=Object.freeze(Object.defineProperty({__proto__:null,default:z$},Symbol.toStringTag,{value:"Module"}));const D$=$O({name:"u-row-notice",mixins:[MO,NO,{props:{text:{type:String,default:()=>PO.rowNotice.text},icon:{type:String,default:()=>PO.rowNotice.icon},mode:{type:String,default:()=>PO.rowNotice.mode},color:{type:String,default:()=>PO.rowNotice.color},bgColor:{type:String,default:()=>PO.rowNotice.bgColor},fontSize:{type:[String,Number],default:()=>PO.rowNotice.fontSize},speed:{type:[String,Number],default:()=>PO.rowNotice.speed}}}],data:()=>({animationDuration:"0",animationPlayState:"paused",nvueInit:!0,show:!0}),watch:{text:{immediate:!0,handler(e,t){this.vue(),NB.string(e)}},fontSize(){this.vue()},speed(){this.vue()}},computed:{textStyle(){let e={whiteSpace:"nowrap !important"};return e.color=this.color,e.fontSize=eO(this.fontSize),e},animationStyle(){let e={};return e.animationDuration=this.animationDuration,e.animationPlayState=this.animationPlayState,e},innerText(){let e=[];const t=this.text.split("");for(let n=0;n{this.animationPlayState="running"},10)},async nvue(){},loopAnimation(e,t){},getNvueRect(e){},clickHandler(e){this.$emit("click")},close(){this.$emit("close")}},beforeUnmount(){this.stopAnimation=!0}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("up-icon"),FO),s=jg,c=Ng;return kr(),Er(s,{class:"u-notice",onClick:r.clickHandler},{default:To(()=>[Ni(e.$slots,"icon",{},()=>[e.icon?(kr(),Er(s,{key:0,class:"u-notice__left-icon"},{default:To(()=>[zr(a,{name:e.icon,color:e.color,size:"19"},null,8,["name","color"])]),_:1})):$r("v-if",!0)],!0),zr(s,{class:"u-notice__content",ref:"u-notice__content"},{default:To(()=>[zr(s,{ref:"u-notice__content__text",class:"u-notice__content__text",style:l([r.animationStyle])},{default:To(()=>[(kr(!0),Ir(br,null,Li(r.innerText,(e,t)=>(kr(),Er(c,{key:t,style:l([r.textStyle])},{default:To(()=>[Dr(v(e),1)]),_:2},1032,["style"]))),128))]),_:1},8,["style"])]),_:1},512),["link","closable"].includes(e.mode)?(kr(),Er(s,{key:0,class:"u-notice__right-icon"},{default:To(()=>["link"===e.mode?(kr(),Er(a,{key:0,name:"arrow-right",size:17,color:e.color},null,8,["color"])):$r("v-if",!0),"closable"===e.mode?(kr(),Er(a,{key:1,onClick:r.close,name:"close",size:16,color:e.color},null,8,["onClick","color"])):$r("v-if",!0)]),_:1})):$r("v-if",!0)]),_:3},8,["onClick"])}],["__scopeId","data-v-64950d62"]]),$$=Object.freeze(Object.defineProperty({__proto__:null,default:D$},Symbol.toStringTag,{value:"Module"})),j$={props:{text:{type:[Array,String],default:()=>PO.noticeBar.text},direction:{type:String,default:()=>PO.noticeBar.direction},step:{type:Boolean,default:()=>PO.noticeBar.step},icon:{type:String,default:()=>PO.noticeBar.icon},mode:{type:String,default:()=>PO.noticeBar.mode},color:{type:String,default:()=>PO.noticeBar.color},bgColor:{type:String,default:()=>PO.noticeBar.bgColor},speed:{type:[String,Number],default:()=>PO.noticeBar.speed},fontSize:{type:[String,Number],default:()=>PO.noticeBar.fontSize},duration:{type:[String,Number],default:()=>PO.noticeBar.duration},disableTouch:{type:Boolean,default:()=>PO.noticeBar.disableTouch},url:{type:String,default:()=>PO.noticeBar.url},linkType:{type:String,default:()=>PO.noticeBar.linkType},justifyContent:{type:String,default:()=>PO.noticeBar.justifyContent}}};const F$=$O({name:"u-notice-bar",mixins:[MO,NO,j$],data:()=>({show:!0}),emits:["click","close"],methods:{addStyle:ZB,click(e){this.$emit("click",e),this.url&&this.linkType&&this.openPage()},close(){this.show=!1,this.$emit("close")}}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("u-column-notice"),DN),s=Sx(Bi("u-row-notice"),D$),c=jg;return i.show?(kr(),Er(c,{key:0,class:"u-notice-bar",style:l([{backgroundColor:e.bgColor},r.addStyle(e.customStyle)])},{default:To(()=>["column"===e.direction||"row"===e.direction&&e.step?(kr(),Er(a,{key:0,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,step:e.step,icon:e.icon,"disable-touch":e.disableTouch,fontSize:e.fontSize,duration:e.duration,justifyContent:e.justifyContent,onClose:r.close,onClick:r.click},null,8,["color","bgColor","text","mode","step","icon","disable-touch","fontSize","duration","justifyContent","onClose","onClick"])):(kr(),Er(s,{key:1,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,fontSize:e.fontSize,speed:e.speed,url:e.url,linkType:e.linkType,icon:e.icon,onClose:r.close,onClick:r.click},null,8,["color","bgColor","text","mode","fontSize","speed","url","linkType","icon","onClose","onClick"]))]),_:1},8,["style"])):$r("v-if",!0)}],["__scopeId","data-v-f4147772"]]),H$=Object.freeze(Object.defineProperty({__proto__:null,default:F$},Symbol.toStringTag,{value:"Module"})),V$={props:{top:{type:[String,Number],default:()=>PO.notify.top},type:{type:String,default:()=>PO.notify.type},color:{type:String,default:()=>PO.notify.color},bgColor:{type:String,default:()=>PO.notify.bgColor},message:{type:String,default:()=>PO.notify.message},duration:{type:[String,Number],default:()=>PO.notify.duration},fontSize:{type:[String,Number],default:()=>PO.notify.fontSize},safeAreaInsetTop:{type:Boolean,default:()=>PO.notify.safeAreaInsetTop}}};const W$=$O({name:"u-notify",mixins:[MO,NO,V$],data:()=>({open:!1,timer:null,config:{top:PO.notify.top,type:PO.notify.type,color:PO.notify.color,bgColor:PO.notify.bgColor,message:PO.notify.message,duration:PO.notify.duration,fontSize:PO.notify.fontSize,safeAreaInsetTop:PO.notify.safeAreaInsetTop},tmpConfig:{}}),computed:{containerStyle(){let e=0;0===this.tmpConfig.top&&(e=44);return{top:eO(0===this.tmpConfig.top?e:this.tmpConfig.top),position:"fixed",left:0,right:0,zIndex:10076}},backgroundColor(){const e={};return this.tmpConfig.bgColor&&(e.backgroundColor=this.tmpConfig.bgColor),e},icon(){let e;return"success"===this.tmpConfig.type?e="checkmark-circle":"error"===this.tmpConfig.type?e="close-circle":"warning"===this.tmpConfig.type&&(e="error-circle"),e}},created(){["primary","success","error","warning"].map(e=>{this[e]=t=>this.show({type:e,message:t})})},methods:{addStyle:ZB,addUnit:eO,show(e){this.tmpConfig=nO(this.config,e),this.clearTimer(),this.open=!0,this.tmpConfig.duration>0&&(this.timer=setTimeout(()=>{this.open=!1,this.clearTimer(),"function"==typeof this.tmpConfig.complete&&this.tmpConfig.complete()},this.tmpConfig.duration))},close(){this.clearTimer()},clearTimer(){this.open=!1,clearTimeout(this.timer),this.timer=null}},beforeUnmount(){this.clearTimer()}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("u-status-bar"),fM),s=Sx(Bi("up-icon"),FO),c=Ng,u=jg,d=Sx(Bi("u-transition"),cM);return kr(),Er(d,{mode:"slide-down",customStyle:r.containerStyle,show:i.open},{default:To(()=>[zr(u,{class:p(["u-notify",[`u-notify--${i.tmpConfig.type}`]]),style:l([r.backgroundColor,r.addStyle(e.customStyle)])},{default:To(()=>[i.tmpConfig.safeAreaInsetTop?(kr(),Er(a,{key:0})):$r("v-if",!0),zr(u,{class:"u-notify__warpper"},{default:To(()=>[Ni(e.$slots,"icon",{},()=>[["success","warning","error"].includes(i.tmpConfig.type)?(kr(),Er(s,{key:0,name:i.tmpConfig.icon,color:i.tmpConfig.color,size:1.3*i.tmpConfig.fontSize,customStyle:{marginRight:"4px"}},null,8,["name","color","size"])):$r("v-if",!0)],!0),zr(c,{class:"u-notify__warpper__text",style:l({fontSize:r.addUnit(i.tmpConfig.fontSize),color:i.tmpConfig.color})},{default:To(()=>[Dr(v(i.tmpConfig.message),1)]),_:1},8,["style"])]),_:3})]),_:3},8,["class","style"])]),_:3},8,["customStyle","show"])}],["__scopeId","data-v-6737e5d3"]]),U$=Object.freeze(Object.defineProperty({__proto__:null,default:W$},Symbol.toStringTag,{value:"Module"})),q$={name:"u-pagination",props:{currentPage:{type:Number,default:1},pageSize:{type:Number,default:10},total:{type:Number,default:0},prevText:{type:String,default:""},nextText:{type:String,default:""},buttonBgColor:{type:String,default:"#f5f7fa"},buttonBorderColor:{type:String,default:"#dcdfe6"},pageSizes:{type:Array,default:()=>[10,20,30,40,50]},layout:{type:String,default:"prev, pager, next"},hideOnSinglePage:{type:Boolean,default:!1}},emits:["update:currentPage","update:pageSize","current-change","size-change"],data(){return{currentPageInput:this.currentPage+""}},computed:{totalPages(){return Math.max(1,Math.ceil(this.total/this.pageSize))},pageSizeIndex(){const e=this.pageSizes.findIndex(e=>e.value===this.pageSize);return e>=0?e:0},pageSizeLabel(){const e=this.pageSizes.find(e=>e.value===this.pageSize);return(null==e?void 0:e.label)||this.pageSize},displayedPages(){const e=this.totalPages,t=this.currentPage;if(e<=4)return Array.from({length:e},(e,t)=>t+1);const n=[];if(t<=2){for(let e=1;e<=4;e++)n.push(e);n.push("..."),n.push(e)}else if(t>=e-1){n.push(1),n.push("...");for(let t=e-3;t<=e;t++)n.push(t)}else n.push(1),n.push("..."),n.push(t-1),n.push(t),n.push(t+1),n.push("..."),n.push(e);return n}},watch:{currentPage(e){this.currentPageInput=e+""}},methods:{t:_O,handleSizeChange(e){var t;const n=e.detail.value,o=(null==(t=this.pageSizes[n])?void 0:t.value)||this.pageSizes[0].value;this.$emit("update:pageSize",o),this.$emit("size-change",o)},prev(){this.currentPage>1&&this.goTo(this.currentPage-1)},next(){this.currentPage=1&&t<=this.totalPages&&this.goTo(t)}}};const Q$=$O(q$,[["render",function(e,t,n,o,i,r){const a=Sx(Bi("up-icon"),FO),s=jg;return kr(),Er(s,{class:"u-pagination"},{default:To(()=>[$r(" 上一页按钮 "),zr(s,{class:p(["u-pagination-btn",{disabled:1===n.currentPage}]),style:l({backgroundColor:n.buttonBgColor,borderColor:n.buttonBorderColor}),onClick:r.prev},{default:To(()=>[n.prevText?(kr(),Ir(br,{key:0},[Dr(v(n.prevText),1)],64)):(kr(),Er(a,{key:1,name:"arrow-left"}))]),_:1},8,["class","style","onClick"]),$r(" 页码列表 "),n.layout.includes("pager")?(kr(!0),Ir(br,{key:0},Li(r.displayedPages,e=>(kr(),Er(s,{key:e,class:p(["u-pagination-item",{active:e===n.currentPage}]),onClick:t=>r.goTo(e)},{default:To(()=>[Dr(v(e),1)]),_:2},1032,["class","onClick"]))),128)):$r("v-if",!0),$r(" 总数显示 "),n.total>0&&n.layout.includes("total")?(kr(),Er(s,{key:1,class:"u-pagination-total"},{default:To(()=>[Dr(v(n.currentPage)+" / "+v(r.totalPages),1)]),_:1})):$r("v-if",!0),$r(" 每页数量选择器 "),$r(' \r\n {{ pageSizeLabel }} \r\n '),$r(" 下一页按钮 "),zr(s,{class:p(["u-pagination-btn",{disabled:n.currentPage===r.totalPages}]),style:l({backgroundColor:n.buttonBgColor,borderColor:n.buttonBorderColor}),onClick:r.next},{default:To(()=>[n.nextText?(kr(),Ir(br,{key:0},[Dr(v(n.nextText),1)],64)):(kr(),Er(a,{key:1,name:"arrow-right"}))]),_:1},8,["class","style","onClick"]),$r(" 跳转输入框 "),$r(' \r\n 前往 \r\n \r\n 页 \r\n ')]),_:1})}],["__scopeId","data-v-e1093c2b"]]),Y$=Object.freeze(Object.defineProperty({__proto__:null,default:Q$},Symbol.toStringTag,{value:"Module"}));const G$=$O({name:"up-pdf-reader",mixins:[{props:{src:{type:String,default:""},height:{type:String,default:"500px"},baseUrl:{type:String,default:"https://uview-plus.jiangruyi.com/h5"}}}],data:()=>({baseUrlInner:"https://uview-plus.jiangruyi.com/h5",viewerUrl:""}),watch:{baseUrl:function(e){this.baseUrl=e},src:function(e){this.viewerUrl=`${this.baseUrlInner}/static/pdfjs/web/viewer.html?file=`+encodeURIComponent(e)}},mounted(){this.baseUrl&&(this.baseUrlInner=this.baseUrl),this.viewerUrl=`${this.baseUrlInner}/static/pdfjs/web/viewer.html?file=`+encodeURIComponent(this.src)}},[["render",function(e,t,n,o,i,r){const a=tb,s=jg;return kr(),Er(s,{class:"up-pdf-reader",style:l({height:e.height})},{default:To(()=>[zr(a,{fullscreen:!1,src:i.viewerUrl,style:l({width:"750rpx",height:e.height}),"webview-styles":{width:"750rpx",height:e.height},frameborder:"0"},null,8,["src","style","webview-styles"])]),_:1},8,["style"])}],["__scopeId","data-v-7f0ab58c"]]),X$=Object.freeze(Object.defineProperty({__proto__:null,default:G$},Symbol.toStringTag,{value:"Module"}));const K$=$O({name:"u-picker-column",mixins:[MO,NO,{props:{}}]},[["render",function(e,t,n,o,i,r){const a=jg,s=mg;return kr(),Er(s,null,{default:To(()=>[zr(a,{class:"u-picker-column"})]),_:1})}]]),J$=Object.freeze(Object.defineProperty({__proto__:null,default:K$},Symbol.toStringTag,{value:"Module"})),Z$={name:"u-picker-data",props:{modelValue:{type:[String,Number],default:""},title:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[]},valueKey:{type:String,default:"id"},labelKey:{type:String,default:"name"}},data:()=>({show:!1,current:"",defaultIndex:[]}),created(){this.modelValue&&this.options.forEach((e,t)=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey],this.defaultIndex=[t])})},watch:{modelValue(){this.modelValue&&this.options.forEach((e,t)=>{e[this.valueKey]==this.modelValue&&(this.current=e[this.labelKey],this.defaultIndex=[t])})}},computed:{optionsInner(){return[this.options]}},emits:["update:modelValue","cancel","close","confirm"],methods:{hideKeyboard(){Wb()},cancel(){this.show=!1,this.$emit("cancel")},close(){this.$emit("close")},confirm(e){const{columnIndex:t,index:n,value:o}=e;this.show=!1,this.$emit("update:modelValue",o[0][this.valueKey]),this.defaultIndex=t,this.current=o[0][this.labelKey],this.$emit("confirm")}}};const ej=$O(Z$,[["render",function(e,t,n,o,i,r){const a=Sx(Bi("up-input"),qO),s=jg,l=Sx(Bi("up-picker"),dz);return kr(),Er(s,{class:"u-picker-data"},{default:To(()=>[zr(s,{class:"u-picker-data__trigger"},{default:To(()=>[Ni(e.$slots,"trigger",{current:i.current},void 0,!0),e.$slots.trigger?$r("v-if",!0):(kr(),Er(a,{key:0,modelValue:i.current,disabled:"",disabledColor:"#ffffff",placeholder:n.title,border:"none"},null,8,["modelValue","placeholder"])),zr(s,{onClick:t[0]||(t[0]=e=>i.show=!0),class:"u-picker-data__trigger__cover"})]),_:3}),zr(l,{show:i.show,columns:r.optionsInner,keyName:n.labelKey,defaultIndex:i.defaultIndex,onConfirm:r.confirm,onCancel:r.cancel,onClose:r.close},null,8,["show","columns","keyName","defaultIndex","onConfirm","onCancel","onClose"])]),_:3})}],["__scopeId","data-v-e02f8a39"]]),tj=Object.freeze(Object.defineProperty({__proto__:null,default:ej},Symbol.toStringTag,{value:"Module"})),nj={props:{text:{type:[String,Number],default:()=>PO.tooltip.text},copyText:{type:[String,Number],default:()=>PO.tooltip.copyText},size:{type:[String,Number],default:()=>PO.tooltip.size},color:{type:String,default:()=>PO.tooltip.color},bgColor:{type:String,default:()=>PO.tooltip.bgColor},popupBgColor:{type:String,default:()=>PO.tooltip.popupBgColor},direction:{type:String,default:()=>PO.tooltip.direction},zIndex:{type:[String,Number],default:()=>PO.tooltip.zIndex},showCopy:{type:Boolean,default:()=>PO.tooltip.showCopy},buttons:{type:Array,default:()=>PO.tooltip.buttons},overlay:{type:Boolean,default:()=>PO.tooltip.overlay},showToast:{type:Boolean,default:()=>PO.tooltip.showToast},triggerMode:{type:String,default:()=>PO.tooltip.triggerMode},forcePosition:{type:Object,default:()=>PO.tooltip.forcePosition}}};const oj=$O({name:"u-tooltip",mixins:[MO,NO,nj],data:()=>({showTooltip:!0,textId:KB(),tooltipId:KB(),tooltipTop:-1e4,tooltipInfo:{width:0,left:0},triggerInfo:{width:0,left:0},indicatorStyle:{},screenGap:12,indicatorWidth:14,tooltipStyle:{},calcReacted:!1}),watch:{async propsChange(){await this.getElRect()}},computed:{propsChange(){return[this.text,this.buttons]},tooltipStyleCpu(){if(!this.calcReacted)return{};const e={},t=YB();if("left"===this.direction)e.transform="",e.top="-"+eO((this.triggerInfo.height-this.tooltipInfo.height)/2,"px"),e.right=eO(this.triggerInfo.width+this.indicatorWidth,"px"),this.indicatorStyle={},this.indicatorStyle.right="-4px",this.indicatorStyle.top=eO((this.tooltipInfo.height-this.indicatorWidth)/2,"px");else if("right"===this.direction)e.transform="",e.top="-"+eO((this.triggerInfo.height-this.tooltipInfo.height)/2,"px"),e.left=eO(this.triggerInfo.width+this.indicatorWidth,"px"),this.indicatorStyle={},this.indicatorStyle.left="-4px",this.indicatorStyle.top=eO((this.triggerInfo.height-this.indicatorWidth)/2,"px");else if("top"===this.direction||"bottom"===this.direction){if(e.transform=`translateY(${"top"===this.direction?"-100%":"100%"})`,this.tooltipInfo.width/2>this.triggerInfo.left+this.triggerInfo.width/2-this.screenGap)this.indicatorStyle={},e.left=`-${eO(this.triggerInfo.left-this.screenGap)}`,this.indicatorStyle.left=eO(this.triggerInfo.width/2-WB(e.left)-this.indicatorWidth/2,"px");else if(this.tooltipInfo.width/2>t.windowWidth-this.triggerInfo.right+this.triggerInfo.width/2-this.screenGap)this.indicatorStyle={},e.right=`-${eO(t.windowWidth-this.triggerInfo.right-this.screenGap)}`,this.indicatorStyle.right=eO(this.triggerInfo.width/2-WB(e.right)-this.indicatorWidth/2);else{const t=Math.abs(this.triggerInfo.width/2-this.tooltipInfo.width/2);e.left=this.triggerInfo.width>this.tooltipInfo.width?eO(t):-eO(t),this.indicatorStyle={}}"top"===this.direction?(e.marginTop="-10px",this.indicatorStyle.bottom="-4px"):(e.marginBottom="-10px",this.indicatorStyle.top="-4px")}let n={...e,...this.forcePosition};return this.tooltipStyle=n,n}},mounted(){this.init()},emits:["click"],methods:{addStyle:ZB,addUnit:eO,async init(){await this.getElRect()},async clickHander(){"click"==this.triggerMode&&(this.tooltipTop=0,this.showTooltip=!0)},async longpressHandler(){"longpress"==this.triggerMode&&(this.tooltipTop=0,this.showTooltip=!0)},overlayClickHandler(){this.showTooltip=!1},btnClickHandler(e){this.showTooltip=!1,this.$emit("click",this.showCopy?e+1:e)},queryRect(e){return new Promise(t=>{this.$uGetRect(`#${e}`).then(e=>{t(e)})})},getElRect(){return new Promise(async e=>{this.showTooltip=!0,this.tooltipTop=-1e4,UB(500).then(async()=>{this.tooltipInfo=await this.queryRect(this.tooltipId),this.showTooltip=!1,this.triggerInfo=await this.queryRect(this.textId),UB(500).then(()=>{this.calcReacted=!0}),e()})})},setClipboardData(){this.showTooltip=!1,this.$emit("click",0),zb({data:this.copyText||this.text,success:()=>{this.showToast&&cO("复制成功")},fail:()=>{this.showToast&&cO("复制失败")},complete:()=>{this.showTooltip=!1}})}}},[["render",function(e,t,n,o,i,r){const a=Sx(Bi("u-overlay"),hM),s=Ng,c=jg,u=Sx(Bi("u-line"),GO),d=Sx(Bi("u-transition"),cM);return kr(),Er(c,{class:"u-tooltip",style:l([r.addStyle(e.customStyle)])},{default:To(()=>[zr(a,{show:i.showTooltip&&-1e4!==i.tooltipTop&&e.overlay,customStyle:"backgroundColor: rgba(0, 0, 0, 0)",onClick:r.overlayClickHandler},null,8,["show","onClick"]),zr(c,{class:"u-tooltip__wrapper"},{default:To(()=>[zr(c,{class:"u-tooltip__trigger",id:i.textId,ref:i.textId,onClick:ds(r.clickHander,["stop"]),onLongpress:ds(r.longpressHandler,["stop"])},{default:To(()=>[Ni(e.$slots,"trigger",{},void 0,!0),e.$slots.trigger?$r("v-if",!0):(kr(),Er(s,{key:0,class:"u-tooltip__wrapper__text",userSelect:!1,selectable:!1,style:l({color:e.color,backgroundColor:e.bgColor&&i.showTooltip&&-1e4!==i.tooltipTop?e.bgColor:"transparent"})},{default:To(()=>[Dr(v(e.text),1)]),_:1},8,["style"]))]),_:3},8,["id","onClick","onLongpress"]),zr(d,{mode:"fade",show:i.showTooltip,duration:"300",customStyle:{position:"absolute",top:r.addUnit(i.tooltipTop,"px"),zIndex:e.zIndex,...r.tooltipStyleCpu}},{default:To(()=>[zr(c,{class:"u-tooltip__wrapper__popup",id:i.tooltipId,ref:i.tooltipId},{default:To(()=>[e.showCopy||e.buttons.length?(kr(),Er(c,{key:0,class:"u-tooltip__wrapper__popup__indicator","hover-class":"u-tooltip__wrapper__popup__indicator--hover",style:l([i.indicatorStyle,{width:r.addUnit(i.indicatorWidth),height:r.addUnit(i.indicatorWidth),backgroundColor:e.popupBgColor}])},{default:To(()=>[$r(" 由于nvue不支持三角形绘制,这里就做一个四方形,再旋转45deg,得到露出的一个三角 ")]),_:1},8,["style"])):$r("v-if",!0),zr(c,{class:"u-tooltip__wrapper__popup__list",style:l({backgroundColor:e.popupBgColor,color:e.color})},{default:To(()=>[Ni(e.$slots,"content",{},void 0,!0),e.$slots.content?$r("v-if",!0):(kr(),Ir(br,{key:0},[e.showCopy?(kr(),Er(c,{key:0,class:"u-tooltip__wrapper__popup__list__btn","hover-class":"u-tooltip__wrapper__popup__list__btn--hover",style:l({backgroundColor:e.popupBgColor}),onClick:r.setClipboardData},{default:To(()=>[zr(s,{class:"u-tooltip__wrapper__popup__list__btn__text"},{default:To(()=>[Dr("复制")]),_:1})]),_:1},8,["style","onClick"])):$r("v-if",!0),e.showCopy&&e.buttons.length>0?(kr(),Er(u,{key:1,direction:"column",color:"#8d8e90",length:"18"})):$r("v-if",!0),(kr(!0),Ir(br,null,Li(e.buttons,(t,n)=>(kr(),Ir(br,{key:n},[zr(c,{class:"u-tooltip__wrapper__popup__list__btn","hover-class":"u-tooltip__wrapper__popup__list__btn--hover"},{default:To(()=>[zr(s,{class:"u-tooltip__wrapper__popup__list__btn__text",onClick:e=>r.btnClickHandler(n)},{default:To(()=>[Dr(v(t),1)]),_:2},1032,["onClick"])]),_:2},1024),n({})},direction:{type:String,default:"top"}}};const aj=$O({name:"up-popover",mixins:[MO,NO,rj],data:()=>({}),methods:{onOpen(){this.$emit("open")},onClose(){this.$emit("close")},onClick(){this.$emit("click")},open(){this.$refs.tooltip&&this.$refs.tooltip.open()},close(){this.$refs.tooltip&&this.$refs.tooltip.close()}}},[["render",function(e,t,n,o,i,r){const a=Ng,s=jg,l=Sx(Bi("up-tooltip"),oj);return kr(),Er(s,{class:"up-popover"},{default:To(()=>[zr(l,{ref:"tooltip",text:e.text,color:e.color,"bg-color":e.bgColor,"popup-bg-color":e.popupBgColor,placement:e.placement,"trigger-mode":e.triggerMode,show:e.show,"z-index":e.zIndex,"force-position":e.forcePosition,direction:e.direction,onOpen:r.onOpen,onClose:r.onClose,onClick:r.onClick},{trigger:To(()=>[Ni(e.$slots,"trigger",{},void 0,!0)]),content:To(()=>[zr(s,{class:"up-popover__content"},{default:To(()=>[Ni(e.$slots,"content",{},()=>[zr(a,null,{default:To(()=>[Dr(v(e.text),1)]),_:1})],!0)]),_:3})]),_:3},8,["text","color","bg-color","popup-bg-color","placement","trigger-mode","show","z-index","force-position","direction","onOpen","onClose","onClick"])]),_:3})}],["__scopeId","data-v-de70b865"]]),sj=Object.freeze(Object.defineProperty({__proto__:null,default:aj},Symbol.toStringTag,{value:"Module"}));let lj={};!function(){function e(e){return e<128?[e]:e<2048?[192+(e>>6),128+(63&e)]:[224+(e>>12),128+(e>>6&63),128+(63&e)]}function t(t,n){this.typeNumber=-1,this.errorCorrectLevel=n,this.modules=null,this.moduleCount=0,this.dataCache=null,this.rsBlocks=null,this.totalDataCount=-1,this.data=t,this.utf8bytes=function(t){for(var n=[],o=0;o=7&&this.setupTypeNumber(!0),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(this.modules[e+n][t+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},createQrcode:function(){for(var e=0,t=0,n=null,o=0;o<8;o++){this.makeImpl(o);var i=d.getLostPoint(this);(0==o||e>i)&&(e=i,t=o,n=this.modules)}this.modules=n,this.setupTypeInfo(!1,t),this.typeNumber>=7&&this.setupTypeNumber(!1)},setupTimingPattern:function(){for(var e=8;e>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o,this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=o}},setupTypeInfo:function(e,t){for(var o=n[this.errorCorrectLevel]<<3|t,i=d.getBCHTypeInfo(o),r=0;r<15;r++){var a=!e&&1==(i>>r&1);r<6?this.modules[r][8]=a:r<8?this.modules[r+1][8]=a:this.modules[this.moduleCount-15+r][8]=a;a=!e&&1==(i>>r&1);r<8?this.modules[8][this.moduleCount-r-1]=a:r<9?this.modules[8][15-r-1+1]=a:this.modules[8][15-r-1]=a}this.modules[this.moduleCount-8][8]=!e},createData:function(){var e=new g,n=this.typeNumber>9?16:8;e.put(4,4),e.put(this.utf8bytes.length,n);for(var o=0,i=this.utf8bytes.length;o=8*this.totalDataCount||(e.put(t.PAD0,8),e.length>=8*this.totalDataCount));)e.put(t.PAD1,8);return this.createBytes(e)},createBytes:function(e){for(var t=0,n=0,o=0,i=this.rsBlock.length/3,r=new Array,a=0;a=0?v.get(_):0}}var w=new Array(this.totalDataCount),x=0;for(a=0;a0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[o][a-s]){var l=!1;r>>i&1)),d.getMask(t,o,a-s)&&(l=!l),this.modules[o][a-s]=l,-1==--i&&(r++,i=7)}if((o+=n)<0||this.moduleCount<=o){o-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17;for(var n=[1,0,3,2],o=0,i=1,r=2,a=3,s=4,l=5,c=6,u=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;d.getBCHDigit(t)-d.getBCHDigit(d.G15)>=0;)t^=d.G15<=0;)t^=d.G18<>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case o:return(t+n)%2==0;case i:return t%2==0;case r:return n%3==0;case a:return(t+n)%3==0;case s:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case l:return t*n%2+t*n%3==0;case c:return(t*n%2+t*n%3)%2==0;case u:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new f([1],0),n=0;n3&&e.modules[i][s-1]&&e.modules[i][s-2]&&e.modules[i][s-3]&&e.modules[i][s-4]&&(n+=40)),i=5&&(n+=3+r-5),r=1),l&&o++}for(s=0;s3&&e.modules[i-1][s]&&e.modules[i-2][s]&&e.modules[i-3][s]&&e.modules[i-4][s]&&(n+=40)),a^l?r++:(a=l,r>=5&&(n+=3+r-5),r=1)}return n+=10*(Math.abs(100*o/t/t-50)/5)}},h={glog:function(e){if(e<1)throw new Error("glog("+e+")");return h.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return h.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},p=0;p<8;p++)h.EXP_TABLE[p]=1<=n;){var r=h.glog(o[0])-h.glog(e.get(0));for(i=0;i9?2:1;if(this.utf8bytes.length+a>>7-e%8&1},put:function(e,t){for(var n=0;n>>t-n-1&1)},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};let y=[];lj=function(e){this.options={text:"",size:256,correctLevel:3,background:"#ffffff",foreground:"#000000",pdground:"#000000",image:"",imageSize:30,canvasId:e.canvasId,nvueContext:e.nvueContext,context:e.context,usingComponents:e.usingComponents,showLoading:e.showLoading,loadingText:e.loadingText};let n=null;if("string"==typeof e&&(e={text:e}),e)for(var o in e)this.options[o]=e[o];for(var i=null,r=(o=0,y.length);o1&&e.row<5&&e.col>1&&e.col<5||e.row>e.count-6&&e.row1&&e.col<5||e.row>1&&e.row<5&&e.col>e.count-6&&e.colnew Promise((t,n)=>{try{xp().in(this.options.context).select(`#${e}`).fields({node:!0,size:!0}).exec(e=>{t(e[0].node)})}catch(sB){console.error("createCanvasContextFail",sB)}});!async function(e){e.showLoading&&e_({title:e.loadingText,mask:!0});var t="";e.nvueContext?t=e.nvueContext:(n=await s(e.canvasId),t=n.getContext("2d")),e.context.ctx=t,e.context.canvas=n;for(var o=i.getModuleCount(),r=e.size,c=e.imageSize,u=(r/o).toPrecision(4),d=(r/o).toPrecision(4),h=0;h