123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- import{d as se,b as q,z as V,J as qe,A as Ae,aa as ke,h as C,T as P,aA as st,S as $,aB as lt,Y as M,U as B,W as ut,aC as Ve,aD as ct,a1 as je,aE as ft,aF as N,a2 as W,aG as ht,V as Ne,Z as ve,ad as We,aH as dt,a4 as D,a0 as Ge,aI as pt,aJ as gt,ah as Xe,ai as vt,aK as mt,aL as bt,aM as yt,aN as _t,af as wt,aO as ze,aP as xt,av as Ye,aQ as Tt,aR as Ct,aS as kt,aT as St,am as le,aU as me,aw as It,as as At,aV as zt,o as O,c as de,a as be,n as Rt,r as xe,B as H,w as z,f as A,g as L,F as Re,q as Ut,j as fe,i as X,t as Ue,at as Pt,_ as Ot,m as Lt,k as $t,x as Et}from"./index-dee576f2.js";import{m as Ft}from"./TaskData-dc22cbff.js";import{_ as Bt}from"./DatePicker-4ae729de.js";import{a as Ht,b as Dt}from"./VerifyTemplateMapData-086fa359.js";import{b as Mt,_ as qt}from"./Upload-780176ea.js";import{_ as Vt}from"./Space-a48f8be8.js";import{_ as jt}from"./Popconfirm-bd074051.js";const Pe=se({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(n){const r=q(null),e=q(n.value),a=q(n.value),o=q("up"),t=q(!1),u=V(()=>t.value?`${n.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),d=V(()=>t.value?`${n.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);qe(ke(n,"value"),(h,m)=>{e.value=m,a.value=h,Ae(v)});function v(){const h=n.newOriginalNumber,m=n.oldOriginalNumber;m===void 0||h===void 0||(h>m?i("up"):m>h&&i("down"))}function i(h){o.value=h,t.value=!1,Ae(()=>{var m;(m=r.value)===null||m===void 0||m.offsetWidth,t.value=!0})}return()=>{const{clsPrefix:h}=n;return C("span",{ref:r,class:`${h}-base-slot-machine-number`},e.value!==null?C("span",{class:[`${h}-base-slot-machine-old-number ${h}-base-slot-machine-old-number--top`,d.value]},e.value):null,C("span",{class:[`${h}-base-slot-machine-current-number`,u.value]},C("span",{ref:"numberWrapper",class:[`${h}-base-slot-machine-current-number__inner`,typeof n.value!="number"&&`${h}-base-slot-machine-current-number__inner--not-number`]},a.value)),e.value!==null?C("span",{class:[`${h}-base-slot-machine-old-number ${h}-base-slot-machine-old-number--bottom`,d.value]},e.value):null)}}}),{cubicBezierEaseOut:J}=st;function Nt({duration:n=".2s"}={}){return[P("&.fade-up-width-expand-transition-leave-active",{transition:`
- opacity ${n} ${J},
- max-width ${n} ${J},
- transform ${n} ${J}
- `}),P("&.fade-up-width-expand-transition-enter-active",{transition:`
- opacity ${n} ${J},
- max-width ${n} ${J},
- transform ${n} ${J}
- `}),P("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),P("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),P("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),P("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const Wt=P([P("@keyframes n-base-slot-machine-fade-up-in",`
- from {
- transform: translateY(60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `),P("@keyframes n-base-slot-machine-fade-down-in",`
- from {
- transform: translateY(-60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `),P("@keyframes n-base-slot-machine-fade-up-out",`
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(-60%);
- opacity: 0;
- }
- `),P("@keyframes n-base-slot-machine-fade-down-out",`
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(60%);
- opacity: 0;
- }
- `),$("base-slot-machine",`
- overflow: hidden;
- white-space: nowrap;
- display: inline-block;
- height: 18px;
- line-height: 18px;
- `,[$("base-slot-machine-number",`
- display: inline-block;
- position: relative;
- height: 18px;
- width: .6em;
- max-width: .6em;
- `,[Nt({duration:".2s"}),lt({duration:".2s",delay:"0s"}),$("base-slot-machine-old-number",`
- display: inline-block;
- opacity: 0;
- position: absolute;
- left: 0;
- right: 0;
- `,[M("top",{transform:"translateY(-100%)"}),M("bottom",{transform:"translateY(100%)"}),M("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),$("base-slot-machine-current-number",`
- display: inline-block;
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 1;
- transform: translateY(0);
- width: .6em;
- `,[M("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),B("inner",`
- display: inline-block;
- position: absolute;
- right: 0;
- top: 0;
- width: .6em;
- `,[M("not-number",`
- right: unset;
- left: 0;
- `)])])])])]),Gt=se({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(n){ut("-base-slot-machine",Wt,ke(n,"clsPrefix"));const r=q(),e=q(),a=V(()=>{if(typeof n.value=="string")return[];if(n.value<1)return[0];const o=[];let t=n.value;for(n.max!==void 0&&(t=Math.min(n.max,t));t>=1;)o.push(t%10),t/=10,t=Math.floor(t);return o.reverse(),o});return qe(ke(n,"value"),(o,t)=>{typeof o=="string"?(e.value=void 0,r.value=void 0):typeof t=="string"?(e.value=o,r.value=void 0):(e.value=o,r.value=t)}),()=>{const{value:o,clsPrefix:t}=n;return typeof o=="number"?C("span",{class:`${t}-base-slot-machine`},C(ct,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>a.value.map((u,d)=>C(Pe,{clsPrefix:t,key:a.value.length-d-1,oldOriginalNumber:r.value,newOriginalNumber:e.value,value:u}))}),C(Ve,{key:"+",width:!0},{default:()=>n.max!==void 0&&n.max<o?C(Pe,{clsPrefix:t,value:"+"}):null})):C("span",{class:`${t}-base-slot-machine`},o)}}}),Xt=n=>{const{lineHeight:r,borderRadius:e,fontWeightStrong:a,baseColor:o,dividerColor:t,actionColor:u,textColor1:d,textColor2:v,closeColorHover:i,closeColorPressed:h,closeIconColor:m,closeIconColorHover:w,closeIconColorPressed:x,infoColor:_,successColor:I,warningColor:y,errorColor:g,fontSize:p}=n;return Object.assign(Object.assign({},ft),{fontSize:p,lineHeight:r,titleFontWeight:a,borderRadius:e,border:`1px solid ${t}`,color:u,titleTextColor:d,iconColor:v,contentTextColor:v,closeBorderRadius:e,closeColorHover:i,closeColorPressed:h,closeIconColor:m,closeIconColorHover:w,closeIconColorPressed:x,borderInfo:`1px solid ${N(o,W(_,{alpha:.25}))}`,colorInfo:N(o,W(_,{alpha:.08})),titleTextColorInfo:d,iconColorInfo:_,contentTextColorInfo:v,closeColorHoverInfo:i,closeColorPressedInfo:h,closeIconColorInfo:m,closeIconColorHoverInfo:w,closeIconColorPressedInfo:x,borderSuccess:`1px solid ${N(o,W(I,{alpha:.25}))}`,colorSuccess:N(o,W(I,{alpha:.08})),titleTextColorSuccess:d,iconColorSuccess:I,contentTextColorSuccess:v,closeColorHoverSuccess:i,closeColorPressedSuccess:h,closeIconColorSuccess:m,closeIconColorHoverSuccess:w,closeIconColorPressedSuccess:x,borderWarning:`1px solid ${N(o,W(y,{alpha:.33}))}`,colorWarning:N(o,W(y,{alpha:.08})),titleTextColorWarning:d,iconColorWarning:y,contentTextColorWarning:v,closeColorHoverWarning:i,closeColorPressedWarning:h,closeIconColorWarning:m,closeIconColorHoverWarning:w,closeIconColorPressedWarning:x,borderError:`1px solid ${N(o,W(g,{alpha:.25}))}`,colorError:N(o,W(g,{alpha:.08})),titleTextColorError:d,iconColorError:g,contentTextColorError:v,closeColorHoverError:i,closeColorPressedError:h,closeIconColorError:m,closeIconColorHoverError:w,closeIconColorPressedError:x})},Yt={name:"Alert",common:je,self:Xt},Jt=Yt,Kt=$("alert",`
- line-height: var(--n-line-height);
- border-radius: var(--n-border-radius);
- position: relative;
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-color);
- text-align: start;
- word-break: break-word;
- `,[B("border",`
- border-radius: inherit;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- transition: border-color .3s var(--n-bezier);
- border: var(--n-border);
- pointer-events: none;
- `),M("closable",[$("alert-body",[B("title",`
- padding-right: 24px;
- `)])]),B("icon",{color:"var(--n-icon-color)"}),$("alert-body",{padding:"var(--n-padding)"},[B("title",{color:"var(--n-title-text-color)"}),B("content",{color:"var(--n-content-text-color)"})]),ht({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),B("icon",`
- position: absolute;
- left: 0;
- top: 0;
- align-items: center;
- justify-content: center;
- display: flex;
- width: var(--n-icon-size);
- height: var(--n-icon-size);
- font-size: var(--n-icon-size);
- margin: var(--n-icon-margin);
- `),B("close",`
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- position: absolute;
- right: 0;
- top: 0;
- margin: var(--n-close-margin);
- `),M("show-icon",[$("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),$("alert-body",`
- border-radius: var(--n-border-radius);
- transition: border-color .3s var(--n-bezier);
- `,[B("title",`
- transition: color .3s var(--n-bezier);
- font-size: 16px;
- line-height: 19px;
- font-weight: var(--n-title-font-weight);
- `,[P("& +",[B("content",{marginTop:"9px"})])]),B("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),B("icon",{transition:"color .3s var(--n-bezier)"})]),Zt=Object.assign(Object.assign({},ve.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),In=se({name:"Alert",inheritAttrs:!1,props:Zt,setup(n){const{mergedClsPrefixRef:r,mergedBorderedRef:e,inlineThemeDisabled:a,mergedRtlRef:o}=Ne(n),t=ve("Alert","-alert",Kt,Jt,n,r),u=We("Alert",o,r),d=V(()=>{const{common:{cubicBezierEaseInOut:x},self:_}=t.value,{fontSize:I,borderRadius:y,titleFontWeight:g,lineHeight:p,iconSize:s,iconMargin:l,iconMarginRtl:f,closeIconSize:c,closeBorderRadius:T,closeSize:U,closeMargin:E,closeMarginRtl:j,padding:_e}=_,{type:F}=n,{left:ee,right:we}=dt(l);return{"--n-bezier":x,"--n-color":_[D("color",F)],"--n-close-icon-size":c,"--n-close-border-radius":T,"--n-close-color-hover":_[D("closeColorHover",F)],"--n-close-color-pressed":_[D("closeColorPressed",F)],"--n-close-icon-color":_[D("closeIconColor",F)],"--n-close-icon-color-hover":_[D("closeIconColorHover",F)],"--n-close-icon-color-pressed":_[D("closeIconColorPressed",F)],"--n-icon-color":_[D("iconColor",F)],"--n-border":_[D("border",F)],"--n-title-text-color":_[D("titleTextColor",F)],"--n-content-text-color":_[D("contentTextColor",F)],"--n-line-height":p,"--n-border-radius":y,"--n-font-size":I,"--n-title-font-weight":g,"--n-icon-size":s,"--n-icon-margin":l,"--n-icon-margin-rtl":f,"--n-close-size":U,"--n-close-margin":E,"--n-close-margin-rtl":j,"--n-padding":_e,"--n-icon-margin-left":ee,"--n-icon-margin-right":we}}),v=a?Ge("alert",V(()=>n.type[0]),d,n):void 0,i=q(!0),h=()=>{const{onAfterLeave:x,onAfterHide:_}=n;x&&x(),_&&_()};return{rtlEnabled:u,mergedClsPrefix:r,mergedBordered:e,visible:i,handleCloseClick:()=>{var x;Promise.resolve((x=n.onClose)===null||x===void 0?void 0:x.call(n)).then(_=>{_!==!1&&(i.value=!1)})},handleAfterLeave:()=>{h()},mergedTheme:t,cssVars:a?void 0:d,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender}},render(){var n;return(n=this.onRender)===null||n===void 0||n.call(this),C(Ve,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:r,$slots:e}=this,a={class:[`${r}-alert`,this.themeClass,this.closable&&`${r}-alert--closable`,this.showIcon&&`${r}-alert--show-icon`,this.rtlEnabled&&`${r}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?C("div",Object.assign({},pt(this.$attrs,a)),this.closable&&C(gt,{clsPrefix:r,class:`${r}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&C("div",{class:`${r}-alert__border`}),this.showIcon&&C("div",{class:`${r}-alert__icon`,"aria-hidden":"true"},Xe(e.icon,()=>[C(vt,{clsPrefix:r},{default:()=>{switch(this.type){case"success":return C(_t,null);case"info":return C(yt,null);case"warning":return C(bt,null);case"error":return C(mt,null);default:return null}}})])),C("div",{class:[`${r}-alert-body`,this.mergedBordered&&`${r}-alert-body--bordered`]},wt(e.header,o=>{const t=o||this.title;return t?C("div",{class:`${r}-alert-body__title`},t):null}),e.default&&C("div",{class:`${r}-alert-body__content`},e))):null}})}}),Qt=n=>{const{errorColor:r,infoColor:e,successColor:a,warningColor:o,fontFamily:t}=n;return{color:r,colorInfo:e,colorSuccess:a,colorError:r,colorWarning:o,fontSize:"12px",fontFamily:t}},er={name:"Badge",common:je,self:Qt},tr=er,rr=P([P("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),$("badge",`
- display: inline-flex;
- position: relative;
- vertical-align: middle;
- color: var(--n-color);
- font-family: var(--n-font-family);
- `,[M("as-is",[$("badge-sup",{position:"static",transform:"translateX(0)"},[ze({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),M("dot",[$("badge-sup",`
- height: 8px;
- width: 8px;
- padding: 0;
- min-width: 8px;
- left: 100%;
- bottom: calc(100% - 4px);
- `,[P("::before","border-radius: 4px;")])]),$("badge-sup",`
- background: var(--n-color);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: #FFF;
- position: absolute;
- height: 18px;
- line-height: 18px;
- border-radius: 9px;
- padding: 0 6px;
- text-align: center;
- font-size: var(--n-font-size);
- transform: translateX(-50%);
- left: 100%;
- bottom: calc(100% - 9px);
- font-variant-numeric: tabular-nums;
- z-index: 1;
- display: flex;
- align-items: center;
- `,[ze({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),$("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),P("&::before",`
- opacity: 0;
- transform: scale(1);
- border-radius: 9px;
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `)])])]),nr=Object.assign(Object.assign({},ve.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),An=se({name:"Badge",props:nr,setup(n,{slots:r}){const{mergedClsPrefixRef:e,inlineThemeDisabled:a,mergedRtlRef:o}=Ne(n),t=ve("Badge","-badge",rr,tr,n,e),u=q(!1),d=()=>{u.value=!0},v=()=>{u.value=!1},i=V(()=>n.show&&(n.dot||n.value!==void 0&&!(!n.showZero&&Number(n.value)<=0)||!xt(r.value)));Ye(()=>{i.value&&(u.value=!0)});const h=We("Badge",o,e),m=V(()=>{const{type:_,color:I}=n,{common:{cubicBezierEaseInOut:y,cubicBezierEaseOut:g},self:{[D("color",_)]:p,fontFamily:s,fontSize:l}}=t.value;return{"--n-font-size":l,"--n-font-family":s,"--n-color":I||p,"--n-ripple-color":I||p,"--n-bezier":y,"--n-ripple-bezier":g}}),w=a?Ge("badge",V(()=>{let _="";const{type:I,color:y}=n;return I&&(_+=I[0]),y&&(_+=Tt(y)),_}),m,n):void 0,x=V(()=>{const{offset:_}=n;if(!_)return;const[I,y]=_,g=typeof I=="number"?`${I}px`:I,p=typeof y=="number"?`${y}px`:y;return{transform:`translate(calc(${h!=null&&h.value?"50%":"-50%"} + ${g}), ${p})`}});return{rtlEnabled:h,mergedClsPrefix:e,appeared:u,showBadge:i,handleAfterEnter:d,handleAfterLeave:v,cssVars:a?void 0:m,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender,offsetStyle:x}},render(){var n;const{mergedClsPrefix:r,onRender:e,themeClass:a,$slots:o}=this;e==null||e();const t=(n=o.default)===null||n===void 0?void 0:n.call(o);return C("div",{class:[`${r}-badge`,this.rtlEnabled&&`${r}-badge--rtl`,a,{[`${r}-badge--dot`]:this.dot,[`${r}-badge--as-is`]:!t}],style:this.cssVars},t,C(Ct,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?C("sup",{class:`${r}-badge-sup`,title:kt(this.value),style:this.offsetStyle},Xe(o.value,()=>[this.dot?null:C(Gt,{clsPrefix:r,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?C(St,{clsPrefix:r}):null):null}))}}),zn=n=>le.request({method:"POST",url:"/GenerateReport/Generate_scheme",data:n,baseURL:me}),Rn=n=>le.request({method:"POST",url:"/GenerateReport/Generate_report",data:n,baseURL:me}),Un=n=>le.request({method:"POST",url:"/GenerateReport/Generate_inspect",data:n,baseURL:me}),Pn=n=>le.request({method:"POST",url:"/GenerateReport/Generate_key",data:n,timeout:5e3,baseURL:me}),On=n=>le.request({method:"POST",url:"/VerifyTemplateMapData/Copy",data:n,baseURL:It});var Je=globalThis&&globalThis.__extends||function(){var n=function(r,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var t in o)o.hasOwnProperty(t)&&(a[t]=o[t])},n(r,e)};return function(r,e){n(r,e);function a(){this.constructor=r}r.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}}(),S;(function(n){n.InvalidFile="InvalidFile",n.InvalidToken="InvalidToken",n.InvalidMetadata="InvalidMetadata",n.InvalidChunkSize="InvalidChunkSize",n.InvalidCustomVars="InvalidCustomVars",n.NotAvailableUploadHost="NotAvailableUploadHost",n.ReadCacheFailed="ReadCacheFailed",n.InvalidCacheData="InvalidCacheData",n.WriteCacheFailed="WriteCacheFailed",n.RemoveCacheFailed="RemoveCacheFailed",n.GetCanvasContextFailed="GetCanvasContextFailed",n.UnsupportedFileType="UnsupportedFileType",n.FileReaderReadFailed="FileReaderReadFailed",n.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",n.InvalidProgressEventTarget="InvalidProgressEventTarget",n.RequestError="RequestError"})(S||(S={}));var R=function(){function n(r,e){this.name=r,this.message=e,this.stack=new Error().stack}return n}(),ie=function(n){Je(r,n);function r(e,a,o,t){var u=n.call(this,S.RequestError,o)||this;return u.code=e,u.reqId=a,u.isRequestError=!0,u.data=t,u}return r}(R),or=function(n){Je(r,n);function r(e,a){return a===void 0&&(a=""),n.call(this,0,a,e)||this}return r}(ie),ar=function(){function n(r,e){this.runTask=r,this.limit=e,this.aborted=!1,this.queue=[],this.processing=[]}return n.prototype.enqueue=function(r){var e=this;return new Promise(function(a,o){e.queue.push({task:r,resolve:a,reject:o}),e.check()})},n.prototype.run=function(r){var e=this;this.queue=this.queue.filter(function(a){return a!==r}),this.processing.push(r),this.runTask(r.task).then(function(){e.processing=e.processing.filter(function(a){return a!==r}),r.resolve(),e.check()},function(a){return r.reject(a)})},n.prototype.check=function(){var r=this;if(!this.aborted){var e=this.processing.length,a=this.limit-e;this.queue.slice(0,a).forEach(function(o){r.run(o)})}},n.prototype.abort=function(){this.queue=[],this.aborted=!0},n}(),ir=globalThis&&globalThis.__extends||function(){var n=function(r,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var t in o)o.hasOwnProperty(t)&&(a[t]=o[t])},n(r,e)};return function(r,e){n(r,e);function a(){this.constructor=r}r.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}}(),oe=globalThis&&globalThis.__assign||function(){return oe=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},oe.apply(this,arguments)},sr=function(){function n(){this.closed=!1}return n.prototype.unsubscribe=function(){this.closed||(this.closed=!0,this._unsubscribe&&this._unsubscribe())},n.prototype.add=function(r){this._unsubscribe=r},n}(),lr=function(n){ir(r,n);function r(e,a,o){var t=n.call(this)||this;return t.isStopped=!1,e&&typeof e=="object"?t.destination=e:t.destination=oe(oe(oe({},e&&{next:e}),a&&{error:a}),o&&{complete:o}),t}return r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},r.prototype.next=function(e){!this.isStopped&&this.destination.next&&this.destination.next(e)},r.prototype.error=function(e){!this.isStopped&&this.destination.error&&(this.isStopped=!0,this.destination.error(e))},r.prototype.complete=function(e){!this.isStopped&&this.destination.complete&&(this.isStopped=!0,this.destination.complete(e))},r}(sr),ur=function(){function n(r){this._subscribe=r}return n.prototype.subscribe=function(r,e,a){var o=new lr(r,e,a);return o.add(this._subscribe(o)),o},n}();function cr(n){if(n===null||typeof n>"u")return"";var r=n+"",e="",a,o,t=0;a=o=0,t=r.length;for(var u=0;u<t;u++){var d=r.charCodeAt(u),v=null;if(d<128)o++;else if(d>127&&d<2048)v=String.fromCharCode(d>>6|192,d&63|128);else if((d&63488^55296)>0)v=String.fromCharCode(d>>12|224,d>>6&63|128,d&63|128);else{if((d&64512^55296)>0)throw new RangeError("Unmatched trail surrogate at "+u);var i=r.charCodeAt(++u);if((i&64512^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(u-1));d=((d&1023)<<10)+(i&1023)+65536,v=String.fromCharCode(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}v!==null&&(o>a&&(e+=r.slice(a,o)),e+=v,a=o=u+1)}return o>a&&(e+=r.slice(a,t)),e}function fr(n){var r=[],e=0,a=0,o=0;for(n+="";e<n.length;){a=n.charCodeAt(e)&255,o=0,a<=191?(a=a&127,o=1):a<=223?(a=a&31,o=2):a<=239?(a=a&15,o=3):(a=a&7,o=4);for(var t=1;t<o;++t)a=a<<6|n.charCodeAt(t+e)&63;o===4?(a-=65536,r.push(String.fromCharCode(55296|a>>10&1023)),r.push(String.fromCharCode(56320|a&1023))):r.push(String.fromCharCode(a)),e+=o}return r.join("")}function hr(n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e,a,o,t,u,d,v,i,h=0,m=0,w="",x=[];if(!n)return n;n=cr(n+"");do e=n.charCodeAt(h++),a=n.charCodeAt(h++),o=n.charCodeAt(h++),i=e<<16|a<<8|o,t=i>>18&63,u=i>>12&63,d=i>>6&63,v=i&63,x[m++]=r.charAt(t)+r.charAt(u)+r.charAt(d)+r.charAt(v);while(h<n.length);switch(w=x.join(""),n.length%3){case 1:w=w.slice(0,-2)+"==";break;case 2:w=w.slice(0,-1)+"=";break}return w}function dr(n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e,a,o,t,u,d,v,i,h=0,m=0,w="",x=[];if(!n)return n;n+="";do t=r.indexOf(n.charAt(h++)),u=r.indexOf(n.charAt(h++)),d=r.indexOf(n.charAt(h++)),v=r.indexOf(n.charAt(h++)),i=t<<18|u<<12|d<<6|v,e=i>>16&255,a=i>>8&255,o=i&255,d===64?x[m++]=String.fromCharCode(e):v===64?x[m++]=String.fromCharCode(e,a):x[m++]=String.fromCharCode(e,a,o);while(h<n.length);return w=x.join(""),fr(w)}function Ke(n){return n=hr(n),n.replace(/\//g,"_").replace(/\+/g,"-")}function pr(n){return n=n.replace(/_/g,"/").replace(/-/g,"+"),dr(n)}var Ze={exports:{}};(function(n,r){(function(e){n.exports=e()})(function(e){var a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(g,p){var s=g[0],l=g[1],f=g[2],c=g[3];s+=(l&f|~l&c)+p[0]-680876936|0,s=(s<<7|s>>>25)+l|0,c+=(s&l|~s&f)+p[1]-389564586|0,c=(c<<12|c>>>20)+s|0,f+=(c&s|~c&l)+p[2]+606105819|0,f=(f<<17|f>>>15)+c|0,l+=(f&c|~f&s)+p[3]-1044525330|0,l=(l<<22|l>>>10)+f|0,s+=(l&f|~l&c)+p[4]-176418897|0,s=(s<<7|s>>>25)+l|0,c+=(s&l|~s&f)+p[5]+1200080426|0,c=(c<<12|c>>>20)+s|0,f+=(c&s|~c&l)+p[6]-1473231341|0,f=(f<<17|f>>>15)+c|0,l+=(f&c|~f&s)+p[7]-45705983|0,l=(l<<22|l>>>10)+f|0,s+=(l&f|~l&c)+p[8]+1770035416|0,s=(s<<7|s>>>25)+l|0,c+=(s&l|~s&f)+p[9]-1958414417|0,c=(c<<12|c>>>20)+s|0,f+=(c&s|~c&l)+p[10]-42063|0,f=(f<<17|f>>>15)+c|0,l+=(f&c|~f&s)+p[11]-1990404162|0,l=(l<<22|l>>>10)+f|0,s+=(l&f|~l&c)+p[12]+1804603682|0,s=(s<<7|s>>>25)+l|0,c+=(s&l|~s&f)+p[13]-40341101|0,c=(c<<12|c>>>20)+s|0,f+=(c&s|~c&l)+p[14]-1502002290|0,f=(f<<17|f>>>15)+c|0,l+=(f&c|~f&s)+p[15]+1236535329|0,l=(l<<22|l>>>10)+f|0,s+=(l&c|f&~c)+p[1]-165796510|0,s=(s<<5|s>>>27)+l|0,c+=(s&f|l&~f)+p[6]-1069501632|0,c=(c<<9|c>>>23)+s|0,f+=(c&l|s&~l)+p[11]+643717713|0,f=(f<<14|f>>>18)+c|0,l+=(f&s|c&~s)+p[0]-373897302|0,l=(l<<20|l>>>12)+f|0,s+=(l&c|f&~c)+p[5]-701558691|0,s=(s<<5|s>>>27)+l|0,c+=(s&f|l&~f)+p[10]+38016083|0,c=(c<<9|c>>>23)+s|0,f+=(c&l|s&~l)+p[15]-660478335|0,f=(f<<14|f>>>18)+c|0,l+=(f&s|c&~s)+p[4]-405537848|0,l=(l<<20|l>>>12)+f|0,s+=(l&c|f&~c)+p[9]+568446438|0,s=(s<<5|s>>>27)+l|0,c+=(s&f|l&~f)+p[14]-1019803690|0,c=(c<<9|c>>>23)+s|0,f+=(c&l|s&~l)+p[3]-187363961|0,f=(f<<14|f>>>18)+c|0,l+=(f&s|c&~s)+p[8]+1163531501|0,l=(l<<20|l>>>12)+f|0,s+=(l&c|f&~c)+p[13]-1444681467|0,s=(s<<5|s>>>27)+l|0,c+=(s&f|l&~f)+p[2]-51403784|0,c=(c<<9|c>>>23)+s|0,f+=(c&l|s&~l)+p[7]+1735328473|0,f=(f<<14|f>>>18)+c|0,l+=(f&s|c&~s)+p[12]-1926607734|0,l=(l<<20|l>>>12)+f|0,s+=(l^f^c)+p[5]-378558|0,s=(s<<4|s>>>28)+l|0,c+=(s^l^f)+p[8]-2022574463|0,c=(c<<11|c>>>21)+s|0,f+=(c^s^l)+p[11]+1839030562|0,f=(f<<16|f>>>16)+c|0,l+=(f^c^s)+p[14]-35309556|0,l=(l<<23|l>>>9)+f|0,s+=(l^f^c)+p[1]-1530992060|0,s=(s<<4|s>>>28)+l|0,c+=(s^l^f)+p[4]+1272893353|0,c=(c<<11|c>>>21)+s|0,f+=(c^s^l)+p[7]-155497632|0,f=(f<<16|f>>>16)+c|0,l+=(f^c^s)+p[10]-1094730640|0,l=(l<<23|l>>>9)+f|0,s+=(l^f^c)+p[13]+681279174|0,s=(s<<4|s>>>28)+l|0,c+=(s^l^f)+p[0]-358537222|0,c=(c<<11|c>>>21)+s|0,f+=(c^s^l)+p[3]-722521979|0,f=(f<<16|f>>>16)+c|0,l+=(f^c^s)+p[6]+76029189|0,l=(l<<23|l>>>9)+f|0,s+=(l^f^c)+p[9]-640364487|0,s=(s<<4|s>>>28)+l|0,c+=(s^l^f)+p[12]-421815835|0,c=(c<<11|c>>>21)+s|0,f+=(c^s^l)+p[15]+530742520|0,f=(f<<16|f>>>16)+c|0,l+=(f^c^s)+p[2]-995338651|0,l=(l<<23|l>>>9)+f|0,s+=(f^(l|~c))+p[0]-198630844|0,s=(s<<6|s>>>26)+l|0,c+=(l^(s|~f))+p[7]+1126891415|0,c=(c<<10|c>>>22)+s|0,f+=(s^(c|~l))+p[14]-1416354905|0,f=(f<<15|f>>>17)+c|0,l+=(c^(f|~s))+p[5]-57434055|0,l=(l<<21|l>>>11)+f|0,s+=(f^(l|~c))+p[12]+1700485571|0,s=(s<<6|s>>>26)+l|0,c+=(l^(s|~f))+p[3]-1894986606|0,c=(c<<10|c>>>22)+s|0,f+=(s^(c|~l))+p[10]-1051523|0,f=(f<<15|f>>>17)+c|0,l+=(c^(f|~s))+p[1]-2054922799|0,l=(l<<21|l>>>11)+f|0,s+=(f^(l|~c))+p[8]+1873313359|0,s=(s<<6|s>>>26)+l|0,c+=(l^(s|~f))+p[15]-30611744|0,c=(c<<10|c>>>22)+s|0,f+=(s^(c|~l))+p[6]-1560198380|0,f=(f<<15|f>>>17)+c|0,l+=(c^(f|~s))+p[13]+1309151649|0,l=(l<<21|l>>>11)+f|0,s+=(f^(l|~c))+p[4]-145523070|0,s=(s<<6|s>>>26)+l|0,c+=(l^(s|~f))+p[11]-1120210379|0,c=(c<<10|c>>>22)+s|0,f+=(s^(c|~l))+p[2]+718787259|0,f=(f<<15|f>>>17)+c|0,l+=(c^(f|~s))+p[9]-343485551|0,l=(l<<21|l>>>11)+f|0,g[0]=s+g[0]|0,g[1]=l+g[1]|0,g[2]=f+g[2]|0,g[3]=c+g[3]|0}function t(g){var p=[],s;for(s=0;s<64;s+=4)p[s>>2]=g.charCodeAt(s)+(g.charCodeAt(s+1)<<8)+(g.charCodeAt(s+2)<<16)+(g.charCodeAt(s+3)<<24);return p}function u(g){var p=[],s;for(s=0;s<64;s+=4)p[s>>2]=g[s]+(g[s+1]<<8)+(g[s+2]<<16)+(g[s+3]<<24);return p}function d(g){var p=g.length,s=[1732584193,-271733879,-1732584194,271733878],l,f,c,T,U,E;for(l=64;l<=p;l+=64)o(s,t(g.substring(l-64,l)));for(g=g.substring(l-64),f=g.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=0;l<f;l+=1)c[l>>2]|=g.charCodeAt(l)<<(l%4<<3);if(c[l>>2]|=128<<(l%4<<3),l>55)for(o(s,c),l=0;l<16;l+=1)c[l]=0;return T=p*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),U=parseInt(T[2],16),E=parseInt(T[1],16)||0,c[14]=U,c[15]=E,o(s,c),s}function v(g){var p=g.length,s=[1732584193,-271733879,-1732584194,271733878],l,f,c,T,U,E;for(l=64;l<=p;l+=64)o(s,u(g.subarray(l-64,l)));for(g=l-64<p?g.subarray(l-64):new Uint8Array(0),f=g.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=0;l<f;l+=1)c[l>>2]|=g[l]<<(l%4<<3);if(c[l>>2]|=128<<(l%4<<3),l>55)for(o(s,c),l=0;l<16;l+=1)c[l]=0;return T=p*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),U=parseInt(T[2],16),E=parseInt(T[1],16)||0,c[14]=U,c[15]=E,o(s,c),s}function i(g){var p="",s;for(s=0;s<4;s+=1)p+=a[g>>s*8+4&15]+a[g>>s*8&15];return p}function h(g){var p;for(p=0;p<g.length;p+=1)g[p]=i(g[p]);return g.join("")}h(d("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function g(p,s){return p=p|0||0,p<0?Math.max(p+s,0):Math.min(p,s)}ArrayBuffer.prototype.slice=function(p,s){var l=this.byteLength,f=g(p,l),c=l,T,U,E,j;return s!==e&&(c=g(s,l)),f>c?new ArrayBuffer(0):(T=c-f,U=new ArrayBuffer(T),E=new Uint8Array(U),j=new Uint8Array(this,f,T),E.set(j),U)}}();function m(g){return/[\u0080-\uFFFF]/.test(g)&&(g=unescape(encodeURIComponent(g))),g}function w(g,p){var s=g.length,l=new ArrayBuffer(s),f=new Uint8Array(l),c;for(c=0;c<s;c+=1)f[c]=g.charCodeAt(c);return p?f:l}function x(g){return String.fromCharCode.apply(null,new Uint8Array(g))}function _(g,p,s){var l=new Uint8Array(g.byteLength+p.byteLength);return l.set(new Uint8Array(g)),l.set(new Uint8Array(p),g.byteLength),s?l:l.buffer}function I(g){var p=[],s=g.length,l;for(l=0;l<s-1;l+=2)p.push(parseInt(g.substr(l,2),16));return String.fromCharCode.apply(String,p)}function y(){this.reset()}return y.prototype.append=function(g){return this.appendBinary(m(g)),this},y.prototype.appendBinary=function(g){this._buff+=g,this._length+=g.length;var p=this._buff.length,s;for(s=64;s<=p;s+=64)o(this._hash,t(this._buff.substring(s-64,s)));return this._buff=this._buff.substring(s-64),this},y.prototype.end=function(g){var p=this._buff,s=p.length,l,f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c;for(l=0;l<s;l+=1)f[l>>2]|=p.charCodeAt(l)<<(l%4<<3);return this._finish(f,s),c=h(this._hash),g&&(c=I(c)),this.reset(),c},y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},y.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},y.prototype._finish=function(g,p){var s=p,l,f,c;if(g[s>>2]|=128<<(s%4<<3),s>55)for(o(this._hash,g),s=0;s<16;s+=1)g[s]=0;l=this._length*8,l=l.toString(16).match(/(.*?)(.{0,8})$/),f=parseInt(l[2],16),c=parseInt(l[1],16)||0,g[14]=f,g[15]=c,o(this._hash,g)},y.hash=function(g,p){return y.hashBinary(m(g),p)},y.hashBinary=function(g,p){var s=d(g),l=h(s);return p?I(l):l},y.ArrayBuffer=function(){this.reset()},y.ArrayBuffer.prototype.append=function(g){var p=_(this._buff.buffer,g,!0),s=p.length,l;for(this._length+=g.byteLength,l=64;l<=s;l+=64)o(this._hash,u(p.subarray(l-64,l)));return this._buff=l-64<s?new Uint8Array(p.buffer.slice(l-64)):new Uint8Array(0),this},y.ArrayBuffer.prototype.end=function(g){var p=this._buff,s=p.length,l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f,c;for(f=0;f<s;f+=1)l[f>>2]|=p[f]<<(f%4<<3);return this._finish(l,s),c=h(this._hash),g&&(c=I(c)),this.reset(),c},y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},y.ArrayBuffer.prototype.getState=function(){var g=y.prototype.getState.call(this);return g.buff=x(g.buff),g},y.ArrayBuffer.prototype.setState=function(g){return g.buff=w(g.buff,!0),y.prototype.setState.call(this,g)},y.ArrayBuffer.prototype.destroy=y.prototype.destroy,y.ArrayBuffer.prototype._finish=y.prototype._finish,y.ArrayBuffer.hash=function(g,p){var s=v(new Uint8Array(g)),l=h(s);return p?I(l):l},y})})(Ze);var gr=Ze.exports;const vr=At(gr);var pe=globalThis&&globalThis.__assign||function(){return pe=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},pe.apply(this,arguments)},mr=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},br=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Z=Math.pow(1024,2);function yr(n,r){var e=r*Z;if(e>n.size)e=n.size;else for(;n.size>e*1e4;)e*=2;for(var a=[],o=Math.ceil(n.size/e),t=0;t<o;t++){var u=n.slice(e*t,t===o-1?n.size:e*(t+1));a.push(u)}return a}function _r(n){return Object.keys(n).every(function(r){return r.indexOf("x-qn-meta-")===0})}function wr(n){return Object.keys(n).every(function(r){return r.indexOf("x:")===0})}function xr(n){return n.reduce(function(r,e){return r+e},0)}function Tr(n,r,e){try{localStorage.setItem(n,JSON.stringify(r))}catch{e.warn(new R(S.WriteCacheFailed,"setLocalFileInfo failed: "+n))}}function Cr(n,r,e){var a=r==null?"_":"_key_"+r+"_";return"qiniu_js_sdk_upload_file_name_"+n+a+"size_"+e}function Se(n,r){try{localStorage.removeItem(n)}catch{r.warn(new R(S.RemoveCacheFailed,"removeLocalFileInfo failed. key: "+n))}}function kr(n,r){var e=null;try{e=localStorage.getItem(n)}catch{r.warn(new R(S.ReadCacheFailed,"getLocalFileInfo failed. key: "+n))}if(e==null)return null;var a=null;try{a=JSON.parse(e)}catch{Se(n,r),r.warn(new R(S.InvalidCacheData,"getLocalFileInfo failed to parse. key: "+n))}return a}function ye(n){var r="UpToken "+n;return{Authorization:r}}function Sr(n){var r=ye(n);return pe({"content-type":"application/octet-stream"},r)}function Ir(n){var r=ye(n);return pe({"content-type":"application/json"},r)}function Qe(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new window.ActiveXObject("Microsoft.XMLHTTP");throw new R(S.NotAvailableXMLHttpRequest,"the current environment does not support.")}function Ar(n){return mr(this,void 0,void 0,function(){var r,e;return br(this,function(a){switch(a.label){case 0:return[4,zr(n)];case 1:return r=a.sent(),e=new vr.ArrayBuffer,e.append(r),[2,e.end()]}})})}function zr(n){return new Promise(function(r,e){var a=new FileReader;a.onload=function(o){if(o.target){var t=o.target.result;r(t)}else e(new R(S.InvalidProgressEventTarget,"progress event target is undefined"))},a.onerror=function(){e(new R(S.FileReaderReadFailed,"fileReader read failed"))},a.readAsArrayBuffer(n)})}function ue(n,r){return new Promise(function(e,a){var o=Qe();if(o.open(r.method,n),r.onCreate&&r.onCreate(o),r.headers){var t=r.headers;Object.keys(t).forEach(function(u){o.setRequestHeader(u,t[u])})}o.upload.addEventListener("progress",function(u){u.lengthComputable&&r.onProgress&&r.onProgress({loaded:u.loaded,total:u.total})}),o.onreadystatechange=function(){var u=o.responseText;if(o.readyState===4){var d=o.getResponseHeader("x-reqId")||"";if(o.status===0){a(new or("network error.",d));return}if(o.status!==200){var v="xhr request failed, code: "+o.status;u&&(v+=" response: "+u);var i=void 0;try{i=JSON.parse(u)}catch{}a(new ie(o.status,d,v,i));return}try{e({data:JSON.parse(u),reqId:d})}catch(h){a(h)}}},o.send(r.body)})}function Rr(n){if(n&&n.match){var r=n.match(/(^https?)/);if(!r)return"";var e=r[1];return r=n.match(/^https?:\/\/([^:^/]*):(\d*)/),r?r[2]:e==="http"?"80":"443"}return""}function Ur(n){if(n&&n.match){var r=n.match(/^https?:\/\/([^:^/]*)/);return r?r[1]:""}return""}function Ie(n){if(!n)throw new R(S.InvalidToken,"invalid token.");var r=n.split(":");if(r.length===1)throw new R(S.InvalidToken,"invalid token segments.");var e=r.length>3?r[1]:r[0];if(!e)throw new R(S.InvalidToken,"missing assess key field.");var a=null;try{a=JSON.parse(pr(r[r.length-1]))}catch{throw new R(S.InvalidToken,"token parse failed.")}if(a==null)throw new R(S.InvalidToken,"putPolicy is null.");if(a.scope==null)throw new R(S.InvalidToken,"scope field is null.");var o=a.scope.split(":")[0];if(!o)throw new R(S.InvalidToken,"resolve bucketName failed.");return{assessKey:e,bucketName:o,scope:a.scope}}var G,K={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},Pr=(G={},G[K.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},G[K.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},G[K.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},G[K.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},G[K.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},G[K.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},G),te=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}},Or=function(n,r,e,a){return r=r||"&",e=e||"=",n===null&&(n=void 0),typeof n=="object"?Object.keys(n).map(function(o){var t=encodeURIComponent(te(o))+e;return Array.isArray(n[o])?n[o].map(function(u){return t+encodeURIComponent(te(u))}).join(r):t+encodeURIComponent(te(n[o]))}).filter(Boolean).join(r):a?encodeURIComponent(te(a))+e+encodeURIComponent(te(n)):""},et;et=Or;var Y=globalThis&&globalThis.__assign||function(){return Y=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},Y.apply(this,arguments)},Lr=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},$r=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function Er(n,r,e){return Lr(this,void 0,void 0,function(){var a,o;return $r(this,function(t){return a=et({ak:n,bucket:r}),o=e+"://api.qiniu.com/v2/query?"+a,[2,ue(o,{method:"GET"})]})})}function tt(n,r,e){var a=e.url,o=e.id;return a+"/buckets/"+n+"/objects/"+(r!=null?Ke(r):"~")+"/uploads/"+o}function Fr(n,r,e,a){var o=a+"/buckets/"+r+"/objects/"+(e!=null?Ke(e):"~")+"/uploads";return ue(o,{method:"POST",headers:ye(n)})}function Br(n,r,e,a,o){var t=Ie(n).bucketName,u=tt(t,r,a)+("/"+e),d=Sr(n);return o.md5&&(d["Content-MD5"]=o.md5),ue(u,Y(Y({},o),{method:"PUT",headers:d}))}function Hr(n,r,e,a){var o=Ie(n).bucketName,t=tt(o,r,e);return ue(t,Y(Y({},a),{method:"POST",headers:Ir(n)}))}function Dr(n,r,e){return ue(n,Y({method:"POST",body:r},e))}var ge=globalThis&&globalThis.__assign||function(){return ge=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},ge.apply(this,arguments)},Oe=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},Le=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Mr=globalThis&&globalThis.__read||function(n,r){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),o,t=[],u;try{for(;(r===void 0||r-- >0)&&!(o=a.next()).done;)t.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(u)throw u.error}}return t},qr=globalThis&&globalThis.__spread||function(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(Mr(arguments[r]));return n},Vr=4,rt=[0,502,503,504,599],jr=qr(rt,[612]),Nr=Math.pow(1024,3),nt=function(){function n(r,e,a,o){this.hostPool=a,this.logger=o,this.aborted=!1,this.retryCount=0,this.xhrList=[],this.config=r.config,o.info("config inited.",this.config),this.putExtra=ge({fname:""},r.putExtra),o.info("putExtra inited.",this.putExtra),this.key=r.key,this.file=r.file,this.token=r.token,this.onData=e.onData,this.onError=e.onError,this.onComplete=e.onComplete;try{var t=Ie(this.token);this.bucketName=t.bucketName,this.assessKey=t.assessKey}catch(u){o.error("get putPolicy from token failed.",u),this.onError(u)}}return n.prototype.checkAndUpdateUploadHost=function(){return Oe(this,void 0,void 0,function(){var r;return Le(this,function(e){switch(e.label){case 0:return this.logger.info("get available upload host."),[4,this.hostPool.getUp(this.assessKey,this.bucketName,this.config.upprotocol)];case 1:if(r=e.sent(),r==null)throw new R(S.NotAvailableUploadHost,"no available upload host.");return this.uploadHost!=null&&this.uploadHost.host!==r.host?this.logger.warn("host switches from "+this.uploadHost.host+" to "+r.host+"."):this.logger.info("use host "+r.host+"."),this.uploadHost=r,[2]}})})},n.prototype.checkAndUnfreezeHost=function(){this.logger.info("check unfreeze host."),this.uploadHost!=null&&this.uploadHost.isFrozen()&&(this.logger.warn(this.uploadHost.host+" will be unfrozen."),this.uploadHost.unfreeze())},n.prototype.checkAndFreezeHost=function(r){this.logger.info("check freeze host."),r instanceof ie&&this.uploadHost!=null&&rt.includes(r.code)&&(this.logger.warn(this.uploadHost.host+" will be temporarily frozen."),this.uploadHost.freeze())},n.prototype.handleError=function(r){this.logger.error(r.message),this.onError(r)},n.prototype.putFile=function(){return Oe(this,void 0,void 0,function(){var r,e,a,o;return Le(this,function(t){switch(t.label){case 0:if(this.aborted=!1,this.putExtra.fname||(this.logger.info("use file.name as fname."),this.putExtra.fname=this.file.name),this.file.size>1e4*Nr)return this.handleError(new R(S.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!wr(this.putExtra.customVars))return this.handleError(new R(S.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!_r(this.putExtra.metadata))return this.handleError(new R(S.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];t.label=1;case 1:return t.trys.push([1,4,,5]),this.uploadAt=new Date().getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return t.sent(),[4,this.run()];case 3:return r=t.sent(),this.onComplete(r.data),this.checkAndUnfreezeHost(),this.sendLog(r.reqId,200),[2];case 4:return e=t.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(e),e instanceof ie&&(this.sendLog(e.reqId,e.code),this.checkAndFreezeHost(e),a=++this.retryCount<=this.config.retryCount,o=jr.includes(e.code),o&&a)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(e),[3,5]));case 5:return[2]}})})},n.prototype.clear=function(){this.xhrList.forEach(function(r){r.onreadystatechange=null,r.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},n.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},n.prototype.addXhr=function(r){this.xhrList.push(r)},n.prototype.sendLog=function(r,e){var a,o;this.logger.report({code:e,reqId:r,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:Rr((a=this.uploadHost)===null||a===void 0?void 0:a.getUrl()),host:Ur((o=this.uploadHost)===null||o===void 0?void 0:o.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor((new Date().getTime()-this.uploadAt)/1e3)})},n.prototype.getProgressInfoItem=function(r,e,a){return ge({size:e,loaded:r,percent:r/e*100},a==null?{}:{fromCache:a})},n}(),Wr=globalThis&&globalThis.__extends||function(){var n=function(r,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var t in o)o.hasOwnProperty(t)&&(a[t]=o[t])},n(r,e)};return function(r,e){n(r,e);function a(){this.constructor=r}r.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}}(),ae=globalThis&&globalThis.__assign||function(){return ae=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},ae.apply(this,arguments)},re=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},ne=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function Gr(n){var r=/^[1-9]\d*$/;return r.test(String(n))}var Xr=function(n){Wr(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.run=function(){return re(this,void 0,void 0,function(){var e,a,o,t,u,d=this;return ne(this,function(v){switch(v.label){case 0:if(this.logger.info("start run Resume."),!this.config.chunkSize||!Gr(this.config.chunkSize))throw new R(S.InvalidChunkSize,"chunkSize must be a positive integer");if(this.config.chunkSize>1024)throw new R(S.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:v.sent(),e=new ar(function(i){return re(d,void 0,void 0,function(){return ne(this,function(h){switch(h.label){case 0:if(this.aborted)throw e.abort(),new Error("pool is aborted");return[4,this.uploadChunk(i)];case 1:return h.sent(),[2]}})})},this.config.concurrentRequestLimit),a=null,o=this.getLocalKey(),t=this.chunks.map(function(i,h){return e.enqueue({chunk:i,index:h})}),v.label=2;case 2:return v.trys.push([2,5,,6]),[4,Promise.all(t)];case 3:return v.sent(),[4,this.mkFileReq()];case 4:return a=v.sent(),[3,6];case 5:throw u=v.sent(),u instanceof ie&&(u.code===612||u.code===400)&&Se(o,this.logger),u;case 6:return Se(o,this.logger),[2,a]}})})},r.prototype.uploadChunk=function(e){return re(this,void 0,void 0,function(){var a,o,t,u,d,v,i,h,m,w=this;return ne(this,function(x){switch(x.label){case 0:return a=e.index,o=e.chunk,t=this.cachedUploadedList[a],this.logger.info("upload part "+a+", cache:",t),u=this.config.checkByMD5,d=function(){w.usedCacheList[a]=!0,w.updateChunkProgress(o.size,a),w.uploadedList[a]=t,w.updateLocalCache()},t&&!u?(d(),[2]):[4,Ar(o)];case 1:return v=x.sent(),this.logger.info("computed part md5.",v),t&&v===t.md5?(d(),[2]):(this.usedCacheList[a]=!1,i=function(_){w.updateChunkProgress(_.loaded,a)},h={body:o,md5:this.config.checkByServer?v:void 0,onProgress:i,onCreate:function(_){return w.addXhr(_)}},this.logger.info("part "+a+" start uploading."),[4,Br(this.token,this.key,e.index+1,this.getUploadInfo(),h)]);case 2:return m=x.sent(),this.logger.info("part "+a+" upload completed."),i({loaded:o.size,total:o.size}),this.uploadedList[a]={etag:m.data.etag,md5:m.data.md5,size:o.size},this.updateLocalCache(),[2]}})})},r.prototype.mkFileReq=function(){return re(this,void 0,void 0,function(){var e,a,o=this;return ne(this,function(t){switch(t.label){case 0:return e=ae(ae(ae({parts:this.uploadedList.map(function(u,d){return{etag:u.etag,partNumber:d+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",e),[4,Hr(this.token,this.key,this.getUploadInfo(),{onCreate:function(u){return o.addXhr(u)},body:JSON.stringify(e)})];case 1:return a=t.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,a]}})})},r.prototype.initBeforeUploadChunks=function(){return re(this,void 0,void 0,function(){var e,a,o;return ne(this,function(t){switch(t.label){case 0:return this.uploadedList=[],this.usedCacheList=[],e=kr(this.getLocalKey(),this.logger),e?[3,2]:(this.logger.info("init upload parts from api."),[4,Fr(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return a=t.sent(),this.logger.info("initd upload parts of id: "+a.data.uploadId+"."),this.uploadId=a.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:o=["resume upload parts from local cache,","total "+e.data.length+" part,","id is "+e.id+"."],this.logger.info(o.join(" ")),this.cachedUploadedList=e.data,this.uploadId=e.id,t.label=3;case 3:return this.chunks=yr(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(u){return 0})},this.notifyResumeProgress(),[2]}})})},r.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},r.prototype.getLocalKey=function(){return Cr(this.file.name,this.key,this.file.size)},r.prototype.updateLocalCache=function(){Tr(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},r.prototype.updateChunkProgress=function(e,a){this.loaded.chunks[a]=e,this.notifyResumeProgress()},r.prototype.updateMkFileProgress=function(e){this.loaded.mkFileProgress=e,this.notifyResumeProgress()},r.prototype.notifyResumeProgress=function(){var e=this;this.progress={total:this.getProgressInfoItem(xr(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(a,o){var t=e.usedCacheList[o];return e.getProgressInfoItem(e.loaded.chunks[o],a.size,t)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},r}(nt),$e=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},Ee=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Yr=function(){function n(){this.crc=-1,this.table=this.makeTable()}return n.prototype.makeTable=function(){for(var r=new Array,e=0;e<256;e++){for(var a=e,o=0;o<8;o++)a&1?a=a>>>1^3988292384:a>>>=1;r[e]=a}return r},n.prototype.append=function(r){for(var e=this.crc,a=0;a<r.byteLength;a++)e=e>>>8^this.table[(e^r[a])&255];this.crc=e},n.prototype.compute=function(){return(this.crc^-1)>>>0},n.prototype.readAsUint8Array=function(r){return $e(this,void 0,void 0,function(){var e;return Ee(this,function(a){switch(a.label){case 0:return typeof r.arrayBuffer!="function"?[3,2]:(e=Uint8Array.bind,[4,r.arrayBuffer()]);case 1:return[2,new(e.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[2,new Promise(function(o,t){var u=new FileReader;u.onload=function(){if(u.result==null){t();return}if(typeof u.result=="string"){t();return}o(new Uint8Array(u.result))},u.readAsArrayBuffer(r)})]}})})},n.prototype.file=function(r){return $e(this,void 0,void 0,function(){var e,a,o,t,u,d;return Ee(this,function(v){switch(v.label){case 0:return r.size<=Z?(e=this.append,[4,this.readAsUint8Array(r)]):[3,2];case 1:return e.apply(this,[v.sent()]),[2,this.compute()];case 2:a=Math.ceil(r.size/Z),o=0,v.label=3;case 3:return o<a?(t=o*Z,u=o===a-1?r.size:t+Z,[4,this.readAsUint8Array(r.slice(t,u))]):[3,6];case 4:d=v.sent(),this.append(new Uint8Array(d)),v.label=5;case 5:return o++,[3,3];case 6:return[2,this.compute()]}})})},n.file=function(r){var e=new n;return e.file(r)},n}(),Jr=globalThis&&globalThis.__extends||function(){var n=function(r,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var t in o)o.hasOwnProperty(t)&&(a[t]=o[t])},n(r,e)};return function(r,e){n(r,e);function a(){this.constructor=r}r.prototype=e===null?Object.create(e):(a.prototype=e.prototype,new a)}}(),Kr=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},Zr=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},Fe=function(n){Jr(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.run=function(){return Kr(this,void 0,void 0,function(){var e,a,o,t,u=this;return Zr(this,function(d){switch(d.label){case 0:return this.logger.info("start run Direct."),e=new FormData,e.append("file",this.file),e.append("token",this.token),this.key!=null&&e.append("key",this.key),e.append("fname",this.putExtra.fname),this.config.checkByServer?[4,Yr.file(this.file)]:[3,2];case 1:a=d.sent(),e.append("crc32",a.toString()),d.label=2;case 2:return this.putExtra.customVars&&(this.logger.info("init customVars."),o=this.putExtra.customVars,Object.keys(o).forEach(function(v){return e.append(v,o[v].toString())}),this.logger.info("customVars inited.")),this.logger.info("formData inited."),[4,Dr(this.uploadHost.getUrl(),e,{onProgress:function(v){u.updateDirectProgress(v.loaded,v.total)},onCreate:function(v){return u.addXhr(v)}})];case 3:return t=d.sent(),this.logger.info("Direct progress finish."),this.finishDirectProgress(),[2,t]}})})},r.prototype.updateDirectProgress=function(e,a){this.progress={total:this.getProgressInfoItem(e,a+1)},this.onData(this.progress)},r.prototype.finishDirectProgress=function(){if(!this.progress){this.logger.warn("progress is null."),this.progress={total:this.getProgressInfoItem(this.file.size,this.file.size)},this.onData(this.progress);return}var e=this.progress.total;this.progress={total:this.getProgressInfoItem(e.loaded+1,e.size)},this.onData(this.progress)},r}(nt);function ot(n,r,e){e===void 0&&(e=3);var a=Qe();a.open("POST","https://uplog.qbox.me/log/3"),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.setRequestHeader("Authorization",ye(n).Authorization),a.onreadystatechange=function(){a.readyState===4&&a.status!==200&&e>0&&ot(n,r,e-1)};var o=[r.code||"",r.reqId||"",r.host||"",r.remoteIp||"",r.port||"",r.duration||"",r.time||"",r.bytesSent||"",r.upType||"",r.size||""].join(",");a.send(o)}var Qr=globalThis&&globalThis.__read||function(n,r){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),o,t=[],u;try{for(;(r===void 0||r-- >0)&&!(o=a.next()).done;)t.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(u)throw u.error}}return t},Te=globalThis&&globalThis.__spread||function(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(Qr(arguments[r]));return n},en=function(){function n(r,e,a,o){e===void 0&&(e=!0),a===void 0&&(a="OFF"),o===void 0&&(o="UPLOAD"),this.token=r,this.disableReport=e,this.level=a,this.prefix=o,this.id=++n.id}return n.prototype.getPrintPrefix=function(r){return"Qiniu-JS-SDK ["+r+"]["+this.prefix+"#"+this.id+"]:"},n.prototype.report=function(r,e){if(!this.disableReport)try{ot(this.token,r,e)}catch(a){this.warn(a)}},n.prototype.info=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var a=["INFO"];a.includes(this.level)&&console.log.apply(console,Te([this.getPrintPrefix("INFO")],r))},n.prototype.warn=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var a=["INFO","WARN"];a.includes(this.level)&&console.warn.apply(console,Te([this.getPrintPrefix("WARN")],r))},n.prototype.error=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var a=["INFO","WARN","ERROR"];a.includes(this.level)&&console.error.apply(console,Te([this.getPrintPrefix("ERROR")],r))},n.id=0,n}(),Be=globalThis&&globalThis.__awaiter||function(n,r,e,a){function o(t){return t instanceof e?t:new e(function(u){u(t)})}return new(e||(e=Promise))(function(t,u){function d(h){try{i(a.next(h))}catch(m){u(m)}}function v(h){try{i(a.throw(h))}catch(m){u(m)}}function i(h){h.done?t(h.value):o(h.value).then(d,v)}i((a=a.apply(n,r||[])).next())})},He=globalThis&&globalThis.__generator||function(n,r){var e={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},a,o,t,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(i){return function(h){return v([i,h])}}function v(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,o&&(t=i[0]&2?o.return:i[0]?o.throw||((t=o.return)&&t.call(o),0):o.next)&&!(t=t.call(o,i[1])).done)return t;switch(o=0,t&&(i=[i[0]&2,t.value]),i[0]){case 0:case 1:t=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,o=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(t=e.trys,!(t=t.length>0&&t[t.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!t||i[1]>t[0]&&i[1]<t[3])){e.label=i[1];break}if(i[0]===6&&e.label<t[1]){e.label=t[1],t=i;break}if(t&&e.label<t[2]){e.label=t[2],e.ops.push(i);break}t[2]&&e.ops.pop(),e.trys.pop();continue}i=r.call(n,e)}catch(h){i=[6,h],o=0}finally{a=t=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},tn=globalThis&&globalThis.__read||function(n,r){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),o,t=[],u;try{for(;(r===void 0||r-- >0)&&!(o=a.next()).done;)t.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(u)throw u.error}}return t},rn=globalThis&&globalThis.__spread||function(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(tn(arguments[r]));return n},he=new Map,nn=function(){function n(r,e){this.host=r,this.protocol=e}return n.prototype.isFrozen=function(){var r=new Date().getTime(),e=he.get(this.host);return e!=null&&e>=r},n.prototype.freeze=function(r){r===void 0&&(r=20);var e=new Date().getTime()+r*1e3;he.set(this.host,e)},n.prototype.unfreeze=function(){he.delete(this.host)},n.prototype.getUrl=function(){return this.protocol+"://"+this.host},n.prototype.getUnfreezeTime=function(){return he.get(this.host)},n}(),on=function(){function n(r){r===void 0&&(r=[]),this.initHosts=r,this.cachedHostsMap=new Map}return n.prototype.register=function(r,e,a,o){this.cachedHostsMap.set(r+"@"+e,a.map(function(t){return new nn(t,o)}))},n.prototype.refresh=function(r,e,a){var o,t,u,d;return Be(this,void 0,void 0,function(){var v,i,h;return He(this,function(m){switch(m.label){case 0:return v=this.cachedHostsMap.get(r+"@"+e)||[],v.length>0?[2]:this.initHosts.length>0?(this.register(r,e,this.initHosts,a),[2]):[4,Er(r,e,a)];case 1:return i=m.sent(),(i==null?void 0:i.data)!=null&&(h=rn(((t=(o=i.data.up)===null||o===void 0?void 0:o.acc)===null||t===void 0?void 0:t.main)||[],((d=(u=i.data.up)===null||u===void 0?void 0:u.acc)===null||d===void 0?void 0:d.backup)||[]),this.register(r,e,h,a)),[2]}})})},n.prototype.getUp=function(r,e,a){return Be(this,void 0,void 0,function(){var o,t,u;return He(this,function(d){switch(d.label){case 0:return[4,this.refresh(r,e,a)];case 1:return d.sent(),o=this.cachedHostsMap.get(r+"@"+e)||[],o.length===0?[2,null]:(t=o.filter(function(v){return!v.isFrozen()}),t.length>0?[2,t[0]]:(u=o.slice().sort(function(v,i){return(v.getUnfreezeTime()||0)-(i.getUnfreezeTime()||0)}),[2,u[0]]))}})})},n}();function an(n,r,e,a){return n.config&&n.config.forceDirect?(a.info("ues forceDirect mode."),new Fe(n,r,e,a)):n.file.size>4*Z?(a.info("file size over 4M, use Resume."),new Xr(n,r,e,a)):(a.info("file size less or equal than 4M, use Direct."),new Fe(n,r,e,a))}function sn(n,r,e,a,o){var t=new en(e,o==null?void 0:o.disableStatisticsReport,o==null?void 0:o.debugLogLevel,n.name),u={file:n,key:r,token:e,putExtra:a,config:cn(o,t)},d=new on(u.config.uphost);return new ur(function(v){var i=an(u,{onData:function(h){return v.next(h)},onError:function(h){return v.error(h)},onComplete:function(h){return v.complete(h)}},d,t);return i.putFile(),i.stop.bind(i)})}var Q=globalThis&&globalThis.__assign||function(){return Q=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},Q.apply(this,arguments)},ln=globalThis&&globalThis.__rest||function(n,r){var e={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&r.indexOf(a)<0&&(e[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(n);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(n,a[o])&&(e[a[o]]=n[a[o]]);return e},un=globalThis&&globalThis.__read||function(n,r){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),o,t=[],u;try{for(;(r===void 0||r-- >0)&&!(o=a.next()).done;)t.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(u)throw u.error}}return t},Ce=globalThis&&globalThis.__spread||function(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(un(arguments[r]));return n};function cn(n,r){var e=Q({},n),a=e.upprotocol,o=e.uphost,t=ln(e,["upprotocol","uphost"]),u=Q({uphost:[],retryCount:3,checkByMD5:!1,forceDirect:!1,useCdnDomain:!0,checkByServer:!1,concurrentRequestLimit:3,chunkSize:Vr,upprotocol:"https",debugLogLevel:"OFF",disableStatisticsReport:!1},t);a&&(u.upprotocol=a.replace(/:$/,""));var d=[];if(r&&(n==null?void 0:n.uphost)!=null&&(n==null?void 0:n.region)!=null&&r.warn("do not use both the uphost and region config."),o)Array.isArray(o)?d.push.apply(d,Ce(o)):d.push(o);else if(u!=null&&u.region){var v=Pr[u==null?void 0:u.region];u.useCdnDomain?d.push.apply(d,Ce(v.cdnUphost)):d.push.apply(d,Ce(v.srcUphost))}return Q(Q({},u),{uphost:d.filter(Boolean)})}var De=globalThis&&globalThis.__assign||function(){return De=Object.assign||function(n){for(var r,e=1,a=arguments.length;e<a;e++){r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},De.apply(this,arguments)};globalThis&&globalThis.__awaiter;globalThis&&globalThis.__generator;var Me={PNG:"image/png",JPEG:"image/jpeg",WEBP:"image/webp",BMP:"image/bmp"};Object.keys(Me).map(function(n){return Me[n]});const fn=async n=>{const{data:r}=await zt({T_suffix:n});return r.Data},hn={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},dn=be("path",{d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184s184-82.39 184-184S349.61 64 248 64z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1),pn=be("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M220 220h32v116"},null,-1),gn=be("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M208 340h88"},null,-1),vn=be("path",{d:"M248 130a26 26 0 1 0 26 26a26 26 0 0 0-26-26z",fill:"currentColor"},null,-1),mn=[dn,pn,gn,vn],bn=se({name:"InformationCircleOutline",render:function(r,e){return O(),de("svg",hn,mn)}}),yn={key:5,style:{display:"flex",flex:"1","align-items":"center"}},Ln={__name:"FormList",props:{formList:{type:Array,default:()=>[]}},setup(n,{expose:r}){const e=n;q("");const a=Rt(),o=window.sessionStorage.getItem("task")?JSON.parse(window.sessionStorage.getItem("task")):{},t=xe({pdf:""}),u=()=>{let{T_VerifyDeviceDataTime:s,T_BindDeviceDataTime:l}=o,f=s.every(T=>T===""),c=l.every(T=>T==="");f?d.picker1=null:d.picker1=s,c?d.picker2=null:d.picker2=l};Ye(()=>u()),t.formList=V(()=>e.formList);const d=xe({picker1:null,picker2:null,T_task_id:o.T_task_id,T_VerifyDeviceDataStartTime:"",T_VerifyDeviceDataEndTime:"",T_BindDeviceDataStartTime:"",T_BindDeviceDataEndTime:""}),v=async s=>{d.T_VerifyDeviceDataStartTime=d.picker1!=null?d.picker1[0]:"",d.T_VerifyDeviceDataEndTime=d.picker1!=null?d.picker1[1]:"",d.T_BindDeviceDataStartTime=d.picker2!=null?d.picker2[0]:"",d.T_BindDeviceDataEndTime=d.picker2!=null?d.picker2[1]:""},i=xe({T_source:2,T_task_id:o.T_task_id,T_VerifyTemplate_id:o.T_VerifyTemplate_id}),h=q([]),m=s=>{console.log("cad",t.formList),t.formList[s].T_value="",t.formList[s].T_value=`http://coldverifylocal.coldbaozhida.com/CAD/download?type=upload&filename=${i.T_task_id}_${i.T_VerifyTemplate_id}_${t.formList[s].T_id}.png&xxx=${Math.random()}`},w=s=>{window.open(`http://coldverifylocal.coldbaozhida.com/CAD2/?task_id=${i.T_task_id}&vt_id=${i.T_VerifyTemplate_id}&key_id=${s.T_id}`)},x=s=>{window.open(`http://coldverifylocal.coldbaozhida.com/CAD/?task_id=${i.T_task_id}&vt_id=${i.T_VerifyTemplate_id}&key_id=${s.T_id}`)},_=s=>{},I=async({file:s},l)=>{const f=await fn(s.name.split(".")[1]);sn(s.file,s.name,f,{},{useCdnDomain:!0}).subscribe({next:T=>{console.warn(T)},error:()=>{a.error("上传失败")},complete:T=>{t.formList[l].T_value=T.key}})},y=s=>{e.formList[s].T_value.length==h.value.length?e.formList[s].T_value=[]:e.formList[s].T_value=h.value.map(l=>l.T_sn)},g=s=>{let l=h.value.map(f=>f.T_sn);e.formList[s].T_value=e.formList[s].T_value.concat(l).filter((f,c,T)=>T.indexOf(f)===T.lastIndexOf(f))};return(async()=>{try{const{data:s}=await Ft({T_class:o.T_class});console.log("******",s),h.value=s.Data.List||[]}catch(s){console.log(s)}})(),r({classList:h,person:d}),(s,l)=>{const f=Bt,c=Ht,T=Dt,U=Vt,E=Pt,j=Mt,_e=qt,F=jt,ee=Ot,we=Lt,at=$t,it=Et;return O(),H(it,{"label-width":"auto"},{default:z(()=>[A(T,{cols:12,"x-gap":12,style:{background:"#f1f1f1",padding:"20px 20px 0 20px","margin-bottom":"20px"}},{default:z(()=>[A(c,{span:4,label:"验证设备数据时间范围"},{default:z(()=>[A(f,{"formatted-value":L(d).picker1,"onUpdate:formattedValue":l[0]||(l[0]=b=>L(d).picker1=b),blur:v("1"),type:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",learable:"",class:"w-full"},null,8,["formatted-value","blur"])]),_:1}),A(c,{span:4,label:"绑定设备数据时间范围"},{default:z(()=>[A(f,{"formatted-value":L(d).picker2,"onUpdate:formattedValue":l[1]||(l[1]=b=>L(d).picker2=b),blur:v("2"),type:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",learable:"",class:"w-full"},null,8,["formatted-value","blur"])]),_:1})]),_:1}),A(T,{cols:12,"x-gap":12},{default:z(()=>[(O(!0),de(Re,null,Ut(n.formList,(b,ce)=>(O(),H(c,{key:b.T_VerifyTemplateMap_id,span:4,label:b.T_name},{default:z(()=>[b.T_label===3?(O(),H(E,{key:0,value:b.T_value,"onUpdate:value":k=>b.T_value=k,multiple:"","label-field":"T_id","value-field":"T_sn","max-tag-count":"responsive",options:L(h)},{action:z(()=>[A(U,null,{default:z(()=>[A(L(fe),{disabled:L(h).length==0,class:"underline",text:"",onClick:k=>y(ce)},{default:z(()=>[X(Ue(b.T_value.length==L(h).length?"取消":"全选"),1)]),_:2},1032,["disabled","onClick"]),A(L(fe),{disabled:L(h).length==0,class:"underline",text:"",onClick:k=>g(ce)},{default:z(()=>[X("反选")]),_:2},1032,["disabled","onClick"])]),_:2},1024)]),_:2},1032,["value","onUpdate:value","options"])):b.T_label===4?(O(),H(E,{key:1,value:b.T_value,"onUpdate:value":k=>b.T_value=k,"label-field":"T_id","value-field":"T_sn",options:L(h)},null,8,["value","onUpdate:value","options"])):b.T_label===7?(O(),H(f,{key:2,"formatted-value":b.T_value,"onUpdate:formattedValue":[k=>b.T_value=k,k=>b.T_value=k],type:"datetime",format:"yyyy-MM-dd HH:mm",datetime:"",clearable:"",class:"w-full"},null,8,["formatted-value","onUpdate:formattedValue"])):b.T_label===9?(O(),H(f,{key:3,"formatted-value":b.T_value,"onUpdate:formattedValue":k=>b.T_value=k,type:"datetimerange",format:"yyyy-MM-dd HH:mm",clearable:"",class:"w-full"},null,8,["formatted-value","onUpdate:formattedValue"])):b.T_label===10?(O(),de(Re,{key:4},[A(j,{class:"mr-5",width:"100",src:b.T_value},null,8,["src"]),A(_e,{"list-type":"image-card",onChange:k=>I(k,ce),"default-upload":!1,max:1},{default:z(()=>[X(" 点击上传 ")]),_:2},1032,["onChange"])],64)):b.T_label===11?(O(),de("div",yn,[A(j,{class:"mr-5",width:"100",src:b.T_value},null,8,["src"]),A(U,{class:"mr-5"},{default:z(()=>[A(F,{"positive-text":"新版","negative-text":"旧版",onPositiveClick:k=>w(b),onNegativeClick:k=>x(b)},{trigger:z(()=>[A(L(fe),{onClick:()=>_(b)},{default:z(()=>[X("编辑")]),_:2},1032,["onClick"])]),default:z(()=>[X(" 请选择CAD新版/旧版 ")]),_:2},1032,["onPositiveClick","onNegativeClick"]),A(L(fe),{onClick:()=>m(ce)},{default:z(()=>[X("刷新")]),_:2},1032,["onClick"])]),_:2},1024)])):b.T_label===12?(O(),H(U,{key:6,vertical:"",class:"w-full"},{default:z(()=>[A(f,{"formatted-value":b.T_value[0],"onUpdate:formattedValue":k=>b.T_value[0]=k,format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},type:"datetime",clearable:""},null,8,["formatted-value","onUpdate:formattedValue"]),A(ee,{value:b.T_value[1],"onUpdate:value":k=>b.T_value[1]=k,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):b.T_label===13?(O(),H(U,{key:7,vertical:"",class:"w-full"},{default:z(()=>[A(f,{"formatted-value":b.T_value[0],"onUpdate:formattedValue":k=>b.T_value[0]=k,format:"yyyy-MM-dd HH:mm",type:"datetimerange",clearable:""},null,8,["formatted-value","onUpdate:formattedValue"]),A(ee,{value:b.T_value[1],"onUpdate:value":k=>b.T_value[1]=k,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):(O(),H(ee,{key:8,value:b.T_value,"onUpdate:value":k=>b.T_value=k,type:"text"},null,8,["value","onUpdate:value"])),b.T_label===10||b.T_label===11?(O(),H(j,{key:9,width:"100",src:b.T_text,style:{"margin-right":"36px"}},null,8,["src"])):(O(),H(at,{key:10,trigger:"hover"},{trigger:z(()=>[A(we,{size:"24",class:"ml-3"},{default:z(()=>[A(L(bn))]),_:1})]),default:z(()=>[X(" "+Ue(b.T_text),1)]),_:2},1024))]),_:2},1032,["label"]))),128))]),_:1})]),_:1})}}};export{On as T,Ln as _,In as a,zn as b,Pn as c,An as d,Rn as e,Un as f,fn as g,sn as u};
|